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.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.001004/0.001004, allocations: 80.05 kB / 20.72 MB, free: 3.766 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.00101/0.00101, allocations: 173.3 kB / 24.14 MB, free: 356 kB / 18.57 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 0.8753/0.8753, allocations: 158.6 MB / 186 MB, free: 2.727 MB / 170.7 MB " [Timeout remaining time 179] 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.1535/0.1535, allocations: 32.38 MB / 270.7 MB, free: 14.59 MB / 266.7 MB " [Timeout remaining time 180] 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.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_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: Performance of FrontEnd - loaded program: time 2.144e-06/2.144e-06, allocations: 0 / 299.1 MB, free: 2.188 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.279e-05/2.494e-05, allocations: 2.312 kB / 299.1 MB, free: 2.184 MB / 282.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Utilities.TestWriteFile): time 0.001161/0.001186, allocations: 0.5406 MB / 299.6 MB, free: 1.645 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.0004362/0.001622, allocations: 227.3 kB / 299.8 MB, free: 1.422 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.93e-05/0.001641, allocations: 0 / 299.8 MB, free: 1.422 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 1.24e-05/0.001654, allocations: 0 / 299.8 MB, free: 1.422 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 6.572e-06/0.00166, allocations: 0 / 299.8 MB, free: 1.422 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002264/0.001887, allocations: 47.78 kB / 299.9 MB, free: 1.375 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 4.691e-05/0.001934, allocations: 0 / 299.9 MB, free: 1.375 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 3.51e-05/0.001969, allocations: 3.984 kB / 299.9 MB, free: 1.371 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 2.839e-05/0.001997, allocations: 7.984 kB / 299.9 MB, free: 1.363 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 3.553e-05/0.002033, allocations: 3.938 kB / 299.9 MB, free: 1.359 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 7.274e-06/0.00204, allocations: 0 / 299.9 MB, free: 1.359 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003978/0.002438, allocations: 47.95 kB / 299.9 MB, free: 1.312 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 6.613e-06/0.002444, allocations: 0 / 299.9 MB, free: 1.312 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 1.608e-05/0.00246, allocations: 0 / 299.9 MB, free: 1.312 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 9.576e-05/0.002556, allocations: 47.88 kB / 300 MB, free: 1.266 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.884e-06/0.002558, allocations: 0 / 300 MB, free: 1.266 MB / 282.7 MB Notification: Performance of FrontEnd: time 6.82e-07/0.002559, allocations: 4 kB / 300 MB, free: 1.262 MB / 282.7 MB Notification: Performance of Transformations before backend: time 3.256e-06/0.002562, allocations: 0 / 300 MB, free: 1.262 MB / 282.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.0001962/0.002758, allocations: 262.3 kB / 300.3 MB, free: 0.9727 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.13e-05/0.00279, allocations: 8.031 kB / 300.3 MB, free: 0.9648 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.25e-05/0.002812, allocations: 0.9375 kB / 300.3 MB, free: 0.9648 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 5.478e-05/0.002867, allocations: 109.7 kB / 300.4 MB, free: 0.832 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.333e-06/0.002874, allocations: 384 / 300.4 MB, free: 0.832 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.731e-06/0.00288, allocations: 4.359 kB / 300.4 MB, free: 0.8281 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 6.106e-05/0.002941, allocations: 59.95 kB / 300.4 MB, free: 0.7578 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.051e-06/0.002947, allocations: 4.125 kB / 300.4 MB, free: 0.7539 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.268e-06/0.002951, allocations: 4.375 kB / 300.4 MB, free: 0.75 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.167e-06/0.002955, allocations: 384 / 300.4 MB, free: 0.75 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.959e-05/0.002975, allocations: 29.64 kB / 300.5 MB, free: 0.7148 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 5.681e-05/0.003032, allocations: 57.05 kB / 300.5 MB, free: 0.6445 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 3.911e-05/0.003071, allocations: 48.25 kB / 300.6 MB, free: 0.582 MB / 282.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.596e-05/0.003087, allocations: 34.56 kB / 300.6 MB, free: 0.5391 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.965e-06/0.00309, allocations: 0 / 300.6 MB, free: 0.5391 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.949e-05/0.003119, allocations: 64.31 kB / 300.7 MB, free: 472 kB / 282.7 MB Notification: Performance of pre-optimization done (n=1): time 5.61e-07/0.00312, allocations: 0 / 300.7 MB, free: 472 kB / 282.7 MB Notification: Performance of matching and sorting (n=1): time 9.615e-05/0.003216, allocations: 110.8 kB / 300.8 MB, free: 336 kB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.3e-05/0.003249, allocations: 81.23 kB / 300.9 MB, free: 236 kB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 2.891e-05/0.003278, allocations: 93.86 kB / 301 MB, free: 132 kB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 7.505e-06/0.003286, allocations: 25.7 kB / 301 MB, free: 100 kB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 1.729e-05/0.003303, allocations: 80.14 kB / 301.1 MB, free: 16 kB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.457e-05/0.003317, allocations: 8.312 kB / 301.1 MB, free: 8 kB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.1483/0.1516, allocations: 17.72 kB / 301.1 MB, free: 19.89 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 6.44e-05/0.1516, allocations: 314.6 kB / 301.4 MB, free: 19.58 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.662e-05/0.1517, allocations: 25.7 kB / 301.4 MB, free: 19.55 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 1.801e-05/0.1517, allocations: 26.61 kB / 301.4 MB, free: 19.52 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 6.239e-05/0.1518, allocations: 67.73 kB / 301.5 MB, free: 19.45 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.485e-06/0.1518, allocations: 0 / 301.5 MB, free: 19.45 MB / 282.7 MB Notification: Performance of matching and sorting (n=1) (initialization): time 7.11e-05/0.1518, allocations: 88.17 kB / 301.6 MB, free: 19.35 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.467e-05/0.1519, allocations: 30.58 kB / 301.6 MB, free: 19.32 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.183e-06/0.1519, allocations: 1.875 kB / 301.6 MB, free: 19.32 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.3e-05/0.1519, allocations: 0 / 301.6 MB, free: 19.32 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.033e-06/0.1519, allocations: 0.5 kB / 301.6 MB, free: 19.32 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.236e-06/0.1519, allocations: 1.047 kB / 301.6 MB, free: 19.32 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.018e-05/0.1519, allocations: 2.312 kB / 301.6 MB, free: 19.32 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.134e-05/0.152, allocations: 1.203 kB / 301.6 MB, free: 19.32 MB / 282.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.198e-05/0.152, allocations: 139 kB / 301.8 MB, free: 19.18 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.197e-05/0.152, allocations: 2.375 kB / 301.8 MB, free: 19.18 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.428e-05/0.152, allocations: 6.672 kB / 301.8 MB, free: 19.17 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.345e-06/0.152, allocations: 0.5 kB / 301.8 MB, free: 19.17 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.296e-06/0.152, allocations: 5.281 kB / 301.8 MB, free: 19.17 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.855e-06/0.152, allocations: 0 / 301.8 MB, free: 19.17 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 5.487e-05/0.1521, allocations: 65.31 kB / 301.8 MB, free: 19.09 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.603e-06/0.1521, allocations: 0.5 kB / 301.8 MB, free: 19.09 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.01e-07/0.1521, allocations: 0.7812 kB / 301.8 MB, free: 19.09 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.814e-06/0.1521, allocations: 4.344 kB / 301.8 MB, free: 19.09 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.432e-06/0.1521, allocations: 2.5 kB / 301.8 MB, free: 19.09 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.71e-07/0.1521, allocations: 0 / 301.8 MB, free: 19.09 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.62e-07/0.1521, allocations: 1.469 kB / 301.9 MB, free: 19.09 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 7.341e-05/0.1522, allocations: 119.2 kB / 302 MB, free: 18.96 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.56e-06/0.1522, allocations: 1.062 kB / 302 MB, free: 18.96 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.242e-05/0.1522, allocations: 2.984 kB / 302 MB, free: 18.96 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.34e-06/0.1522, allocations: 1.094 kB / 302 MB, free: 18.96 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.166e-05/0.1522, allocations: 1.953 kB / 302 MB, free: 18.96 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.024e-06/0.1522, allocations: 1.625 kB / 302 MB, free: 18.96 MB / 282.7 MB Notification: Performance of sorting global known variables: time 7.063e-06/0.1522, allocations: 8.484 kB / 302 MB, free: 18.96 MB / 282.7 MB Notification: Performance of sort global known variables: time 7e-08/0.1522, allocations: 0 / 302 MB, free: 18.96 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.0001378/0.1524, allocations: 22 kB / 302 MB, free: 18.95 MB / 282.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.0004786/0.1528, allocations: 222.4 kB / 302.2 MB, free: 18.88 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 8.702e-05/0.1529, allocations: 119.3 kB / 302.3 MB, free: 18.75 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 3.887e-06/0.1529, allocations: 0.5312 kB / 302.3 MB, free: 18.75 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 1.742e-05/0.153, allocations: 88.64 kB / 302.4 MB, free: 18.65 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 5.724e-05/0.153, allocations: 7.703 kB / 302.4 MB, free: 18.65 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001488/0.1532, allocations: 107.1 kB / 302.5 MB, free: 18.52 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 2.142e-05/0.1532, allocations: 53.47 kB / 302.6 MB, free: 18.45 MB / 282.7 MB Notification: Performance of simCode: alias equations: time 7.383e-06/0.1532, allocations: 4.672 kB / 302.6 MB, free: 18.45 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.331e-05/0.1532, allocations: 59.3 kB / 302.7 MB, free: 18.4 MB / 282.7 MB Notification: Performance of SimCode: time 5.21e-07/0.1532, allocations: 0 / 302.7 MB, free: 18.4 MB / 282.7 MB Notification: Performance of Templates: time 0.002707/0.1559, allocations: 0.691 MB / 303.3 MB, free: 18.33 MB / 282.7 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=240 -s gbode -gbm=radauIIA3 -emit_protected -lv LOG_STATS > ModelicaTest_3.2.3_ModelicaTest.Utilities.TestWriteFile.pipe 2>&1) [Timeout 240] 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","",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.970806187018752]