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.001361/0.001361, allocations: 116.5 kB / 20.43 MB, free: 1.301 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.001516/0.001516, allocations: 207.2 kB / 23.74 MB, free: 4.539 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.506/1.506, allocations: 230.5 MB / 257.4 MB, free: 8.027 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.2333/0.2333, allocations: 46.93 MB / 360.8 MB, free: 4.195 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.002377/0.002377, allocations: 83.86 kB / 0.4962 GB, free: 7.805 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.34/0.3423, allocations: 66.09 MB / 0.5607 GB, free: 4.199 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Utilities.TestExamplesCalculator): time 0.00166/0.344, allocations: 491.3 kB / 0.5612 GB, free: 3.723 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.003557/0.3476, allocations: 2.17 MB / 0.5633 GB, free: 1.535 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.764e-05/0.3476, allocations: 0 / 0.5633 GB, free: 1.535 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 1.294e-05/0.3476, allocations: 0 / 0.5633 GB, free: 1.535 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 2.225e-05/0.3476, allocations: 4 kB / 0.5633 GB, free: 1.531 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001225/0.3488, allocations: 398.7 kB / 0.5637 GB, free: 1.141 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 5.425e-05/0.3489, allocations: 11.98 kB / 0.5637 GB, free: 1.129 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.945e-05/0.3489, allocations: 0 / 0.5637 GB, free: 1.129 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.735e-05/0.3489, allocations: 4 kB / 0.5637 GB, free: 1.125 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.02099/0.3699, allocations: 3.379 MB / 0.567 GB, free: 14.37 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 2.097e-05/0.3699, allocations: 4 kB / 0.567 GB, free: 14.36 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 9.021e-05/0.37, allocations: 4 kB / 0.567 GB, free: 14.36 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 1.093e-05/0.37, allocations: 0 / 0.567 GB, free: 14.36 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 2.737e-05/0.3701, allocations: 3.938 kB / 0.567 GB, free: 14.36 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000149/0.3702, allocations: 19.92 kB / 0.567 GB, free: 14.34 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.767e-06/0.3702, allocations: 0 / 0.567 GB, free: 14.34 MB / 414.1 MB Notification: Performance of FrontEnd: time 1.754e-06/0.3702, allocations: 0 / 0.567 GB, free: 14.34 MB / 414.1 MB Notification: Performance of Transformations before backend: time 7.293e-06/0.3702, allocations: 0 / 0.567 GB, free: 14.34 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: 0 * Number of variables: 0 Notification: Performance of Generate backend data structure: time 0.0003425/0.3706, allocations: 238.4 kB / 0.5673 GB, free: 14.07 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.82e-05/0.3706, allocations: 12.03 kB / 0.5673 GB, free: 14.06 MB / 414.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.643e-05/0.3707, allocations: 110 kB / 0.5674 GB, free: 13.95 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002137/0.3709, allocations: 92.05 kB / 0.5675 GB, free: 13.86 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001451/0.3711, allocations: 181.8 kB / 0.5676 GB, free: 13.66 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.685e-05/0.3711, allocations: 150.9 kB / 0.5678 GB, free: 13.51 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.4e-05/0.3712, allocations: 150.9 kB / 0.5679 GB, free: 13.36 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 8.643e-05/0.3713, allocations: 109.1 kB / 0.568 GB, free: 13.25 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.187e-05/0.3713, allocations: 79.27 kB / 0.5681 GB, free: 13.17 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.905e-05/0.3714, allocations: 150.6 kB / 0.5682 GB, free: 13.02 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.826e-05/0.3715, allocations: 150.6 kB / 0.5684 GB, free: 12.87 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.333e-05/0.3716, allocations: 158.5 kB / 0.5685 GB, free: 12.71 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003545/0.3719, allocations: 425 kB / 0.5689 GB, free: 12.26 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00011/0.372, allocations: 165.1 kB / 0.5691 GB, free: 12.09 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.407e-05/0.3721, allocations: 84.14 kB / 0.5692 GB, free: 12 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.597e-05/0.3721, allocations: 75.28 kB / 0.5693 GB, free: 11.93 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.162e-05/0.3722, allocations: 113.8 kB / 0.5694 GB, free: 11.8 MB / 414.1 MB Notification: Performance of pre-optimization done (n=0): time 1.322e-06/0.3722, allocations: 4 kB / 0.5694 GB, free: 11.8 MB / 414.1 MB Notification: Performance of matching and sorting (n=0): time 9.262e-05/0.3723, allocations: 29.64 kB / 0.5694 GB, free: 11.77 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001158/0.3724, allocations: 178.1 kB / 0.5696 GB, free: 11.57 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001157/0.3725, allocations: 93.86 kB / 0.5697 GB, free: 11.46 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 2.023e-05/0.3725, allocations: 29.69 kB / 0.5697 GB, free: 11.43 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.818e-05/0.3726, allocations: 84.14 kB / 0.5698 GB, free: 11.34 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.064e-06/0.3726, allocations: 0 / 0.5698 GB, free: 11.34 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.019e-05/0.3726, allocations: 13.84 kB / 0.5698 GB, free: 11.32 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.000156/0.3728, allocations: 318.8 kB / 0.5701 GB, free: 11 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.591e-06/0.3728, allocations: 0 / 0.5701 GB, free: 11 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.427e-05/0.3728, allocations: 13.72 kB / 0.5701 GB, free: 10.98 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.602e-05/0.3729, allocations: 75.28 kB / 0.5702 GB, free: 10.91 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.517e-05/0.3729, allocations: 75.28 kB / 0.5702 GB, free: 10.84 MB / 414.1 MB Notification: Performance of matching and sorting (n=0) (initialization): time 6.63e-05/0.373, allocations: 37.58 kB / 0.5703 GB, free: 10.79 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.086e-05/0.373, allocations: 79.28 kB / 0.5704 GB, free: 10.71 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.2e-05/0.3731, allocations: 87.28 kB / 0.5704 GB, free: 10.63 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 8.758e-05/0.3731, allocations: 162.5 kB / 0.5706 GB, free: 10.47 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.618e-05/0.3732, allocations: 79.28 kB / 0.5707 GB, free: 10.39 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.01e-05/0.3732, allocations: 150.6 kB / 0.5708 GB, free: 10.24 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.448e-05/0.3733, allocations: 79.22 kB / 0.5709 GB, free: 10.16 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.584e-05/0.3734, allocations: 75.28 kB / 0.571 GB, free: 10.09 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: 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.0001543/0.3735, allocations: 268.3 kB / 0.5712 GB, free: 9.816 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.502e-05/0.3736, allocations: 116.8 kB / 0.5713 GB, free: 9.695 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.192e-05/0.3737, allocations: 111.8 kB / 0.5714 GB, free: 9.578 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.988e-05/0.3738, allocations: 176.3 kB / 0.5716 GB, free: 9.398 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.121e-05/0.3738, allocations: 180.2 kB / 0.5718 GB, free: 9.215 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.028e-05/0.3739, allocations: 180.3 kB / 0.5719 GB, free: 9.031 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002434/0.3742, allocations: 380.2 kB / 0.5723 GB, free: 8.609 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.702e-05/0.3742, allocations: 101 kB / 0.5724 GB, free: 8.504 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.562e-05/0.3743, allocations: 104.9 kB / 0.5725 GB, free: 8.395 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.74e-05/0.3743, allocations: 184.2 kB / 0.5727 GB, free: 8.207 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.46e-05/0.3744, allocations: 184.2 kB / 0.5729 GB, free: 8.02 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.7e-05/0.3745, allocations: 180.2 kB / 0.573 GB, free: 7.836 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.654e-05/0.3746, allocations: 184.3 kB / 0.5732 GB, free: 7.648 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001626/0.3747, allocations: 300.1 kB / 0.5735 GB, free: 7.332 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.622e-05/0.3748, allocations: 116.9 kB / 0.5736 GB, free: 7.211 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.892e-05/0.3749, allocations: 188.2 kB / 0.5738 GB, free: 7.02 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.687e-05/0.375, allocations: 105 kB / 0.5739 GB, free: 6.91 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.204e-05/0.3751, allocations: 180.2 kB / 0.574 GB, free: 6.727 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.959e-05/0.3751, allocations: 109 kB / 0.5742 GB, free: 6.613 MB / 414.1 MB Notification: Performance of sorting global known variables: time 4.327e-05/0.3752, allocations: 75.28 kB / 0.5742 GB, free: 6.539 MB / 414.1 MB Notification: Performance of sort global known variables: time 8e-08/0.3752, allocations: 96 / 0.5742 GB, free: 6.539 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0002673/0.3754, allocations: 8 kB / 0.5742 GB, free: 6.531 MB / 414.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.0004588/0.3759, allocations: 0.797 MB / 0.575 GB, free: 5.703 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 5.738e-05/0.3759, allocations: 7.938 kB / 0.575 GB, free: 5.695 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 1.964e-06/0.3759, allocations: 0 / 0.575 GB, free: 5.695 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 2.124e-06/0.3759, allocations: 4 kB / 0.575 GB, free: 5.691 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000386/0.3763, allocations: 463.7 kB / 0.5755 GB, free: 5.234 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004002/0.3767, allocations: 170 kB / 0.5756 GB, free: 5.027 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003142/0.377, allocations: 0.669 MB / 0.5763 GB, free: 4.332 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 2.636e-05/0.3771, allocations: 4 kB / 0.5763 GB, free: 4.328 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.796e-05/0.3771, allocations: 11.44 kB / 0.5763 GB, free: 4.316 MB / 414.1 MB Notification: Performance of SimCode: time 3.61e-07/0.3771, allocations: 3.938 kB / 0.5763 GB, free: 4.312 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02678/0.4039, allocations: 1.112 MB / 0.5774 GB, free: 3.301 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.06/11.46, allocations: 12 kB / 0.5774 GB, free: 3.289 MB / 414.1 MB " [Timeout remaining time 648] (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: 14.337173962034285]