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.0013/0.0013, allocations: 120.2 kB / 18.5 MB, free: 4.535 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.001386/0.001386, allocations: 222.2 kB / 21.46 MB, free: 1.582 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.487/1.487, allocations: 230.4 MB / 254.7 MB, free: 15.03 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.232/0.232, allocations: 46.93 MB / 357.7 MB, free: 10.19 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="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Utilities.TestExamplesCalculator,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Utilities_TestExamplesCalculator",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.002429/0.002429, allocations: 79.88 kB / 0.4916 GB, free: 7.734 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1265/0.1289, allocations: 66.04 MB / 0.5561 GB, free: 5.562 MB / 414.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Utilities.TestExamplesCalculator): time 0.001714/0.1307, allocations: 490.5 kB / 0.5566 GB, free: 5.078 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.003733/0.1344, allocations: 2.138 MB / 0.5587 GB, free: 2.922 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.886e-05/0.1344, allocations: 0 / 0.5587 GB, free: 2.922 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 2.173e-05/0.1344, allocations: 0 / 0.5587 GB, free: 2.922 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 1.983e-05/0.1345, allocations: 0 / 0.5587 GB, free: 2.922 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001522/0.136, allocations: 421.3 kB / 0.5591 GB, free: 2.512 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 5.424e-05/0.136, allocations: 7.938 kB / 0.5591 GB, free: 2.504 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 5.274e-05/0.1361, allocations: 0 / 0.5591 GB, free: 2.504 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.99e-05/0.1361, allocations: 4 kB / 0.5591 GB, free: 2.5 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.02098/0.1571, allocations: 3.369 MB / 0.5624 GB, free: 15.75 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 1.306e-05/0.1571, allocations: 0 / 0.5624 GB, free: 15.75 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.522e-05/0.1572, allocations: 4 kB / 0.5624 GB, free: 15.75 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 1.123e-05/0.1572, allocations: 4 kB / 0.5624 GB, free: 15.74 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 1.889e-05/0.1572, allocations: 0 / 0.5624 GB, free: 15.74 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001307/0.1573, allocations: 11.98 kB / 0.5624 GB, free: 15.73 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.809e-06/0.1573, allocations: 3.938 kB / 0.5624 GB, free: 15.73 MB / 430.1 MB Notification: Performance of FrontEnd: time 1.673e-06/0.1573, allocations: 0 / 0.5624 GB, free: 15.73 MB / 430.1 MB Notification: Performance of Transformations before backend: time 5.65e-06/0.1573, allocations: 0 / 0.5624 GB, free: 15.73 MB / 430.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.0003609/0.1577, allocations: 323.5 kB / 0.5627 GB, free: 15.36 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.077e-05/0.1578, allocations: 8.031 kB / 0.5627 GB, free: 15.36 MB / 430.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 5.087e-05/0.1578, allocations: 79.47 kB / 0.5628 GB, free: 15.28 MB / 430.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.004e-05/0.1579, allocations: 110 kB / 0.5629 GB, free: 15.16 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002158/0.1581, allocations: 80.22 kB / 0.563 GB, free: 15.08 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001531/0.1582, allocations: 243.6 kB / 0.5632 GB, free: 14.8 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.673e-05/0.1583, allocations: 154.9 kB / 0.5634 GB, free: 14.65 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.4e-05/0.1584, allocations: 158.9 kB / 0.5635 GB, free: 14.5 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 7.871e-05/0.1584, allocations: 104.9 kB / 0.5636 GB, free: 14.39 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.207e-05/0.1585, allocations: 75.28 kB / 0.5637 GB, free: 14.31 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.865e-05/0.1585, allocations: 154.6 kB / 0.5638 GB, free: 14.16 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.993e-05/0.1586, allocations: 150.6 kB / 0.564 GB, free: 14.01 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.435e-05/0.1587, allocations: 158.5 kB / 0.5641 GB, free: 13.86 MB / 430.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000313/0.159, allocations: 445.9 kB / 0.5646 GB, free: 13.37 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001072/0.1591, allocations: 177.1 kB / 0.5647 GB, free: 13.19 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.956e-05/0.1591, allocations: 80.14 kB / 0.5648 GB, free: 13.11 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.05e-05/0.1592, allocations: 83.22 kB / 0.5649 GB, free: 13.02 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.7e-05/0.1592, allocations: 109.8 kB / 0.565 GB, free: 12.91 MB / 430.1 MB Notification: Performance of pre-optimization done (n=0): time 1.012e-06/0.1592, allocations: 0 / 0.565 GB, free: 12.91 MB / 430.1 MB Notification: Performance of matching and sorting (n=0): time 8.049e-05/0.1593, allocations: 29.7 kB / 0.565 GB, free: 12.87 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000113/0.1594, allocations: 178.1 kB / 0.5652 GB, free: 12.67 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001067/0.1595, allocations: 93.86 kB / 0.5653 GB, free: 12.57 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 1.653e-05/0.1595, allocations: 29.83 kB / 0.5653 GB, free: 12.54 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.903e-05/0.1596, allocations: 84.14 kB / 0.5654 GB, free: 12.45 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.473e-06/0.1596, allocations: 0 / 0.5654 GB, free: 12.45 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.808e-05/0.1596, allocations: 13.7 kB / 0.5654 GB, free: 12.43 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.0001427/0.1598, allocations: 310.8 kB / 0.5657 GB, free: 12.12 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.147e-06/0.1598, allocations: 4 kB / 0.5657 GB, free: 12.11 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.924e-05/0.1598, allocations: 9.719 kB / 0.5657 GB, free: 12.1 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.668e-05/0.1598, allocations: 79.31 kB / 0.5658 GB, free: 12.02 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.243e-05/0.1599, allocations: 79.22 kB / 0.5659 GB, free: 11.94 MB / 430.1 MB Notification: Performance of matching and sorting (n=0) (initialization): time 6.291e-05/0.1599, allocations: 37.64 kB / 0.5659 GB, free: 11.9 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.234e-05/0.16, allocations: 83.22 kB / 0.566 GB, free: 11.82 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.409e-05/0.16, allocations: 79.28 kB / 0.566 GB, free: 11.74 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 7.447e-05/0.1601, allocations: 154.5 kB / 0.5662 GB, free: 11.59 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.082e-05/0.1601, allocations: 79.27 kB / 0.5663 GB, free: 11.51 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.426e-05/0.1602, allocations: 158.5 kB / 0.5664 GB, free: 11.35 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.191e-05/0.1603, allocations: 79.28 kB / 0.5665 GB, free: 11.27 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.123e-05/0.1603, allocations: 75.28 kB / 0.5666 GB, free: 11.2 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.000142/0.1605, allocations: 260.5 kB / 0.5668 GB, free: 10.93 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.36e-05/0.1606, allocations: 116.9 kB / 0.5669 GB, free: 10.81 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.419e-05/0.1606, allocations: 111.9 kB / 0.567 GB, free: 10.7 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.61e-05/0.1607, allocations: 184.2 kB / 0.5672 GB, free: 10.51 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9e-05/0.1608, allocations: 180.3 kB / 0.5674 GB, free: 10.33 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.553e-05/0.1609, allocations: 180.3 kB / 0.5676 GB, free: 10.14 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002874/0.1612, allocations: 401.2 kB / 0.5679 GB, free: 9.695 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.829e-05/0.1612, allocations: 108.9 kB / 0.568 GB, free: 9.582 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.606e-05/0.1613, allocations: 108.9 kB / 0.5681 GB, free: 9.469 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.14e-05/0.1614, allocations: 176.3 kB / 0.5683 GB, free: 9.289 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.71e-05/0.1614, allocations: 180.6 kB / 0.5685 GB, free: 9.105 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.419e-05/0.1615, allocations: 188.2 kB / 0.5687 GB, free: 8.914 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.126e-05/0.1616, allocations: 180.3 kB / 0.5688 GB, free: 8.73 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001865/0.1618, allocations: 307.8 kB / 0.5691 GB, free: 8.406 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001019/0.1619, allocations: 186 kB / 0.5693 GB, free: 8.199 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.554e-05/0.162, allocations: 184.2 kB / 0.5695 GB, free: 8.012 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.526e-05/0.1621, allocations: 109 kB / 0.5696 GB, free: 7.898 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.538e-05/0.1622, allocations: 184.1 kB / 0.5698 GB, free: 7.711 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.996e-05/0.1622, allocations: 105 kB / 0.5699 GB, free: 7.602 MB / 430.1 MB Notification: Performance of sorting global known variables: time 4.358e-05/0.1623, allocations: 79.28 kB / 0.5699 GB, free: 7.523 MB / 430.1 MB Notification: Performance of sort global known variables: time 7e-08/0.1623, allocations: 0 / 0.5699 GB, free: 7.523 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.0002484/0.1625, allocations: 4 kB / 0.5699 GB, free: 7.52 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.0004665/0.163, allocations: 0.8048 MB / 0.5707 GB, free: 6.684 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 5.166e-05/0.163, allocations: 4 kB / 0.5707 GB, free: 6.68 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 2.214e-06/0.163, allocations: 0 / 0.5707 GB, free: 6.68 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 1.042e-05/0.163, allocations: 4 kB / 0.5707 GB, free: 6.676 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003813/0.1634, allocations: 451.7 kB / 0.5712 GB, free: 6.23 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003754/0.1638, allocations: 190 kB / 0.5713 GB, free: 6.004 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003104/0.1641, allocations: 0.6728 MB / 0.572 GB, free: 5.305 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 2.31e-05/0.1641, allocations: 7.938 kB / 0.572 GB, free: 5.297 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.236e-05/0.1641, allocations: 7.438 kB / 0.572 GB, free: 5.289 MB / 430.1 MB Notification: Performance of SimCode: time 3.81e-07/0.1641, allocations: 0 / 0.572 GB, free: 5.289 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01508/0.1792, allocations: 1.056 MB / 0.573 GB, free: 4.328 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.3/8.48, allocations: 7.281 kB / 0.5731 GB, free: 4.324 MB / 430.1 MB " [Timeout remaining time 651] (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/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/ModelicaTest/Utilities/TestExamplesCalculator/TestExamplesCalculator.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/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.385615439037792]