Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Thermal.FluidHeatFlow.Examples.IndirectCooling.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) 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.IndirectCooling,fileNamePrefix="Modelica_4_0_0_Modelica_Thermal_FluidHeatFlow_Examples_IndirectCooling",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Thermal.FluidHeatFlow.Examples.IndirectCooling,fileNamePrefix="Modelica_4_0_0_Modelica_Thermal_FluidHeatFlow_Examples_IndirectCooling",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001431/0.001431, allocations: 106 kB / 17.06 MB, free: 6.098 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001615/0.001615, allocations: 198.9 kB / 18 MB, free: 5.168 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.316/1.316, allocations: 222.9 MB / 241.7 MB, free: 15.08 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001045/0.001045, allocations: 40.02 kB / 350.8 MB, free: 3.723 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2222/0.2233, allocations: 49.45 MB / 400.2 MB, free: 8.543 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Thermal.FluidHeatFlow.Examples.IndirectCooling): time 0.006602/0.2299, allocations: 5.615 MB / 405.9 MB, free: 3.273 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.002652/0.2326, allocations: 1.406 MB / 407.3 MB, free: 1.859 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005594/0.2332, allocations: 15.88 kB / 407.3 MB, free: 1.844 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005495/0.2338, allocations: 198.3 kB / 407.5 MB, free: 1.648 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0009518/0.2347, allocations: 400.7 kB / 407.9 MB, free: 1.254 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005789/0.2353, allocations: 259.6 kB / 408.1 MB, free: 1 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.00155/0.2369, allocations: 1.363 MB / 409.5 MB, free: 15.63 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005448/0.2375, allocations: 407.1 kB / 409.9 MB, free: 15.2 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006241/0.2381, allocations: 0.506 MB / 410.4 MB, free: 14.7 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000739/0.2388, allocations: 0.5874 MB / 411 MB, free: 14.11 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.00021/0.2391, allocations: 116 kB / 411.1 MB, free: 13.99 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002273/0.2393, allocations: 128 kB / 411.2 MB, free: 13.86 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002142/0.2395, allocations: 259 kB / 411.5 MB, free: 13.61 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000668/0.2402, allocations: 0.6067 MB / 412.1 MB, free: 13 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001334/0.2415, allocations: 1.415 MB / 413.5 MB, free: 11.58 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.616e-06/0.2415, allocations: 0 / 413.5 MB, free: 11.58 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.132e-06/0.2416, allocations: 0 / 413.5 MB, free: 11.58 MB / 334.1 MB Notification: Performance of Transformations before backend: time 3.208e-05/0.2416, allocations: 0 / 413.5 MB, free: 11.58 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.002737/0.2443, allocations: 1.512 MB / 415 MB, free: 10 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.753e-05/0.2444, allocations: 8.031 kB / 415 MB, free: 9.992 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002012/0.2446, allocations: 128.6 kB / 415.1 MB, free: 9.855 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002203/0.2448, allocations: 140.2 kB / 415.3 MB, free: 9.719 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009882/0.2458, allocations: 0.6427 MB / 415.9 MB, free: 9.035 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002046/0.246, allocations: 151.6 kB / 416.1 MB, free: 8.871 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001045/0.2461, allocations: 76.38 kB / 416.1 MB, free: 8.797 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001504/0.2477, allocations: 0.9937 MB / 417.1 MB, free: 7.684 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.231e-05/0.2477, allocations: 4 kB / 417.1 MB, free: 7.68 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.76e-05/0.2478, allocations: 32 kB / 417.2 MB, free: 7.648 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.091e-05/0.2478, allocations: 16 kB / 417.2 MB, free: 7.633 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001302/0.2491, allocations: 0.6246 MB / 417.8 MB, free: 7.012 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.003963/0.2531, allocations: 2.668 MB / 420.5 MB, free: 4.184 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002563/0.2557, allocations: 0.8637 MB / 421.3 MB, free: 3.293 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000718/0.2564, allocations: 350.7 kB / 421.7 MB, free: 2.949 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.619e-05/0.2565, allocations: 26.48 kB / 421.7 MB, free: 2.926 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.373e-05/0.2565, allocations: 47.22 kB / 421.7 MB, free: 2.871 MB / 334.1 MB Notification: Performance of pre-optimization done (n=72): time 2.696e-06/0.2565, allocations: 4 kB / 421.8 MB, free: 2.867 MB / 334.1 MB Notification: Performance of matching and sorting (n=72): time 0.002606/0.2591, allocations: 1.401 MB / 423.2 MB, free: 1.352 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0003832/0.2595, allocations: 0.9489 MB / 424.1 MB, free: 180 kB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001012/0.2605, allocations: 0.7825 MB / 424.9 MB, free: 15.38 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 8.136e-05/0.2606, allocations: 53.7 kB / 424.9 MB, free: 15.32 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003264/0.261, allocations: 417 kB / 425.3 MB, free: 14.91 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002156/0.2612, allocations: 273.6 kB / 425.6 MB, free: 14.64 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002558/0.2615, allocations: 154.7 kB / 425.8 MB, free: 14.49 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001252/0.2616, allocations: 337.9 kB / 426.1 MB, free: 14.15 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005758/0.2622, allocations: 257.9 kB / 426.3 MB, free: 13.9 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008468/0.263, allocations: 0.5802 MB / 426.9 MB, free: 13.2 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00121/0.2642, allocations: 0.6678 MB / 427.6 MB, free: 12.5 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.487e-06/0.2643, allocations: 0 / 427.6 MB, free: 12.5 MB / 350.1 MB Notification: Performance of matching and sorting (n=90) (initialization): time 0.001778/0.266, allocations: 0.9592 MB / 428.6 MB, free: 11.49 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.531e-05/0.2661, allocations: 85.05 kB / 428.6 MB, free: 11.39 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.337e-06/0.2661, allocations: 7.938 kB / 428.6 MB, free: 11.38 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003254/0.2665, allocations: 124.2 kB / 428.8 MB, free: 11.25 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007104/0.2672, allocations: 155.8 kB / 428.9 MB, free: 11.09 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005713/0.2729, allocations: 7.313 MB / 436.2 MB, free: 3.082 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009569/0.2739, allocations: 115.4 kB / 436.3 MB, free: 2.969 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.797e-05/0.274, allocations: 27.98 kB / 436.4 MB, free: 2.941 MB / 350.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.0004114/0.2744, allocations: 233.7 kB / 436.6 MB, free: 2.703 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002049/0.2746, allocations: 107.4 kB / 436.7 MB, free: 2.598 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000189/0.2748, allocations: 100.9 kB / 436.8 MB, free: 2.488 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.05e-06/0.2748, allocations: 8 kB / 436.8 MB, free: 2.48 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.169e-05/0.2749, allocations: 4 kB / 436.8 MB, free: 2.477 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001403/0.2763, allocations: 0.9699 MB / 437.8 MB, free: 1.398 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002849/0.2791, allocations: 1.745 MB / 439.5 MB, free: 15.58 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.927e-06/0.2792, allocations: 0 / 439.5 MB, free: 15.58 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007837/0.2799, allocations: 163.8 kB / 439.7 MB, free: 15.42 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001008/0.2801, allocations: 32.84 kB / 439.7 MB, free: 15.39 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.845e-05/0.2801, allocations: 12 kB / 439.7 MB, free: 15.38 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009568/0.2811, allocations: 1.41 MB / 441.1 MB, free: 13.82 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.343e-06/0.2811, allocations: 4.031 kB / 441.1 MB, free: 13.82 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002029/0.2831, allocations: 1.078 MB / 442.2 MB, free: 12.73 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004751/0.2836, allocations: 272.2 kB / 442.5 MB, free: 12.44 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001673/0.2838, allocations: 16 kB / 442.5 MB, free: 12.43 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000707/0.2845, allocations: 43.83 kB / 442.5 MB, free: 12.38 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001055/0.2846, allocations: 44.59 kB / 442.6 MB, free: 12.34 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.818e-05/0.2847, allocations: 16 kB / 442.6 MB, free: 12.32 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0007368/0.2854, allocations: 0.5537 MB / 443.2 MB, free: 11.77 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.2854, allocations: 0 / 443.2 MB, free: 11.77 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0007957/0.2862, allocations: 291.8 kB / 443.4 MB, free: 11.48 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.002376/0.2886, allocations: 1.656 MB / 445.1 MB, free: 9.797 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.002113/0.2907, allocations: 1.402 MB / 446.5 MB, free: 8.297 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 4.117e-06/0.2908, allocations: 0 / 446.5 MB, free: 8.297 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007163/0.2915, allocations: 430.5 kB / 446.9 MB, free: 7.863 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001254/0.2928, allocations: 282.8 kB / 447.2 MB, free: 7.586 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01185/0.3046, allocations: 7.849 MB / 455 MB, free: 15.55 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005678/0.3052, allocations: 0.9797 MB / 456 MB, free: 14.54 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0005607/0.3058, allocations: 131.5 kB / 456.2 MB, free: 14.41 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005011/0.3063, allocations: 359.3 kB / 456.5 MB, free: 14.05 MB / 382.1 MB Notification: Performance of SimCode: time 1.843e-06/0.3063, allocations: 0 / 456.5 MB, free: 14.05 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05769/0.364, allocations: 26.27 MB / 482.8 MB, free: 4.281 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 13.27/13.64, allocations: 7.938 kB / 482.8 MB, free: 4.273 MB / 398.1 MB (rm -f Modelica_4.0.0_Modelica.Thermal.FluidHeatFlow.Examples.IndirectCooling.pipe ; mkfifo Modelica_4.0.0_Modelica.Thermal.FluidHeatFlow.Examples.IndirectCooling.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Thermal.FluidHeatFlow.Examples.IndirectCooling.pipe >> ../files/Modelica_4.0.0_Modelica.Thermal.FluidHeatFlow.Examples.IndirectCooling.sim & python3 -m fmpy simulate --output-file Modelica_4.0.0_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_4_0_0_Modelica_Thermal_FluidHeatFlow_Examples_IndirectCooling.fmu > Modelica_4.0.0_Modelica.Thermal.FluidHeatFlow.Examples.IndirectCooling.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Thermal.FluidHeatFlow.Examples.IndirectCooling_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Thermal/FluidHeatFlow/Examples/IndirectCooling/IndirectCooling.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Thermal.FluidHeatFlow.Examples.IndirectCooling.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches