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.0008337/0.0008337, allocations: 76.36 kB / 20.67 MB, free: 3.895 MB / 18.57 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.0008638/0.0008638, allocations: 156.9 kB / 23.95 MB, free: 0.6133 MB / 18.57 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 0.8965/0.8965, allocations: 177 MB / 204.1 MB, free: 5.75 MB / 186.7 MB " [Timeout remaining time 179] 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.2654/0.2654, allocations: 34.23 MB / 294.8 MB, free: 0.6875 MB / 266.7 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 2.124e-06/2.124e-06, allocations: 0 / 442.1 MB, free: 1.605 MB / 410.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.352e-05/2.564e-05, allocations: 2.281 kB / 442.1 MB, free: 1.602 MB / 410.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Utilities.TestExamplesCalculator): time 0.001813/0.001839, allocations: 0.4892 MB / 442.6 MB, free: 1.113 MB / 410.7 MB Notification: Performance of NFInst.instExpressions: time 0.1704/0.1722, allocations: 2.065 MB / 444.7 MB, free: 43.11 MB / 410.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.816e-05/0.1723, allocations: 0 / 444.7 MB, free: 43.11 MB / 410.7 MB Notification: Performance of NFTyping.typeComponents: time 1.887e-05/0.1723, allocations: 0 / 444.7 MB, free: 43.11 MB / 410.7 MB Notification: Performance of NFTyping.typeBindings: time 1.904e-05/0.1723, allocations: 0 / 444.7 MB, free: 43.11 MB / 410.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007999/0.1731, allocations: 404.2 kB / 445.1 MB, free: 43.01 MB / 410.7 MB Notification: Performance of NFFlatten.flatten: time 3.916e-05/0.1731, allocations: 2.969 kB / 445.1 MB, free: 43.01 MB / 410.7 MB Notification: Performance of NFFlatten.resolveConnections: time 3.306e-05/0.1732, allocations: 1.875 kB / 445.1 MB, free: 43.01 MB / 410.7 MB Notification: Performance of NFEvalConstants.evaluate: time 2.496e-05/0.1732, allocations: 3 kB / 445.1 MB, free: 43.01 MB / 410.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.006932/0.1801, allocations: 3.38 MB / 448.5 MB, free: 42.51 MB / 410.7 MB Notification: Performance of NFPackage.collectConstants: time 1.894e-05/0.1801, allocations: 2.812 kB / 448.5 MB, free: 42.51 MB / 410.7 MB Notification: Performance of NFFlatten.collectFunctions: time 8.184e-05/0.1802, allocations: 10.16 kB / 448.5 MB, free: 42.5 MB / 410.7 MB Notification: Performance of NFScalarize.scalarize: time 8.576e-06/0.1802, allocations: 3.938 kB / 448.5 MB, free: 42.5 MB / 410.7 MB Notification: Performance of NFVerifyModel.verify: time 1.921e-05/0.1803, allocations: 2.875 kB / 448.5 MB, free: 42.5 MB / 410.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001298/0.1804, allocations: 14.3 kB / 448.5 MB, free: 42.49 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.188e-06/0.1804, allocations: 2.875 kB / 448.5 MB, free: 42.49 MB / 410.7 MB Notification: Performance of FrontEnd: time 1.393e-06/0.1804, allocations: 0 / 448.5 MB, free: 42.49 MB / 410.7 MB Notification: Performance of Transformations before backend: time 4.829e-06/0.1804, allocations: 3.938 kB / 448.5 MB, free: 42.49 MB / 410.7 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.0001877/0.1806, allocations: 243.4 kB / 448.7 MB, free: 42.23 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.725e-05/0.1806, allocations: 8.5 kB / 448.7 MB, free: 42.23 MB / 410.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.035e-05/0.1806, allocations: 108.8 kB / 448.8 MB, free: 42.12 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001405/0.1808, allocations: 85.2 kB / 448.9 MB, free: 42.04 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 5.571e-05/0.1808, allocations: 181.1 kB / 449.1 MB, free: 41.84 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.425e-05/0.1809, allocations: 157.7 kB / 449.3 MB, free: 41.69 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.147e-05/0.1809, allocations: 150.9 kB / 449.4 MB, free: 41.54 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 3.535e-05/0.1809, allocations: 104.9 kB / 449.5 MB, free: 41.43 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.647e-06/0.1809, allocations: 78.41 kB / 449.6 MB, free: 41.36 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.141e-05/0.1809, allocations: 154.7 kB / 449.7 MB, free: 41.21 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.182e-05/0.1809, allocations: 150.6 kB / 449.9 MB, free: 41.06 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.483e-05/0.181, allocations: 157.4 kB / 450 MB, free: 40.91 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001188/0.1811, allocations: 413 kB / 450.4 MB, free: 40.46 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 3.918e-05/0.1811, allocations: 171.9 kB / 450.6 MB, free: 40.29 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.338e-05/0.1811, allocations: 80.14 kB / 450.7 MB, free: 40.2 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.221e-05/0.1811, allocations: 86.05 kB / 450.8 MB, free: 40.12 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.472e-05/0.1812, allocations: 117.1 kB / 450.9 MB, free: 40 MB / 410.7 MB Notification: Performance of pre-optimization done (n=0): time 8.82e-07/0.1812, allocations: 0 / 450.9 MB, free: 40 MB / 410.7 MB Notification: Performance of matching and sorting (n=0): time 5.369e-05/0.1812, allocations: 32.39 kB / 450.9 MB, free: 39.96 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.634e-05/0.1813, allocations: 178.1 kB / 451.1 MB, free: 39.77 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.245e-05/0.1813, allocations: 92.67 kB / 451.2 MB, free: 39.67 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 5.299e-06/0.1813, allocations: 25.7 kB / 451.2 MB, free: 39.64 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 1.023e-05/0.1813, allocations: 80.14 kB / 451.3 MB, free: 39.55 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.543e-06/0.1813, allocations: 2.812 kB / 451.3 MB, free: 39.55 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.572e-05/0.1814, allocations: 9.719 kB / 451.3 MB, free: 39.54 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 3.033e-05/0.1814, allocations: 329.1 kB / 451.6 MB, free: 39.21 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.06e-06/0.1814, allocations: 0 / 451.6 MB, free: 39.21 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.302e-05/0.1814, allocations: 64 kB / 451.7 MB, free: 39.14 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 1.034e-05/0.1814, allocations: 79.22 kB / 451.8 MB, free: 39.06 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.893e-06/0.1814, allocations: 75.28 kB / 451.8 MB, free: 38.98 MB / 410.7 MB Notification: Performance of matching and sorting (n=0) (initialization): time 2.775e-05/0.1815, allocations: 28.52 kB / 451.9 MB, free: 38.95 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.655e-05/0.1815, allocations: 81.03 kB / 451.9 MB, free: 38.88 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.734e-06/0.1815, allocations: 78.03 kB / 452 MB, free: 38.8 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.214e-05/0.1815, allocations: 161.7 kB / 452.2 MB, free: 38.65 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.184e-06/0.1815, allocations: 79.33 kB / 452.3 MB, free: 38.57 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.366e-05/0.1815, allocations: 161.2 kB / 452.4 MB, free: 38.41 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.604e-05/0.1816, allocations: 82.12 kB / 452.5 MB, free: 38.34 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.161e-06/0.1816, allocations: 79.28 kB / 452.6 MB, free: 38.26 MB / 410.7 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 4.525e-05/0.1816, allocations: 263.8 kB / 452.8 MB, free: 38 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.975e-05/0.1816, allocations: 108.1 kB / 452.9 MB, free: 37.89 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.947e-05/0.1817, allocations: 104 kB / 453 MB, free: 37.78 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.479e-05/0.1817, allocations: 188.1 kB / 453.2 MB, free: 37.59 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.581e-05/0.1817, allocations: 186.4 kB / 453.4 MB, free: 37.4 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.29e-05/0.1817, allocations: 176.3 kB / 453.6 MB, free: 37.22 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 7.651e-05/0.1818, allocations: 371 kB / 453.9 MB, free: 36.81 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.989e-06/0.1818, allocations: 111.1 kB / 454 MB, free: 36.7 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.386e-06/0.1818, allocations: 108.9 kB / 454.1 MB, free: 36.59 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.652e-05/0.1818, allocations: 179.2 kB / 454.3 MB, free: 36.41 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.949e-05/0.1818, allocations: 176.3 kB / 454.5 MB, free: 36.23 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.354e-05/0.1819, allocations: 187 kB / 454.7 MB, free: 36.04 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.39e-05/0.1819, allocations: 179.5 kB / 454.9 MB, free: 35.86 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 4.548e-05/0.1819, allocations: 309.5 kB / 455.2 MB, free: 35.54 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.26e-05/0.1819, allocations: 107.3 kB / 455.3 MB, free: 35.44 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.964e-05/0.1819, allocations: 180.2 kB / 455.4 MB, free: 35.25 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.051e-05/0.182, allocations: 107.7 kB / 455.5 MB, free: 35.14 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.866e-05/0.182, allocations: 187 kB / 455.7 MB, free: 34.96 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.314e-06/0.182, allocations: 105 kB / 455.8 MB, free: 34.85 MB / 410.7 MB Notification: Performance of sorting global known variables: time 1.642e-05/0.182, allocations: 78.7 kB / 455.9 MB, free: 34.77 MB / 410.7 MB Notification: Performance of sort global known variables: time 5.1e-08/0.182, allocations: 0 / 455.9 MB, free: 34.77 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.0001579/0.1822, allocations: 2.812 kB / 455.9 MB, free: 34.77 MB / 410.7 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.0001446/0.1823, allocations: 0.7941 MB / 456.7 MB, free: 33.97 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 4.049e-05/0.1824, allocations: 11.22 kB / 456.7 MB, free: 33.96 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 1.824e-06/0.1824, allocations: 2.812 kB / 456.7 MB, free: 33.96 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 8.71e-07/0.1824, allocations: 0 / 456.7 MB, free: 33.96 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001818/0.1826, allocations: 458.5 kB / 457.2 MB, free: 33.51 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002575/0.1828, allocations: 184.3 kB / 457.3 MB, free: 33.3 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 3.055e-05/0.1828, allocations: 57.39 kB / 457.4 MB, free: 33.23 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 2.196e-05/0.1829, allocations: 0 / 457.4 MB, free: 33.23 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.448e-05/0.1829, allocations: 11.38 kB / 457.4 MB, free: 33.22 MB / 410.7 MB Notification: Performance of SimCode: time 4.51e-07/0.1829, allocations: 0 / 457.4 MB, free: 33.22 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01586/0.1987, allocations: 1.692 MB / 459.1 MB, free: 32.31 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 6.877/7.076, allocations: 5.594 kB / 459.1 MB, free: 32.31 MB / 410.7 MB " [Timeout remaining time 653] (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/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/ModelicaTest/Utilities/TestExamplesCalculator/TestExamplesCalculator.csv","/var/lib/jenkins/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: 9.08384411688894]