Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.0.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.0009769/0.0009769, allocations: 71.77 kB / 21.69 MB, free: 2.859 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.001503/0.001503, allocations: 162.6 kB / 24.99 MB, free: 8.336 MB / 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.9895/0.9895, allocations: 177.1 MB / 205.3 MB, free: 5.633 MB / 186.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.2426/0.2426, allocations: 32.8 MB / 294.6 MB, free: 1.281 MB / 266.7 MB " [Timeout remaining time 180] Using package ModelicaTest with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.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.0.0_ModelicaTest.Utilities.TestWriteFile") translateModel(ModelicaTest.Utilities.TestWriteFile,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|result",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.Utilities.TestWriteFile") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.944e-06/1.944e-06, allocations: 0 / 376 MB, free: 5.035 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.395e-05/2.589e-05, allocations: 2.312 kB / 376 MB, free: 5.031 MB / 346.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Utilities.TestWriteFile): time 0.001639/0.001665, allocations: 0.497 MB / 376.5 MB, free: 4.531 MB / 346.7 MB Notification: Performance of NFInst.instExpressions: time 0.0005368/0.002201, allocations: 223.4 kB / 376.7 MB, free: 4.312 MB / 346.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.142e-05/0.002233, allocations: 0 / 376.7 MB, free: 4.312 MB / 346.7 MB Notification: Performance of NFTyping.typeComponents: time 1.738e-05/0.00225, allocations: 0 / 376.7 MB, free: 4.312 MB / 346.7 MB Notification: Performance of NFTyping.typeBindings: time 6.733e-06/0.002257, allocations: 0 / 376.7 MB, free: 4.312 MB / 346.7 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/Utilities.mo:290:3-321: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.0003241/0.002581, allocations: 43.78 kB / 376.7 MB, free: 4.27 MB / 346.7 MB Notification: Performance of NFFlatten.flatten: time 6.34e-05/0.002644, allocations: 11.98 kB / 376.7 MB, free: 4.258 MB / 346.7 MB Notification: Performance of NFFlatten.resolveConnections: time 4.105e-05/0.002685, allocations: 4 kB / 376.7 MB, free: 4.254 MB / 346.7 MB Notification: Performance of NFEvalConstants.evaluate: time 2.919e-05/0.002715, allocations: 0 / 376.7 MB, free: 4.254 MB / 346.7 MB Notification: Performance of NFSimplifyModel.simplify: time 3.405e-05/0.002749, allocations: 0 / 376.7 MB, free: 4.254 MB / 346.7 MB Notification: Performance of NFPackage.collectConstants: time 8.566e-06/0.002757, allocations: 0 / 376.7 MB, free: 4.254 MB / 346.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001336/0.002891, allocations: 55.88 kB / 376.8 MB, free: 4.199 MB / 346.7 MB Notification: Performance of NFScalarize.scalarize: time 9.558e-06/0.0029, allocations: 0 / 376.8 MB, free: 4.199 MB / 346.7 MB Notification: Performance of NFVerifyModel.verify: time 2.196e-05/0.002922, allocations: 0 / 376.8 MB, free: 4.199 MB / 346.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001367/0.003059, allocations: 55.75 kB / 376.8 MB, free: 4.145 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.825e-06/0.003062, allocations: 0 / 376.8 MB, free: 4.145 MB / 346.7 MB Notification: Performance of FrontEnd: time 9.02e-07/0.003063, allocations: 0 / 376.8 MB, free: 4.145 MB / 346.7 MB Notification: Performance of Transformations before backend: time 4.428e-06/0.003067, allocations: 4 kB / 376.8 MB, free: 4.141 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.0003189/0.003386, allocations: 378 kB / 377.2 MB, free: 3.727 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.342e-05/0.00343, allocations: 8.031 kB / 377.2 MB, free: 3.719 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.352e-05/0.003473, allocations: 4.938 kB / 377.2 MB, free: 3.715 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 7.653e-05/0.00355, allocations: 108.6 kB / 377.3 MB, free: 3.582 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.309e-05/0.003563, allocations: 384 / 377.3 MB, free: 3.582 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.786e-06/0.003572, allocations: 384 / 377.3 MB, free: 3.582 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 9.883e-05/0.00367, allocations: 59.95 kB / 377.4 MB, free: 3.512 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.974e-06/0.003677, allocations: 192 / 377.4 MB, free: 3.512 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.373e-05/0.003691, allocations: 4.312 kB / 377.4 MB, free: 3.508 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.195e-06/0.003699, allocations: 384 / 377.4 MB, free: 3.508 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.593e-05/0.003725, allocations: 37.62 kB / 377.4 MB, free: 3.465 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001014/0.003827, allocations: 108.6 kB / 377.5 MB, free: 3.324 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 5.201e-05/0.003879, allocations: 56.8 kB / 377.6 MB, free: 3.25 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.512e-05/0.003904, allocations: 33.39 kB / 377.6 MB, free: 3.207 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.758e-06/0.003908, allocations: 0 / 377.6 MB, free: 3.207 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.1e-05/0.003949, allocations: 63.14 kB / 377.7 MB, free: 3.129 MB / 346.7 MB Notification: Performance of pre-optimization done (n=1): time 1.012e-06/0.00395, allocations: 4 kB / 377.7 MB, free: 3.125 MB / 346.7 MB Notification: Performance of matching and sorting (n=1): time 0.0001855/0.004136, allocations: 114.8 kB / 377.8 MB, free: 2.988 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.788e-05/0.004184, allocations: 81.11 kB / 377.9 MB, free: 2.891 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.111e-05/0.004235, allocations: 150.4 kB / 378 MB, free: 2.73 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 1.146e-05/0.004246, allocations: 25.7 kB / 378.1 MB, free: 2.699 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.454e-05/0.004281, allocations: 130.8 kB / 378.2 MB, free: 2.566 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.699e-05/0.004298, allocations: 4.328 kB / 378.2 MB, free: 2.562 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.015e-05/0.004328, allocations: 19.38 kB / 378.2 MB, free: 2.535 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001354/0.004463, allocations: 496.1 kB / 378.7 MB, free: 2.039 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.051e-05/0.004484, allocations: 29.7 kB / 378.7 MB, free: 2.004 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 1.523e-05/0.004499, allocations: 25.7 kB / 378.7 MB, free: 1.973 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.679e-05/0.004556, allocations: 71.03 kB / 378.8 MB, free: 1.887 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.045e-06/0.004559, allocations: 0 / 378.8 MB, free: 1.887 MB / 346.7 MB Notification: Performance of matching and sorting (n=1) (initialization): time 8.228e-05/0.004641, allocations: 97.11 kB / 378.9 MB, free: 1.773 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.094e-05/0.004672, allocations: 29.7 kB / 378.9 MB, free: 1.738 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.25e-06/0.004677, allocations: 0 / 378.9 MB, free: 1.738 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.322e-05/0.004691, allocations: 0 / 378.9 MB, free: 1.738 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.132e-06/0.004692, allocations: 4 kB / 378.9 MB, free: 1.734 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.759e-06/0.004697, allocations: 0 / 378.9 MB, free: 1.734 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.446e-05/0.004711, allocations: 3.938 kB / 378.9 MB, free: 1.73 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.005e-06/0.004719, allocations: 3.984 kB / 379 MB, free: 1.727 MB / 346.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 8.609e-05/0.004805, allocations: 186.3 kB / 379.1 MB, free: 1.527 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.416e-06/0.004813, allocations: 0 / 379.1 MB, free: 1.527 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.546e-06/0.004822, allocations: 7.031 kB / 379.1 MB, free: 1.523 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.643e-06/0.004824, allocations: 0 / 379.1 MB, free: 1.523 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.549e-06/0.004828, allocations: 4 kB / 379.1 MB, free: 1.52 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.125e-06/0.004831, allocations: 0 / 379.1 MB, free: 1.52 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 6.78e-05/0.004899, allocations: 112.6 kB / 379.3 MB, free: 1.375 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.665e-06/0.004902, allocations: 4 kB / 379.3 MB, free: 1.371 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.934e-06/0.004904, allocations: 3.938 kB / 379.3 MB, free: 1.367 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.705e-06/0.004906, allocations: 0 / 379.3 MB, free: 1.367 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.825e-06/0.004914, allocations: 4 kB / 379.3 MB, free: 1.363 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.273e-06/0.004916, allocations: 0 / 379.3 MB, free: 1.363 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.31e-07/0.004916, allocations: 0 / 379.3 MB, free: 1.363 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001066/0.005023, allocations: 135.8 kB / 379.4 MB, free: 1.195 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.839e-06/0.005028, allocations: 0 / 379.4 MB, free: 1.195 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.518e-05/0.005043, allocations: 4 kB / 379.4 MB, free: 1.191 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.704e-06/0.005051, allocations: 0 / 379.4 MB, free: 1.191 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.156e-05/0.005062, allocations: 0 / 379.4 MB, free: 1.191 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.126e-06/0.005065, allocations: 0 / 379.4 MB, free: 1.191 MB / 346.7 MB Notification: Performance of sorting global known variables: time 3.483e-05/0.0051, allocations: 123.2 kB / 379.5 MB, free: 1.07 MB / 346.7 MB Notification: Performance of sort global known variables: time 8e-08/0.0051, allocations: 3.938 kB / 379.5 MB, free: 1.066 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0002074/0.005308, allocations: 23.92 kB / 379.6 MB, free: 1.043 MB / 346.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.0004471/0.005755, allocations: 206 kB / 379.8 MB, free: 0.8711 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.0001207/0.005875, allocations: 130.4 kB / 379.9 MB, free: 0.7148 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 1.693e-06/0.005877, allocations: 0 / 379.9 MB, free: 0.7148 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 3.743e-05/0.005915, allocations: 88.8 kB / 380 MB, free: 0.6055 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001246/0.006039, allocations: 3.984 kB / 380 MB, free: 0.6016 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001854/0.006225, allocations: 113.7 kB / 380.1 MB, free: 464 kB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 2.977e-05/0.006254, allocations: 51.36 kB / 380.1 MB, free: 392 kB / 346.7 MB Notification: Performance of simCode: alias equations: time 5.621e-06/0.00626, allocations: 0 / 380.1 MB, free: 392 kB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.378e-05/0.006274, allocations: 12.5 kB / 380.1 MB, free: 380 kB / 346.7 MB Notification: Performance of SimCode: time 6.01e-07/0.006274, allocations: 0 / 380.1 MB, free: 380 kB / 346.7 MB Notification: Performance of Templates: time 0.002697/0.008971, allocations: 0.6291 MB / 380.8 MB, free: 15.75 MB / 362.7 MB " [Timeout remaining time 660] make -j1 -f ModelicaTest_4.0.0_ModelicaTest.Utilities.TestWriteFile.makefile [Timeout 660] (rm -f ModelicaTest_4.0.0_ModelicaTest.Utilities.TestWriteFile.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Utilities.TestWriteFile.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Utilities.TestWriteFile.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Utilities.TestWriteFile.sim & ./ModelicaTest_4.0.0_ModelicaTest.Utilities.TestWriteFile -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > ModelicaTest_4.0.0_ModelicaTest.Utilities.TestWriteFile.pipe 2>&1) [Timeout 240] diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.Utilities.TestWriteFile_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.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: 2.9933855910785496]