Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.1.0_ModelicaTest.Utilities.TestFiles.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.001468/0.001468, allocations: 124.4 kB / 17.79 MB, free: 5.266 MB / 14.72 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.002172/0.002172, allocations: 199.3 kB / 20.74 MB, free: 2.32 MB / 14.72 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 1.646/1.646, allocations: 230.6 MB / 254.1 MB, free: 15.07 MB / 206.1 MB " [Timeout remaining time 178] 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.2356/0.2356, allocations: 46.92 MB / 357.1 MB, free: 10.33 MB / 286.1 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.TestFiles,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|result",fileNamePrefix="ModelicaTest_4.1.0_ModelicaTest.Utilities.TestFiles") translateModel(ModelicaTest.Utilities.TestFiles,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|result",fileNamePrefix="ModelicaTest_4.1.0_ModelicaTest.Utilities.TestFiles") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.002219/0.002219, allocations: 67.89 kB / 0.4914 GB, free: 7.52 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.148/0.1502, allocations: 66 MB / 0.5558 GB, free: 5.395 MB / 414.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Utilities.TestFiles): time 0.001739/0.1519, allocations: 489 kB / 0.5563 GB, free: 4.914 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.00246/0.1544, allocations: 1.263 MB / 0.5575 GB, free: 3.645 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.309e-05/0.1544, allocations: 0 / 0.5575 GB, free: 3.645 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 1.364e-05/0.1544, allocations: 4 kB / 0.5575 GB, free: 3.641 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002185/0.1547, allocations: 19.92 kB / 0.5576 GB, free: 3.621 MB / 414.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0+maint.om/Utilities.mo:455:3-487:12:writable] Warning: Pure function 'ModelicaTest.Utilities.Files' contains a call to impure function 'Modelica.Utilities.Streams.print'. Notification: Performance of NFTyping.typeClassSections: time 0.001177/0.1558, allocations: 245.3 kB / 0.5578 GB, free: 3.383 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 5.826e-05/0.1559, allocations: 7.984 kB / 0.5578 GB, free: 3.375 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.475e-05/0.1559, allocations: 4 kB / 0.5578 GB, free: 3.371 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.991e-05/0.156, allocations: 0 / 0.5578 GB, free: 3.371 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 8.855e-05/0.1561, allocations: 7.938 kB / 0.5578 GB, free: 3.363 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 1.013e-05/0.1561, allocations: 7.938 kB / 0.5578 GB, free: 3.355 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004311/0.1604, allocations: 0.7016 MB / 0.5585 GB, free: 2.781 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 8.786e-06/0.1604, allocations: 3.938 kB / 0.5585 GB, free: 2.777 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 2.22e-05/0.1604, allocations: 4 kB / 0.5585 GB, free: 2.773 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003105/0.1607, allocations: 179.5 kB / 0.5587 GB, free: 2.598 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.913e-06/0.1607, allocations: 3.984 kB / 0.5587 GB, free: 2.594 MB / 414.1 MB Notification: Performance of FrontEnd: time 1.673e-06/0.1607, allocations: 4 kB / 0.5587 GB, free: 2.59 MB / 414.1 MB Notification: Performance of Transformations before backend: time 5.26e-06/0.1607, allocations: 0 / 0.5587 GB, free: 2.59 MB / 414.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.0004955/0.1612, allocations: 388.8 kB / 0.5591 GB, free: 2.156 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.912e-05/0.1613, allocations: 8.031 kB / 0.5591 GB, free: 2.148 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.324e-05/0.1613, allocations: 0.9375 kB / 0.5591 GB, free: 2.148 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001567/0.1615, allocations: 168.3 kB / 0.5592 GB, free: 1.945 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.484e-05/0.1615, allocations: 8.359 kB / 0.5592 GB, free: 1.938 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.435e-05/0.1615, allocations: 384 / 0.5592 GB, free: 1.938 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000106/0.1616, allocations: 33.83 kB / 0.5593 GB, free: 1.898 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.556e-06/0.1616, allocations: 4 kB / 0.5593 GB, free: 1.895 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.486e-06/0.1616, allocations: 0 / 0.5593 GB, free: 1.895 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.409e-06/0.1616, allocations: 0 / 0.5593 GB, free: 1.895 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.685e-05/0.1616, allocations: 0 / 0.5593 GB, free: 1.895 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001697/0.1618, allocations: 153.7 kB / 0.5594 GB, free: 1.695 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 5.052e-05/0.1619, allocations: 18.52 kB / 0.5594 GB, free: 1.668 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.668e-05/0.1619, allocations: 4.859 kB / 0.5594 GB, free: 1.66 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.977e-06/0.1619, allocations: 8.062 kB / 0.5594 GB, free: 1.652 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.428e-05/0.1619, allocations: 60.2 kB / 0.5595 GB, free: 1.578 MB / 414.1 MB Notification: Performance of pre-optimization done (n=1): time 9.82e-07/0.1619, allocations: 0 / 0.5595 GB, free: 1.578 MB / 414.1 MB Notification: Performance of matching and sorting (n=1): time 0.0002033/0.1621, allocations: 67.39 kB / 0.5596 GB, free: 1.5 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.303e-05/0.1622, allocations: 77.11 kB / 0.5596 GB, free: 1.406 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.174e-05/0.1623, allocations: 93.86 kB / 0.5597 GB, free: 1.305 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 1.656e-05/0.1623, allocations: 25.7 kB / 0.5598 GB, free: 1.273 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.427e-05/0.1623, allocations: 88.33 kB / 0.5598 GB, free: 1.184 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.758e-05/0.1624, allocations: 4 kB / 0.5598 GB, free: 1.18 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.24e-05/0.1624, allocations: 13.72 kB / 0.5599 GB, free: 1.16 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001396/0.1625, allocations: 314.8 kB / 0.5602 GB, free: 0.8438 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.473e-05/0.1625, allocations: 4 kB / 0.5602 GB, free: 0.8398 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.382e-06/0.1626, allocations: 0 / 0.5602 GB, free: 0.8398 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.18e-05/0.1626, allocations: 60.27 kB / 0.5602 GB, free: 0.7656 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.854e-06/0.1626, allocations: 0 / 0.5602 GB, free: 0.7656 MB / 414.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 0.0001019/0.1627, allocations: 75.36 kB / 0.5603 GB, free: 0.6797 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.57e-05/0.1627, allocations: 33.69 kB / 0.5603 GB, free: 0.6406 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.084e-06/0.1628, allocations: 4 kB / 0.5603 GB, free: 0.6367 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.713e-05/0.1628, allocations: 0 / 0.5603 GB, free: 0.6367 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.31e-07/0.1628, allocations: 0 / 0.5603 GB, free: 0.6367 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.769e-06/0.1628, allocations: 3.938 kB / 0.5603 GB, free: 0.6328 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.349e-05/0.1628, allocations: 0 / 0.5603 GB, free: 0.6328 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.79e-06/0.1628, allocations: 3.938 kB / 0.5603 GB, free: 0.6289 MB / 414.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.771e-05/0.1629, allocations: 135.5 kB / 0.5605 GB, free: 492 kB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.079e-05/0.1629, allocations: 7.969 kB / 0.5605 GB, free: 484 kB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.073e-05/0.1629, allocations: 11.05 kB / 0.5605 GB, free: 476 kB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.062e-06/0.1629, allocations: 0 / 0.5605 GB, free: 476 kB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.713e-06/0.1629, allocations: 4 kB / 0.5605 GB, free: 472 kB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.024e-06/0.1629, allocations: 0 / 0.5605 GB, free: 472 kB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001222/0.163, allocations: 145.7 kB / 0.5606 GB, free: 276 kB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.022e-06/0.163, allocations: 0 / 0.5606 GB, free: 276 kB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.956e-06/0.163, allocations: 3.938 kB / 0.5606 GB, free: 272 kB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.387e-06/0.1631, allocations: 4 kB / 0.5606 GB, free: 268 kB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.948e-06/0.1631, allocations: 7.984 kB / 0.5606 GB, free: 260 kB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.32e-07/0.1631, allocations: 4 kB / 0.5606 GB, free: 256 kB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.12e-07/0.1631, allocations: 0 / 0.5606 GB, free: 256 kB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001206/0.1632, allocations: 90.83 kB / 0.5607 GB, free: 140 kB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.647e-05/0.1632, allocations: 85.03 kB / 0.5608 GB, free: 36 kB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.642e-05/0.1633, allocations: 4 kB / 0.5608 GB, free: 32 kB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.217e-06/0.1633, allocations: 3.938 kB / 0.5608 GB, free: 28 kB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.524e-05/0.1633, allocations: 0 / 0.5608 GB, free: 28 kB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.206e-06/0.1633, allocations: 4.031 kB / 0.5608 GB, free: 24 kB / 414.1 MB Notification: Performance of sorting global known variables: time 6.205e-05/0.1633, allocations: 79.28 kB / 0.5609 GB, free: 15.95 MB / 430.1 MB Notification: Performance of sort global known variables: time 9e-08/0.1633, allocations: 0 / 0.5609 GB, free: 15.95 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.0003183/0.1637, allocations: 67.8 kB / 0.561 GB, free: 15.88 MB / 430.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.0008427/0.1645, allocations: 321.9 kB / 0.5613 GB, free: 15.62 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.0001304/0.1646, allocations: 59.41 kB / 0.5613 GB, free: 15.55 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 2.084e-06/0.1646, allocations: 0 / 0.5613 GB, free: 15.55 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 4.784e-05/0.1647, allocations: 59.39 kB / 0.5614 GB, free: 15.48 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001349/0.1648, allocations: 8.062 kB / 0.5614 GB, free: 15.47 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002205/0.165, allocations: 81 kB / 0.5615 GB, free: 15.36 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003379/0.1654, allocations: 0.6767 MB / 0.5621 GB, free: 14.66 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 6.051e-06/0.1654, allocations: 0 / 0.5621 GB, free: 14.66 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.53e-05/0.1654, allocations: 7.438 kB / 0.5621 GB, free: 14.65 MB / 430.1 MB Notification: Performance of SimCode: time 5.41e-07/0.1654, allocations: 4 kB / 0.5621 GB, free: 14.65 MB / 430.1 MB Notification: Performance of Templates: time 0.005182/0.1706, allocations: 1.587 MB / 0.5637 GB, free: 13.07 MB / 430.1 MB " [Timeout remaining time 660] make -j1 -f ModelicaTest_4.1.0_ModelicaTest.Utilities.TestFiles.makefile [Timeout 660] (rm -f ModelicaTest_4.1.0_ModelicaTest.Utilities.TestFiles.pipe ; mkfifo ModelicaTest_4.1.0_ModelicaTest.Utilities.TestFiles.pipe ; head -c 1048576 < ModelicaTest_4.1.0_ModelicaTest.Utilities.TestFiles.pipe >> ../files/ModelicaTest_4.1.0_ModelicaTest.Utilities.TestFiles.sim & ./ModelicaTest_4.1.0_ModelicaTest.Utilities.TestFiles -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_4.1.0_ModelicaTest.Utilities.TestFiles.pipe 2>&1) [Timeout 480] diffSimulationResults("ModelicaTest_4.1.0_ModelicaTest.Utilities.TestFiles_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/ModelicaTest/Utilities/TestFiles/TestFiles.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.1.0_ModelicaTest.Utilities.TestFiles.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.46334034204483]