Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Thermal.FluidHeatFlow.Examples.SimpleCooling.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.SimpleCooling,fileNamePrefix="Modelica_trunk_Modelica_Thermal_FluidHeatFlow_Examples_SimpleCooling",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Thermal.FluidHeatFlow.Examples.SimpleCooling,fileNamePrefix="Modelica_trunk_Modelica_Thermal_FluidHeatFlow_Examples_SimpleCooling",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001477/0.001477, allocations: 121.1 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.001866/0.001866, allocations: 203.8 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.326/1.326, allocations: 227.4 MB / 246.9 MB, free: 10.43 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001171/0.001171, allocations: 63.89 kB / 358.2 MB, free: 13.41 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2297/0.2309, allocations: 50.54 MB / 408.7 MB, free: 1.52 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Thermal.FluidHeatFlow.Examples.SimpleCooling): time 0.005237/0.2362, allocations: 3.514 MB / 412.3 MB, free: 14 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.00232/0.2385, allocations: 0.9813 MB / 413.2 MB, free: 13.01 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000411/0.239, allocations: 4 kB / 413.2 MB, free: 13 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004875/0.2395, allocations: 111 kB / 413.3 MB, free: 12.89 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0007557/0.2403, allocations: 186.4 kB / 413.5 MB, free: 12.71 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004434/0.2407, allocations: 131.8 kB / 413.7 MB, free: 12.58 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.00106/0.2418, allocations: 0.6263 MB / 414.3 MB, free: 11.95 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004062/0.2422, allocations: 194.8 kB / 414.5 MB, free: 11.75 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004193/0.2427, allocations: 243.1 kB / 414.7 MB, free: 11.51 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005067/0.2432, allocations: 274.8 kB / 415 MB, free: 11.24 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001293/0.2433, allocations: 55.98 kB / 415 MB, free: 11.19 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001405/0.2435, allocations: 52 kB / 415.1 MB, free: 11.14 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001342/0.2436, allocations: 115.6 kB / 415.2 MB, free: 11.02 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000458/0.2441, allocations: 294.6 kB / 415.5 MB, free: 10.73 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0008974/0.245, allocations: 0.645 MB / 416.1 MB, free: 10.09 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.342e-06/0.245, allocations: 4 kB / 416.1 MB, free: 10.09 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.363e-06/0.245, allocations: 4 kB / 416.1 MB, free: 10.08 MB / 334.1 MB Notification: Performance of Transformations before backend: time 2.162e-05/0.2451, allocations: 3.938 kB / 416.1 MB, free: 10.08 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: 80 * Number of variables: 80 Notification: Performance of Generate backend data structure: time 0.001934/0.247, allocations: 0.8503 MB / 417 MB, free: 9.172 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.015e-05/0.2471, allocations: 19.97 kB / 417 MB, free: 9.152 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.00016/0.2472, allocations: 79.67 kB / 417.1 MB, free: 9.066 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001754/0.2474, allocations: 60.61 kB / 417.2 MB, free: 9.008 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008924/0.2483, allocations: 403.3 kB / 417.5 MB, free: 8.574 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001315/0.2485, allocations: 55.25 kB / 417.6 MB, free: 8.516 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.097e-05/0.2486, allocations: 36.38 kB / 417.6 MB, free: 8.48 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009978/0.2496, allocations: 474 kB / 418.1 MB, free: 7.961 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.886e-05/0.2496, allocations: 0 / 418.1 MB, free: 7.961 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.923e-05/0.2497, allocations: 20 kB / 418.1 MB, free: 7.941 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.288e-05/0.2497, allocations: 8 kB / 418.1 MB, free: 7.934 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008237/0.2505, allocations: 279.8 kB / 418.4 MB, free: 7.66 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.002977/0.2535, allocations: 1.301 MB / 419.7 MB, free: 6.266 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001611/0.2551, allocations: 448.4 kB / 420.1 MB, free: 5.797 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003612/0.2555, allocations: 136.8 kB / 420.3 MB, free: 5.66 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.417e-05/0.2556, allocations: 15.91 kB / 420.3 MB, free: 5.645 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.647e-05/0.2556, allocations: 38.56 kB / 420.3 MB, free: 5.598 MB / 334.1 MB Notification: Performance of pre-optimization done (n=32): time 3.176e-06/0.2556, allocations: 0 / 420.3 MB, free: 5.598 MB / 334.1 MB Notification: Performance of matching and sorting (n=32): time 0.00167/0.2573, allocations: 0.6104 MB / 420.9 MB, free: 4.938 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0003621/0.2577, allocations: 445 kB / 421.4 MB, free: 4.398 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007507/0.2584, allocations: 457.8 kB / 421.8 MB, free: 3.941 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 4.862e-05/0.2585, allocations: 33.7 kB / 421.8 MB, free: 3.902 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002228/0.2587, allocations: 232.7 kB / 422.1 MB, free: 3.672 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001309/0.2589, allocations: 126.9 kB / 422.2 MB, free: 3.547 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001855/0.2591, allocations: 70.03 kB / 422.3 MB, free: 3.469 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0002/0.2593, allocations: 358.8 kB / 422.6 MB, free: 3.109 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003502/0.2596, allocations: 104.6 kB / 422.7 MB, free: 3.008 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005027/0.2602, allocations: 248.1 kB / 423 MB, free: 2.715 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007428/0.2609, allocations: 285.2 kB / 423.2 MB, free: 2.426 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.017e-06/0.2609, allocations: 0 / 423.2 MB, free: 2.426 MB / 334.1 MB Notification: Performance of matching and sorting (n=40) (initialization): time 0.0009922/0.2619, allocations: 424.6 kB / 423.7 MB, free: 1.992 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.898e-05/0.262, allocations: 33.7 kB / 423.7 MB, free: 1.953 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.253e-06/0.262, allocations: 0 / 423.7 MB, free: 1.953 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002072/0.2622, allocations: 57.61 kB / 423.7 MB, free: 1.891 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004288/0.2627, allocations: 63.91 kB / 423.8 MB, free: 1.828 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003327/0.266, allocations: 2.965 MB / 426.8 MB, free: 14.58 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005309/0.2666, allocations: 47.77 kB / 426.8 MB, free: 14.54 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.042e-05/0.2666, allocations: 12 kB / 426.8 MB, free: 14.52 MB / 350.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 2 * 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 (36): * Single equations (assignments): 33 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * 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): 2 systems {(3,1), (1,1)} Notification: Performance of prepare postOptimizeDAE: time 0.0002768/0.2669, allocations: 169.7 kB / 427 MB, free: 14.35 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001476/0.2671, allocations: 55.61 kB / 427.1 MB, free: 14.3 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001278/0.2672, allocations: 60.61 kB / 427.1 MB, free: 14.24 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.21e-06/0.2672, allocations: 4 kB / 427.1 MB, free: 14.23 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.878e-06/0.2672, allocations: 0 / 427.1 MB, free: 14.23 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.000948/0.2682, allocations: 0.657 MB / 427.8 MB, free: 13.47 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001863/0.2701, allocations: 0.9048 MB / 428.7 MB, free: 12.51 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.317e-06/0.2701, allocations: 0 / 428.7 MB, free: 12.51 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004719/0.2705, allocations: 67.89 kB / 428.7 MB, free: 12.44 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.583e-06/0.2706, allocations: 7.938 kB / 428.8 MB, free: 12.43 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.928e-05/0.2706, allocations: 4 kB / 428.8 MB, free: 12.43 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.854e-06/0.2706, allocations: 8 kB / 428.8 MB, free: 12.42 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.393e-06/0.2706, allocations: 0 / 428.8 MB, free: 12.42 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001178/0.2718, allocations: 0.5164 MB / 429.3 MB, free: 11.89 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002715/0.2721, allocations: 164.7 kB / 429.4 MB, free: 11.71 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.594e-05/0.2722, allocations: 8 kB / 429.4 MB, free: 11.7 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004762/0.2727, allocations: 20.05 kB / 429.5 MB, free: 11.68 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.738e-05/0.2728, allocations: 19.97 kB / 429.5 MB, free: 11.66 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.544e-05/0.2728, allocations: 8 kB / 429.5 MB, free: 11.66 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0005712/0.2734, allocations: 319.1 kB / 429.8 MB, free: 11.34 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.81e-07/0.2734, allocations: 0 / 429.8 MB, free: 11.34 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0006999/0.2741, allocations: 131.9 kB / 429.9 MB, free: 11.21 MB / 350.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 2 (pipe.T,heatCapacitor.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 (32): * Single equations (assignments): 32 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001449/0.2756, allocations: 1.085 MB / 431 MB, free: 10.11 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.001249/0.2769, allocations: 0.5556 MB / 431.6 MB, free: 9.512 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 7.183e-06/0.2769, allocations: 4 kB / 431.6 MB, free: 9.508 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003346/0.2772, allocations: 128 kB / 431.7 MB, free: 9.383 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009244/0.2782, allocations: 132.2 kB / 431.8 MB, free: 9.25 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00664/0.2848, allocations: 4.269 MB / 436.1 MB, free: 4.871 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003703/0.2852, allocations: 0.8198 MB / 436.9 MB, free: 4.023 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0002474/0.2855, allocations: 64.33 kB / 437 MB, free: 3.961 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002238/0.2857, allocations: 159.4 kB / 437.1 MB, free: 3.805 MB / 350.1 MB Notification: Performance of SimCode: time 4.5e-07/0.2857, allocations: 3.938 kB / 437.1 MB, free: 3.801 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0365/0.3222, allocations: 12.73 MB / 449.9 MB, free: 7.355 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.4/11.73, allocations: 19.78 kB / 449.9 MB, free: 7.344 MB / 366.1 MB (rm -f Modelica_trunk_Modelica.Thermal.FluidHeatFlow.Examples.SimpleCooling.pipe ; mkfifo Modelica_trunk_Modelica.Thermal.FluidHeatFlow.Examples.SimpleCooling.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Thermal.FluidHeatFlow.Examples.SimpleCooling.pipe >> ../files/Modelica_trunk_Modelica.Thermal.FluidHeatFlow.Examples.SimpleCooling.sim & python3 -m fmpy simulate --output-file Modelica_trunk_Modelica.Thermal.FluidHeatFlow.Examples.SimpleCooling_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_SimpleCooling.fmu > Modelica_trunk_Modelica.Thermal.FluidHeatFlow.Examples.SimpleCooling.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Thermal.FluidHeatFlow.Examples.SimpleCooling_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Thermal/FluidHeatFlow/Examples/SimpleCooling/SimpleCooling.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Thermal.FluidHeatFlow.Examples.SimpleCooling.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches