Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.0.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.0008947/0.0008947, allocations: 79.7 kB / 20.67 MB, free: 3.879 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.001322/0.001322, allocations: 170 kB / 23.96 MB, free: 0.5938 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.9537/0.9537, allocations: 177.1 MB / 204.3 MB, free: 5.738 MB / 186.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.2679/0.2679, allocations: 32.78 MB / 293.5 MB, free: 1.238 MB / 266.7 MB " [Timeout remaining time 180] Using package ModelicaTest with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.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_0_0_ModelicaTest_Utilities_TestFiles",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Utilities.TestFiles,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Utilities_TestFiles",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.503e-06/1.503e-06, allocations: 0 / 439.5 MB, free: 4.312 MB / 410.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.041e-05/2.191e-05, allocations: 4.953 kB / 439.5 MB, free: 4.309 MB / 410.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Utilities.TestFiles): time 0.001217/0.001238, allocations: 497.2 kB / 440 MB, free: 3.824 MB / 410.7 MB Notification: Performance of NFInst.instExpressions: time 0.00151/0.002749, allocations: 1.352 MB / 441.4 MB, free: 2.465 MB / 410.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.768e-05/0.002776, allocations: 0 / 441.4 MB, free: 2.465 MB / 410.7 MB Notification: Performance of NFTyping.typeComponents: time 2.004e-05/0.002796, allocations: 3.938 kB / 441.4 MB, free: 2.461 MB / 410.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002488/0.003045, allocations: 11.98 kB / 441.4 MB, free: 2.449 MB / 410.7 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/Utilities.mo:456:3-488: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.001072/0.004117, allocations: 258.5 kB / 441.7 MB, free: 2.199 MB / 410.7 MB Notification: Performance of NFFlatten.flatten: time 5.756e-05/0.004175, allocations: 7.969 kB / 441.7 MB, free: 2.191 MB / 410.7 MB Notification: Performance of NFFlatten.resolveConnections: time 4.111e-05/0.004216, allocations: 4 kB / 441.7 MB, free: 2.188 MB / 410.7 MB Notification: Performance of NFEvalConstants.evaluate: time 3.663e-05/0.004253, allocations: 7.938 kB / 441.7 MB, free: 2.18 MB / 410.7 MB Notification: Performance of NFSimplifyModel.simplify: time 4.115e-05/0.004294, allocations: 8 kB / 441.7 MB, free: 2.172 MB / 410.7 MB Notification: Performance of NFPackage.collectConstants: time 9.538e-06/0.004303, allocations: 0 / 441.7 MB, free: 2.172 MB / 410.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001651/0.005954, allocations: 0.7098 MB / 442.4 MB, free: 1.586 MB / 410.7 MB Notification: Performance of NFScalarize.scalarize: time 9.498e-06/0.005964, allocations: 4 kB / 442.4 MB, free: 1.582 MB / 410.7 MB Notification: Performance of NFVerifyModel.verify: time 2.419e-05/0.005988, allocations: 0 / 442.4 MB, free: 1.582 MB / 410.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002875/0.006275, allocations: 219.4 kB / 442.6 MB, free: 1.367 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.126e-06/0.006279, allocations: 0 / 442.6 MB, free: 1.367 MB / 410.7 MB Notification: Performance of FrontEnd: time 1.563e-06/0.00628, allocations: 0 / 442.6 MB, free: 1.367 MB / 410.7 MB Notification: Performance of Transformations before backend: time 5.691e-06/0.006286, allocations: 0 / 442.6 MB, free: 1.367 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.0003494/0.006635, allocations: 307.7 kB / 442.9 MB, free: 1.031 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.449e-05/0.00668, allocations: 16.02 kB / 442.9 MB, free: 1.016 MB / 410.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.822e-05/0.006708, allocations: 30.75 kB / 443 MB, free: 0.9766 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.89e-05/0.006737, allocations: 0.9375 kB / 443 MB, free: 0.9766 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 8.051e-05/0.006817, allocations: 109.8 kB / 443.1 MB, free: 0.8438 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.008e-05/0.006827, allocations: 8.312 kB / 443.1 MB, free: 0.8359 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.296e-06/0.006836, allocations: 384 / 443.1 MB, free: 0.8359 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001042/0.00694, allocations: 63.91 kB / 443.1 MB, free: 0.7617 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.793e-06/0.006947, allocations: 192 / 443.1 MB, free: 0.7617 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.718e-06/0.006956, allocations: 3.938 kB / 443.1 MB, free: 0.7578 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.951e-06/0.006962, allocations: 3.984 kB / 443.1 MB, free: 0.7539 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.442e-05/0.006987, allocations: 29.7 kB / 443.2 MB, free: 0.7188 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001064/0.007093, allocations: 112.8 kB / 443.3 MB, free: 0.5664 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 4.933e-05/0.007143, allocations: 48.3 kB / 443.3 MB, free: 0.5039 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.163e-05/0.007164, allocations: 34.56 kB / 443.4 MB, free: 472 kB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.086e-05/0.007175, allocations: 15.98 kB / 443.4 MB, free: 456 kB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.591e-05/0.007211, allocations: 56.27 kB / 443.4 MB, free: 384 kB / 410.7 MB Notification: Performance of pre-optimization done (n=1): time 1.192e-06/0.007212, allocations: 0 / 443.4 MB, free: 384 kB / 410.7 MB Notification: Performance of matching and sorting (n=1): time 0.0001903/0.007402, allocations: 118.8 kB / 443.5 MB, free: 240 kB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.093e-05/0.007443, allocations: 85.09 kB / 443.6 MB, free: 136 kB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.548e-05/0.007499, allocations: 93.86 kB / 443.7 MB, free: 32 kB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 8.907e-06/0.007508, allocations: 25.7 kB / 443.7 MB, free: 0 / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.1661/0.1736, allocations: 80.14 kB / 443.8 MB, free: 46.52 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.58e-05/0.1736, allocations: 3.797 kB / 443.8 MB, free: 46.52 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.716e-05/0.1736, allocations: 15.53 kB / 443.8 MB, free: 46.5 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 3.678e-05/0.1737, allocations: 312.2 kB / 444.2 MB, free: 46.19 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.114e-05/0.1737, allocations: 35.66 kB / 444.2 MB, free: 46.16 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 1.544e-05/0.1737, allocations: 28.42 kB / 444.2 MB, free: 46.13 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.527e-05/0.1738, allocations: 63.89 kB / 444.3 MB, free: 46.06 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.956e-06/0.1738, allocations: 0 / 444.3 MB, free: 46.06 MB / 410.7 MB Notification: Performance of matching and sorting (n=1) (initialization): time 8.77e-05/0.1739, allocations: 95.88 kB / 444.4 MB, free: 45.96 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.822e-05/0.1739, allocations: 36.7 kB / 444.4 MB, free: 45.93 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.663e-06/0.1739, allocations: 3.875 kB / 444.4 MB, free: 45.93 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.692e-05/0.1739, allocations: 2.688 kB / 444.4 MB, free: 45.93 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.92e-07/0.1739, allocations: 0 / 444.4 MB, free: 45.93 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.698e-06/0.1739, allocations: 5.5 kB / 444.4 MB, free: 45.93 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.242e-05/0.1739, allocations: 0 / 444.4 MB, free: 45.93 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.113e-06/0.1739, allocations: 2.75 kB / 444.4 MB, free: 45.93 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 4.457e-05/0.174, allocations: 139.4 kB / 444.6 MB, free: 45.79 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.321e-06/0.174, allocations: 2.906 kB / 444.6 MB, free: 45.79 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.188e-05/0.174, allocations: 3.156 kB / 444.6 MB, free: 45.79 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.254e-06/0.174, allocations: 0.5625 kB / 444.6 MB, free: 45.79 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.121e-06/0.174, allocations: 9.719 kB / 444.6 MB, free: 45.78 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.465e-06/0.174, allocations: 0 / 444.6 MB, free: 45.78 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 4.708e-05/0.1741, allocations: 120.1 kB / 444.7 MB, free: 45.63 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.11e-07/0.1741, allocations: 2.625 kB / 444.7 MB, free: 45.63 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.31e-07/0.1741, allocations: 0 / 444.7 MB, free: 45.63 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.61e-07/0.1741, allocations: 3.469 kB / 444.7 MB, free: 45.63 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.102e-06/0.1741, allocations: 0 / 444.7 MB, free: 45.63 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.21e-07/0.1741, allocations: 0 / 444.7 MB, free: 45.63 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.134e-06/0.1741, allocations: 9.5 kB / 444.7 MB, free: 45.62 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 6.766e-05/0.1741, allocations: 122.1 kB / 444.8 MB, free: 45.5 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.476e-06/0.1741, allocations: 0 / 444.8 MB, free: 45.5 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.055e-05/0.1742, allocations: 0 / 444.8 MB, free: 45.5 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.825e-06/0.1742, allocations: 2.688 kB / 444.8 MB, free: 45.5 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.23e-05/0.1742, allocations: 7.312 kB / 444.8 MB, free: 45.5 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.274e-06/0.1742, allocations: 0 / 444.8 MB, free: 45.5 MB / 410.7 MB Notification: Performance of sorting global known variables: time 1.565e-05/0.1742, allocations: 81.75 kB / 444.9 MB, free: 45.42 MB / 410.7 MB Notification: Performance of sort global known variables: time 5e-08/0.1742, allocations: 0 / 444.9 MB, free: 45.42 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.0002585/0.1745, allocations: 62.06 kB / 445 MB, free: 45.42 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.000631/0.1751, allocations: 0.894 MB / 445.9 MB, free: 44.76 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 9.229e-05/0.1752, allocations: 118 kB / 446 MB, free: 44.64 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 2.265e-06/0.1752, allocations: 3.844 kB / 446 MB, free: 44.64 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 1.595e-05/0.1752, allocations: 82 kB / 446.1 MB, free: 44.54 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001125/0.1753, allocations: 7.906 kB / 446.1 MB, free: 44.54 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002888/0.1756, allocations: 166.7 kB / 446.2 MB, free: 44.38 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 2.781e-05/0.1756, allocations: 57.48 kB / 446.3 MB, free: 44.31 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 8.496e-06/0.1756, allocations: 0 / 446.3 MB, free: 44.31 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.435e-05/0.1757, allocations: 11.5 kB / 446.3 MB, free: 44.3 MB / 410.7 MB Notification: Performance of SimCode: time 7.92e-07/0.1757, allocations: 0 / 446.3 MB, free: 44.3 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01621/0.1919, allocations: 3.23 MB / 449.5 MB, free: 43.27 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 6.758/6.949, allocations: 20.11 kB / 449.6 MB, free: 43.26 MB / 410.7 MB " [Timeout remaining time 653] (rm -f ModelicaTest_4.0.0_ModelicaTest.Utilities.TestFiles.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Utilities.TestFiles.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Utilities.TestFiles.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Utilities.TestFiles.sim & python3 -m fmpy simulate --output-file ModelicaTest_4.0.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_0_0_ModelicaTest_Utilities_TestFiles.fmu > ModelicaTest_4.0.0_ModelicaTest.Utilities.TestFiles.pipe 2>&1) [Timeout 52.5] diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.Utilities.TestFiles_res.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Utilities/TestFiles/TestFiles.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.0.0_ModelicaTest.Utilities.TestFiles.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "Error: Failed to open simulation result ModelicaTest_4.0.0_ModelicaTest.Utilities.TestFiles_res.csv: Error: Error opening file: ModelicaTest_4.0.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.066976453177631]