Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Thermal.FluidHeatFlow.Examples.IndirectCooling.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.IndirectCooling,fileNamePrefix="Modelica_trunk_Modelica_Thermal_FluidHeatFlow_Examples_IndirectCooling",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Thermal.FluidHeatFlow.Examples.IndirectCooling,fileNamePrefix="Modelica_trunk_Modelica_Thermal_FluidHeatFlow_Examples_IndirectCooling",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001289/0.001289, allocations: 122.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.001402/0.001402, allocations: 202 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.392/1.392, allocations: 227.4 MB / 246.9 MB, free: 10.42 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001878/0.001878, allocations: 67.88 kB / 358.2 MB, free: 13.39 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2347/0.2366, allocations: 50.54 MB / 408.8 MB, free: 1.52 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Thermal.FluidHeatFlow.Examples.IndirectCooling): time 0.006571/0.2432, allocations: 5.624 MB / 414.4 MB, free: 11.88 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002534/0.2458, allocations: 1.448 MB / 415.8 MB, free: 10.42 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002963/0.2461, allocations: 8 kB / 415.8 MB, free: 10.41 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004388/0.2465, allocations: 198.3 kB / 416 MB, free: 10.22 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0006639/0.2472, allocations: 388.7 kB / 416.4 MB, free: 9.836 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004821/0.2477, allocations: 259.6 kB / 416.7 MB, free: 9.582 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.001486/0.2492, allocations: 1.359 MB / 418 MB, free: 8.215 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006025/0.2498, allocations: 407.1 kB / 418.4 MB, free: 7.789 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006302/0.2505, allocations: 0.5138 MB / 418.9 MB, free: 7.273 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006781/0.2511, allocations: 0.5835 MB / 419.5 MB, free: 6.688 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001606/0.2513, allocations: 116 kB / 419.6 MB, free: 6.574 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001785/0.2515, allocations: 124 kB / 419.8 MB, free: 6.453 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000214/0.2517, allocations: 255.1 kB / 420 MB, free: 6.203 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005619/0.2523, allocations: 0.6105 MB / 420.6 MB, free: 5.59 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001398/0.2537, allocations: 1.407 MB / 422 MB, free: 4.18 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.273e-06/0.2537, allocations: 4 kB / 422 MB, free: 4.176 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.593e-06/0.2537, allocations: 0 / 422 MB, free: 4.176 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.631e-05/0.2537, allocations: 0 / 422 MB, free: 4.176 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: 169 * Number of variables: 169 Notification: Performance of Generate backend data structure: time 0.002605/0.2564, allocations: 1.519 MB / 423.5 MB, free: 2.586 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.065e-05/0.2564, allocations: 8.031 kB / 423.6 MB, free: 2.578 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002042/0.2566, allocations: 128.6 kB / 423.7 MB, free: 2.441 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002014/0.2568, allocations: 140.1 kB / 423.8 MB, free: 2.305 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001018/0.2578, allocations: 0.6466 MB / 424.5 MB, free: 1.617 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000221/0.2581, allocations: 151.6 kB / 424.6 MB, free: 1.453 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001132/0.2582, allocations: 72.38 kB / 424.7 MB, free: 1.383 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001532/0.2597, allocations: 0.9784 MB / 425.7 MB, free: 292 kB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.901e-05/0.2598, allocations: 3.938 kB / 425.7 MB, free: 288 kB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.75e-05/0.2599, allocations: 36 kB / 425.7 MB, free: 252 kB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.659e-05/0.2599, allocations: 19.98 kB / 425.7 MB, free: 232 kB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001314/0.2612, allocations: 0.6363 MB / 426.4 MB, free: 15.59 MB / 350.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.004117/0.2653, allocations: 2.652 MB / 429 MB, free: 12.78 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002537/0.2679, allocations: 0.8688 MB / 429.9 MB, free: 11.88 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007111/0.2686, allocations: 346.7 kB / 430.2 MB, free: 11.54 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.359e-05/0.2687, allocations: 20.62 kB / 430.2 MB, free: 11.52 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.29e-05/0.2687, allocations: 51.22 kB / 430.3 MB, free: 11.46 MB / 350.1 MB Notification: Performance of pre-optimization done (n=72): time 1.963e-06/0.2687, allocations: 0 / 430.3 MB, free: 11.46 MB / 350.1 MB Notification: Performance of matching and sorting (n=72): time 0.002622/0.2713, allocations: 1.413 MB / 431.7 MB, free: 9.941 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0004824/0.2718, allocations: 0.9489 MB / 432.6 MB, free: 8.766 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009849/0.2728, allocations: 0.7825 MB / 433.4 MB, free: 7.977 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 7.724e-05/0.2729, allocations: 45.7 kB / 433.5 MB, free: 7.926 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003484/0.2733, allocations: 424.8 kB / 433.9 MB, free: 7.508 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002439/0.2735, allocations: 261.7 kB / 434.1 MB, free: 7.25 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000262/0.2738, allocations: 162.6 kB / 434.3 MB, free: 7.086 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001477/0.274, allocations: 333.9 kB / 434.6 MB, free: 6.754 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005602/0.2745, allocations: 254.1 kB / 434.9 MB, free: 6.508 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008961/0.2754, allocations: 0.5889 MB / 435.5 MB, free: 5.793 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001206/0.2766, allocations: 0.6678 MB / 436.1 MB, free: 5.094 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.226e-06/0.2767, allocations: 0 / 436.1 MB, free: 5.094 MB / 350.1 MB Notification: Performance of matching and sorting (n=90) (initialization): time 0.001741/0.2784, allocations: 0.9553 MB / 437.1 MB, free: 4.094 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.561e-05/0.2785, allocations: 88.98 kB / 437.2 MB, free: 3.988 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.446e-06/0.2785, allocations: 4 kB / 437.2 MB, free: 3.984 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003249/0.2788, allocations: 124.2 kB / 437.3 MB, free: 3.848 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007204/0.2796, allocations: 147.8 kB / 437.4 MB, free: 3.703 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006188/0.2858, allocations: 7.337 MB / 444.8 MB, free: 11.67 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008197/0.2866, allocations: 107.3 kB / 444.9 MB, free: 11.56 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.824e-05/0.2867, allocations: 27.98 kB / 444.9 MB, free: 11.54 MB / 366.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 5 * 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 (80): * Single equations (assignments): 72 * Array equations: 0 * Algorithm blocks: 3 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 5 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,2,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 4 systems {(3,1), (1,1), (3,1), (1,1)} Notification: Performance of prepare postOptimizeDAE: time 0.0003749/0.287, allocations: 233.8 kB / 445.1 MB, free: 11.3 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001618/0.2872, allocations: 111.3 kB / 445.3 MB, free: 11.19 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001915/0.2874, allocations: 96.91 kB / 445.3 MB, free: 11.08 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.02e-06/0.2874, allocations: 8 kB / 445.4 MB, free: 11.07 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.102e-06/0.2874, allocations: 3.938 kB / 445.4 MB, free: 11.07 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001446/0.2889, allocations: 0.974 MB / 446.3 MB, free: 9.988 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002933/0.2918, allocations: 1.756 MB / 448.1 MB, free: 8.156 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.186e-06/0.2918, allocations: 0 / 448.1 MB, free: 8.156 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007676/0.2926, allocations: 155.8 kB / 448.2 MB, free: 8.004 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.851e-05/0.2927, allocations: 24.84 kB / 448.3 MB, free: 7.977 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.142e-05/0.2928, allocations: 15.98 kB / 448.3 MB, free: 7.961 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001103/0.2939, allocations: 1.403 MB / 449.7 MB, free: 6.418 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.567e-06/0.2939, allocations: 4.031 kB / 449.7 MB, free: 6.414 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001992/0.2959, allocations: 1.082 MB / 450.8 MB, free: 5.316 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003833/0.2963, allocations: 260.2 kB / 451 MB, free: 5.043 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001174/0.2964, allocations: 20 kB / 451 MB, free: 5.023 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000614/0.297, allocations: 47.95 kB / 451.1 MB, free: 4.977 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.135e-05/0.2971, allocations: 44.59 kB / 451.1 MB, free: 4.93 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.749e-05/0.2972, allocations: 16 kB / 451.2 MB, free: 4.914 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0007391/0.2979, allocations: 0.5459 MB / 451.7 MB, free: 4.371 MB / 366.1 MB Notification: Performance of sort global known variables: time 2.094e-06/0.2979, allocations: 0 / 451.7 MB, free: 4.371 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0007548/0.2987, allocations: 303.7 kB / 452 MB, free: 4.074 MB / 366.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 4 (heatCapacitor.T,pipe1.T,outerPipe.T,innerPipe.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 (70): * Single equations (assignments): 69 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,2,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.002359/0.3011, allocations: 1.657 MB / 453.6 MB, free: 2.387 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.002116/0.3032, allocations: 1.398 MB / 455 MB, free: 0.8906 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 3.467e-06/0.3032, allocations: 8.062 kB / 455.1 MB, free: 0.8828 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006893/0.3039, allocations: 426.3 kB / 455.5 MB, free: 464 kB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001077/0.305, allocations: 274.8 kB / 455.7 MB, free: 188 kB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01163/0.3166, allocations: 7.837 MB / 463.6 MB, free: 8.156 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006126/0.3173, allocations: 0.9874 MB / 464.6 MB, free: 7.133 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0005475/0.3178, allocations: 131.5 kB / 464.7 MB, free: 7 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004856/0.3183, allocations: 351.3 kB / 465 MB, free: 6.656 MB / 382.1 MB Notification: Performance of SimCode: time 5.01e-07/0.3183, allocations: 0 / 465 MB, free: 6.656 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.09354/0.4119, allocations: 26.28 MB / 491.3 MB, free: 12.82 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 13.65/14.07, allocations: 0 / 491.3 MB, free: 12.82 MB / 414.1 MB (rm -f Modelica_trunk_Modelica.Thermal.FluidHeatFlow.Examples.IndirectCooling.pipe ; mkfifo Modelica_trunk_Modelica.Thermal.FluidHeatFlow.Examples.IndirectCooling.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Thermal.FluidHeatFlow.Examples.IndirectCooling.pipe >> ../files/Modelica_trunk_Modelica.Thermal.FluidHeatFlow.Examples.IndirectCooling.sim & python3 -m fmpy simulate --output-file Modelica_trunk_Modelica.Thermal.FluidHeatFlow.Examples.IndirectCooling_res.csv --start-time 0 --stop-time 1.5 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.001 Modelica_trunk_Modelica_Thermal_FluidHeatFlow_Examples_IndirectCooling.fmu > Modelica_trunk_Modelica.Thermal.FluidHeatFlow.Examples.IndirectCooling.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Thermal.FluidHeatFlow.Examples.IndirectCooling_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Thermal/FluidHeatFlow/Examples/IndirectCooling/IndirectCooling.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Thermal.FluidHeatFlow.Examples.IndirectCooling.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches