Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.1.0_ModelicaTest.Utilities.TestWriteFile.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.000999/0.000999, allocations: 79.59 kB / 21.18 MB, free: 3.387 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.0009734/0.0009734, allocations: 165.4 kB / 24.56 MB, free: 16 kB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 0.9273/0.9273, allocations: 177.1 MB / 205 MB, free: 5.613 MB / 186.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0+maint.om/package.mo): time 0.2943/0.2943, allocations: 34.25 MB / 295.7 MB, free: 0.7734 MB / 266.7 MB " [Timeout remaining time 180] Using package ModelicaTest with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0+maint.om/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: translateModel(ModelicaTest.Utilities.TestWriteFile,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|result",fileNamePrefix="ModelicaTest_4.1.0_ModelicaTest.Utilities.TestWriteFile") translateModel(ModelicaTest.Utilities.TestWriteFile,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|result",fileNamePrefix="ModelicaTest_4.1.0_ModelicaTest.Utilities.TestWriteFile") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 2.044e-06/2.044e-06, allocations: 3.938 kB / 378 MB, free: 2.688 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 3.007e-05/3.211e-05, allocations: 2.312 kB / 378 MB, free: 2.684 MB / 346.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Utilities.TestWriteFile): time 0.001793/0.001825, allocations: 496.9 kB / 378.5 MB, free: 2.195 MB / 346.7 MB Notification: Performance of NFInst.instExpressions: time 0.0006094/0.002434, allocations: 223.5 kB / 378.7 MB, free: 1.977 MB / 346.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.572e-05/0.00246, allocations: 0 / 378.7 MB, free: 1.977 MB / 346.7 MB Notification: Performance of NFTyping.typeComponents: time 2.039e-05/0.002481, allocations: 0 / 378.7 MB, free: 1.977 MB / 346.7 MB Notification: Performance of NFTyping.typeBindings: time 6.232e-06/0.002487, allocations: 0 / 378.7 MB, free: 1.977 MB / 346.7 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0+maint.om/Utilities.mo:289:3-320:16:writable] Warning: Pure function 'ModelicaTest.Utilities.WriteFile' contains a call to impure function 'Modelica.Utilities.Streams.print'. Notification: Performance of NFTyping.typeClassSections: time 0.000312/0.002799, allocations: 47.72 kB / 378.8 MB, free: 1.93 MB / 346.7 MB Notification: Performance of NFFlatten.flatten: time 6.392e-05/0.002863, allocations: 7.969 kB / 378.8 MB, free: 1.922 MB / 346.7 MB Notification: Performance of NFFlatten.resolveConnections: time 4.192e-05/0.002905, allocations: 8 kB / 378.8 MB, free: 1.914 MB / 346.7 MB Notification: Performance of NFEvalConstants.evaluate: time 3.134e-05/0.002936, allocations: 0 / 378.8 MB, free: 1.914 MB / 346.7 MB Notification: Performance of NFSimplifyModel.simplify: time 2.967e-05/0.002966, allocations: 0 / 378.8 MB, free: 1.914 MB / 346.7 MB Notification: Performance of NFPackage.collectConstants: time 7.825e-06/0.002973, allocations: 0 / 378.8 MB, free: 1.914 MB / 346.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001085/0.003082, allocations: 51.89 kB / 378.8 MB, free: 1.863 MB / 346.7 MB Notification: Performance of NFScalarize.scalarize: time 9.258e-06/0.003091, allocations: 0 / 378.8 MB, free: 1.863 MB / 346.7 MB Notification: Performance of NFVerifyModel.verify: time 2.276e-05/0.003114, allocations: 0 / 378.8 MB, free: 1.863 MB / 346.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001284/0.003242, allocations: 55.8 kB / 378.9 MB, free: 1.809 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.657e-06/0.003246, allocations: 0 / 378.9 MB, free: 1.809 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.563e-06/0.003248, allocations: 0 / 378.9 MB, free: 1.809 MB / 346.7 MB Notification: Performance of Transformations before backend: time 4.569e-06/0.003252, allocations: 0 / 378.9 MB, free: 1.809 MB / 346.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1 * Number of variables: 1 Notification: Performance of Generate backend data structure: time 0.0003047/0.003557, allocations: 389.9 kB / 379.3 MB, free: 1.383 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.824e-05/0.003595, allocations: 8.031 kB / 379.3 MB, free: 1.375 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.553e-05/0.003631, allocations: 0.9375 kB / 379.3 MB, free: 1.375 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 5.548e-05/0.003686, allocations: 108.6 kB / 379.4 MB, free: 1.242 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.034e-05/0.003696, allocations: 384 / 379.4 MB, free: 1.242 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.253e-06/0.003704, allocations: 384 / 379.4 MB, free: 1.242 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 7.834e-05/0.003782, allocations: 55.97 kB / 379.4 MB, free: 1.176 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.905e-06/0.00379, allocations: 4.172 kB / 379.4 MB, free: 1.172 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.276e-06/0.003798, allocations: 384 / 379.4 MB, free: 1.172 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.893e-06/0.003805, allocations: 384 / 379.4 MB, free: 1.172 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.75e-05/0.003823, allocations: 37.58 kB / 379.5 MB, free: 1.129 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 8.289e-05/0.003906, allocations: 112.6 kB / 379.6 MB, free: 0.9844 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 4.697e-05/0.003952, allocations: 48.86 kB / 379.6 MB, free: 0.918 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.865e-05/0.003971, allocations: 37.39 kB / 379.7 MB, free: 0.8711 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.34e-06/0.003976, allocations: 0 / 379.7 MB, free: 0.8711 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.69e-05/0.004013, allocations: 63.08 kB / 379.7 MB, free: 0.793 MB / 346.7 MB Notification: Performance of pre-optimization done (n=1): time 6.21e-07/0.004014, allocations: 4 kB / 379.7 MB, free: 0.7891 MB / 346.7 MB Notification: Performance of matching and sorting (n=1): time 0.0001671/0.004181, allocations: 118.8 kB / 379.8 MB, free: 0.6484 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.517e-05/0.004216, allocations: 77.11 kB / 379.9 MB, free: 0.5547 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 3.991e-05/0.004256, allocations: 146.2 kB / 380.1 MB, free: 408 kB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 7.795e-06/0.004264, allocations: 29.83 kB / 380.1 MB, free: 372 kB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 2.695e-05/0.004291, allocations: 126.9 kB / 380.2 MB, free: 240 kB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.526e-05/0.004306, allocations: 352 / 380.2 MB, free: 240 kB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.095e-05/0.004327, allocations: 19.38 kB / 380.2 MB, free: 212 kB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001138/0.004441, allocations: 496.1 kB / 380.7 MB, free: 15.71 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.946e-05/0.00446, allocations: 33.7 kB / 380.8 MB, free: 15.67 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 1.203e-05/0.004472, allocations: 25.7 kB / 380.8 MB, free: 15.64 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.92e-05/0.004512, allocations: 63.09 kB / 380.8 MB, free: 15.56 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.422e-06/0.004513, allocations: 0 / 380.8 MB, free: 15.56 MB / 362.7 MB Notification: Performance of matching and sorting (n=1) (initialization): time 5.844e-05/0.004571, allocations: 101 kB / 380.9 MB, free: 15.45 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.458e-05/0.004596, allocations: 29.7 kB / 381 MB, free: 15.41 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.238e-06/0.0046, allocations: 3.938 kB / 381 MB, free: 15.41 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.184e-05/0.004612, allocations: 0 / 381 MB, free: 15.41 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.98e-06/0.004617, allocations: 4 kB / 381 MB, free: 15.4 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.949e-06/0.004622, allocations: 0 / 381 MB, free: 15.4 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.208e-05/0.004634, allocations: 3.938 kB / 381 MB, free: 15.4 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.744e-06/0.004642, allocations: 7.984 kB / 381 MB, free: 15.39 MB / 362.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 1 (result) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (1): * Single equations (assignments): 0 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 6.622e-05/0.004708, allocations: 182.3 kB / 381.2 MB, free: 15.2 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.098e-06/0.004712, allocations: 0 / 381.2 MB, free: 15.2 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.334e-06/0.004719, allocations: 7.031 kB / 381.2 MB, free: 15.19 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.894e-06/0.004721, allocations: 3.984 kB / 381.2 MB, free: 15.19 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.906e-06/0.004724, allocations: 0 / 381.2 MB, free: 15.19 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.244e-06/0.004727, allocations: 4 kB / 381.2 MB, free: 15.18 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 5.127e-05/0.004778, allocations: 112.6 kB / 381.3 MB, free: 15.04 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.41e-07/0.004778, allocations: 0 / 381.3 MB, free: 15.04 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.052e-06/0.004779, allocations: 4 kB / 381.3 MB, free: 15.04 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.22e-07/0.00478, allocations: 0 / 381.3 MB, free: 15.04 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.144e-06/0.004787, allocations: 4 kB / 381.3 MB, free: 15.03 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.353e-06/0.004789, allocations: 3.938 kB / 381.3 MB, free: 15.03 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.92e-07/0.004789, allocations: 0 / 381.3 MB, free: 15.03 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 7.471e-05/0.004864, allocations: 135.8 kB / 381.4 MB, free: 14.86 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.086e-06/0.004867, allocations: 0 / 381.4 MB, free: 14.86 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.308e-05/0.00488, allocations: 4 kB / 381.4 MB, free: 14.86 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.148e-06/0.004884, allocations: 0 / 381.4 MB, free: 14.86 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.128e-05/0.004896, allocations: 0 / 381.4 MB, free: 14.86 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.753e-06/0.004897, allocations: 0 / 381.4 MB, free: 14.86 MB / 362.7 MB Notification: Performance of sorting global known variables: time 2.722e-05/0.004925, allocations: 123.2 kB / 381.6 MB, free: 14.73 MB / 362.7 MB Notification: Performance of sort global known variables: time 4.1e-08/0.004925, allocations: 0 / 381.6 MB, free: 14.73 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0001414/0.005066, allocations: 23.92 kB / 381.6 MB, free: 14.71 MB / 362.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 1 (result) * Number of discrete states: 1 (result) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (1): * Single equations (assignments): 0 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0003763/0.005442, allocations: 213.4 kB / 381.8 MB, free: 14.54 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0001158/0.005558, allocations: 134.4 kB / 381.9 MB, free: 14.38 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 1.693e-06/0.00556, allocations: 0 / 381.9 MB, free: 14.38 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 3.437e-05/0.005594, allocations: 92.8 kB / 382 MB, free: 14.26 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001004/0.005695, allocations: 0 / 382 MB, free: 14.26 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002179/0.005913, allocations: 117.6 kB / 382.1 MB, free: 14.11 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 3.388e-05/0.005946, allocations: 51.36 kB / 382.2 MB, free: 14.04 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 6.462e-06/0.005953, allocations: 0 / 382.2 MB, free: 14.04 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.49e-05/0.005968, allocations: 12.5 kB / 382.2 MB, free: 14.03 MB / 362.7 MB Notification: Performance of SimCode: time 4.6e-07/0.005968, allocations: 0 / 382.2 MB, free: 14.03 MB / 362.7 MB Notification: Performance of Templates: time 0.002436/0.008404, allocations: 0.6658 MB / 382.9 MB, free: 13.36 MB / 362.7 MB " [Timeout remaining time 660] make -j1 -f ModelicaTest_4.1.0_ModelicaTest.Utilities.TestWriteFile.makefile [Timeout 660] (rm -f ModelicaTest_4.1.0_ModelicaTest.Utilities.TestWriteFile.pipe ; mkfifo ModelicaTest_4.1.0_ModelicaTest.Utilities.TestWriteFile.pipe ; head -c 1048576 < ModelicaTest_4.1.0_ModelicaTest.Utilities.TestWriteFile.pipe >> ../files/ModelicaTest_4.1.0_ModelicaTest.Utilities.TestWriteFile.sim & ./ModelicaTest_4.1.0_ModelicaTest.Utilities.TestWriteFile -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > ModelicaTest_4.1.0_ModelicaTest.Utilities.TestWriteFile.pipe 2>&1) [Timeout 240] diffSimulationResults("ModelicaTest_4.1.0_ModelicaTest.Utilities.TestWriteFile_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/ModelicaTest/Utilities/TestWriteFile/TestWriteFile.csv","",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 3.105943312868476]