Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Utilities.TestExamplesCalculator.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001315/0.001315, allocations: 116.5 kB / 18.5 MB, free: 4.434 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001441/0.001441, allocations: 216.9 kB / 21.47 MB, free: 1.473 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.501/1.501, allocations: 230.2 MB / 254.5 MB, free: 15.26 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2389/0.2389, allocations: 46.9 MB / 357.4 MB, free: 10.48 MB / 286.1 MB " [Timeout remaining time 180] Using package ModelicaTest with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.Utilities.TestExamplesCalculator,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Utilities_TestExamplesCalculator",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Utilities.TestExamplesCalculator,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Utilities_TestExamplesCalculator",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.002247/0.002247, allocations: 79.86 kB / 0.4912 GB, free: 8.359 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1243/0.1266, allocations: 65.99 MB / 0.5557 GB, free: 6.238 MB / 414.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Utilities.TestExamplesCalculator): time 0.001792/0.1284, allocations: 498.3 kB / 0.5561 GB, free: 5.746 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.003748/0.1321, allocations: 2.142 MB / 0.5582 GB, free: 3.586 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.977e-05/0.1322, allocations: 0 / 0.5582 GB, free: 3.586 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 1.879e-05/0.1322, allocations: 0 / 0.5582 GB, free: 3.586 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 2.052e-05/0.1322, allocations: 0 / 0.5582 GB, free: 3.586 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001329/0.1335, allocations: 417.4 kB / 0.5586 GB, free: 3.18 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 4.708e-05/0.1336, allocations: 4 kB / 0.5586 GB, free: 3.176 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.384e-05/0.1336, allocations: 8 kB / 0.5586 GB, free: 3.168 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.562e-05/0.1336, allocations: 3.938 kB / 0.5586 GB, free: 3.164 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.02067/0.1543, allocations: 3.364 MB / 0.5619 GB, free: 436 kB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 1.466e-05/0.1543, allocations: 0 / 0.5619 GB, free: 436 kB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.903e-05/0.1544, allocations: 7.984 kB / 0.5619 GB, free: 428 kB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 1.009e-05/0.1544, allocations: 4 kB / 0.5619 GB, free: 424 kB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 2.495e-05/0.1544, allocations: 4 kB / 0.5619 GB, free: 420 kB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001431/0.1546, allocations: 8 kB / 0.5619 GB, free: 412 kB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.258e-06/0.1546, allocations: 0 / 0.5619 GB, free: 412 kB / 414.1 MB Notification: Performance of FrontEnd: time 1.573e-06/0.1546, allocations: 0 / 0.5619 GB, free: 412 kB / 414.1 MB Notification: Performance of Transformations before backend: time 5.811e-06/0.1546, allocations: 3.938 kB / 0.562 GB, free: 408 kB / 414.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.0004565/0.155, allocations: 319.5 kB / 0.5623 GB, free: 40 kB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.644e-05/0.1551, allocations: 12.03 kB / 0.5623 GB, free: 28 kB / 414.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.626e-05/0.1552, allocations: 110 kB / 0.5624 GB, free: 15.91 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002061/0.1554, allocations: 88.22 kB / 0.5625 GB, free: 15.82 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001865/0.1556, allocations: 239.7 kB / 0.5627 GB, free: 15.55 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.607e-05/0.1556, allocations: 150.9 kB / 0.5628 GB, free: 15.4 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.209e-05/0.1557, allocations: 154.9 kB / 0.563 GB, free: 15.25 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 8.467e-05/0.1558, allocations: 105.1 kB / 0.5631 GB, free: 15.14 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.581e-05/0.1559, allocations: 79.28 kB / 0.5632 GB, free: 15.06 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.661e-05/0.156, allocations: 150.6 kB / 0.5633 GB, free: 14.91 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.239e-05/0.1561, allocations: 150.6 kB / 0.5634 GB, free: 14.77 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.287e-05/0.1561, allocations: 154.5 kB / 0.5636 GB, free: 14.61 MB / 430.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003545/0.1565, allocations: 449.9 kB / 0.564 GB, free: 14.12 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001057/0.1566, allocations: 169.1 kB / 0.5642 GB, free: 13.95 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.806e-05/0.1566, allocations: 80.14 kB / 0.5643 GB, free: 13.87 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.819e-05/0.1567, allocations: 79.22 kB / 0.5643 GB, free: 13.79 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.66e-05/0.1567, allocations: 117.7 kB / 0.5644 GB, free: 13.66 MB / 430.1 MB Notification: Performance of pre-optimization done (n=0): time 1.222e-06/0.1567, allocations: 0 / 0.5644 GB, free: 13.66 MB / 430.1 MB Notification: Performance of matching and sorting (n=0): time 0.0001033/0.1568, allocations: 33.7 kB / 0.5645 GB, free: 13.62 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001038/0.1569, allocations: 178.1 kB / 0.5646 GB, free: 13.43 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001049/0.157, allocations: 89.86 kB / 0.5647 GB, free: 13.33 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 2.011e-05/0.1571, allocations: 29.7 kB / 0.5648 GB, free: 13.29 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.067e-05/0.1571, allocations: 80.14 kB / 0.5648 GB, free: 13.21 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.784e-06/0.1571, allocations: 0 / 0.5648 GB, free: 13.21 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.177e-05/0.1571, allocations: 17.7 kB / 0.5649 GB, free: 13.19 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.0001526/0.1573, allocations: 319 kB / 0.5652 GB, free: 12.87 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.569e-06/0.1573, allocations: 0 / 0.5652 GB, free: 12.87 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.959e-05/0.1573, allocations: 9.719 kB / 0.5652 GB, free: 12.85 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.831e-05/0.1574, allocations: 75.28 kB / 0.5652 GB, free: 12.78 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.274e-05/0.1574, allocations: 79.22 kB / 0.5653 GB, free: 12.7 MB / 430.1 MB Notification: Performance of matching and sorting (n=0) (initialization): time 6.775e-05/0.1575, allocations: 33.64 kB / 0.5653 GB, free: 12.66 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.547e-05/0.1575, allocations: 79.28 kB / 0.5654 GB, free: 12.58 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.566e-05/0.1576, allocations: 79.28 kB / 0.5655 GB, free: 12.5 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 8.775e-05/0.1576, allocations: 162.5 kB / 0.5657 GB, free: 12.34 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.323e-05/0.1577, allocations: 79.22 kB / 0.5657 GB, free: 12.27 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.352e-05/0.1577, allocations: 158.5 kB / 0.5659 GB, free: 12.11 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001006/0.1578, allocations: 79.28 kB / 0.566 GB, free: 12.03 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.38e-05/0.1579, allocations: 75.28 kB / 0.566 GB, free: 11.96 MB / 430.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.0001589/0.158, allocations: 264.4 kB / 0.5663 GB, free: 11.69 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.965e-05/0.1581, allocations: 116.9 kB / 0.5664 GB, free: 11.57 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.895e-05/0.1582, allocations: 115.9 kB / 0.5665 GB, free: 11.45 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.777e-05/0.1583, allocations: 180.2 kB / 0.5667 GB, free: 11.27 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 0.0001022/0.1584, allocations: 184.3 kB / 0.5668 GB, free: 11.08 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001397/0.1585, allocations: 180.3 kB / 0.567 GB, free: 10.89 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002914/0.1588, allocations: 401.2 kB / 0.5674 GB, free: 10.45 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.022e-05/0.1588, allocations: 109 kB / 0.5675 GB, free: 10.33 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.634e-05/0.1589, allocations: 108.9 kB / 0.5676 GB, free: 10.22 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.266e-05/0.159, allocations: 176.3 kB / 0.5678 GB, free: 10.04 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001552/0.1591, allocations: 180.6 kB / 0.568 GB, free: 9.855 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.67e-05/0.1592, allocations: 188.2 kB / 0.5681 GB, free: 9.664 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.463e-05/0.1593, allocations: 176.3 kB / 0.5683 GB, free: 9.484 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000178/0.1595, allocations: 307.8 kB / 0.5686 GB, free: 9.16 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001423/0.1596, allocations: 186 kB / 0.5688 GB, free: 8.953 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001055/0.1597, allocations: 188.2 kB / 0.5689 GB, free: 8.762 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001113/0.1599, allocations: 105 kB / 0.569 GB, free: 8.652 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.378e-05/0.1599, allocations: 184.2 kB / 0.5692 GB, free: 8.465 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.765e-05/0.16, allocations: 105 kB / 0.5693 GB, free: 8.355 MB / 430.1 MB Notification: Performance of sorting global known variables: time 5.135e-05/0.16, allocations: 83.22 kB / 0.5694 GB, free: 8.273 MB / 430.1 MB Notification: Performance of sort global known variables: time 9e-08/0.16, allocations: 0 / 0.5694 GB, free: 8.273 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.0002872/0.1603, allocations: 0 / 0.5694 GB, free: 8.273 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: 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.0005008/0.1608, allocations: 0.8049 MB / 0.5702 GB, free: 7.438 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 4.763e-05/0.1609, allocations: 0 / 0.5702 GB, free: 7.438 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 4.609e-06/0.1609, allocations: 4 kB / 0.5702 GB, free: 7.434 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 1.523e-06/0.1609, allocations: 0 / 0.5702 GB, free: 7.434 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004145/0.1613, allocations: 463.7 kB / 0.5706 GB, free: 6.977 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00038/0.1617, allocations: 178 kB / 0.5708 GB, free: 6.762 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003201/0.162, allocations: 0.6728 MB / 0.5715 GB, free: 6.062 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 2.006e-05/0.162, allocations: 0 / 0.5715 GB, free: 6.062 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.826e-05/0.162, allocations: 11.44 kB / 0.5715 GB, free: 6.051 MB / 430.1 MB Notification: Performance of SimCode: time 4.81e-07/0.162, allocations: 3.938 kB / 0.5715 GB, free: 6.047 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0216/0.1836, allocations: 1.027 MB / 0.5725 GB, free: 5.098 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.104/8.288, allocations: 3.594 kB / 0.5725 GB, free: 5.098 MB / 430.1 MB " [Timeout remaining time 652] (rm -f ModelicaTest_trunk_ModelicaTest.Utilities.TestExamplesCalculator.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Utilities.TestExamplesCalculator.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Utilities.TestExamplesCalculator.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Utilities.TestExamplesCalculator.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_trunk_ModelicaTest.Utilities.TestExamplesCalculator_res.mat --tempDir=temp_ModelicaTest_trunk_ModelicaTest_Utilities_TestExamplesCalculator_fmu --startTime=0 --stopTime=0 --timeout=50 --tolerance=1e-06 ModelicaTest_trunk_ModelicaTest_Utilities_TestExamplesCalculator.fmu > ModelicaTest_trunk_ModelicaTest.Utilities.TestExamplesCalculator.pipe 2>&1) [Timeout 52.5] diffSimulationResults("ModelicaTest_trunk_ModelicaTest.Utilities.TestExamplesCalculator_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Utilities/TestExamplesCalculator/TestExamplesCalculator.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/OpenModelicaLibraryTesting/files/ModelicaTest_trunk_ModelicaTest.Utilities.TestExamplesCalculator.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: 11.205223088152707]