Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_ModelicaTest.Utilities.TestInternal.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 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo", uses=false) 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.TestInternal,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|result",fileNamePrefix="ModelicaTest_3.2.3_ModelicaTest.Utilities.TestInternal") translateModel(ModelicaTest.Utilities.TestInternal,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|result",fileNamePrefix="ModelicaTest_3.2.3_ModelicaTest.Utilities.TestInternal") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001595/0.001595, allocations: 96.14 kB / 15.87 MB, free: 16 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.002082/0.002081, allocations: 204.9 kB / 16.79 MB, free: 6.84 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.731/1.731, allocations: 205.1 MB / 222.6 MB, free: 4.766 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.3619/0.3619, allocations: 43.5 MB / 313.5 MB, free: 8.516 MB / 254.1 MB 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.001589/0.001589, allocations: 63.91 kB / 382 MB, free: 8.758 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1454/0.147, allocations: 57.79 MB / 439.8 MB, free: 14.86 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Utilities.TestInternal): time 0.0025/0.1495, allocations: 0.5425 MB / 440.4 MB, free: 14.32 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.00107/0.1506, allocations: 254.6 kB / 440.6 MB, free: 14.07 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.177e-05/0.1507, allocations: 4 kB / 440.6 MB, free: 14.07 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 3.883e-05/0.1507, allocations: 0 / 440.6 MB, free: 14.07 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 9.808e-06/0.1508, allocations: 0 / 440.6 MB, free: 14.07 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004145/0.1512, allocations: 39.91 kB / 440.6 MB, free: 14.03 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 6.214e-05/0.1513, allocations: 7.984 kB / 440.7 MB, free: 14.02 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 6.642e-05/0.1513, allocations: 4 kB / 440.7 MB, free: 14.02 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.225e-05/0.1514, allocations: 0 / 440.7 MB, free: 14.02 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 2.949e-05/0.1514, allocations: 0 / 440.7 MB, free: 14.02 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 1.098e-05/0.1514, allocations: 3.938 kB / 440.7 MB, free: 14.01 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001386/0.1516, allocations: 63.95 kB / 440.7 MB, free: 13.95 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 8.506e-06/0.1516, allocations: 0 / 440.7 MB, free: 13.95 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 2.52e-05/0.1516, allocations: 7.922 kB / 440.7 MB, free: 13.94 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001269/0.1517, allocations: 51.94 kB / 440.8 MB, free: 13.89 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.298e-06/0.1517, allocations: 0 / 440.8 MB, free: 13.89 MB / 382.1 MB Notification: Performance of FrontEnd: time 9.92e-07/0.1517, allocations: 0 / 440.8 MB, free: 13.89 MB / 382.1 MB Notification: Performance of Transformations before backend: time 4.489e-06/0.1518, allocations: 4 kB / 440.8 MB, free: 13.89 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.0003528/0.1521, allocations: 357.3 kB / 441.1 MB, free: 13.48 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.73e-05/0.1522, allocations: 8.031 kB / 441.1 MB, free: 13.47 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.256e-05/0.1522, allocations: 0.9375 kB / 441.1 MB, free: 13.47 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 9.422e-05/0.1523, allocations: 164.4 kB / 441.3 MB, free: 13.27 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.123e-05/0.1523, allocations: 384 / 441.3 MB, free: 13.27 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.987e-06/0.1523, allocations: 384 / 441.3 MB, free: 13.27 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 8.644e-05/0.1524, allocations: 34.27 kB / 441.3 MB, free: 13.23 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.818e-06/0.1524, allocations: 192 / 441.3 MB, free: 13.23 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.949e-06/0.1524, allocations: 11.88 kB / 441.4 MB, free: 13.22 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.998e-06/0.1525, allocations: 0 / 441.4 MB, free: 13.22 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.888e-05/0.1525, allocations: 3.938 kB / 441.4 MB, free: 13.22 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000133/0.1526, allocations: 149.7 kB / 441.5 MB, free: 13.02 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 3.492e-05/0.1527, allocations: 22.55 kB / 441.5 MB, free: 12.99 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.447e-05/0.1527, allocations: 8.844 kB / 441.5 MB, free: 12.98 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.599e-06/0.1527, allocations: 0 / 441.5 MB, free: 12.98 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.933e-05/0.1527, allocations: 68.33 kB / 441.6 MB, free: 12.9 MB / 382.1 MB Notification: Performance of pre-optimization done (n=1): time 7.62e-07/0.1528, allocations: 0 / 441.6 MB, free: 12.9 MB / 382.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001864/0.1529, allocations: 75.17 kB / 441.7 MB, free: 12.81 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.346e-05/0.153, allocations: 77.11 kB / 441.7 MB, free: 12.72 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.44e-05/0.153, allocations: 89.86 kB / 441.8 MB, free: 12.62 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 1.073e-05/0.1531, allocations: 25.7 kB / 441.9 MB, free: 12.59 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 2.556e-05/0.1531, allocations: 80.14 kB / 441.9 MB, free: 12.51 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.811e-05/0.1531, allocations: 0 / 441.9 MB, free: 12.51 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.668e-05/0.1531, allocations: 21.84 kB / 442 MB, free: 12.48 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001027/0.1533, allocations: 314.8 kB / 442.3 MB, free: 12.16 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.827e-06/0.1533, allocations: 0 / 442.3 MB, free: 12.16 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.682e-06/0.1533, allocations: 4 kB / 442.3 MB, free: 12.16 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 6.069e-05/0.1533, allocations: 56.27 kB / 442.3 MB, free: 12.09 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.195e-06/0.1534, allocations: 0 / 442.3 MB, free: 12.09 MB / 382.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 6.951e-05/0.1534, allocations: 67.34 kB / 442.4 MB, free: 12.01 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.121e-05/0.1535, allocations: 37.78 kB / 442.4 MB, free: 11.97 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.56e-06/0.1535, allocations: 4 kB / 442.4 MB, free: 11.96 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.96e-05/0.1535, allocations: 3.938 kB / 442.4 MB, free: 11.96 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.72e-07/0.1535, allocations: 0 / 442.4 MB, free: 11.96 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.422e-06/0.1535, allocations: 0 / 442.4 MB, free: 11.96 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.603e-05/0.1536, allocations: 0 / 442.4 MB, free: 11.96 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.984e-06/0.1536, allocations: 0 / 442.4 MB, free: 11.96 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 0.0001133/0.1537, allocations: 139.5 kB / 442.6 MB, free: 11.81 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.614e-06/0.1537, allocations: 0 / 442.6 MB, free: 11.81 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.417e-05/0.1537, allocations: 7.062 kB / 442.6 MB, free: 11.8 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.044e-06/0.1537, allocations: 4 kB / 442.6 MB, free: 11.8 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.691e-06/0.1537, allocations: 0 / 442.6 MB, free: 11.8 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.819e-06/0.1537, allocations: 7.984 kB / 442.6 MB, free: 11.79 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001301/0.1539, allocations: 142 kB / 442.7 MB, free: 11.6 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.122e-06/0.1539, allocations: 3.938 kB / 442.7 MB, free: 11.6 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.41e-07/0.1539, allocations: 0 / 442.7 MB, free: 11.6 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.242e-06/0.1539, allocations: 0 / 442.7 MB, free: 11.6 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.366e-05/0.1539, allocations: 7.938 kB / 442.7 MB, free: 11.59 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.192e-06/0.1539, allocations: 0 / 442.7 MB, free: 11.59 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.51e-07/0.1539, allocations: 0 / 442.7 MB, free: 11.59 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001175/0.1541, allocations: 98.77 kB / 442.8 MB, free: 11.47 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.313e-05/0.1541, allocations: 81.11 kB / 442.9 MB, free: 11.37 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.658e-05/0.1542, allocations: 3.938 kB / 442.9 MB, free: 11.37 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.396e-06/0.1542, allocations: 0 / 442.9 MB, free: 11.37 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.946e-05/0.1542, allocations: 7.922 kB / 442.9 MB, free: 11.36 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.611e-06/0.1542, allocations: 4 kB / 442.9 MB, free: 11.36 MB / 382.1 MB Notification: Performance of sorting global known variables: time 3.225e-05/0.1542, allocations: 79.28 kB / 443 MB, free: 11.28 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.1543, allocations: 4.031 kB / 443 MB, free: 11.27 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0002672/0.1545, allocations: 16 kB / 443 MB, free: 11.26 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.0006498/0.1552, allocations: 277.9 kB / 443.3 MB, free: 11 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0002333/0.1554, allocations: 59.39 kB / 443.4 MB, free: 10.93 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 6.352e-06/0.1554, allocations: 8.062 kB / 443.4 MB, free: 10.93 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 4.586e-05/0.1555, allocations: 55.34 kB / 443.4 MB, free: 10.86 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000151/0.1557, allocations: 4 kB / 443.4 MB, free: 10.86 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002142/0.1559, allocations: 78.7 kB / 443.5 MB, free: 10.75 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002323/0.1561, allocations: 0.677 MB / 444.2 MB, free: 10.05 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 6.412e-06/0.1561, allocations: 0 / 444.2 MB, free: 10.05 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.927e-06/0.1561, allocations: 7.438 kB / 444.2 MB, free: 10.04 MB / 382.1 MB Notification: Performance of SimCode: time 2.7e-07/0.1561, allocations: 0 / 444.2 MB, free: 10.04 MB / 382.1 MB Notification: Performance of Templates: time 0.003138/0.1593, allocations: 0.7854 MB / 445 MB, free: 9.254 MB / 382.1 MB make -j1 -f ModelicaTest_3.2.3_ModelicaTest.Utilities.TestInternal.makefile (rm -f ModelicaTest_3.2.3_ModelicaTest.Utilities.TestInternal.pipe ; mkfifo ModelicaTest_3.2.3_ModelicaTest.Utilities.TestInternal.pipe ; head -c 1048576 < ModelicaTest_3.2.3_ModelicaTest.Utilities.TestInternal.pipe >> ../files/ModelicaTest_3.2.3_ModelicaTest.Utilities.TestInternal.sim & ./ModelicaTest_3.2.3_ModelicaTest.Utilities.TestInternal -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_3.2.3_ModelicaTest.Utilities.TestInternal.pipe 2>&1) diffSimulationResults("ModelicaTest_3.2.3_ModelicaTest.Utilities.TestInternal_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/Utilities/TestInternal/TestInternal.csv","../files/ModelicaTest_3.2.3_ModelicaTest.Utilities.TestInternal.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches