Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_3.2.3_ModelicaTest.Utilities.TestWriteFile.conf.json
loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) [Timeout 180]
"Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001538/0.001538, allocations: 107.2 kB / 19.69 MB, free: 2.199 MB / 14.72 MB
"
[Timeout remaining time 180]
loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180]
"Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001615/0.001615, allocations: 190.9 kB / 22.98 MB, free: 5.062 MB / 14.72 MB
"
[Timeout remaining time 180]
loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) [Timeout 180]
"Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.677/1.677, allocations: 207.6 MB / 233.7 MB, free: 10.01 MB / 190.1 MB
"
[Timeout remaining time 178]
loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo", uses=false) [Timeout 180]
"Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.2335/0.2335, allocations: 44.24 MB / 330.2 MB, free: 9.535 MB / 270.1 MB
"
[Timeout remaining time 179]
Using package ModelicaTest with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo)
Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo)
Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo)
Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo)
Running command: translateModel(ModelicaTest.Utilities.TestWriteFile,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|result",fileNamePrefix="ModelicaTest_3.2.3_ModelicaTest.Utilities.TestWriteFile")
translateModel(ModelicaTest.Utilities.TestWriteFile,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|result",fileNamePrefix="ModelicaTest_3.2.3_ModelicaTest.Utilities.TestWriteFile") [Timeout 660]
"Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed.
Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed.
Notification: Performance of FrontEnd - loaded program: time 0.003442/0.003442, allocations: 75.89 kB / 467.9 MB, free: 4.047 MB / 334.1 MB
Notification: Performance of FrontEnd - Absyn->SCode: time 0.1605/0.164, allocations: 61.03 MB / 0.5166 GB, free: 6.875 MB / 398.1 MB
Notification: Performance of NFInst.instantiate(ModelicaTest.Utilities.TestWriteFile): time 0.001984/0.166, allocations: 494.3 kB / 0.517 GB, free: 6.395 MB / 398.1 MB
Notification: Performance of NFInst.instExpressions: time 0.0006581/0.1666, allocations: 221.1 kB / 0.5172 GB, free: 6.18 MB / 398.1 MB
Notification: Performance of NFInst.updateImplicitVariability: time 3.386e-05/0.1667, allocations: 4 kB / 0.5172 GB, free: 6.176 MB / 398.1 MB
Notification: Performance of NFTyping.typeComponents: time 1.855e-05/0.1667, allocations: 0 / 0.5172 GB, free: 6.176 MB / 398.1 MB
Notification: Performance of NFTyping.typeBindings: time 7.655e-06/0.1667, allocations: 0 / 0.5172 GB, free: 6.176 MB / 398.1 MB
Notification: Performance of NFTyping.typeClassSections: time 0.0003368/0.167, allocations: 51.81 kB / 0.5173 GB, free: 6.125 MB / 398.1 MB
Notification: Performance of NFFlatten.flatten: time 6.283e-05/0.1671, allocations: 4 kB / 0.5173 GB, free: 6.121 MB / 398.1 MB
Notification: Performance of NFFlatten.resolveConnections: time 4.854e-05/0.1671, allocations: 7.984 kB / 0.5173 GB, free: 6.113 MB / 398.1 MB
Notification: Performance of NFEvalConstants.evaluate: time 1.568e-05/0.1671, allocations: 0 / 0.5173 GB, free: 6.113 MB / 398.1 MB
Notification: Performance of NFSimplifyModel.simplify: time 2.118e-05/0.1672, allocations: 0 / 0.5173 GB, free: 6.113 MB / 398.1 MB
Notification: Performance of NFPackage.collectConstants: time 6.352e-06/0.1672, allocations: 0 / 0.5173 GB, free: 6.113 MB / 398.1 MB
Notification: Performance of NFFlatten.collectFunctions: time 0.0001456/0.1673, allocations: 47.95 kB / 0.5174 GB, free: 6.066 MB / 398.1 MB
Notification: Performance of NFScalarize.scalarize: time 8.376e-06/0.1673, allocations: 0 / 0.5174 GB, free: 6.066 MB / 398.1 MB
Notification: Performance of NFVerifyModel.verify: time 2.31e-05/0.1673, allocations: 3.984 kB / 0.5174 GB, free: 6.062 MB / 398.1 MB
Notification: Performance of NFConvertDAE.convert: time 0.0001395/0.1675, allocations: 51.81 kB / 0.5174 GB, free: 6.012 MB / 398.1 MB
Notification: Performance of FrontEnd - DAE generated: time 4.028e-06/0.1675, allocations: 4 kB / 0.5174 GB, free: 6.008 MB / 398.1 MB
Notification: Performance of FrontEnd: time 1.183e-06/0.1675, allocations: 4 kB / 0.5174 GB, free: 6.004 MB / 398.1 MB
Notification: Performance of Transformations before backend: time 1.022e-05/0.1675, allocations: 0 / 0.5174 GB, free: 6.004 MB / 398.1 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.0003692/0.1679, allocations: 276 kB / 0.5177 GB, free: 5.695 MB / 398.1 MB
Notification: Performance of prepare preOptimizeDAE: time 3.964e-05/0.1679, allocations: 8.031 kB / 0.5177 GB, free: 5.688 MB / 398.1 MB
Notification: Performance of preOpt normalInlineFunction (simulation): time 2.996e-05/0.1679, allocations: 4.891 kB / 0.5177 GB, free: 5.684 MB / 398.1 MB
Notification: Performance of preOpt evaluateParameters (simulation): time 9.034e-05/0.168, allocations: 110.5 kB / 0.5178 GB, free: 5.551 MB / 398.1 MB
Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.279e-05/0.168, allocations: 384 / 0.5178 GB, free: 5.551 MB / 398.1 MB
Notification: Performance of preOpt expandDerOperator (simulation): time 1.087e-05/0.1681, allocations: 384 / 0.5178 GB, free: 5.551 MB / 398.1 MB
Notification: Performance of preOpt clockPartitioning (simulation): time 9.808e-05/0.1682, allocations: 30.27 kB / 0.5178 GB, free: 5.516 MB / 398.1 MB
Notification: Performance of preOpt findStateOrder (simulation): time 7.995e-06/0.1682, allocations: 4.188 kB / 0.5178 GB, free: 5.512 MB / 398.1 MB
Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.121e-05/0.1682, allocations: 3.938 kB / 0.5178 GB, free: 5.508 MB / 398.1 MB
Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.709e-06/0.1682, allocations: 0 / 0.5178 GB, free: 5.508 MB / 398.1 MB
Notification: Performance of preOpt removeEqualRHS (simulation): time 1.795e-05/0.1682, allocations: 0 / 0.5178 GB, free: 5.508 MB / 398.1 MB
Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001564/0.1684, allocations: 124.8 kB / 0.518 GB, free: 5.344 MB / 398.1 MB
Notification: Performance of preOpt comSubExp (simulation): time 4.999e-05/0.1684, allocations: 18.52 kB / 0.518 GB, free: 5.316 MB / 398.1 MB
Notification: Performance of preOpt resolveLoops (simulation): time 1.496e-05/0.1684, allocations: 8.797 kB / 0.518 GB, free: 5.305 MB / 398.1 MB
Notification: Performance of preOpt evalFunc (simulation): time 7.313e-06/0.1684, allocations: 4 kB / 0.518 GB, free: 5.301 MB / 398.1 MB
Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.758e-05/0.1685, allocations: 60.36 kB / 0.518 GB, free: 5.227 MB / 398.1 MB
Notification: Performance of pre-optimization done (n=1): time 1.042e-06/0.1685, allocations: 3.938 kB / 0.518 GB, free: 5.223 MB / 398.1 MB
Notification: Performance of matching and sorting (n=1): time 0.0001888/0.1687, allocations: 71.33 kB / 0.5181 GB, free: 5.141 MB / 398.1 MB
Notification: Performance of inlineWhenForInitialization (initialization): time 5.872e-05/0.1687, allocations: 77.11 kB / 0.5182 GB, free: 5.047 MB / 398.1 MB
Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.717e-05/0.1688, allocations: 89.86 kB / 0.5183 GB, free: 4.949 MB / 398.1 MB
Notification: Performance of collectPreVariables (initialization): time 1.498e-05/0.1689, allocations: 29.64 kB / 0.5183 GB, free: 4.914 MB / 398.1 MB
Notification: Performance of collectInitialEqns (initialization): time 3.539e-05/0.1689, allocations: 80.27 kB / 0.5184 GB, free: 4.832 MB / 398.1 MB
Notification: Performance of collectInitialBindings (initialization): time 2.141e-05/0.1689, allocations: 4 kB / 0.5184 GB, free: 4.828 MB / 398.1 MB
Notification: Performance of simplifyInitialFunctions (initialization): time 2.999e-05/0.1689, allocations: 13.72 kB / 0.5184 GB, free: 4.809 MB / 398.1 MB
Notification: Performance of setup shared object (initialization): time 0.0001414/0.1691, allocations: 310.8 kB / 0.5187 GB, free: 4.496 MB / 398.1 MB
Notification: Performance of preBalanceInitialSystem (initialization): time 1.441e-05/0.1691, allocations: 8 kB / 0.5187 GB, free: 4.488 MB / 398.1 MB
Notification: Performance of partitionIndependentBlocks (initialization): time 1.03e-05/0.1691, allocations: 7.984 kB / 0.5187 GB, free: 4.48 MB / 398.1 MB
Notification: Performance of analyzeInitialSystem (initialization): time 5.206e-05/0.1692, allocations: 56.27 kB / 0.5188 GB, free: 4.41 MB / 398.1 MB
Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.034e-06/0.1692, allocations: 0 / 0.5188 GB, free: 4.41 MB / 398.1 MB
Notification: Performance of matching and sorting (n=1) (initialization): time 7.007e-05/0.1692, allocations: 63.47 kB / 0.5188 GB, free: 4.336 MB / 398.1 MB
Notification: Performance of prepare postOptimizeDAE: time 3.623e-05/0.1693, allocations: 33.7 kB / 0.5189 GB, free: 4.297 MB / 398.1 MB
Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.369e-06/0.1693, allocations: 0 / 0.5189 GB, free: 4.297 MB / 398.1 MB
Notification: Performance of postOpt tearingSystem (initialization): time 2.107e-05/0.1693, allocations: 7.922 kB / 0.5189 GB, free: 4.289 MB / 398.1 MB
Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.845e-06/0.1693, allocations: 3.938 kB / 0.5189 GB, free: 4.285 MB / 398.1 MB
Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.466e-06/0.1693, allocations: 0 / 0.5189 GB, free: 4.285 MB / 398.1 MB
Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.404e-05/0.1693, allocations: 0 / 0.5189 GB, free: 4.285 MB / 398.1 MB
Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.071e-06/0.1693, allocations: 0 / 0.5189 GB, free: 4.285 MB / 398.1 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 9.37e-05/0.1694, allocations: 139.5 kB / 0.519 GB, free: 4.133 MB / 398.1 MB
Notification: Performance of postOpt lateInlineFunction (simulation): time 7.554e-06/0.1694, allocations: 4.031 kB / 0.519 GB, free: 4.129 MB / 398.1 MB
Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.756e-06/0.1694, allocations: 6.938 kB / 0.519 GB, free: 4.125 MB / 398.1 MB
Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.052e-06/0.1694, allocations: 0 / 0.519 GB, free: 4.125 MB / 398.1 MB
Notification: Performance of postOpt constantLinearSystem (simulation): time 5.571e-06/0.1694, allocations: 4 kB / 0.519 GB, free: 4.121 MB / 398.1 MB
Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.324e-06/0.1694, allocations: 0 / 0.519 GB, free: 4.121 MB / 398.1 MB
Notification: Performance of postOpt removeSimpleEquations (simulation): time 9.617e-05/0.1695, allocations: 116.8 kB / 0.5191 GB, free: 3.965 MB / 398.1 MB
Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.81e-07/0.1695, allocations: 0 / 0.5191 GB, free: 3.965 MB / 398.1 MB
Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.11e-07/0.1695, allocations: 0 / 0.5191 GB, free: 3.965 MB / 398.1 MB
Notification: Performance of postOpt tearingSystem (simulation): time 1.162e-06/0.1695, allocations: 0 / 0.5191 GB, free: 3.965 MB / 398.1 MB
Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.336e-06/0.1695, allocations: 7.938 kB / 0.5191 GB, free: 3.957 MB / 398.1 MB
Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.72e-07/0.1695, allocations: 0 / 0.5191 GB, free: 3.957 MB / 398.1 MB
Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.71e-07/0.1695, allocations: 4 kB / 0.5191 GB, free: 3.953 MB / 398.1 MB
Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001017/0.1696, allocations: 90.83 kB / 0.5192 GB, free: 3.84 MB / 398.1 MB
Notification: Performance of postOpt removeConstants (simulation): time 3.577e-06/0.1696, allocations: 0 / 0.5192 GB, free: 3.84 MB / 398.1 MB
Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.4e-05/0.1697, allocations: 11.81 kB / 0.5192 GB, free: 3.828 MB / 398.1 MB
Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.288e-06/0.1697, allocations: 0 / 0.5192 GB, free: 3.828 MB / 398.1 MB
Notification: Performance of postOpt findZeroCrossings (simulation): time 1.813e-05/0.1697, allocations: 4 kB / 0.5192 GB, free: 3.824 MB / 398.1 MB
Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.475e-06/0.1697, allocations: 3.938 kB / 0.5192 GB, free: 3.82 MB / 398.1 MB
Notification: Performance of sorting global known variables: time 3.936e-05/0.1697, allocations: 87.31 kB / 0.5193 GB, free: 3.734 MB / 398.1 MB
Notification: Performance of sort global known variables: time 7.1e-08/0.1697, allocations: 0 / 0.5193 GB, free: 3.734 MB / 398.1 MB
Notification: Performance of remove unused functions: time 0.0002196/0.17, allocations: 23.86 kB / 0.5193 GB, free: 3.711 MB / 398.1 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.0004733/0.1704, allocations: 195.2 kB / 0.5195 GB, free: 3.527 MB / 398.1 MB
Notification: Performance of simCode: created initialization part: time 0.0001038/0.1705, allocations: 59.41 kB / 0.5196 GB, free: 3.457 MB / 398.1 MB
Notification: Performance of simCode: created event and clocks part: time 1.964e-06/0.1705, allocations: 0 / 0.5196 GB, free: 3.457 MB / 398.1 MB
Notification: Performance of simCode: created simulation system equations: time 3.796e-05/0.1706, allocations: 55.41 kB / 0.5196 GB, free: 3.391 MB / 398.1 MB
Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001261/0.1707, allocations: 6.188 kB / 0.5196 GB, free: 3.387 MB / 398.1 MB
Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001909/0.1709, allocations: 88.97 kB / 0.5197 GB, free: 3.273 MB / 398.1 MB
Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002984/0.1712, allocations: 0.6728 MB / 0.5204 GB, free: 2.574 MB / 398.1 MB
Notification: Performance of simCode: alias equations: time 4.95e-06/0.1712, allocations: 0 / 0.5204 GB, free: 2.574 MB / 398.1 MB
Notification: Performance of simCode: all other stuff during SimCode phase: time 1.123e-05/0.1712, allocations: 7.438 kB / 0.5204 GB, free: 2.566 MB / 398.1 MB
Notification: Performance of SimCode: time 3.2e-07/0.1712, allocations: 0 / 0.5204 GB, free: 2.566 MB / 398.1 MB
Notification: Performance of Templates: time 0.003336/0.1745, allocations: 0.5904 MB / 0.521 GB, free: 1.977 MB / 398.1 MB
"
[Timeout remaining time 660]
make -j1 -f ModelicaTest_3.2.3_ModelicaTest.Utilities.TestWriteFile.makefile [Timeout 660]
(rm -f ModelicaTest_3.2.3_ModelicaTest.Utilities.TestWriteFile.pipe ; mkfifo ModelicaTest_3.2.3_ModelicaTest.Utilities.TestWriteFile.pipe ; head -c 1048576 < ModelicaTest_3.2.3_ModelicaTest.Utilities.TestWriteFile.pipe >> ../files/ModelicaTest_3.2.3_ModelicaTest.Utilities.TestWriteFile.sim & ./ModelicaTest_3.2.3_ModelicaTest.Utilities.TestWriteFile  -abortSlowSimulation -alarm=480  -emit_protected -lv LOG_STATS > ModelicaTest_3.2.3_ModelicaTest.Utilities.TestWriteFile.pipe 2>&1) [Timeout 480]
diffSimulationResults("ModelicaTest_3.2.3_ModelicaTest.Utilities.TestWriteFile_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/Utilities/TestWriteFile/TestWriteFile.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_3.2.3_ModelicaTest.Utilities.TestWriteFile.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660]
""
[Timeout remaining time 660]
Reference file matches
[Calling sys.exit(0), Time elapsed: 5.216039213351905]