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.001642/0.001642, allocations: 109.7 kB / 18.33 MB, free: 4.078 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.001652/0.001652, allocations: 185.9 kB / 21.5 MB, free: 0.9219 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.7/1.7, allocations: 207.6 MB / 232.1 MB, free: 3.191 MB / 174.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.3827/0.3827, allocations: 44.23 MB / 328.4 MB, free: 6.262 MB / 254.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.003515/0.003515, allocations: 67.45 kB / 465.5 MB, free: 45.55 MB / 382.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1605/0.164, allocations: 61.01 MB / 0.5142 GB, free: 12.5 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Utilities.TestWriteFile): time 0.001739/0.1657, allocations: 0.4956 MB / 0.5146 GB, free: 12.13 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.000574/0.1663, allocations: 218.8 kB / 0.5149 GB, free: 11.98 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.327e-05/0.1663, allocations: 0 / 0.5149 GB, free: 11.98 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 2.047e-05/0.1663, allocations: 0 / 0.5149 GB, free: 11.98 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 6.933e-06/0.1664, allocations: 3.938 kB / 0.5149 GB, free: 11.98 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003069/0.1667, allocations: 39.03 kB / 0.5149 GB, free: 11.95 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 6.666e-05/0.1667, allocations: 5.359 kB / 0.5149 GB, free: 11.95 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.882e-05/0.1668, allocations: 5.359 kB / 0.5149 GB, free: 11.95 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.583e-05/0.1668, allocations: 7.938 kB / 0.5149 GB, free: 11.94 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 2.487e-05/0.1668, allocations: 9.25 kB / 0.5149 GB, free: 11.93 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 7.314e-06/0.1668, allocations: 0 / 0.5149 GB, free: 11.93 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001332/0.167, allocations: 50.08 kB / 0.515 GB, free: 11.91 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 8.707e-06/0.167, allocations: 0 / 0.515 GB, free: 11.91 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 1.932e-05/0.167, allocations: 1.375 kB / 0.515 GB, free: 11.91 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001212/0.1671, allocations: 48.38 kB / 0.515 GB, free: 11.88 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.049e-06/0.1671, allocations: 1.375 kB / 0.515 GB, free: 11.88 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.172e-06/0.1671, allocations: 0 / 0.515 GB, free: 11.88 MB / 382.1 MB Notification: Performance of Transformations before backend: time 6.262e-06/0.1671, allocations: 0 / 0.515 GB, free: 11.88 MB / 382.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.0003069/0.1674, allocations: 349.4 kB / 0.5154 GB, free: 11.48 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.973e-05/0.1675, allocations: 16.06 kB / 0.5154 GB, free: 11.48 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.271e-05/0.1675, allocations: 10.2 kB / 0.5154 GB, free: 11.47 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 7.725e-05/0.1676, allocations: 174.8 kB / 0.5155 GB, free: 11.26 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.55e-05/0.1676, allocations: 1.75 kB / 0.5155 GB, free: 11.26 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.12e-05/0.1676, allocations: 384 / 0.5155 GB, free: 11.26 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 8.362e-05/0.1677, allocations: 29.02 kB / 0.5156 GB, free: 11.23 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.045e-05/0.1677, allocations: 4.125 kB / 0.5156 GB, free: 11.23 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.203e-05/0.1677, allocations: 5.312 kB / 0.5156 GB, free: 11.22 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.147e-06/0.1677, allocations: 0 / 0.5156 GB, free: 11.22 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.922e-05/0.1677, allocations: 1.375 kB / 0.5156 GB, free: 11.22 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001172/0.1679, allocations: 147 kB / 0.5157 GB, free: 11.03 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 4.003e-05/0.1679, allocations: 23.95 kB / 0.5157 GB, free: 11 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.229e-05/0.1679, allocations: 6.234 kB / 0.5158 GB, free: 10.99 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 9.768e-06/0.1679, allocations: 0 / 0.5158 GB, free: 10.99 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.95e-05/0.1679, allocations: 57.64 kB / 0.5158 GB, free: 10.92 MB / 382.1 MB Notification: Performance of pre-optimization done (n=1): time 1.493e-06/0.1679, allocations: 3.984 kB / 0.5158 GB, free: 10.92 MB / 382.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001586/0.1681, allocations: 71.52 kB / 0.5159 GB, free: 10.84 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.243e-05/0.1681, allocations: 81.23 kB / 0.516 GB, free: 10.75 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 3.602e-05/0.1682, allocations: 95.23 kB / 0.516 GB, free: 10.64 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 1.106e-05/0.1682, allocations: 25.7 kB / 0.5161 GB, free: 10.61 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 1.505e-05/0.1682, allocations: 80.14 kB / 0.5161 GB, free: 10.53 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.67e-05/0.1682, allocations: 1.375 kB / 0.5162 GB, free: 10.53 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.091e-05/0.1682, allocations: 11.09 kB / 0.5162 GB, free: 10.52 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 6.005e-05/0.1683, allocations: 312.2 kB / 0.5165 GB, free: 10.2 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.178e-05/0.1683, allocations: 1.375 kB / 0.5165 GB, free: 10.2 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.881e-06/0.1683, allocations: 4 kB / 0.5165 GB, free: 10.2 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.667e-05/0.1684, allocations: 72.31 kB / 0.5165 GB, free: 10.12 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.773e-06/0.1684, allocations: 0 / 0.5165 GB, free: 10.12 MB / 382.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 5.438e-05/0.1684, allocations: 58.28 kB / 0.5166 GB, free: 10.05 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.792e-05/0.1684, allocations: 31.2 kB / 0.5166 GB, free: 10.02 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.432e-06/0.1685, allocations: 4 kB / 0.5166 GB, free: 10.02 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.639e-05/0.1685, allocations: 5.312 kB / 0.5166 GB, free: 10.02 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.92e-07/0.1685, allocations: 3.938 kB / 0.5166 GB, free: 10.01 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.248e-06/0.1685, allocations: 0 / 0.5166 GB, free: 10.01 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.709e-05/0.1685, allocations: 9.453 kB / 0.5166 GB, free: 10 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.663e-06/0.1685, allocations: 0 / 0.5166 GB, free: 10 MB / 382.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 5.705e-05/0.1686, allocations: 134.3 kB / 0.5168 GB, free: 9.859 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.764e-06/0.1686, allocations: 5.312 kB / 0.5168 GB, free: 9.855 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.42e-05/0.1686, allocations: 7.062 kB / 0.5168 GB, free: 9.844 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.062e-06/0.1686, allocations: 0 / 0.5168 GB, free: 9.844 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.027e-06/0.1686, allocations: 1.375 kB / 0.5168 GB, free: 9.844 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.044e-06/0.1686, allocations: 0 / 0.5168 GB, free: 9.844 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 6.525e-05/0.1686, allocations: 151 kB / 0.5169 GB, free: 9.648 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.31e-07/0.1686, allocations: 4 kB / 0.5169 GB, free: 9.645 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.71e-07/0.1686, allocations: 1.375 kB / 0.5169 GB, free: 9.645 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.102e-06/0.1686, allocations: 0 / 0.5169 GB, free: 9.645 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.026e-05/0.1687, allocations: 5.312 kB / 0.5169 GB, free: 9.641 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.81e-07/0.1687, allocations: 3.938 kB / 0.5169 GB, free: 9.637 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.62e-07/0.1687, allocations: 0 / 0.5169 GB, free: 9.637 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 7.01e-05/0.1687, allocations: 89.83 kB / 0.517 GB, free: 9.535 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.016e-05/0.1688, allocations: 78.48 kB / 0.5171 GB, free: 9.441 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.128e-05/0.1688, allocations: 7.969 kB / 0.5171 GB, free: 9.434 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.025e-06/0.1688, allocations: 1.375 kB / 0.5171 GB, free: 9.434 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.506e-05/0.1688, allocations: 1.375 kB / 0.5171 GB, free: 9.434 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.444e-06/0.1688, allocations: 0 / 0.5171 GB, free: 9.434 MB / 382.1 MB Notification: Performance of sorting global known variables: time 1.526e-05/0.1688, allocations: 75.28 kB / 0.5172 GB, free: 9.359 MB / 382.1 MB Notification: Performance of sort global known variables: time 5e-08/0.1688, allocations: 1.375 kB / 0.5172 GB, free: 9.359 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0002353/0.169, allocations: 26.86 kB / 0.5172 GB, free: 9.344 MB / 382.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.0004308/0.1695, allocations: 204.1 kB / 0.5174 GB, free: 9.191 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 8.26e-05/0.1696, allocations: 59.47 kB / 0.5175 GB, free: 9.125 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 3.427e-06/0.1696, allocations: 5.438 kB / 0.5175 GB, free: 9.121 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 2.074e-05/0.1696, allocations: 54.16 kB / 0.5175 GB, free: 9.059 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001245/0.1697, allocations: 5.312 kB / 0.5175 GB, free: 9.055 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001624/0.1699, allocations: 91.84 kB / 0.5176 GB, free: 8.949 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001154/0.17, allocations: 0.6741 MB / 0.5183 GB, free: 8.25 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 4.829e-06/0.17, allocations: 0 / 0.5183 GB, free: 8.25 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.075e-05/0.17, allocations: 12.75 kB / 0.5183 GB, free: 8.238 MB / 382.1 MB Notification: Performance of SimCode: time 4.91e-07/0.17, allocations: 0 / 0.5183 GB, free: 8.238 MB / 382.1 MB Notification: Performance of Templates: time 0.003197/0.1732, allocations: 0.5827 MB / 0.5188 GB, free: 7.926 MB / 382.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.539678675122559]