Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Thermal.FluidHeatFlow.Examples.ParallelCooling.conf.json 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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) 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) Running command: "" <> buildModelFMU(Modelica.Thermal.FluidHeatFlow.Examples.ParallelCooling,fileNamePrefix="Modelica_4_0_0_Modelica_Thermal_FluidHeatFlow_Examples_ParallelCooling",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Thermal.FluidHeatFlow.Examples.ParallelCooling,fileNamePrefix="Modelica_4_0_0_Modelica_Thermal_FluidHeatFlow_Examples_ParallelCooling",fmuType="me",version="2.0",platforms={"static"}) [:1:1-1:32:writable] Error: Class GC_set_max_heap_size not found in scope (looking for a function or record). Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0009099/0.0009099, allocations: 182.3 kB / 8.131 MB, free: 2.219 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.074/1.074, allocations: 221.4 MB / 229.9 MB, free: 3.125 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008098/0.0008099, allocations: 97.33 kB / 280.8 MB, free: 1.25 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.08897/0.08981, allocations: 55.81 MB / 336.6 MB, free: 9.43 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1815/0.2713, allocations: 50.39 MB / 387 MB, free: 38.02 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.07818/0.3495, allocations: 80.24 MB / 467.2 MB, free: 6.539 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001789/0.3497, allocations: 67.97 kB / 467.3 MB, free: 6.473 MB / 346.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 144 * Number of variables: 144 Notification: Performance of Generate backend data structure: time 0.04079/0.3905, allocations: 16.65 MB / 484 MB, free: 5.695 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.834e-05/0.3906, allocations: 15.98 kB / 484 MB, free: 5.68 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002676/0.3909, allocations: 102.9 kB / 484.1 MB, free: 5.578 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009557/0.3918, allocations: 0.5233 MB / 484.6 MB, free: 5.016 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001917/0.392, allocations: 130.4 kB / 484.7 MB, free: 4.871 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.967e-05/0.3921, allocations: 43.84 kB / 484.8 MB, free: 4.828 MB / 362.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0008722/0.393, allocations: 478.5 kB / 485.2 MB, free: 4.359 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009719/0.394, allocations: 0.7017 MB / 485.9 MB, free: 3.555 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.037e-05/0.394, allocations: 0 / 485.9 MB, free: 3.555 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.767e-05/0.3941, allocations: 8 kB / 485.9 MB, free: 3.547 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.334e-05/0.3941, allocations: 15.94 kB / 486 MB, free: 3.531 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00328/0.3974, allocations: 1.988 MB / 488 MB, free: 1.457 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001359/0.3988, allocations: 0.8387 MB / 488.8 MB, free: 0.5547 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004718/0.3993, allocations: 323.7 kB / 489.1 MB, free: 248 kB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 7e-05/0.3993, allocations: 20.64 kB / 489.1 MB, free: 224 kB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.316e-05/0.3994, allocations: 43.22 kB / 489.2 MB, free: 172 kB / 362.7 MB Notification: Performance of pre-optimization done (n=74): time 2.004e-06/0.3994, allocations: 0 / 489.2 MB, free: 172 kB / 362.7 MB Notification: Performance of matching and sorting (n=74): time 0.002025/0.4014, allocations: 0.838 MB / 490 MB, free: 15.31 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0003129/0.4017, allocations: 0.825 MB / 490.8 MB, free: 14.29 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005474/0.4023, allocations: 474.4 kB / 491.3 MB, free: 13.82 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 6.778e-05/0.4024, allocations: 33.64 kB / 491.3 MB, free: 13.78 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001527/0.4025, allocations: 240.8 kB / 491.6 MB, free: 13.54 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000192/0.4027, allocations: 240.3 kB / 491.8 MB, free: 13.3 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.368e-05/0.4028, allocations: 4 kB / 491.8 MB, free: 13.3 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001649/0.4029, allocations: 382.8 kB / 492.2 MB, free: 12.92 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003424/0.4033, allocations: 197.5 kB / 492.4 MB, free: 12.73 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005265/0.4038, allocations: 472.1 kB / 492.8 MB, free: 12.16 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004074/0.4042, allocations: 241.3 kB / 493.1 MB, free: 11.93 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.575e-06/0.4043, allocations: 3.938 kB / 493.1 MB, free: 11.93 MB / 378.7 MB Notification: Performance of matching and sorting (n=87) (initialization): time 0.002023/0.4063, allocations: 0.8993 MB / 494 MB, free: 11 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.384e-05/0.4063, allocations: 4 kB / 494 MB, free: 11 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.282e-06/0.4063, allocations: 0 / 494 MB, free: 11 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006406/0.407, allocations: 215.2 kB / 494.2 MB, free: 10.78 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005926/0.4076, allocations: 135.8 kB / 494.3 MB, free: 10.64 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006183/0.4138, allocations: 5.981 MB / 0.4886 GB, free: 4.195 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006391/0.4144, allocations: 83.55 kB / 0.4887 GB, free: 4.113 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.568e-05/0.4145, allocations: 23.97 kB / 0.4887 GB, free: 4.09 MB / 378.7 MB Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: ambient2.flowPort.h:VARIABLE(flow=false unit = "J/kg" ) type: Real Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: pipe1.flowPort_b.h:VARIABLE(flow=false unit = "J/kg" ) type: Real Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: pipe1.flowPort_a.h:VARIABLE(flow=false unit = "J/kg" ) type: Real 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 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (71): * Single equations (assignments): 64 * Array equations: 0 * Algorithm blocks: 3 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 4 {1 5,1 3,1 7,1 1} Notification: Performance of prepare postOptimizeDAE: time 0.0002235/0.4147, allocations: 131.5 kB / 0.4888 GB, free: 3.957 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001419/0.4149, allocations: 83.06 kB / 0.4889 GB, free: 3.875 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001703/0.415, allocations: 87.45 kB / 0.489 GB, free: 3.785 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.651e-06/0.4151, allocations: 4 kB / 0.489 GB, free: 3.781 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.909e-06/0.4151, allocations: 0 / 0.489 GB, free: 3.781 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001888/0.417, allocations: 1.126 MB / 0.4901 GB, free: 2.543 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003202/0.4202, allocations: 1.731 MB / 0.4918 GB, free: 0.75 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.848e-06/0.4202, allocations: 4 kB / 0.4918 GB, free: 0.7461 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006594/0.4209, allocations: 135.8 kB / 0.4919 GB, free: 0.6133 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004322/0.4213, allocations: 170.5 kB / 0.4921 GB, free: 448 kB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.667e-05/0.4214, allocations: 4 kB / 0.4921 GB, free: 444 kB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.09981/0.5212, allocations: 4.634 MB / 0.4966 GB, free: 129.4 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.98e-06/0.5212, allocations: 8.781 kB / 0.4966 GB, free: 129.4 MB / 378.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.002068/0.5233, allocations: 1.245 MB / 0.4978 GB, free: 129.2 MB / 378.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.002995/0.5263, allocations: 2.521 MB / 0.5003 GB, free: 128.6 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002599/0.5266, allocations: 244.6 kB / 0.5005 GB, free: 128.4 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001102/0.5267, allocations: 3.844 kB / 0.5005 GB, free: 128.4 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004447/0.5271, allocations: 33.89 kB / 0.5005 GB, free: 128.4 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.359e-05/0.5272, allocations: 43.98 kB / 0.5006 GB, free: 128.4 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.671e-05/0.5273, allocations: 20.28 kB / 0.5006 GB, free: 128.4 MB / 378.7 MB Notification: Performance of sort global known variables: time 0.0003281/0.5276, allocations: 369 kB / 0.5009 GB, free: 128.3 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.001188/0.5288, allocations: 259.9 kB / 0.5012 GB, free: 128.3 MB / 378.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 5 (pipe1.T,pipe2.T,pipe3.T,heatCapacitor1.T,heatCapacitor2.T) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (62): * Single equations (assignments): 59 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 3 {1 3,1 3,1 6} Notification: Performance of Backend phase and start with SimCode phase: time 0.0001784/0.529, allocations: 123.6 kB / 0.5013 GB, free: 128.2 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.001255/0.5303, allocations: 1.047 MB / 0.5023 GB, free: 127.7 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 3.767e-06/0.5303, allocations: 3.125 kB / 0.5023 GB, free: 127.7 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0008628/0.5311, allocations: 0.6611 MB / 0.503 GB, free: 127.4 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006609/0.5318, allocations: 176 kB / 0.5032 GB, free: 127.4 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002068/0.5339, allocations: 1.253 MB / 0.5044 GB, free: 127.1 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000467/0.5344, allocations: 1.041 MB / 0.5054 GB, free: 126.4 MB / 378.7 MB Notification: Performance of SimCode: time 8.02e-07/0.5344, allocations: 0 / 0.5054 GB, free: 126.4 MB / 378.7 MB (rm -f Modelica_4.0.0_Modelica.Thermal.FluidHeatFlow.Examples.ParallelCooling.pipe ; mkfifo Modelica_4.0.0_Modelica.Thermal.FluidHeatFlow.Examples.ParallelCooling.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Thermal.FluidHeatFlow.Examples.ParallelCooling.pipe >> ../files/Modelica_4.0.0_Modelica.Thermal.FluidHeatFlow.Examples.ParallelCooling.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Thermal.FluidHeatFlow.Examples.ParallelCooling_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Thermal_FluidHeatFlow_Examples_ParallelCooling_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Thermal_FluidHeatFlow_Examples_ParallelCooling.fmu > Modelica_4.0.0_Modelica.Thermal.FluidHeatFlow.Examples.ParallelCooling.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_4.0.0_Modelica.Thermal.FluidHeatFlow.Examples.ParallelCooling_res.mat does not exist to compare? outputFormat=mat