Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Thermal.HeatTransfer.Examples.TwoMasses.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0007814/0.0007814, allocations: 76.08 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.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0007335/0.0007335, allocations: 153.1 kB / 23.93 MB, free: 0.6328 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 0.8298/0.8298, allocations: 173.4 MB / 200.4 MB, free: 9.426 MB / 186.7 MB " [Timeout remaining time 179] Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Thermal.HeatTransfer.Examples.TwoMasses,fileNamePrefix="Modelica_4_0_0_Modelica_Thermal_HeatTransfer_Examples_TwoMasses",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Thermal.HeatTransfer.Examples.TwoMasses,fileNamePrefix="Modelica_4_0_0_Modelica_Thermal_HeatTransfer_Examples_TwoMasses",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.733e-06/1.733e-06, allocations: 0 / 318.4 MB, free: 6.371 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.498e-05/1.671e-05, allocations: 2.281 kB / 318.4 MB, free: 6.367 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica.Thermal.HeatTransfer.Examples.TwoMasses): time 0.001764/0.001781, allocations: 1.57 MB / 320 MB, free: 4.781 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.0005685/0.002349, allocations: 498.8 kB / 320.5 MB, free: 4.289 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 4.295e-05/0.002392, allocations: 4 kB / 320.5 MB, free: 4.285 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 3.9e-05/0.002431, allocations: 11.86 kB / 320.5 MB, free: 4.273 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 5.513e-05/0.002486, allocations: 35.64 kB / 320.5 MB, free: 4.238 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001861/0.002672, allocations: 23.97 kB / 320.6 MB, free: 4.215 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001051/0.002778, allocations: 111.3 kB / 320.7 MB, free: 4.105 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001062/0.002884, allocations: 23.98 kB / 320.7 MB, free: 4.082 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 5.569e-05/0.002939, allocations: 51.94 kB / 320.7 MB, free: 4.031 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 6.828e-05/0.003008, allocations: 39.89 kB / 320.8 MB, free: 3.992 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 1.606e-05/0.003024, allocations: 8 kB / 320.8 MB, free: 3.984 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 5.606e-05/0.00308, allocations: 8 kB / 320.8 MB, free: 3.977 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 1.766e-05/0.003098, allocations: 19.92 kB / 320.8 MB, free: 3.957 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 3.002e-05/0.003128, allocations: 31.92 kB / 320.8 MB, free: 3.926 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.000135/0.003263, allocations: 103.7 kB / 320.9 MB, free: 3.824 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.505e-06/0.003265, allocations: 0 / 320.9 MB, free: 3.824 MB / 282.7 MB Notification: Performance of FrontEnd: time 1.102e-06/0.003266, allocations: 0 / 320.9 MB, free: 3.824 MB / 282.7 MB Notification: Performance of Transformations before backend: time 3.596e-06/0.00327, allocations: 0 / 320.9 MB, free: 3.824 MB / 282.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 20 * Number of variables: 20 Notification: Performance of Generate backend data structure: time 0.0003429/0.003613, allocations: 306.1 kB / 321.2 MB, free: 3.496 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.641e-05/0.003649, allocations: 16.86 kB / 321.3 MB, free: 3.48 MB / 282.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.206e-05/0.003681, allocations: 42.73 kB / 321.3 MB, free: 3.43 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.826e-05/0.003759, allocations: 12.89 kB / 321.3 MB, free: 3.418 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 7.987e-05/0.003839, allocations: 121.7 kB / 321.4 MB, free: 3.273 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.039e-05/0.00385, allocations: 4.375 kB / 321.4 MB, free: 3.27 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.945e-05/0.003879, allocations: 16.33 kB / 321.4 MB, free: 3.254 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000122/0.004001, allocations: 78.23 kB / 321.5 MB, free: 3.172 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.709e-06/0.004011, allocations: 192 / 321.5 MB, free: 3.172 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.051e-05/0.004021, allocations: 4.125 kB / 321.5 MB, free: 3.168 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.558e-06/0.004026, allocations: 4 kB / 321.5 MB, free: 3.164 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.202e-05/0.004108, allocations: 55.97 kB / 321.6 MB, free: 3.109 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000712/0.00482, allocations: 351.6 kB / 321.9 MB, free: 2.719 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001001/0.00492, allocations: 66.5 kB / 322 MB, free: 2.645 MB / 282.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.016e-05/0.00496, allocations: 36.84 kB / 322 MB, free: 2.605 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 9.177e-06/0.004969, allocations: 0 / 322 MB, free: 2.605 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.797e-05/0.004987, allocations: 34.56 kB / 322.1 MB, free: 2.562 MB / 282.7 MB Notification: Performance of pre-optimization done (n=8): time 7.31e-07/0.004988, allocations: 0 / 322.1 MB, free: 2.562 MB / 282.7 MB Notification: Performance of matching and sorting (n=8): time 0.0001641/0.005152, allocations: 86.05 kB / 322.2 MB, free: 2.473 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.484e-05/0.005177, allocations: 55.41 kB / 322.2 MB, free: 2.406 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.639e-05/0.005233, allocations: 113.8 kB / 322.3 MB, free: 2.285 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 1.103e-05/0.005244, allocations: 29.7 kB / 322.3 MB, free: 2.25 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.251e-05/0.005287, allocations: 100.1 kB / 322.4 MB, free: 2.148 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.873e-05/0.005306, allocations: 39.67 kB / 322.5 MB, free: 2.109 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.907e-05/0.005335, allocations: 17.72 kB / 322.5 MB, free: 2.086 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 6.822e-05/0.005403, allocations: 322.8 kB / 322.8 MB, free: 1.762 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.942e-05/0.005432, allocations: 23.98 kB / 322.8 MB, free: 1.738 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.044e-05/0.005473, allocations: 42.56 kB / 322.9 MB, free: 1.688 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 6.732e-05/0.00554, allocations: 70.52 kB / 322.9 MB, free: 1.609 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.693e-06/0.005542, allocations: 0 / 322.9 MB, free: 1.609 MB / 282.7 MB Notification: Performance of matching and sorting (n=13) (initialization): time 0.000103/0.005645, allocations: 117.4 kB / 323.1 MB, free: 1.488 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.124e-05/0.005656, allocations: 4 kB / 323.1 MB, free: 1.484 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.348e-06/0.00566, allocations: 0 / 323.1 MB, free: 1.484 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.231e-05/0.005673, allocations: 4 kB / 323.1 MB, free: 1.48 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.414e-05/0.005757, allocations: 23.98 kB / 323.1 MB, free: 1.457 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.402e-06/0.005763, allocations: 8 kB / 323.1 MB, free: 1.449 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.132e-05/0.005785, allocations: 0 / 323.1 MB, free: 1.449 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.192e-06/0.005791, allocations: 8 kB / 323.1 MB, free: 1.441 MB / 282.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 3 * 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 (13): * Single equations (assignments): 13 * 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 5.646e-05/0.005847, allocations: 121.8 kB / 323.2 MB, free: 1.312 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.521e-05/0.005862, allocations: 11.94 kB / 323.2 MB, free: 1.301 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.332e-05/0.005886, allocations: 8.438 kB / 323.2 MB, free: 1.289 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.015e-06/0.005889, allocations: 4 kB / 323.3 MB, free: 1.285 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.646e-06/0.005892, allocations: 0 / 323.3 MB, free: 1.285 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.607e-06/0.005896, allocations: 3.938 kB / 323.3 MB, free: 1.281 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001205/0.006016, allocations: 156.9 kB / 323.4 MB, free: 1.086 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.765e-06/0.006019, allocations: 0 / 323.4 MB, free: 1.086 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.126e-05/0.00608, allocations: 20 kB / 323.4 MB, free: 1.066 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.134e-06/0.006083, allocations: 3.984 kB / 323.4 MB, free: 1.062 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.438e-06/0.006092, allocations: 15.94 kB / 323.4 MB, free: 1.047 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.525e-06/0.006095, allocations: 3.984 kB / 323.5 MB, free: 1.043 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.22e-07/0.006095, allocations: 0 / 323.5 MB, free: 1.043 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001473/0.006243, allocations: 191.4 kB / 323.6 MB, free: 0.8398 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.047e-05/0.006253, allocations: 11.97 kB / 323.7 MB, free: 0.8281 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.538e-06/0.006263, allocations: 0 / 323.7 MB, free: 0.8281 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.081e-05/0.006294, allocations: 4 kB / 323.7 MB, free: 0.8242 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.248e-05/0.006306, allocations: 7.938 kB / 323.7 MB, free: 0.8164 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.475e-06/0.006308, allocations: 0 / 323.7 MB, free: 0.8164 MB / 282.7 MB Notification: Performance of sorting global known variables: time 2.672e-05/0.006335, allocations: 87.27 kB / 323.7 MB, free: 0.7305 MB / 282.7 MB Notification: Performance of sort global known variables: time 5e-08/0.006335, allocations: 0 / 323.7 MB, free: 0.7305 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.0001537/0.006489, allocations: 24.06 kB / 323.8 MB, free: 0.707 MB / 282.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 2 (mass1.T,mass2.T) * 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 (8): * Single equations (assignments): 8 * 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.0002834/0.006772, allocations: 0.728 MB / 324.5 MB, free: 15.95 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 9.442e-05/0.006867, allocations: 47.98 kB / 324.5 MB, free: 15.91 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 1.333e-06/0.006868, allocations: 0 / 324.5 MB, free: 15.91 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 2.37e-05/0.006892, allocations: 31.92 kB / 324.6 MB, free: 15.88 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002174/0.007109, allocations: 3.938 kB / 324.6 MB, free: 15.87 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001011/0.008121, allocations: 1.506 MB / 326.1 MB, free: 14.27 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 5.222e-05/0.008173, allocations: 79.58 kB / 326.2 MB, free: 14.18 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 2.829e-05/0.008201, allocations: 7.984 kB / 326.2 MB, free: 14.17 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.024e-05/0.008241, allocations: 20.5 kB / 326.2 MB, free: 14.15 MB / 298.7 MB Notification: Performance of SimCode: time 7.12e-07/0.008242, allocations: 0 / 326.2 MB, free: 14.15 MB / 298.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01708/0.02532, allocations: 2.471 MB / 328.7 MB, free: 11.8 MB / 298.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 6.693/6.718, allocations: 10.62 kB / 328.7 MB, free: 11.79 MB / 298.7 MB " [Timeout remaining time 653] (rm -f Modelica_4.0.0_Modelica.Thermal.HeatTransfer.Examples.TwoMasses.pipe ; mkfifo Modelica_4.0.0_Modelica.Thermal.HeatTransfer.Examples.TwoMasses.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Thermal.HeatTransfer.Examples.TwoMasses.pipe >> ../files/Modelica_4.0.0_Modelica.Thermal.HeatTransfer.Examples.TwoMasses.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Thermal.HeatTransfer.Examples.TwoMasses_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Thermal_HeatTransfer_Examples_TwoMasses_fmu --startTime=0 --stopTime=1 --stepSize=0.001 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Thermal_HeatTransfer_Examples_TwoMasses.fmu > Modelica_4.0.0_Modelica.Thermal.HeatTransfer.Examples.TwoMasses.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.0.0_Modelica.Thermal.HeatTransfer.Examples.TwoMasses_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Thermal/HeatTransfer/Examples/TwoMasses/TwoMasses.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Thermal.HeatTransfer.Examples.TwoMasses.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: 8.244475253857672]