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.001865/0.001865, allocations: 107.9 kB / 20.48 MB, free: 1.125 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.002343/0.002343, allocations: 213.4 kB / 23.78 MB, free: 4.328 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.486/1.486, allocations: 230.5 MB / 257.4 MB, free: 7.723 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.2267/0.2267, allocations: 46.96 MB / 360.9 MB, free: 3.871 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.002373/0.002373, allocations: 79.88 kB / 0.4962 GB, free: 7.5 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3168/0.3192, allocations: 66.08 MB / 0.5607 GB, free: 3.988 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Utilities.TestExamplesCalculator): time 0.001745/0.3209, allocations: 489 kB / 0.5612 GB, free: 3.512 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.003062/0.324, allocations: 2.065 MB / 0.5632 GB, free: 1.43 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.981e-05/0.324, allocations: 0 / 0.5632 GB, free: 1.43 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 1.264e-05/0.324, allocations: 0 / 0.5632 GB, free: 1.43 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 1.958e-05/0.324, allocations: 0 / 0.5632 GB, free: 1.43 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001115/0.3251, allocations: 410.2 kB / 0.5636 GB, free: 1.031 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 4.404e-05/0.3252, allocations: 11.98 kB / 0.5636 GB, free: 1.02 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.67e-05/0.3252, allocations: 0 / 0.5636 GB, free: 1.02 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.334e-05/0.3252, allocations: 0 / 0.5636 GB, free: 1.02 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.02044/0.3457, allocations: 3.379 MB / 0.5669 GB, free: 14.26 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 1.295e-05/0.3457, allocations: 4 kB / 0.5669 GB, free: 14.26 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.519e-05/0.3457, allocations: 8 kB / 0.5669 GB, free: 14.25 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 1.196e-05/0.3458, allocations: 3.984 kB / 0.5669 GB, free: 14.25 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 1.904e-05/0.3458, allocations: 7.922 kB / 0.5669 GB, free: 14.24 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001173/0.3459, allocations: 4 kB / 0.5669 GB, free: 14.23 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.098e-06/0.3459, allocations: 3.938 kB / 0.5669 GB, free: 14.23 MB / 414.1 MB Notification: Performance of FrontEnd: time 1.483e-06/0.3459, allocations: 0 / 0.5669 GB, free: 14.23 MB / 414.1 MB Notification: Performance of Transformations before backend: time 5.521e-06/0.3459, allocations: 0 / 0.5669 GB, free: 14.23 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.0002962/0.3462, allocations: 246.4 kB / 0.5672 GB, free: 13.96 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.706e-05/0.3462, allocations: 8.031 kB / 0.5672 GB, free: 13.95 MB / 414.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.529e-05/0.3463, allocations: 106 kB / 0.5673 GB, free: 13.84 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001877/0.3465, allocations: 88.22 kB / 0.5674 GB, free: 13.75 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001234/0.3466, allocations: 181.8 kB / 0.5675 GB, free: 13.55 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.836e-05/0.3467, allocations: 154.9 kB / 0.5677 GB, free: 13.4 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.382e-05/0.3467, allocations: 154.9 kB / 0.5678 GB, free: 13.25 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 8.042e-05/0.3468, allocations: 109 kB / 0.5679 GB, free: 13.13 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.499e-05/0.3469, allocations: 75.28 kB / 0.568 GB, free: 13.06 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.03e-05/0.3469, allocations: 154.6 kB / 0.5682 GB, free: 12.91 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.549e-05/0.347, allocations: 150.6 kB / 0.5683 GB, free: 12.76 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001122/0.3471, allocations: 150.6 kB / 0.5684 GB, free: 12.61 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002911/0.3474, allocations: 417 kB / 0.5688 GB, free: 12.16 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001011/0.3475, allocations: 173.1 kB / 0.569 GB, free: 11.98 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.587e-05/0.3476, allocations: 80.14 kB / 0.5691 GB, free: 11.9 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.851e-05/0.3476, allocations: 75.28 kB / 0.5692 GB, free: 11.82 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.252e-05/0.3477, allocations: 117.8 kB / 0.5693 GB, free: 11.7 MB / 414.1 MB Notification: Performance of pre-optimization done (n=0): time 8.72e-07/0.3477, allocations: 0 / 0.5693 GB, free: 11.7 MB / 414.1 MB Notification: Performance of matching and sorting (n=0): time 7.554e-05/0.3477, allocations: 25.7 kB / 0.5693 GB, free: 11.67 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000119/0.3479, allocations: 186.1 kB / 0.5695 GB, free: 11.46 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001046/0.348, allocations: 89.86 kB / 0.5696 GB, free: 11.36 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 1.877e-05/0.348, allocations: 25.7 kB / 0.5696 GB, free: 11.33 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.905e-05/0.348, allocations: 80.27 kB / 0.5697 GB, free: 11.25 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.423e-06/0.348, allocations: 11.94 kB / 0.5697 GB, free: 11.24 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.655e-05/0.348, allocations: 9.719 kB / 0.5697 GB, free: 11.22 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001416/0.3482, allocations: 318.8 kB / 0.57 GB, free: 10.9 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.488e-06/0.3482, allocations: 0 / 0.57 GB, free: 10.9 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.089e-05/0.3482, allocations: 69.12 kB / 0.5701 GB, free: 10.82 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.656e-05/0.3483, allocations: 75.28 kB / 0.5701 GB, free: 10.74 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.158e-05/0.3483, allocations: 75.28 kB / 0.5702 GB, free: 10.67 MB / 414.1 MB Notification: Performance of matching and sorting (n=0) (initialization): time 5.399e-05/0.3484, allocations: 33.64 kB / 0.5702 GB, free: 10.63 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.307e-05/0.3484, allocations: 83.28 kB / 0.5703 GB, free: 10.55 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.659e-05/0.3484, allocations: 79.22 kB / 0.5704 GB, free: 10.47 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 7.575e-05/0.3485, allocations: 158.6 kB / 0.5705 GB, free: 10.31 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.373e-05/0.3486, allocations: 79.27 kB / 0.5706 GB, free: 10.23 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.042e-05/0.3486, allocations: 158.5 kB / 0.5708 GB, free: 10.08 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.783e-05/0.3487, allocations: 83.28 kB / 0.5708 GB, free: 9.996 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.638e-05/0.3488, allocations: 83.22 kB / 0.5709 GB, free: 9.914 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.0001324/0.3489, allocations: 256.4 kB / 0.5712 GB, free: 9.652 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.258e-05/0.349, allocations: 112.9 kB / 0.5713 GB, free: 9.535 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.867e-05/0.349, allocations: 111.8 kB / 0.5714 GB, free: 9.418 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.425e-05/0.3491, allocations: 184.2 kB / 0.5716 GB, free: 9.23 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.356e-05/0.3492, allocations: 180.3 kB / 0.5717 GB, free: 9.047 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.648e-05/0.3493, allocations: 184.2 kB / 0.5719 GB, free: 8.859 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002463/0.3495, allocations: 372.3 kB / 0.5723 GB, free: 8.445 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.359e-05/0.3496, allocations: 101 kB / 0.5724 GB, free: 8.34 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.19e-05/0.3496, allocations: 112.9 kB / 0.5725 GB, free: 8.223 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.962e-05/0.3497, allocations: 180.3 kB / 0.5726 GB, free: 8.039 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.926e-05/0.3498, allocations: 180.2 kB / 0.5728 GB, free: 7.855 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.01e-05/0.3498, allocations: 176.3 kB / 0.573 GB, free: 7.676 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.477e-05/0.3499, allocations: 192.2 kB / 0.5732 GB, free: 7.48 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001624/0.3501, allocations: 300.2 kB / 0.5734 GB, free: 7.164 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.111e-05/0.3502, allocations: 108.9 kB / 0.5735 GB, free: 7.051 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.613e-05/0.3503, allocations: 188.3 kB / 0.5737 GB, free: 6.859 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.513e-05/0.3503, allocations: 108.9 kB / 0.5738 GB, free: 6.746 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.763e-05/0.3504, allocations: 184.3 kB / 0.574 GB, free: 6.559 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.284e-05/0.3505, allocations: 101 kB / 0.5741 GB, free: 6.453 MB / 414.1 MB Notification: Performance of sorting global known variables: time 4.677e-05/0.3505, allocations: 75.28 kB / 0.5742 GB, free: 6.379 MB / 414.1 MB Notification: Performance of sort global known variables: time 8e-08/0.3505, allocations: 0 / 0.5742 GB, free: 6.379 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.000252/0.3508, allocations: 7.938 kB / 0.5742 GB, free: 6.371 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.0004567/0.3512, allocations: 0.8047 MB / 0.575 GB, free: 5.535 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 5.691e-05/0.3513, allocations: 0 / 0.575 GB, free: 5.535 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 2.194e-06/0.3513, allocations: 96 / 0.575 GB, free: 5.535 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 3.857e-06/0.3513, allocations: 8 kB / 0.575 GB, free: 5.527 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000396/0.3517, allocations: 455.6 kB / 0.5754 GB, free: 5.078 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003714/0.3521, allocations: 186 kB / 0.5756 GB, free: 4.855 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 5.251e-05/0.3521, allocations: 55.36 kB / 0.5756 GB, free: 4.781 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 2.073e-05/0.3521, allocations: 3.984 kB / 0.5756 GB, free: 4.777 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.484e-05/0.3522, allocations: 7.438 kB / 0.5756 GB, free: 4.77 MB / 414.1 MB Notification: Performance of SimCode: time 2.71e-07/0.3522, allocations: 0 / 0.5756 GB, free: 4.77 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02587/0.378, allocations: 1.646 MB / 0.5773 GB, free: 3.223 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.15/11.53, allocations: 3.438 kB / 0.5773 GB, free: 3.223 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 & python3 -m fmpy simulate --output-file ModelicaTest_trunk_ModelicaTest.Utilities.TestExamplesCalculator_res.csv --start-time 0 --stop-time 0 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0 ModelicaTest_trunk_ModelicaTest_Utilities_TestExamplesCalculator.fmu > ModelicaTest_trunk_ModelicaTest.Utilities.TestExamplesCalculator.pipe 2>&1) [Timeout 52.5] diffSimulationResults("ModelicaTest_trunk_ModelicaTest.Utilities.TestExamplesCalculator_res.csv","/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.48060861416161]