Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Thermal.FluidHeatFlow.Examples.TwoMass.conf.json 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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) 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) Running command: "" <> buildModelFMU(Modelica.Thermal.FluidHeatFlow.Examples.TwoMass,fileNamePrefix="Modelica_trunk_Modelica_Thermal_FluidHeatFlow_Examples_TwoMass",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Thermal.FluidHeatFlow.Examples.TwoMass,fileNamePrefix="Modelica_trunk_Modelica_Thermal_FluidHeatFlow_Examples_TwoMass",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 trunk/package.mo): time 0.001112/0.001112, allocations: 195.1 kB / 8.537 MB, free: 1.824 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.191/1.191, allocations: 225.5 MB / 234.4 MB, free: 3.309 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008599/0.0008599, allocations: 88.2 kB / 286.3 MB, free: 5.281 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.09456/0.09544, allocations: 56.9 MB / 343.2 MB, free: 8.59 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1034/0.1988, allocations: 51.47 MB / 394.7 MB, free: 5.07 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2399/0.4388, allocations: 81.66 MB / 476.4 MB, free: 10.89 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002019/0.4391, allocations: 72.45 kB / 476.4 MB, free: 10.87 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: 137 * Number of variables: 137 Notification: Performance of Generate backend data structure: time 0.04066/0.4797, allocations: 17.01 MB / 493.4 MB, free: 13.38 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.41e-05/0.4798, allocations: 11.94 kB / 493.5 MB, free: 13.37 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002578/0.48, allocations: 110.8 kB / 493.6 MB, free: 13.26 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009073/0.481, allocations: 0.5376 MB / 494.1 MB, free: 12.78 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000188/0.4812, allocations: 130.4 kB / 494.2 MB, free: 12.63 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.503e-05/0.4813, allocations: 39.91 kB / 494.3 MB, free: 12.59 MB / 362.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0008411/0.4821, allocations: 475.7 kB / 494.7 MB, free: 12.3 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009876/0.4831, allocations: 0.6995 MB / 495.4 MB, free: 11.67 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.914e-05/0.4831, allocations: 0 / 495.4 MB, free: 11.67 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.553e-05/0.4832, allocations: 4 kB / 495.4 MB, free: 11.66 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.379e-05/0.4832, allocations: 12 kB / 495.4 MB, free: 11.65 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003311/0.4865, allocations: 1.999 MB / 497.4 MB, free: 10.09 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006791/0.4872, allocations: 441 kB / 497.9 MB, free: 9.82 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005651/0.4878, allocations: 352.8 kB / 498.2 MB, free: 9.605 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.027e-05/0.4879, allocations: 12.64 kB / 498.2 MB, free: 9.594 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.913e-05/0.4879, allocations: 46.53 kB / 498.3 MB, free: 9.547 MB / 362.7 MB Notification: Performance of pre-optimization done (n=74): time 1.783e-06/0.4879, allocations: 0 / 498.3 MB, free: 9.547 MB / 362.7 MB Notification: Performance of matching and sorting (n=74): time 0.002107/0.49, allocations: 0.8512 MB / 499.1 MB, free: 8.863 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002933/0.4903, allocations: 0.8191 MB / 499.9 MB, free: 7.852 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005695/0.4909, allocations: 0.4946 MB / 0.4887 GB, free: 7.48 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 5.609e-05/0.491, allocations: 29.7 kB / 0.4887 GB, free: 7.445 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001297/0.4911, allocations: 224.9 kB / 0.489 GB, free: 7.25 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001789/0.4913, allocations: 251.7 kB / 0.4892 GB, free: 7.035 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.383e-05/0.4913, allocations: 5.219 kB / 0.4892 GB, free: 7.031 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001434/0.4915, allocations: 389.6 kB / 0.4896 GB, free: 6.672 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003582/0.4919, allocations: 204.9 kB / 0.4898 GB, free: 6.562 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005319/0.4924, allocations: 467.2 kB / 0.4902 GB, free: 6.129 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004043/0.4928, allocations: 244.1 kB / 0.4904 GB, free: 5.984 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.745e-06/0.4928, allocations: 4 kB / 0.4904 GB, free: 5.98 MB / 362.7 MB Notification: Performance of matching and sorting (n=86) (initialization): time 0.002163/0.495, allocations: 0.9028 MB / 0.4913 GB, free: 5.258 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.443e-05/0.495, allocations: 8 kB / 0.4913 GB, free: 5.25 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.241e-06/0.495, allocations: 4 kB / 0.4913 GB, free: 5.246 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000633/0.4957, allocations: 201.2 kB / 0.4915 GB, free: 5.086 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007055/0.4964, allocations: 157.2 kB / 0.4917 GB, free: 4.938 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006768/0.5032, allocations: 6.07 MB / 0.4976 GB, free: 14.66 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006917/0.5039, allocations: 103.3 kB / 0.4977 GB, free: 14.55 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.493e-05/0.504, allocations: 24.05 kB / 0.4977 GB, free: 14.53 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 ambient1.flowPort.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 (70): * Single equations (assignments): 63 * 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 {3 3,1 3,1 7,1 1} Notification: Performance of prepare postOptimizeDAE: time 0.0002089/0.5042, allocations: 134.3 kB / 0.4979 GB, free: 14.4 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001481/0.5043, allocations: 83.06 kB / 0.4979 GB, free: 14.32 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001605/0.5045, allocations: 79.73 kB / 0.498 GB, free: 14.23 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.135e-06/0.5045, allocations: 8 kB / 0.498 GB, free: 14.22 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.411e-06/0.5045, allocations: 3.906 kB / 0.498 GB, free: 14.22 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.002004/0.5065, allocations: 1.146 MB / 0.4991 GB, free: 12.96 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003297/0.5098, allocations: 1.753 MB / 0.5009 GB, free: 11.15 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.286e-06/0.5098, allocations: 0 / 0.5009 GB, free: 11.15 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007667/0.5106, allocations: 147.8 kB / 0.501 GB, free: 11 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004368/0.5111, allocations: 166.4 kB / 0.5012 GB, free: 10.83 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.92e-05/0.5111, allocations: 8 kB / 0.5012 GB, free: 10.82 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005448/0.5166, allocations: 4.622 MB / 0.5057 GB, free: 5.863 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.1e-06/0.5166, allocations: 8.25 kB / 0.5057 GB, free: 5.855 MB / 378.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0026/0.5192, allocations: 1.245 MB / 0.5069 GB, free: 4.586 MB / 378.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.003987/0.5232, allocations: 2.556 MB / 0.5094 GB, free: 2 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004084/0.5237, allocations: 246 kB / 0.5096 GB, free: 1.742 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001406/0.5238, allocations: 4 kB / 0.5096 GB, free: 1.738 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005762/0.5244, allocations: 55.84 kB / 0.5097 GB, free: 1.684 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001096/0.5245, allocations: 44.59 kB / 0.5097 GB, free: 1.641 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.258e-05/0.5246, allocations: 20.36 kB / 0.5098 GB, free: 1.621 MB / 378.7 MB Notification: Performance of sort global known variables: time 0.0005097/0.5251, allocations: 391.2 kB / 0.5101 GB, free: 1.246 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.001412/0.5265, allocations: 251.7 kB / 0.5104 GB, free: 1 MB / 378.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * 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.0002095/0.5267, allocations: 131 kB / 0.5105 GB, free: 0.8594 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.001861/0.5286, allocations: 1.116 MB / 0.5116 GB, free: 15.69 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 2.935e-06/0.5286, allocations: 0 / 0.5116 GB, free: 15.69 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001091/0.5297, allocations: 0.6717 MB / 0.5122 GB, free: 14.99 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008082/0.5305, allocations: 193.5 kB / 0.5124 GB, free: 14.82 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002575/0.5331, allocations: 1.257 MB / 0.5137 GB, free: 13.53 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007443/0.5339, allocations: 1.048 MB / 0.5147 GB, free: 12.46 MB / 394.7 MB Notification: Performance of SimCode: time 4.11e-07/0.5339, allocations: 0 / 0.5147 GB, free: 12.46 MB / 394.7 MB (rm -f Modelica_trunk_Modelica.Thermal.FluidHeatFlow.Examples.TwoMass.pipe ; mkfifo Modelica_trunk_Modelica.Thermal.FluidHeatFlow.Examples.TwoMass.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Thermal.FluidHeatFlow.Examples.TwoMass.pipe >> ../files/Modelica_trunk_Modelica.Thermal.FluidHeatFlow.Examples.TwoMass.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_Modelica.Thermal.FluidHeatFlow.Examples.TwoMass_res.mat --tempDir=temp_Modelica_trunk_Modelica_Thermal_FluidHeatFlow_Examples_TwoMass_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Thermal_FluidHeatFlow_Examples_TwoMass.fmu > Modelica_trunk_Modelica.Thermal.FluidHeatFlow.Examples.TwoMass.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_trunk_Modelica.Thermal.FluidHeatFlow.Examples.TwoMass_res.mat does not exist to compare? outputFormat=mat