Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Thermal.FluidHeatFlow.Examples.TwoMass.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.0007987/0.0007987, 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.0007623/0.0007623, 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.8501/0.8501, allocations: 173.4 MB / 200.4 MB, free: 9.418 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.FluidHeatFlow.Examples.TwoMass,fileNamePrefix="Modelica_4_0_0_Modelica_Thermal_FluidHeatFlow_Examples_TwoMass",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Thermal.FluidHeatFlow.Examples.TwoMass,fileNamePrefix="Modelica_4_0_0_Modelica_Thermal_FluidHeatFlow_Examples_TwoMass",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.162e-06/1.162e-06, allocations: 0 / 318.4 MB, free: 6.352 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.549e-05/1.665e-05, allocations: 5.516 kB / 318.4 MB, free: 6.348 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica.Thermal.FluidHeatFlow.Examples.TwoMass): time 0.003824/0.00384, allocations: 4.499 MB / 322.9 MB, free: 1.82 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.001923/0.005763, allocations: 1.254 MB / 324.2 MB, free: 0.5625 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002687/0.006032, allocations: 15.94 kB / 324.2 MB, free: 0.5469 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0003335/0.006365, allocations: 166.5 kB / 324.4 MB, free: 392 kB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0004734/0.006839, allocations: 352.9 kB / 324.7 MB, free: 36 kB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003972/0.007236, allocations: 227.5 kB / 324.9 MB, free: 15.81 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.00118/0.008416, allocations: 1.222 MB / 326.2 MB, free: 14.58 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002967/0.008713, allocations: 214.5 kB / 326.4 MB, free: 14.36 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000649/0.009362, allocations: 0.6782 MB / 327 MB, free: 13.68 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003684/0.00973, allocations: 383 kB / 327.4 MB, free: 13.3 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001086/0.009839, allocations: 104 kB / 327.5 MB, free: 13.2 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 9.739e-05/0.009936, allocations: 104 kB / 327.6 MB, free: 13.1 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001151/0.01005, allocations: 231.2 kB / 327.8 MB, free: 12.88 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0002507/0.0103, allocations: 383.2 kB / 328.2 MB, free: 12.5 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.000812/0.01111, allocations: 1.246 MB / 329.5 MB, free: 11.25 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.639e-06/0.01112, allocations: 4 kB / 329.5 MB, free: 11.25 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.553e-06/0.01112, allocations: 0 / 329.5 MB, free: 11.25 MB / 298.7 MB Notification: Performance of Transformations before backend: time 2.24e-05/0.01114, allocations: 0 / 329.5 MB, free: 11.25 MB / 298.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 137 * Number of variables: 137 Notification: Performance of Generate backend data structure: time 0.001548/0.01269, allocations: 1.291 MB / 330.8 MB, free: 9.906 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.128e-05/0.01273, allocations: 8.922 kB / 330.8 MB, free: 9.898 MB / 298.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001359/0.01287, allocations: 119.9 kB / 330.9 MB, free: 9.77 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001325/0.013, allocations: 116.3 kB / 331 MB, free: 9.656 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006761/0.01368, allocations: 0.5305 MB / 331.5 MB, free: 9.102 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001641/0.01384, allocations: 301.2 kB / 331.8 MB, free: 8.754 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.319e-05/0.0139, allocations: 56.38 kB / 331.9 MB, free: 8.699 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001099/0.015, allocations: 1.639 MB / 333.5 MB, free: 6.773 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.476e-05/0.01502, allocations: 4 kB / 333.5 MB, free: 6.77 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.351e-05/0.01506, allocations: 28 kB / 333.5 MB, free: 6.742 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.757e-06/0.01507, allocations: 15.94 kB / 333.6 MB, free: 6.727 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008266/0.0159, allocations: 0.6063 MB / 334.2 MB, free: 6.121 MB / 298.7 MB Warning: The model contains alias variables with redundant start and/or conflicting nominal values. It is recommended to resolve the conflicts, because otherwise the system could be hard to solve. To print the conflicting alias sets and the chosen candidates please use -d=aliasConflicts. Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002034/0.01793, allocations: 1.635 MB / 335.8 MB, free: 4.438 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007905/0.01872, allocations: 0.5795 MB / 336.4 MB, free: 3.844 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004654/0.01919, allocations: 354.5 kB / 336.7 MB, free: 3.496 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.926e-05/0.01923, allocations: 16.66 kB / 336.7 MB, free: 3.48 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.541e-05/0.01925, allocations: 47.22 kB / 336.8 MB, free: 3.426 MB / 298.7 MB Notification: Performance of pre-optimization done (n=73): time 2.014e-06/0.01925, allocations: 0 / 336.8 MB, free: 3.426 MB / 298.7 MB Notification: Performance of matching and sorting (n=73): time 0.002746/0.022, allocations: 1.492 MB / 338.3 MB, free: 1.914 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0004082/0.02241, allocations: 0.8234 MB / 339.1 MB, free: 0.8945 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005586/0.02297, allocations: 0.6293 MB / 339.7 MB, free: 260 kB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 5.288e-05/0.02302, allocations: 45.7 kB / 339.8 MB, free: 208 kB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.00019/0.02321, allocations: 345.3 kB / 340.1 MB, free: 15.86 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001465/0.02336, allocations: 265.7 kB / 340.4 MB, free: 15.6 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001478/0.0235, allocations: 142.6 kB / 340.5 MB, free: 15.45 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 0.0001226/0.02363, allocations: 398.6 kB / 340.9 MB, free: 15.05 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004243/0.02405, allocations: 350.9 kB / 341.2 MB, free: 14.69 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001188/0.02524, allocations: 1.387 MB / 342.6 MB, free: 13 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008517/0.02609, allocations: 0.6817 MB / 343.3 MB, free: 12.29 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.298e-06/0.02609, allocations: 4 kB / 343.3 MB, free: 12.29 MB / 314.7 MB Notification: Performance of matching and sorting (n=85) (initialization): time 0.001618/0.02771, allocations: 1.166 MB / 344.5 MB, free: 11.07 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.324e-05/0.02776, allocations: 93.09 kB / 344.6 MB, free: 10.96 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.506e-06/0.02777, allocations: 0 / 344.6 MB, free: 10.96 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004525/0.02823, allocations: 227.3 kB / 344.8 MB, free: 10.72 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003404/0.02857, allocations: 147.8 kB / 344.9 MB, free: 10.58 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004973/0.03354, allocations: 6.479 MB / 351.4 MB, free: 3.641 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005933/0.03413, allocations: 107.6 kB / 351.5 MB, free: 3.535 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.667e-05/0.03417, allocations: 23.98 kB / 351.6 MB, free: 3.512 MB / 314.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 (69): * Single equations (assignments): 62 * Array equations: 0 * Algorithm blocks: 3 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 4 systems {(3,3), (1,3), (1,7), (1,1)} Notification: Performance of prepare postOptimizeDAE: time 0.0003059/0.03447, allocations: 217.7 kB / 351.8 MB, free: 3.289 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001037/0.03458, allocations: 91.48 kB / 351.9 MB, free: 3.199 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001025/0.03468, allocations: 87.34 kB / 351.9 MB, free: 3.105 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.93e-06/0.03469, allocations: 8 kB / 351.9 MB, free: 3.098 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.262e-06/0.03469, allocations: 4.172 kB / 352 MB, free: 3.094 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001391/0.03608, allocations: 1.229 MB / 353.2 MB, free: 1.75 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002341/0.03842, allocations: 1.74 MB / 354.9 MB, free: 15.95 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.176e-06/0.03843, allocations: 0 / 354.9 MB, free: 15.95 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003655/0.03879, allocations: 143.8 kB / 355.1 MB, free: 15.81 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003135/0.03911, allocations: 194.4 kB / 355.2 MB, free: 15.61 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.591e-05/0.03914, allocations: 19.98 kB / 355.3 MB, free: 15.59 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003842/0.04298, allocations: 4.996 MB / 360.3 MB, free: 10.25 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.393e-06/0.04299, allocations: 0 / 360.3 MB, free: 10.25 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001947/0.04493, allocations: 1.395 MB / 361.7 MB, free: 8.836 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002852/0.04522, allocations: 163.3 kB / 361.8 MB, free: 8.676 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.289e-05/0.04528, allocations: 16 kB / 361.8 MB, free: 8.66 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003347/0.04562, allocations: 51.94 kB / 361.9 MB, free: 8.609 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001391/0.04576, allocations: 64.53 kB / 362 MB, free: 8.547 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.627e-05/0.04578, allocations: 20 kB / 362 MB, free: 8.527 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.0003956/0.04618, allocations: 463 kB / 362.4 MB, free: 8.082 MB / 330.7 MB Notification: Performance of sort global known variables: time 8e-08/0.04618, allocations: 0 / 362.4 MB, free: 8.082 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0006402/0.04682, allocations: 287.7 kB / 362.7 MB, free: 7.801 MB / 330.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 5 (pipe1.T,pipe2.T,pipe3.T,heatCapacitor1.T,heatCapacitor2.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 (61): * Single equations (assignments): 58 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 3 systems {(1,3), (1,3), (1,6)} Notification: Performance of Backend phase and start with SimCode phase: time 0.002285/0.0491, allocations: 1.963 MB / 364.7 MB, free: 5.797 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.001555/0.05066, allocations: 1.404 MB / 366.1 MB, free: 4.285 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 3.146e-06/0.05066, allocations: 0 / 366.1 MB, free: 4.285 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0007921/0.05145, allocations: 0.7417 MB / 366.8 MB, free: 3.5 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007435/0.0522, allocations: 242.1 kB / 367 MB, free: 3.266 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009045/0.06124, allocations: 7.797 MB / 374.8 MB, free: 11.22 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002596/0.0615, allocations: 354 kB / 375.2 MB, free: 10.84 MB / 346.7 MB Notification: Performance of simCode: alias equations: time 0.0003947/0.06189, allocations: 102.4 kB / 375.3 MB, free: 10.74 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003022/0.0622, allocations: 304.4 kB / 375.6 MB, free: 10.44 MB / 346.7 MB Notification: Performance of SimCode: time 1.643e-06/0.0622, allocations: 0 / 375.6 MB, free: 10.44 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04832/0.1105, allocations: 28.31 MB / 403.9 MB, free: 14.56 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.272/8.383, allocations: 0 / 403.9 MB, free: 14.56 MB / 378.7 MB " [Timeout remaining time 652] (rm -f Modelica_4.0.0_Modelica.Thermal.FluidHeatFlow.Examples.TwoMass.pipe ; mkfifo Modelica_4.0.0_Modelica.Thermal.FluidHeatFlow.Examples.TwoMass.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Thermal.FluidHeatFlow.Examples.TwoMass.pipe >> ../files/Modelica_4.0.0_Modelica.Thermal.FluidHeatFlow.Examples.TwoMass.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Thermal.FluidHeatFlow.Examples.TwoMass_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Thermal_FluidHeatFlow_Examples_TwoMass_fmu --startTime=0 --stopTime=1 --stepSize=0.001 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Thermal_FluidHeatFlow_Examples_TwoMass.fmu > Modelica_4.0.0_Modelica.Thermal.FluidHeatFlow.Examples.TwoMass.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.0.0_Modelica.Thermal.FluidHeatFlow.Examples.TwoMass_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Thermal/FluidHeatFlow/Examples/TwoMass/TwoMass.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Thermal.FluidHeatFlow.Examples.TwoMass.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: 10.022281594574451]