Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0-beta.om_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 4.1.0-beta.om/package.mo", uses=false) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/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_4_1_0-beta_om_Modelica_Thermal_FluidHeatFlow_Examples_IndirectCooling",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Thermal.FluidHeatFlow.Examples.IndirectCooling,fileNamePrefix="Modelica_4_1_0-beta_om_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.001563/0.001563, allocations: 117.9 kB / 17.84 MB, free: 5.102 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.00171/0.00171, allocations: 199.5 kB / 18.79 MB, free: 4.156 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo): time 1.482/1.482, allocations: 230.4 MB / 250 MB, free: 9.055 MB / 206.1 MB Warning: Requested package Modelica of version trunk, but this package was already loaded with version 4.1.0. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package Complex of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package ModelicaServices of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Notification: Performance of FrontEnd - loaded program: time 0.001855/0.001855, allocations: 71.83 kB / 366.9 MB, free: 7.535 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2948/0.2967, allocations: 53.3 MB / 420.2 MB, free: 8.258 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Thermal.FluidHeatFlow.Examples.IndirectCooling): time 0.006937/0.3036, allocations: 5.65 MB / 425.8 MB, free: 2.594 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.003033/0.3067, allocations: 1.456 MB / 427.3 MB, free: 1.129 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000512/0.3072, allocations: 15.94 kB / 427.3 MB, free: 1.113 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00055/0.3077, allocations: 198.3 kB / 427.5 MB, free: 0.918 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0008818/0.3086, allocations: 396.7 kB / 427.9 MB, free: 0.5273 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005889/0.3092, allocations: 259.6 kB / 428.1 MB, free: 280 kB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.001612/0.3108, allocations: 1.362 MB / 429.5 MB, free: 14.91 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004797/0.3113, allocations: 263.3 kB / 429.7 MB, free: 14.62 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006297/0.3119, allocations: 0.5177 MB / 430.3 MB, free: 14.1 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006937/0.3126, allocations: 0.5835 MB / 430.8 MB, free: 13.52 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001713/0.3128, allocations: 123.9 kB / 431 MB, free: 13.39 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002036/0.313, allocations: 120 kB / 431.1 MB, free: 13.28 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002327/0.3132, allocations: 259.1 kB / 431.3 MB, free: 13.02 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0006071/0.3138, allocations: 0.6105 MB / 431.9 MB, free: 12.41 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001642/0.3155, allocations: 1.4 MB / 433.3 MB, free: 11.01 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.522e-06/0.3155, allocations: 0 / 433.3 MB, free: 11.01 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.663e-06/0.3155, allocations: 0 / 433.3 MB, free: 11.01 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.95e-05/0.3155, allocations: 0 / 433.3 MB, free: 11.01 MB / 350.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.002608/0.3181, allocations: 1.522 MB / 434.9 MB, free: 9.418 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.665e-05/0.3182, allocations: 12.03 kB / 434.9 MB, free: 9.406 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001985/0.3184, allocations: 136.6 kB / 435 MB, free: 9.262 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002046/0.3186, allocations: 136.1 kB / 435.1 MB, free: 9.129 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001067/0.3196, allocations: 0.6427 MB / 435.8 MB, free: 8.445 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000223/0.3198, allocations: 151.7 kB / 435.9 MB, free: 8.281 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001189/0.32, allocations: 72.36 kB / 436 MB, free: 8.211 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001602/0.3216, allocations: 0.9939 MB / 437 MB, free: 7.098 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.067e-05/0.3216, allocations: 0 / 437 MB, free: 7.098 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.322e-05/0.3217, allocations: 32 kB / 437 MB, free: 7.066 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.161e-05/0.3217, allocations: 20 kB / 437 MB, free: 7.047 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001333/0.323, allocations: 0.6285 MB / 437.7 MB, free: 6.418 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.004367/0.3274, allocations: 2.649 MB / 440.3 MB, free: 3.609 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00248/0.3299, allocations: 0.8267 MB / 441.2 MB, free: 2.758 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007186/0.3306, allocations: 322.7 kB / 441.5 MB, free: 2.441 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.199e-05/0.3306, allocations: 28.62 kB / 441.5 MB, free: 2.414 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.537e-05/0.3307, allocations: 51.16 kB / 441.5 MB, free: 2.355 MB / 350.1 MB Notification: Performance of pre-optimization done (n=72): time 2.545e-06/0.3307, allocations: 0 / 441.5 MB, free: 2.355 MB / 350.1 MB Notification: Performance of matching and sorting (n=72): time 0.002843/0.3335, allocations: 1.393 MB / 442.9 MB, free: 0.8477 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0006313/0.3342, allocations: 0.9566 MB / 443.9 MB, free: 15.66 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001195/0.3354, allocations: 0.7903 MB / 444.7 MB, free: 14.87 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 9.952e-05/0.3355, allocations: 45.7 kB / 444.7 MB, free: 14.82 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003748/0.3358, allocations: 417 kB / 445.1 MB, free: 14.41 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002502/0.3361, allocations: 265.7 kB / 445.4 MB, free: 14.14 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002648/0.3364, allocations: 158.9 kB / 445.5 MB, free: 13.98 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001654/0.3365, allocations: 337.9 kB / 445.9 MB, free: 13.65 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005735/0.3371, allocations: 253.9 kB / 446.1 MB, free: 13.4 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008963/0.338, allocations: 0.5918 MB / 446.7 MB, free: 12.68 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00121/0.3392, allocations: 0.66 MB / 447.4 MB, free: 11.99 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.677e-06/0.3392, allocations: 0 / 447.4 MB, free: 11.99 MB / 366.1 MB Notification: Performance of matching and sorting (n=90) (initialization): time 0.001883/0.3411, allocations: 0.9474 MB / 448.3 MB, free: 11 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 9.135e-05/0.3412, allocations: 97.03 kB / 448.4 MB, free: 10.89 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.688e-06/0.3412, allocations: 0 / 448.4 MB, free: 10.89 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003621/0.3416, allocations: 124.2 kB / 448.5 MB, free: 10.75 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006835/0.3422, allocations: 155.7 kB / 448.7 MB, free: 10.6 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006435/0.3487, allocations: 7.329 MB / 456 MB, free: 2.57 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001106/0.3498, allocations: 107.7 kB / 456.1 MB, free: 2.465 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.373e-05/0.3498, allocations: 24 kB / 456.2 MB, free: 2.441 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.0004084/0.3503, allocations: 229.7 kB / 456.4 MB, free: 2.207 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001702/0.3504, allocations: 119.4 kB / 456.5 MB, free: 2.09 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002021/0.3506, allocations: 104.9 kB / 456.6 MB, free: 1.977 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.302e-06/0.3506, allocations: 8 kB / 456.6 MB, free: 1.969 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.905e-06/0.3506, allocations: 0 / 456.6 MB, free: 1.969 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001416/0.3521, allocations: 0.966 MB / 457.6 MB, free: 0.8984 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002902/0.355, allocations: 1.752 MB / 459.3 MB, free: 15.07 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.037e-06/0.355, allocations: 0 / 459.3 MB, free: 15.07 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007463/0.3557, allocations: 159.8 kB / 459.5 MB, free: 14.91 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.595e-05/0.3558, allocations: 24.78 kB / 459.5 MB, free: 14.88 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.865e-05/0.3559, allocations: 19.98 kB / 459.5 MB, free: 14.86 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001094/0.3569, allocations: 1.399 MB / 460.9 MB, free: 13.32 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.326e-06/0.3569, allocations: 3.938 kB / 460.9 MB, free: 13.32 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002049/0.359, allocations: 1.082 MB / 462 MB, free: 12.22 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004325/0.3594, allocations: 264.2 kB / 462.3 MB, free: 11.94 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001222/0.3596, allocations: 20 kB / 462.3 MB, free: 11.92 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006368/0.3602, allocations: 35.97 kB / 462.3 MB, free: 11.89 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001044/0.3603, allocations: 52.53 kB / 462.4 MB, free: 11.83 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.352e-05/0.3603, allocations: 19.98 kB / 462.4 MB, free: 11.81 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0007581/0.3611, allocations: 0.5498 MB / 462.9 MB, free: 11.27 MB / 382.1 MB Notification: Performance of sort global known variables: time 8e-08/0.3611, allocations: 3.938 kB / 462.9 MB, free: 11.26 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0008109/0.3619, allocations: 291.7 kB / 463.2 MB, free: 10.98 MB / 382.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.002379/0.3643, allocations: 1.664 MB / 464.9 MB, free: 9.289 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.002231/0.3665, allocations: 1.354 MB / 466.2 MB, free: 7.832 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 8.115e-06/0.3665, allocations: 8.25 kB / 466.3 MB, free: 7.824 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006869/0.3672, allocations: 394.3 kB / 466.6 MB, free: 7.43 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001152/0.3684, allocations: 283 kB / 466.9 MB, free: 7.152 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01199/0.3804, allocations: 7.829 MB / 474.7 MB, free: 15.13 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006561/0.381, allocations: 0.9835 MB / 475.7 MB, free: 14.11 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0005608/0.3816, allocations: 131.5 kB / 475.9 MB, free: 13.98 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004983/0.3821, allocations: 359.3 kB / 476.2 MB, free: 13.63 MB / 398.1 MB Notification: Performance of SimCode: time 1.523e-06/0.3821, allocations: 0 / 476.2 MB, free: 13.63 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07012/0.4522, allocations: 26.55 MB / 0.491 GB, free: 3.594 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 13.98/14.44, allocations: 18.38 kB / 0.491 GB, free: 3.582 MB / 414.1 MB (rm -f Modelica_4.1.0-beta.om_Modelica.Thermal.FluidHeatFlow.Examples.IndirectCooling.pipe ; mkfifo Modelica_4.1.0-beta.om_Modelica.Thermal.FluidHeatFlow.Examples.IndirectCooling.pipe ; head -c 1048576 < Modelica_4.1.0-beta.om_Modelica.Thermal.FluidHeatFlow.Examples.IndirectCooling.pipe >> ../files/Modelica_4.1.0-beta.om_Modelica.Thermal.FluidHeatFlow.Examples.IndirectCooling.sim & python3 -m fmpy simulate --output-file Modelica_4.1.0-beta.om_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_1_0-beta_om_Modelica_Thermal_FluidHeatFlow_Examples_IndirectCooling.fmu > Modelica_4.1.0-beta.om_Modelica.Thermal.FluidHeatFlow.Examples.IndirectCooling.pipe 2>&1)