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.001789/0.001789, allocations: 117.2 kB / 17.79 MB, free: 5.273 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002065/0.002066, allocations: 200.6 kB / 18.74 MB, free: 4.332 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.427/1.427, allocations: 227.4 MB / 246.9 MB, free: 10.47 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002854/0.002854, allocations: 63.89 kB / 358.2 MB, free: 13.42 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2559/0.2588, allocations: 50.54 MB / 408.8 MB, free: 1.531 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Thermal.FluidHeatFlow.Examples.TwoMass): time 0.006076/0.2649, allocations: 5.045 MB / 413.8 MB, free: 12.46 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002321/0.2672, allocations: 1.332 MB / 415.1 MB, free: 11.13 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000281/0.2675, allocations: 15.94 kB / 415.1 MB, free: 11.11 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004356/0.268, allocations: 162.6 kB / 415.3 MB, free: 10.95 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0006005/0.2686, allocations: 321.2 kB / 415.6 MB, free: 10.64 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004397/0.269, allocations: 223.6 kB / 415.8 MB, free: 10.42 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.001209/0.2703, allocations: 1.187 MB / 417 MB, free: 9.23 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004383/0.2707, allocations: 314 kB / 417.3 MB, free: 8.898 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004622/0.2712, allocations: 450.5 kB / 417.8 MB, free: 8.457 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005724/0.2718, allocations: 0.5057 MB / 418.3 MB, free: 7.949 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001442/0.2719, allocations: 104 kB / 418.4 MB, free: 7.848 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001481/0.2721, allocations: 104 kB / 418.5 MB, free: 7.746 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001906/0.2723, allocations: 235.2 kB / 418.7 MB, free: 7.516 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004741/0.2727, allocations: 0.5133 MB / 419.2 MB, free: 7 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001187/0.2739, allocations: 1.213 MB / 420.4 MB, free: 5.785 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.519e-06/0.274, allocations: 0 / 420.4 MB, free: 5.785 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.443e-06/0.274, allocations: 0 / 420.4 MB, free: 5.785 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.761e-05/0.274, allocations: 0 / 420.4 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.002384/0.2764, allocations: 1.36 MB / 421.8 MB, free: 4.355 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.939e-05/0.2764, allocations: 12.03 kB / 421.8 MB, free: 4.344 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001816/0.2766, allocations: 123.9 kB / 421.9 MB, free: 4.211 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001735/0.2768, allocations: 116.3 kB / 422 MB, free: 4.098 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009611/0.2778, allocations: 0.6032 MB / 422.6 MB, free: 3.453 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001964/0.278, allocations: 139 kB / 422.8 MB, free: 3.301 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001032/0.2781, allocations: 63.94 kB / 422.8 MB, free: 3.238 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001426/0.2795, allocations: 0.8626 MB / 423.7 MB, free: 2.273 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.787e-05/0.2795, allocations: 0 / 423.7 MB, free: 2.273 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.888e-05/0.2796, allocations: 28 kB / 423.7 MB, free: 2.246 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.892e-05/0.2796, allocations: 16 kB / 423.7 MB, free: 2.23 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001367/0.281, allocations: 0.6063 MB / 424.4 MB, free: 1.621 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.003342/0.2844, allocations: 2.093 MB / 426.4 MB, free: 15.43 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001357/0.2857, allocations: 0.8421 MB / 427.3 MB, free: 14.52 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007746/0.2865, allocations: 398.1 kB / 427.7 MB, free: 14.13 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.67e-05/0.2866, allocations: 20.64 kB / 427.7 MB, free: 14.11 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.032e-05/0.2866, allocations: 51.16 kB / 427.7 MB, free: 14.05 MB / 350.1 MB Notification: Performance of pre-optimization done (n=73): time 1.954e-06/0.2866, allocations: 0 / 427.7 MB, free: 14.05 MB / 350.1 MB Notification: Performance of matching and sorting (n=73): time 0.005071/0.2917, allocations: 1.793 MB / 429.5 MB, free: 12.17 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0004209/0.2922, allocations: 0.8272 MB / 430.4 MB, free: 11.14 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007907/0.293, allocations: 0.6371 MB / 431 MB, free: 10.5 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 7.363e-05/0.293, allocations: 49.64 kB / 431.1 MB, free: 10.44 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002765/0.2933, allocations: 349.3 kB / 431.4 MB, free: 10.1 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002174/0.2936, allocations: 265.7 kB / 431.7 MB, free: 9.836 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002313/0.2938, allocations: 142.7 kB / 431.8 MB, free: 9.691 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001921/0.294, allocations: 386.8 kB / 432.2 MB, free: 9.305 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007032/0.2947, allocations: 269.8 kB / 432.4 MB, free: 9.043 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000909/0.2956, allocations: 0.5554 MB / 433 MB, free: 8.387 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001335/0.297, allocations: 0.6779 MB / 433.7 MB, free: 7.688 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.065e-06/0.297, allocations: 0 / 433.7 MB, free: 7.688 MB / 350.1 MB Notification: Performance of matching and sorting (n=85) (initialization): time 0.00264/0.2996, allocations: 1.106 MB / 434.8 MB, free: 6.539 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.616e-05/0.2997, allocations: 85.11 kB / 434.9 MB, free: 6.438 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.406e-06/0.2997, allocations: 3.984 kB / 434.9 MB, free: 6.434 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006733/0.3004, allocations: 231.2 kB / 435.1 MB, free: 6.195 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006143/0.301, allocations: 139.8 kB / 435.2 MB, free: 6.059 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008238/0.3093, allocations: 6.944 MB / 442.2 MB, free: 14.55 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008896/0.3102, allocations: 99.61 kB / 442.3 MB, free: 14.46 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.556e-05/0.3102, allocations: 24 kB / 442.3 MB, free: 14.43 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.0003774/0.3106, allocations: 213.7 kB / 442.5 MB, free: 14.21 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001584/0.3108, allocations: 95.38 kB / 442.6 MB, free: 14.12 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001787/0.311, allocations: 95.33 kB / 442.7 MB, free: 14.02 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.033e-05/0.311, allocations: 12 kB / 442.7 MB, free: 14.01 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.691e-06/0.311, allocations: 0 / 442.7 MB, free: 14.01 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.002471/0.3135, allocations: 1.237 MB / 443.9 MB, free: 12.66 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003765/0.3173, allocations: 1.928 MB / 445.9 MB, free: 10.66 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.55e-06/0.3173, allocations: 3.938 kB / 445.9 MB, free: 10.66 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006635/0.318, allocations: 143.8 kB / 446 MB, free: 10.52 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005216/0.3185, allocations: 198.5 kB / 446.2 MB, free: 10.32 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.299e-05/0.3185, allocations: 15.94 kB / 446.2 MB, free: 10.3 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006728/0.3253, allocations: 5.35 MB / 451.6 MB, free: 4.531 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.396e-06/0.3253, allocations: 3.984 kB / 451.6 MB, free: 4.527 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003252/0.3286, allocations: 1.403 MB / 453 MB, free: 3.098 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000411/0.329, allocations: 236.4 kB / 453.2 MB, free: 2.848 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001005/0.3291, allocations: 20 kB / 453.2 MB, free: 2.828 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006173/0.3297, allocations: 51.94 kB / 453.3 MB, free: 2.777 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001721/0.3299, allocations: 64.58 kB / 453.3 MB, free: 2.715 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.136e-05/0.3299, allocations: 19.98 kB / 453.4 MB, free: 2.695 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0005896/0.3305, allocations: 455 kB / 453.8 MB, free: 2.254 MB / 366.1 MB Notification: Performance of sort global known variables: time 2.1e-07/0.3306, allocations: 4 kB / 453.8 MB, free: 2.25 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0008594/0.3314, allocations: 287.7 kB / 454.1 MB, free: 1.969 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.003705/0.3351, allocations: 1.966 MB / 456.1 MB, free: 15.97 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.002264/0.3374, allocations: 1.356 MB / 457.4 MB, free: 14.53 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 5.259e-06/0.3374, allocations: 4 kB / 457.4 MB, free: 14.53 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001387/0.3388, allocations: 0.7691 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.0009877/0.3398, allocations: 235 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.01283/0.3527, allocations: 7.543 MB / 466 MB, free: 5.766 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000587/0.3533, allocations: 0.9518 MB / 466.9 MB, free: 4.785 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0004291/0.3537, allocations: 110.3 kB / 467 MB, free: 4.672 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004017/0.3541, allocations: 303.3 kB / 467.3 MB, free: 4.375 MB / 382.1 MB Notification: Performance of SimCode: time 8.21e-07/0.3541, allocations: 0 / 467.3 MB, free: 4.375 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07428/0.4284, allocations: 25.93 MB / 493.2 MB, free: 10.82 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.87/13.29, allocations: 11.97 kB / 493.3 MB, free: 10.81 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.1.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