Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Utilities.TestExamplesCalculator.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) 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.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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.TestExamplesCalculator,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.Utilities.TestExamplesCalculator") translateModel(ModelicaTest.Utilities.TestExamplesCalculator,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.Utilities.TestExamplesCalculator") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001462/0.001462, allocations: 107.1 kB / 18.39 MB, free: 4.629 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001736/0.001736, allocations: 184.1 kB / 19.33 MB, free: 3.699 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.365/1.365, allocations: 222.9 MB / 243 MB, free: 15.08 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.1902/0.1902, allocations: 44.18 MB / 337.4 MB, free: 2.695 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001433/0.001433, allocations: 64.94 kB / 409.9 MB, free: 26.53 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1338/0.1353, allocations: 60.83 MB / 470.7 MB, free: 13.66 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Utilities.TestExamplesCalculator): time 0.002073/0.1374, allocations: 482.8 kB / 471.2 MB, free: 13.18 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.003025/0.1405, allocations: 2.006 MB / 473.2 MB, free: 11.16 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.888e-05/0.1405, allocations: 0 / 473.2 MB, free: 11.16 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 1.731e-05/0.1405, allocations: 8 kB / 473.2 MB, free: 11.15 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 2.098e-05/0.1406, allocations: 3.938 kB / 473.2 MB, free: 11.15 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001325/0.1419, allocations: 370.8 kB / 473.5 MB, free: 10.79 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 5.562e-05/0.142, allocations: 11.98 kB / 473.6 MB, free: 10.77 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.257e-05/0.142, allocations: 3.938 kB / 473.6 MB, free: 10.77 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.791e-05/0.1421, allocations: 4 kB / 473.6 MB, free: 10.77 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01603/0.1581, allocations: 3.347 MB / 476.9 MB, free: 8.043 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 1.75e-05/0.1581, allocations: 0 / 476.9 MB, free: 8.043 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 9.803e-05/0.1582, allocations: 4 kB / 476.9 MB, free: 8.039 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 1.49e-05/0.1583, allocations: 4 kB / 476.9 MB, free: 8.035 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 2.78e-05/0.1583, allocations: 3.984 kB / 476.9 MB, free: 8.031 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001452/0.1584, allocations: 11.92 kB / 476.9 MB, free: 8.02 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.185e-06/0.1585, allocations: 4 kB / 476.9 MB, free: 8.016 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.503e-06/0.1585, allocations: 3.938 kB / 476.9 MB, free: 8.012 MB / 350.1 MB Notification: Performance of Transformations before backend: time 7.144e-06/0.1585, allocations: 4 kB / 476.9 MB, free: 8.008 MB / 350.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 0 * Number of variables: 0 Notification: Performance of Generate backend data structure: time 0.0003372/0.1588, allocations: 315.5 kB / 477.3 MB, free: 7.652 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.556e-05/0.1589, allocations: 12.03 kB / 477.3 MB, free: 7.641 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002118/0.1591, allocations: 84.2 kB / 477.3 MB, free: 7.559 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001831/0.1593, allocations: 235.7 kB / 477.6 MB, free: 7.289 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.686e-05/0.1594, allocations: 154.9 kB / 477.7 MB, free: 7.137 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.256e-05/0.1595, allocations: 166.7 kB / 477.9 MB, free: 6.973 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 8.012e-05/0.1596, allocations: 101 kB / 478 MB, free: 6.867 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.46e-05/0.1596, allocations: 75.28 kB / 478.1 MB, free: 6.793 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.315e-05/0.1597, allocations: 150.6 kB / 478.2 MB, free: 6.645 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.07e-05/0.1598, allocations: 150.6 kB / 478.4 MB, free: 6.496 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.798e-05/0.1598, allocations: 154.5 kB / 478.5 MB, free: 6.344 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003268/0.1602, allocations: 450 kB / 478.9 MB, free: 5.855 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 8.998e-05/0.1603, allocations: 165.1 kB / 479.1 MB, free: 5.684 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.995e-05/0.1603, allocations: 88.11 kB / 479.2 MB, free: 5.594 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.732e-05/0.1604, allocations: 79.28 kB / 479.3 MB, free: 5.516 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.725e-05/0.1604, allocations: 121.8 kB / 479.4 MB, free: 5.387 MB / 350.1 MB Notification: Performance of pre-optimization done (n=0): time 9.51e-07/0.1604, allocations: 0 / 479.4 MB, free: 5.387 MB / 350.1 MB Notification: Performance of matching and sorting (n=0): time 8.437e-05/0.1605, allocations: 25.7 kB / 479.4 MB, free: 5.355 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.876e-05/0.1606, allocations: 182.1 kB / 479.6 MB, free: 5.152 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001111/0.1607, allocations: 93.86 kB / 479.7 MB, free: 5.051 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.575e-05/0.1608, allocations: 29.64 kB / 479.7 MB, free: 5.016 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.813e-05/0.1608, allocations: 84.27 kB / 479.8 MB, free: 4.93 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.685e-06/0.1608, allocations: 0 / 479.8 MB, free: 4.93 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.98e-05/0.1609, allocations: 13.72 kB / 479.8 MB, free: 4.91 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001363/0.161, allocations: 310.8 kB / 480.1 MB, free: 4.598 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.24e-06/0.161, allocations: 0 / 480.1 MB, free: 4.598 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.112e-05/0.1611, allocations: 17.7 kB / 480.1 MB, free: 4.574 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 2.788e-05/0.1611, allocations: 79.22 kB / 480.2 MB, free: 4.496 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.665e-05/0.1611, allocations: 79.28 kB / 480.3 MB, free: 4.418 MB / 350.1 MB Notification: Performance of matching and sorting (n=0) (initialization): time 6.195e-05/0.1612, allocations: 33.67 kB / 480.3 MB, free: 4.379 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.517e-05/0.1612, allocations: 83.28 kB / 480.4 MB, free: 4.297 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.793e-05/0.1613, allocations: 75.28 kB / 480.5 MB, free: 4.223 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 6.903e-05/0.1614, allocations: 154.5 kB / 480.6 MB, free: 4.07 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.746e-05/0.1614, allocations: 79.22 kB / 480.7 MB, free: 3.992 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.857e-05/0.1615, allocations: 166.5 kB / 480.9 MB, free: 3.828 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.769e-05/0.1616, allocations: 83.28 kB / 480.9 MB, free: 3.746 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.945e-05/0.1616, allocations: 75.28 kB / 481 MB, free: 3.672 MB / 350.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: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (0): * Single equations (assignments): 0 * Array equations: 0 * Algorithm blocks: 0 * 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 0.0001567/0.1618, allocations: 260.4 kB / 481.3 MB, free: 3.406 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.542e-05/0.1619, allocations: 108.9 kB / 481.4 MB, free: 3.293 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.28e-05/0.162, allocations: 104.1 kB / 481.5 MB, free: 3.184 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.569e-05/0.1621, allocations: 192.2 kB / 481.7 MB, free: 2.988 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.061e-05/0.1622, allocations: 180.3 kB / 481.8 MB, free: 2.805 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.581e-05/0.1622, allocations: 176.3 kB / 482 MB, free: 2.625 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002802/0.1625, allocations: 409.1 kB / 482.4 MB, free: 2.168 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.334e-05/0.1626, allocations: 105 kB / 482.5 MB, free: 2.059 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.151e-05/0.1626, allocations: 104.9 kB / 482.6 MB, free: 1.949 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.33e-05/0.1627, allocations: 184.3 kB / 482.8 MB, free: 1.762 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.035e-05/0.1628, allocations: 180.3 kB / 483 MB, free: 1.578 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.82e-05/0.1629, allocations: 180.2 kB / 483.2 MB, free: 1.395 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.585e-05/0.163, allocations: 180.6 kB / 483.3 MB, free: 1.211 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001624/0.1631, allocations: 311.7 kB / 483.6 MB, free: 0.8828 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.974e-05/0.1632, allocations: 186 kB / 483.8 MB, free: 0.6758 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.456e-05/0.1633, allocations: 184.2 kB / 484 MB, free: 500 kB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001003/0.1634, allocations: 101 kB / 484.1 MB, free: 392 kB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.856e-05/0.1635, allocations: 180.2 kB / 484.3 MB, free: 204 kB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.477e-05/0.1636, allocations: 109 kB / 484.4 MB, free: 88 kB / 350.1 MB Notification: Performance of sorting global known variables: time 4.024e-05/0.1636, allocations: 79.28 kB / 484.5 MB, free: 8 kB / 350.1 MB Notification: Performance of sort global known variables: time 2.3e-07/0.1636, allocations: 0 / 484.5 MB, free: 8 kB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002826/0.1639, allocations: 0 / 484.5 MB, free: 8 kB / 350.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: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (0): * Single equations (assignments): 0 * Array equations: 0 * Algorithm blocks: 0 * 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.0001354/0.164, allocations: 170.5 kB / 484.6 MB, free: 15.83 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 5.851e-05/0.1641, allocations: 7.938 kB / 484.6 MB, free: 15.82 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.033e-06/0.1641, allocations: 0 / 484.6 MB, free: 15.82 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 1.373e-06/0.1641, allocations: 3.938 kB / 484.6 MB, free: 15.82 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003734/0.1645, allocations: 467.7 kB / 485.1 MB, free: 15.36 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002141/0.1647, allocations: 148.1 kB / 485.2 MB, free: 15.19 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002704/0.165, allocations: 0.669 MB / 485.9 MB, free: 14.49 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 2.621e-05/0.165, allocations: 0 / 485.9 MB, free: 14.49 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.462e-05/0.1651, allocations: 11.44 kB / 485.9 MB, free: 14.48 MB / 366.1 MB Notification: Performance of SimCode: time 2e-07/0.1651, allocations: 3.938 kB / 485.9 MB, free: 14.48 MB / 366.1 MB Notification: Performance of Templates: time 0.002587/0.1677, allocations: 308.5 kB / 486.2 MB, free: 14.18 MB / 366.1 MB make -j1 -f ModelicaTest_4.0.0_ModelicaTest.Utilities.TestExamplesCalculator.makefile (rm -f ModelicaTest_4.0.0_ModelicaTest.Utilities.TestExamplesCalculator.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Utilities.TestExamplesCalculator.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Utilities.TestExamplesCalculator.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Utilities.TestExamplesCalculator.sim & ./ModelicaTest_4.0.0_ModelicaTest.Utilities.TestExamplesCalculator -abortSlowSimulation -alarm=480 -s gbode -emit_protected -lv LOG_STATS > ModelicaTest_4.0.0_ModelicaTest.Utilities.TestExamplesCalculator.pipe 2>&1) diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.Utilities.TestExamplesCalculator_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Utilities/TestExamplesCalculator/TestExamplesCalculator.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.0.0_ModelicaTest.Utilities.TestExamplesCalculator.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches