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.00133/0.001329, allocations: 103.9 kB / 17.63 MB, free: 5.523 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001409/0.001409, allocations: 206.4 kB / 18.58 MB, free: 4.582 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.391/1.391, allocations: 227.4 MB / 246.8 MB, free: 10.62 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001421/0.001421, allocations: 64.84 kB / 307 MB, free: 0.5586 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1036/0.105, allocations: 50.54 MB / 357.6 MB, free: 14.02 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Thermal.FluidHeatFlow.Examples.TwoMass): time 0.006238/0.1113, allocations: 5.04 MB / 362.6 MB, free: 8.953 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.003106/0.1145, allocations: 1.336 MB / 364 MB, free: 7.613 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008246/0.1153, allocations: 11.94 kB / 364 MB, free: 7.602 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000697/0.1161, allocations: 158.6 kB / 364.1 MB, free: 7.445 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0011/0.1172, allocations: 325.2 kB / 364.4 MB, free: 7.125 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005836/0.1178, allocations: 235.6 kB / 364.7 MB, free: 6.895 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.001681/0.1195, allocations: 1.171 MB / 365.8 MB, free: 5.719 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005624/0.1201, allocations: 310 kB / 366.1 MB, free: 5.402 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007283/0.1208, allocations: 454.4 kB / 366.6 MB, free: 4.957 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007473/0.1216, allocations: 0.5019 MB / 367.1 MB, free: 4.453 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002343/0.1218, allocations: 104 kB / 367.2 MB, free: 4.352 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000289/0.1221, allocations: 108 kB / 367.3 MB, free: 4.246 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002054/0.1223, allocations: 223.2 kB / 367.5 MB, free: 4.027 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000645/0.123, allocations: 0.5211 MB / 368 MB, free: 3.504 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001361/0.1244, allocations: 1.187 MB / 369.2 MB, free: 2.312 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.434e-06/0.1244, allocations: 0 / 369.2 MB, free: 2.312 MB / 302.1 MB Notification: Performance of FrontEnd: time 3.096e-06/0.1244, allocations: 4 kB / 369.2 MB, free: 2.309 MB / 302.1 MB Notification: Performance of Transformations before backend: time 6.582e-05/0.1245, allocations: 0 / 369.2 MB, free: 2.309 MB / 302.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.00355/0.128, allocations: 1.341 MB / 370.6 MB, free: 0.8945 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.236e-05/0.1281, allocations: 8.031 kB / 370.6 MB, free: 0.8867 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002491/0.1283, allocations: 119.9 kB / 370.7 MB, free: 0.7617 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003183/0.1287, allocations: 111.7 kB / 370.8 MB, free: 0.6523 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001125/0.1298, allocations: 0.5909 MB / 371.4 MB, free: 24 kB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.1938/0.3236, allocations: 166.7 kB / 371.6 MB, free: 19.98 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000191/0.3238, allocations: 59.16 kB / 371.6 MB, free: 19.98 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001609/0.3254, allocations: 0.8753 MB / 372.5 MB, free: 19.68 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.092e-05/0.3255, allocations: 4.812 kB / 372.5 MB, free: 19.68 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.532e-05/0.3255, allocations: 28.5 kB / 372.5 MB, free: 19.68 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.733e-05/0.3256, allocations: 13.41 kB / 372.5 MB, free: 19.68 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001692/0.3273, allocations: 0.6349 MB / 373.2 MB, free: 19.64 MB / 302.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.003624/0.3309, allocations: 2.1 MB / 375.3 MB, free: 18.53 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00127/0.3322, allocations: 0.8626 MB / 376.1 MB, free: 18.01 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007943/0.333, allocations: 406.9 kB / 376.5 MB, free: 17.86 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.96e-05/0.3331, allocations: 14.75 kB / 376.5 MB, free: 17.86 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.457e-05/0.3331, allocations: 51.72 kB / 376.6 MB, free: 17.81 MB / 302.1 MB Notification: Performance of pre-optimization done (n=73): time 2.785e-06/0.3331, allocations: 0 / 376.6 MB, free: 17.81 MB / 302.1 MB Notification: Performance of matching and sorting (n=73): time 0.005259/0.3384, allocations: 1.835 MB / 378.4 MB, free: 17 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002195/0.3386, allocations: 0.8218 MB / 379.2 MB, free: 15.99 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008491/0.3395, allocations: 0.6347 MB / 379.9 MB, free: 15.7 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 9.117e-05/0.3396, allocations: 45.06 kB / 379.9 MB, free: 15.66 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002293/0.3398, allocations: 347 kB / 380.3 MB, free: 15.41 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002172/0.34, allocations: 252.6 kB / 380.5 MB, free: 15.22 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002403/0.3403, allocations: 144 kB / 380.7 MB, free: 15.15 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001075/0.3404, allocations: 386 kB / 381 MB, free: 14.81 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006606/0.341, allocations: 286.9 kB / 381.3 MB, free: 14.71 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000883/0.3419, allocations: 0.5611 MB / 381.9 MB, free: 14.31 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001441/0.3434, allocations: 0.7072 MB / 382.6 MB, free: 13.95 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.73e-06/0.3434, allocations: 2 kB / 382.6 MB, free: 13.95 MB / 302.1 MB Notification: Performance of matching and sorting (n=85) (initialization): time 0.002853/0.3463, allocations: 1.118 MB / 383.7 MB, free: 13.46 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.939e-05/0.3463, allocations: 92.81 kB / 383.8 MB, free: 13.36 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.746e-06/0.3463, allocations: 0 / 383.8 MB, free: 13.36 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007222/0.3471, allocations: 236.8 kB / 384 MB, free: 13.28 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006428/0.3477, allocations: 150.8 kB / 384.2 MB, free: 13.27 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006553/0.3543, allocations: 6.944 MB / 391.1 MB, free: 6.969 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009622/0.3553, allocations: 104 kB / 391.2 MB, free: 6.926 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.438e-05/0.3554, allocations: 24.12 kB / 391.2 MB, free: 6.922 MB / 302.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.0003994/0.3558, allocations: 229.8 kB / 391.5 MB, free: 6.734 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001556/0.3559, allocations: 84.88 kB / 391.5 MB, free: 6.695 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000162/0.3561, allocations: 92.02 kB / 391.6 MB, free: 6.625 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.562e-06/0.3561, allocations: 7.875 kB / 391.6 MB, free: 6.625 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.805e-06/0.3561, allocations: 3.719 kB / 391.6 MB, free: 6.625 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.002418/0.3585, allocations: 1.262 MB / 392.9 MB, free: 5.824 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003806/0.3624, allocations: 1.959 MB / 394.9 MB, free: 4.719 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.458e-06/0.3624, allocations: 1.469 kB / 394.9 MB, free: 4.719 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006797/0.3631, allocations: 147.8 kB / 395 MB, free: 4.68 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005165/0.3636, allocations: 196.9 kB / 395.2 MB, free: 4.574 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.385e-05/0.3636, allocations: 19.45 kB / 395.2 MB, free: 4.559 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006047/0.3697, allocations: 5.348 MB / 400.6 MB, free: 15.51 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.191e-06/0.3698, allocations: 1.375 kB / 400.6 MB, free: 15.51 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003958/0.3738, allocations: 1.432 MB / 402 MB, free: 14.71 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005093/0.3743, allocations: 237.4 kB / 402.2 MB, free: 14.49 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001111/0.3744, allocations: 22.16 kB / 402.3 MB, free: 14.48 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006619/0.3751, allocations: 61 kB / 402.3 MB, free: 14.45 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002042/0.3753, allocations: 65.5 kB / 402.4 MB, free: 14.41 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.353e-05/0.3754, allocations: 25.3 kB / 402.4 MB, free: 14.39 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.000652/0.376, allocations: 452.8 kB / 402.8 MB, free: 14.14 MB / 318.1 MB Notification: Performance of sort global known variables: time 3.7e-07/0.376, allocations: 0 / 402.8 MB, free: 14.14 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.001087/0.3771, allocations: 288.2 kB / 403.1 MB, free: 14.09 MB / 318.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.003609/0.3807, allocations: 2.007 MB / 405.1 MB, free: 12.75 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.002593/0.3833, allocations: 1.402 MB / 406.5 MB, free: 11.71 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 4.358e-06/0.3834, allocations: 1.906 kB / 406.5 MB, free: 11.71 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001365/0.3847, allocations: 0.7866 MB / 407.3 MB, free: 11.11 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009975/0.3857, allocations: 229.8 kB / 407.6 MB, free: 10.89 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01307/0.3988, allocations: 8.068 MB / 415.6 MB, free: 2.652 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006109/0.3995, allocations: 0.9479 MB / 416.6 MB, free: 1.676 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0005221/0.4, allocations: 102.4 kB / 416.7 MB, free: 1.57 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003912/0.4004, allocations: 295.5 kB / 417 MB, free: 1.281 MB / 318.1 MB Notification: Performance of SimCode: time 2.165e-06/0.4004, allocations: 7.938 kB / 417 MB, free: 1.273 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06065/0.4611, allocations: 25.65 MB / 442.6 MB, free: 7.988 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.42/11.88, allocations: 1.875 kB / 442.6 MB, free: 7.988 MB / 350.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