Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Thermal.FluidHeatFlow.Examples.TwoMass.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) 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(Modelica.Thermal.FluidHeatFlow.Examples.TwoMass,fileNamePrefix="Modelica_trunk_Modelica_Thermal_FluidHeatFlow_Examples_TwoMass",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Thermal.FluidHeatFlow.Examples.TwoMass,fileNamePrefix="Modelica_trunk_Modelica_Thermal_FluidHeatFlow_Examples_TwoMass",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001103/0.001103, allocations: 117.6 kB / 17.79 MB, free: 5.125 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001211/0.001211, allocations: 200.7 kB / 18.74 MB, free: 4.184 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.278/1.278, allocations: 227.4 MB / 246.9 MB, free: 10.48 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001115/0.001116, allocations: 59.91 kB / 358.2 MB, free: 13.46 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2141/0.2152, allocations: 50.53 MB / 408.7 MB, free: 1.562 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Thermal.FluidHeatFlow.Examples.TwoMass): time 0.004974/0.2202, allocations: 5.053 MB / 413.8 MB, free: 12.49 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.00189/0.2221, allocations: 1.336 MB / 415.1 MB, free: 11.15 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000237/0.2224, allocations: 11.94 kB / 415.1 MB, free: 11.14 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003503/0.2228, allocations: 158.6 kB / 415.3 MB, free: 10.98 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005712/0.2233, allocations: 341.1 kB / 415.6 MB, free: 10.64 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003944/0.2237, allocations: 223.7 kB / 415.8 MB, free: 10.43 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0009794/0.2247, allocations: 1.191 MB / 417 MB, free: 9.234 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003853/0.2251, allocations: 306 kB / 417.3 MB, free: 8.91 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003954/0.2255, allocations: 458.5 kB / 417.8 MB, free: 8.461 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000485/0.226, allocations: 0.5057 MB / 418.3 MB, free: 7.953 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001236/0.2261, allocations: 104 kB / 418.4 MB, free: 7.852 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001403/0.2263, allocations: 104 kB / 418.5 MB, free: 7.75 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001653/0.2265, allocations: 227.2 kB / 418.7 MB, free: 7.527 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004212/0.2269, allocations: 0.521 MB / 419.2 MB, free: 7.004 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0009796/0.2279, allocations: 1.213 MB / 420.5 MB, free: 5.789 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.657e-06/0.2279, allocations: 4 kB / 420.5 MB, free: 5.785 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.173e-06/0.2279, allocations: 0 / 420.5 MB, free: 5.785 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.173e-05/0.2279, allocations: 0 / 420.5 MB, free: 5.785 MB / 334.1 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.002183/0.2301, allocations: 1.36 MB / 421.8 MB, free: 4.355 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.648e-05/0.2302, allocations: 16.03 kB / 421.8 MB, free: 4.34 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001565/0.2303, allocations: 115.9 kB / 421.9 MB, free: 4.215 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001701/0.2305, allocations: 116.3 kB / 422.1 MB, free: 4.102 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008776/0.2314, allocations: 0.6032 MB / 422.7 MB, free: 3.457 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001755/0.2316, allocations: 143 kB / 422.8 MB, free: 3.301 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.556e-05/0.2317, allocations: 59.94 kB / 422.9 MB, free: 3.242 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001318/0.233, allocations: 0.8626 MB / 423.7 MB, free: 2.277 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.763e-05/0.233, allocations: 0 / 423.7 MB, free: 2.277 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.545e-05/0.2331, allocations: 28 kB / 423.7 MB, free: 2.25 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.218e-05/0.2331, allocations: 20 kB / 423.8 MB, free: 2.23 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001341/0.2345, allocations: 0.6024 MB / 424.4 MB, free: 1.625 MB / 334.1 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.002923/0.2374, allocations: 2.089 MB / 426.5 MB, free: 15.43 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001285/0.2387, allocations: 0.8483 MB / 427.3 MB, free: 14.52 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007584/0.2395, allocations: 399.5 kB / 427.7 MB, free: 14.13 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.322e-05/0.2395, allocations: 16.64 kB / 427.7 MB, free: 14.11 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.676e-05/0.2396, allocations: 47.16 kB / 427.8 MB, free: 14.06 MB / 350.1 MB Notification: Performance of pre-optimization done (n=73): time 2.394e-06/0.2396, allocations: 0 / 427.8 MB, free: 14.06 MB / 350.1 MB Notification: Performance of matching and sorting (n=73): time 0.004911/0.2445, allocations: 1.797 MB / 429.6 MB, free: 12.17 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0003232/0.2448, allocations: 0.8273 MB / 430.4 MB, free: 11.15 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007029/0.2455, allocations: 0.6409 MB / 431 MB, free: 10.5 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 7.407e-05/0.2456, allocations: 45.7 kB / 431.1 MB, free: 10.45 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002404/0.2459, allocations: 341.3 kB / 431.4 MB, free: 10.11 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002004/0.2461, allocations: 269.7 kB / 431.7 MB, free: 9.844 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002221/0.2463, allocations: 138.7 kB / 431.8 MB, free: 9.703 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001558/0.2465, allocations: 390.8 kB / 432.2 MB, free: 9.312 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006362/0.2471, allocations: 273.8 kB / 432.5 MB, free: 9.047 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008612/0.248, allocations: 0.5593 MB / 433 MB, free: 8.387 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001333/0.2493, allocations: 0.674 MB / 433.7 MB, free: 7.691 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.106e-06/0.2493, allocations: 0 / 433.7 MB, free: 7.691 MB / 350.1 MB Notification: Performance of matching and sorting (n=85) (initialization): time 0.002574/0.2519, allocations: 1.106 MB / 434.8 MB, free: 6.543 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.645e-05/0.252, allocations: 85.11 kB / 434.9 MB, free: 6.441 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.334e-06/0.252, allocations: 0 / 434.9 MB, free: 6.441 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006685/0.2527, allocations: 239.2 kB / 435.1 MB, free: 6.195 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006078/0.2533, allocations: 135.8 kB / 435.2 MB, free: 6.062 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007214/0.2605, allocations: 6.948 MB / 442.2 MB, free: 14.55 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008363/0.2614, allocations: 95.61 kB / 442.3 MB, free: 14.46 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.171e-05/0.2614, allocations: 20 kB / 442.3 MB, free: 14.44 MB / 366.1 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.0003239/0.2618, allocations: 221.7 kB / 442.5 MB, free: 14.21 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001402/0.2619, allocations: 99.38 kB / 442.6 MB, free: 14.12 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001707/0.2621, allocations: 95.52 kB / 442.7 MB, free: 14.02 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.961e-06/0.2621, allocations: 8 kB / 442.7 MB, free: 14.01 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.63e-06/0.2621, allocations: 4 kB / 442.7 MB, free: 14.01 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.002339/0.2645, allocations: 1.237 MB / 444 MB, free: 12.66 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003583/0.2681, allocations: 1.928 MB / 445.9 MB, free: 10.66 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.278e-06/0.2681, allocations: 0 / 445.9 MB, free: 10.66 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000669/0.2688, allocations: 143.8 kB / 446 MB, free: 10.52 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005398/0.2693, allocations: 198.5 kB / 446.2 MB, free: 10.32 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.441e-05/0.2694, allocations: 15.94 kB / 446.2 MB, free: 10.3 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006129/0.2755, allocations: 5.358 MB / 451.6 MB, free: 4.523 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.122e-06/0.2755, allocations: 0 / 451.6 MB, free: 4.523 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003202/0.2787, allocations: 1.399 MB / 453 MB, free: 3.098 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003565/0.2791, allocations: 236.4 kB / 453.2 MB, free: 2.848 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001119/0.2792, allocations: 20 kB / 453.2 MB, free: 2.828 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006452/0.2799, allocations: 51.94 kB / 453.3 MB, free: 2.777 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001439/0.28, allocations: 64.58 kB / 453.4 MB, free: 2.715 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.901e-05/0.2801, allocations: 19.98 kB / 453.4 MB, free: 2.695 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0005241/0.2806, allocations: 455 kB / 453.8 MB, free: 2.254 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.2806, allocations: 0 / 453.8 MB, free: 2.254 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0008254/0.2814, allocations: 287.7 kB / 454.1 MB, free: 1.973 MB / 366.1 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.003339/0.2848, allocations: 1.967 MB / 456.1 MB, free: 15.97 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.002116/0.2869, allocations: 1.352 MB / 457.4 MB, free: 14.54 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 4.98e-06/0.2869, allocations: 4.125 kB / 457.4 MB, free: 14.53 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001332/0.2883, allocations: 0.7768 MB / 458.2 MB, free: 13.71 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00102/0.2893, allocations: 241.8 kB / 458.4 MB, free: 13.48 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01214/0.3015, allocations: 7.537 MB / 466 MB, free: 5.762 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006159/0.3021, allocations: 0.9556 MB / 466.9 MB, free: 4.777 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0004939/0.3026, allocations: 106.4 kB / 467 MB, free: 4.668 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004253/0.3031, allocations: 303.3 kB / 467.3 MB, free: 4.371 MB / 382.1 MB Notification: Performance of SimCode: time 1.072e-06/0.3031, allocations: 0 / 467.3 MB, free: 4.371 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05449/0.3576, allocations: 25.93 MB / 493.3 MB, free: 10.82 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.42/12.78, allocations: 14.56 kB / 493.3 MB, free: 10.8 MB / 414.1 MB (rm -f Modelica_trunk_Modelica.Thermal.FluidHeatFlow.Examples.TwoMass.pipe ; mkfifo Modelica_trunk_Modelica.Thermal.FluidHeatFlow.Examples.TwoMass.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Thermal.FluidHeatFlow.Examples.TwoMass.pipe >> ../files/Modelica_trunk_Modelica.Thermal.FluidHeatFlow.Examples.TwoMass.sim & python3 -m fmpy simulate --output-file Modelica_trunk_Modelica.Thermal.FluidHeatFlow.Examples.TwoMass_res.csv --start-time 0 --stop-time 1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.001 Modelica_trunk_Modelica_Thermal_FluidHeatFlow_Examples_TwoMass.fmu > Modelica_trunk_Modelica.Thermal.FluidHeatFlow.Examples.TwoMass.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Thermal.FluidHeatFlow.Examples.TwoMass_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Thermal/FluidHeatFlow/Examples/TwoMass/TwoMass.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Thermal.FluidHeatFlow.Examples.TwoMass.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches