Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.1.0_ModelicaTest.Utilities.TestFiles.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.0009746/0.0009746, allocations: 79.7 kB / 20.67 MB, free: 3.891 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001186/0.001186, allocations: 170 kB / 23.95 MB, free: 0.6094 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 0.9099/0.9099, allocations: 177.1 MB / 204.3 MB, free: 5.723 MB / 186.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0+maint.om/package.mo): time 0.245/0.245, allocations: 34.25 MB / 294.9 MB, free: 0.7109 MB / 266.7 MB " [Timeout remaining time 180] Using package ModelicaTest with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0+maint.om/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.Utilities.TestFiles,fileNamePrefix="ModelicaTest_4_1_0_ModelicaTest_Utilities_TestFiles",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Utilities.TestFiles,fileNamePrefix="ModelicaTest_4_1_0_ModelicaTest_Utilities_TestFiles",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.583e-06/1.583e-06, allocations: 0 / 442.1 MB, free: 1.68 MB / 410.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.322e-05/1.48e-05, allocations: 2.281 kB / 442.1 MB, free: 1.676 MB / 410.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Utilities.TestFiles): time 0.001009/0.001024, allocations: 489.2 kB / 442.6 MB, free: 1.199 MB / 410.7 MB Notification: Performance of NFInst.instExpressions: time 0.1681/0.1691, allocations: 1.349 MB / 444 MB, free: 43.21 MB / 410.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.837e-05/0.1691, allocations: 4.781 kB / 444 MB, free: 43.21 MB / 410.7 MB Notification: Performance of NFTyping.typeComponents: time 1.686e-05/0.1692, allocations: 0 / 444 MB, free: 43.21 MB / 410.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002207/0.1694, allocations: 7.688 kB / 444 MB, free: 43.21 MB / 410.7 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0+maint.om/Utilities.mo:455:3-487:12:writable] Warning: Pure function 'ModelicaTest.Utilities.Files' contains a call to impure function 'Modelica.Utilities.Streams.print'. Notification: Performance of NFTyping.typeClassSections: time 0.0009626/0.1703, allocations: 264.2 kB / 444.2 MB, free: 43.21 MB / 410.7 MB Notification: Performance of NFFlatten.flatten: time 5.186e-05/0.1704, allocations: 11.7 kB / 444.3 MB, free: 43.21 MB / 410.7 MB Notification: Performance of NFFlatten.resolveConnections: time 3.731e-05/0.1704, allocations: 0 / 444.3 MB, free: 43.21 MB / 410.7 MB Notification: Performance of NFEvalConstants.evaluate: time 3.195e-05/0.1705, allocations: 9.859 kB / 444.3 MB, free: 43.21 MB / 410.7 MB Notification: Performance of NFSimplifyModel.simplify: time 3.852e-05/0.1705, allocations: 2.906 kB / 444.3 MB, free: 43.21 MB / 410.7 MB Notification: Performance of NFPackage.collectConstants: time 8.416e-06/0.1705, allocations: 0 / 444.3 MB, free: 43.21 MB / 410.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001505/0.172, allocations: 0.7144 MB / 445 MB, free: 43.19 MB / 410.7 MB Notification: Performance of NFScalarize.scalarize: time 7.273e-06/0.172, allocations: 1.594 kB / 445 MB, free: 43.19 MB / 410.7 MB Notification: Performance of NFVerifyModel.verify: time 2.025e-05/0.172, allocations: 2.906 kB / 445 MB, free: 43.19 MB / 410.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002357/0.1723, allocations: 217.2 kB / 445.2 MB, free: 43.18 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.17e-06/0.1723, allocations: 2.969 kB / 445.2 MB, free: 43.18 MB / 410.7 MB Notification: Performance of FrontEnd: time 2.404e-06/0.1723, allocations: 3.344 kB / 445.2 MB, free: 43.18 MB / 410.7 MB Notification: Performance of Transformations before backend: time 6.081e-06/0.1723, allocations: 0 / 445.2 MB, free: 43.18 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: 1 * Number of variables: 1 Notification: Performance of Generate backend data structure: time 0.0002535/0.1725, allocations: 308.7 kB / 445.5 MB, free: 42.88 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.52e-05/0.1726, allocations: 8.531 kB / 445.5 MB, free: 42.88 MB / 410.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 1.705e-05/0.1726, allocations: 30.75 kB / 445.5 MB, free: 42.84 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.261e-05/0.1726, allocations: 10.62 kB / 445.6 MB, free: 42.83 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 5.086e-05/0.1727, allocations: 114.2 kB / 445.7 MB, free: 42.7 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.689e-06/0.1727, allocations: 384 / 445.7 MB, free: 42.7 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.853e-06/0.1727, allocations: 384 / 445.7 MB, free: 42.7 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 6.545e-05/0.1728, allocations: 55.75 kB / 445.7 MB, free: 42.64 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.141e-06/0.1728, allocations: 384 / 445.7 MB, free: 42.64 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.665e-06/0.1728, allocations: 10.53 kB / 445.7 MB, free: 42.64 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.567e-06/0.1728, allocations: 0.5938 kB / 445.7 MB, free: 42.64 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.493e-05/0.1728, allocations: 29.64 kB / 445.8 MB, free: 42.6 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 7.096e-05/0.1729, allocations: 120.1 kB / 445.9 MB, free: 42.45 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 3.351e-05/0.1729, allocations: 50.39 kB / 445.9 MB, free: 42.39 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.266e-05/0.1729, allocations: 33.22 kB / 446 MB, free: 42.36 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.939e-06/0.1729, allocations: 0 / 446 MB, free: 42.36 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.914e-05/0.1729, allocations: 62.73 kB / 446 MB, free: 42.28 MB / 410.7 MB Notification: Performance of pre-optimization done (n=1): time 5.01e-07/0.1729, allocations: 0 / 446 MB, free: 42.28 MB / 410.7 MB Notification: Performance of matching and sorting (n=1): time 0.0001365/0.1731, allocations: 127.1 kB / 446.1 MB, free: 42.15 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.467e-05/0.1731, allocations: 77.11 kB / 446.2 MB, free: 42.06 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 3.409e-05/0.1731, allocations: 99.84 kB / 446.3 MB, free: 41.96 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 4.168e-06/0.1731, allocations: 25.7 kB / 446.3 MB, free: 41.93 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.157e-06/0.1731, allocations: 82.73 kB / 446.4 MB, free: 41.85 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.412e-05/0.1731, allocations: 1.375 kB / 446.4 MB, free: 41.85 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.754e-05/0.1732, allocations: 12.5 kB / 446.4 MB, free: 41.83 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 2.409e-05/0.1732, allocations: 315.1 kB / 446.7 MB, free: 41.52 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.488e-06/0.1732, allocations: 28.67 kB / 446.8 MB, free: 41.48 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.875e-06/0.1732, allocations: 32.78 kB / 446.8 MB, free: 41.45 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 2.331e-05/0.1732, allocations: 65.45 kB / 446.9 MB, free: 41.38 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.513e-06/0.1732, allocations: 0 / 446.9 MB, free: 41.38 MB / 410.7 MB Notification: Performance of matching and sorting (n=1) (initialization): time 3.65e-05/0.1733, allocations: 85.02 kB / 447 MB, free: 41.29 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.98e-05/0.1733, allocations: 38.16 kB / 447 MB, free: 41.25 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.759e-06/0.1733, allocations: 1.078 kB / 447 MB, free: 41.25 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.199e-05/0.1733, allocations: 6.625 kB / 447 MB, free: 41.25 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.11e-07/0.1733, allocations: 4.094 kB / 447 MB, free: 41.25 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.087e-06/0.1733, allocations: 0 / 447 MB, free: 41.25 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.566e-05/0.1733, allocations: 0 / 447 MB, free: 41.25 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.001e-06/0.1733, allocations: 2.844 kB / 447 MB, free: 41.25 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: 1 (result) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (1): * Single equations (assignments): 0 * Array equations: 0 * Algorithm blocks: 1 * 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 3.49e-05/0.1734, allocations: 132.6 kB / 447.1 MB, free: 41.1 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.468e-06/0.1734, allocations: 10.06 kB / 447.1 MB, free: 41.1 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.698e-06/0.1734, allocations: 3.156 kB / 447.1 MB, free: 41.09 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.643e-06/0.1734, allocations: 3.938 kB / 447.1 MB, free: 41.09 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.808e-06/0.1734, allocations: 0 / 447.1 MB, free: 41.09 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.174e-06/0.1734, allocations: 2.75 kB / 447.2 MB, free: 41.09 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 3.247e-05/0.1734, allocations: 122.7 kB / 447.3 MB, free: 40.94 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.11e-07/0.1734, allocations: 11.88 kB / 447.3 MB, free: 40.93 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.81e-07/0.1734, allocations: 4 kB / 447.3 MB, free: 40.92 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.92e-07/0.1734, allocations: 6.469 kB / 447.3 MB, free: 40.92 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.7e-06/0.1734, allocations: 0 / 447.3 MB, free: 40.92 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.01e-07/0.1734, allocations: 3.938 kB / 447.3 MB, free: 40.91 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.51e-07/0.1734, allocations: 2.562 kB / 447.3 MB, free: 40.91 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 5.161e-05/0.1735, allocations: 116.8 kB / 447.4 MB, free: 40.79 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.425e-06/0.1735, allocations: 0 / 447.4 MB, free: 40.79 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.004e-05/0.1735, allocations: 2.75 kB / 447.4 MB, free: 40.79 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.584e-06/0.1735, allocations: 3.938 kB / 447.4 MB, free: 40.79 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.789e-06/0.1735, allocations: 4.031 kB / 447.4 MB, free: 40.78 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.895e-06/0.1735, allocations: 6.25 kB / 447.4 MB, free: 40.78 MB / 410.7 MB Notification: Performance of sorting global known variables: time 1.112e-05/0.1735, allocations: 75.28 kB / 447.5 MB, free: 40.71 MB / 410.7 MB Notification: Performance of sort global known variables: time 5e-08/0.1735, allocations: 0 / 447.5 MB, free: 40.71 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.0001805/0.1737, allocations: 60.05 kB / 447.6 MB, free: 40.7 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: 1 (result) * Number of discrete states: 1 (result) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (1): * Single equations (assignments): 0 * Array equations: 0 * Algorithm blocks: 1 * 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.0005476/0.1743, allocations: 0.9045 MB / 448.5 MB, free: 40 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 7.536e-05/0.1743, allocations: 111.3 kB / 448.6 MB, free: 39.87 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 1.182e-06/0.1743, allocations: 0 / 448.6 MB, free: 39.87 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 1.215e-05/0.1743, allocations: 86.55 kB / 448.7 MB, free: 39.77 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 9.787e-05/0.1744, allocations: 7.812 kB / 448.7 MB, free: 39.77 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002441/0.1747, allocations: 170.6 kB / 448.8 MB, free: 39.59 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 2.498e-05/0.1747, allocations: 60.11 kB / 448.9 MB, free: 39.52 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 8.005e-06/0.1747, allocations: 0 / 448.9 MB, free: 39.52 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.286e-05/0.1747, allocations: 15.16 kB / 448.9 MB, free: 39.52 MB / 410.7 MB Notification: Performance of SimCode: time 4.5e-07/0.1747, allocations: 0 / 448.9 MB, free: 39.52 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01956/0.1943, allocations: 3.239 MB / 452.1 MB, free: 38.43 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 6.954/7.148, allocations: 11.38 kB / 452.2 MB, free: 38.42 MB / 410.7 MB " [Timeout remaining time 653] (rm -f ModelicaTest_4.1.0_ModelicaTest.Utilities.TestFiles.pipe ; mkfifo ModelicaTest_4.1.0_ModelicaTest.Utilities.TestFiles.pipe ; head -c 1048576 < ModelicaTest_4.1.0_ModelicaTest.Utilities.TestFiles.pipe >> ../files/ModelicaTest_4.1.0_ModelicaTest.Utilities.TestFiles.sim & python3 -m fmpy simulate --output-file ModelicaTest_4.1.0_ModelicaTest.Utilities.TestFiles_res.csv --start-time 0 --stop-time 0 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0 ModelicaTest_4_1_0_ModelicaTest_Utilities_TestFiles.fmu > ModelicaTest_4.1.0_ModelicaTest.Utilities.TestFiles.pipe 2>&1) [Timeout 52.5] diffSimulationResults("ModelicaTest_4.1.0_ModelicaTest.Utilities.TestFiles_res.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/ModelicaTest/Utilities/TestFiles/TestFiles.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.1.0_ModelicaTest.Utilities.TestFiles.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "Error: Failed to open simulation result ModelicaTest_4.1.0_ModelicaTest.Utilities.TestFiles_res.csv: Error: Error opening file: ModelicaTest_4.1.0_ModelicaTest.Utilities.TestFiles_res.csv " [Timeout remaining time 660] "" Variables in the reference:time,result Variables in the result: [Calling sys.exit(0), Time elapsed: 9.175474342890084]