Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Fluid.Examples.TraceSubstances.RoomCO2WithControls.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.Fluid.Examples.TraceSubstances.RoomCO2WithControls,fileNamePrefix="Modelica_trunk_Modelica_Fluid_Examples_TraceSubstances_RoomCO2WithControls",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Fluid.Examples.TraceSubstances.RoomCO2WithControls,fileNamePrefix="Modelica_trunk_Modelica_Fluid_Examples_TraceSubstances_RoomCO2WithControls",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.0009928/0.0009929, allocations: 202.7 kB / 8.54 MB, free: 1.801 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.103/1.103, allocations: 225.5 MB / 234.4 MB, free: 3.332 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008455/0.0008455, allocations: 92.33 kB / 286.3 MB, free: 5.273 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.09114/0.09201, allocations: 56.9 MB / 343.2 MB, free: 8.625 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08048/0.1725, allocations: 51.48 MB / 394.7 MB, free: 5.098 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 5.052/5.224, allocations: 3.567 GB / 3.952 GB, free: 126.1 MB / 442.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001964/5.225, allocations: 83.94 kB / 3.952 GB, free: 126.1 MB / 442.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 829 * Number of variables: 829 Notification: Performance of Generate backend data structure: time 2.493/7.717, allocations: 0.8804 GB / 4.833 GB, free: 6.465 MB / 0.4948 GB Notification: Performance of prepare preOptimizeDAE: time 3.559e-05/7.718, allocations: 12 kB / 4.833 GB, free: 6.453 MB / 0.4948 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002215/7.72, allocations: 411.6 kB / 4.833 GB, free: 6.047 MB / 0.4948 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006164/7.726, allocations: 2.426 MB / 4.835 GB, free: 3.562 MB / 0.4948 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002476/7.726, allocations: 260.6 kB / 4.836 GB, free: 3.281 MB / 0.4948 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0008374/7.727, allocations: 179.9 kB / 4.836 GB, free: 3.105 MB / 0.4948 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.1781/7.905, allocations: 5.274 MB / 4.841 GB, free: 60.22 MB / 0.4948 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006888/7.912, allocations: 4.947 MB / 4.846 GB, free: 59.64 MB / 0.4948 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.86e-05/7.912, allocations: 6.688 kB / 4.846 GB, free: 59.64 MB / 0.4948 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003792/7.913, allocations: 10.22 kB / 4.846 GB, free: 59.64 MB / 0.4948 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001607/7.913, allocations: 275.2 kB / 4.846 GB, free: 59.64 MB / 0.4948 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02289/7.936, allocations: 20.77 MB / 4.866 GB, free: 50.29 MB / 0.4948 GB Notification: Performance of preOpt comSubExp (simulation): time 0.003118/7.939, allocations: 2.464 MB / 4.869 GB, free: 50.27 MB / 0.4948 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.002299/7.941, allocations: 2.221 MB / 4.871 GB, free: 50.23 MB / 0.4948 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001536/7.943, allocations: 2.734 MB / 4.874 GB, free: 47.32 MB / 0.4948 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.002869/7.945, allocations: 2.591 MB / 4.876 GB, free: 47.07 MB / 0.4948 GB Notification: Performance of pre-optimization done (n=311): time 4.88e-06/7.945, allocations: 0 / 4.876 GB, free: 47.07 MB / 0.4948 GB Notification: Performance of matching and sorting (n=371): time 0.06926/8.015, allocations: 23.18 MB / 4.899 GB, free: 44.92 MB / 0.4948 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001087/8.015, allocations: 0.6059 MB / 4.899 GB, free: 44.23 MB / 0.4948 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001708/8.017, allocations: 1.434 MB / 4.901 GB, free: 44.04 MB / 0.4948 GB Notification: Performance of collectPreVariables (initialization): time 0.0003613/8.017, allocations: 31.45 kB / 4.901 GB, free: 44.01 MB / 0.4948 GB Notification: Performance of collectInitialEqns (initialization): time 0.0006296/8.018, allocations: 1.09 MB / 4.902 GB, free: 43.51 MB / 0.4948 GB Notification: Performance of collectInitialBindings (initialization): time 0.0008707/8.018, allocations: 1.254 MB / 4.903 GB, free: 42.86 MB / 0.4948 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002905/8.019, allocations: 10.5 kB / 4.903 GB, free: 42.86 MB / 0.4948 GB Notification: Performance of setup shared object (initialization): time 0.0001512/8.019, allocations: 478.6 kB / 4.904 GB, free: 42.55 MB / 0.4948 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003172/8.022, allocations: 2.667 MB / 4.906 GB, free: 42.53 MB / 0.4948 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003516/8.026, allocations: 3.628 MB / 4.91 GB, free: 41.5 MB / 0.4948 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.008574/8.034, allocations: 3.976 MB / 4.914 GB, free: 41.46 MB / 0.4948 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.274e-05/8.034, allocations: 6.719 kB / 4.914 GB, free: 41.46 MB / 0.4948 GB Notification: Performance of matching and sorting (n=535) (initialization): time 0.01758/8.052, allocations: 8.923 MB / 4.922 GB, free: 41.16 MB / 0.4948 GB Notification: Performance of prepare postOptimizeDAE: time 0.001525/8.053, allocations: 9.933 MB / 4.932 GB, free: 47 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.984e-05/8.053, allocations: 24.09 kB / 4.932 GB, free: 47 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.005663/8.059, allocations: 1.978 MB / 4.934 GB, free: 46.95 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003978/8.063, allocations: 0.9075 MB / 4.935 GB, free: 46.95 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006453/8.07, allocations: 6.399 MB / 4.941 GB, free: 43.82 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004711/8.074, allocations: 440.9 kB / 4.942 GB, free: 43.8 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005228/8.075, allocations: 224.8 kB / 4.942 GB, free: 43.8 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 7.915e-06/8.075, allocations: 3.906 kB / 4.942 GB, free: 43.8 MB / 0.5105 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.01689/8.092, allocations: 8.267 MB / 4.95 GB, free: 43.67 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.337e-05/8.092, allocations: 30.64 kB / 4.95 GB, free: 43.67 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.005347/8.097, allocations: 1.891 MB / 4.952 GB, free: 43.62 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00427/8.101, allocations: 0.9255 MB / 4.953 GB, free: 43.62 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005637/8.107, allocations: 6.187 MB / 4.959 GB, free: 40.5 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004418/8.112, allocations: 414.5 kB / 4.959 GB, free: 40.48 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007241/8.112, allocations: 225.3 kB / 4.959 GB, free: 40.48 MB / 0.5105 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 112 * Number of states: 0 () * Number of discrete variables: 17 (traceVolume.ind,traceDuctIn.ind,traceDuctOut.ind,$whenCondition1,$PRE.numberOfPeople.nextTimeEvent,volume.regularFlow[1],volume.regularFlow[2],volume.regularFlow[3],volume.regularFlow[4],volume.inFlow[4],volume.inFlow[3],volume.inFlow[2],volume.inFlow[1],numberOfPeople.nextTimeEvent,$PRE.numberOfPeople.nextTimeEventScaled,numberOfPeople.nextTimeEventScaled,PID.I.local_reset) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (494): * Single equations (assignments): 485 * 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: 6 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 6 {2 6,2 6,1 6,2 6,2 6,2 6} Notification: Performance of prepare postOptimizeDAE: time 0.00121/8.113, allocations: 214.7 kB / 4.96 GB, free: 40.38 MB / 0.5105 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007074/8.114, allocations: 282.5 kB / 4.96 GB, free: 40.24 MB / 0.5105 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01437/8.129, allocations: 8.442 MB / 4.968 GB, free: 39.95 MB / 0.5105 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.135e-05/8.129, allocations: 44.61 kB / 4.968 GB, free: 39.95 MB / 0.5105 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.229e-05/8.129, allocations: 0 / 4.968 GB, free: 39.95 MB / 0.5105 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.01016/8.139, allocations: 6.331 MB / 4.974 GB, free: 39.56 MB / 0.5105 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02906/8.168, allocations: 14.1 MB / 4.988 GB, free: 37.74 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.368e-05/8.168, allocations: 2.969 kB / 4.988 GB, free: 37.74 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003503/8.171, allocations: 0.6742 MB / 4.989 GB, free: 37.71 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.008212/8.18, allocations: 2.298 MB / 4.991 GB, free: 37.32 MB / 0.5105 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005015/8.18, allocations: 138 kB / 4.991 GB, free: 37.29 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0059/8.186, allocations: 6.096 MB / 4.997 GB, free: 33.25 MB / 0.5105 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.751e-06/8.186, allocations: 5.594 kB / 4.997 GB, free: 33.25 MB / 0.5105 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.02464/8.211, allocations: 11.91 MB / 5.009 GB, free: 29.49 MB / 0.5105 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.02891/8.24, allocations: 16.37 MB / 5.025 GB, free: 21.25 MB / 0.5105 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002528/8.242, allocations: 1.024 MB / 5.026 GB, free: 20.38 MB / 0.5105 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001031/8.243, allocations: 81.05 kB / 5.026 GB, free: 20.32 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003885/8.247, allocations: 321.5 kB / 5.026 GB, free: 20.12 MB / 0.5105 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004678/8.248, allocations: 236.1 kB / 5.026 GB, free: 19.99 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0004972/8.248, allocations: 169.2 kB / 5.026 GB, free: 19.85 MB / 0.5105 GB Notification: Performance of sort global known variables: time 0.001611/8.25, allocations: 1.066 MB / 5.027 GB, free: 18.91 MB / 0.5105 GB Notification: Performance of remove unused functions: time 0.01275/8.263, allocations: 3.674 MB / 5.031 GB, free: 15.6 MB / 0.5105 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 10 * Number of states: 21 (volume.medium.p,volume.medium.Xi[1],volume.medium.T,volume.mC_scaled[1],ductOut.mCs_scaled[1,1],ductOut.mCs_scaled[2,1],ductOut.mediums[1].p,ductOut.mediums[1].Xi[1],ductOut.mediums[1].T,ductOut.mediums[2].p,ductOut.mediums[2].Xi[1],ductOut.mediums[2].T,PID.I.y,ductIn.mCs_scaled[1,1],ductIn.mCs_scaled[2,1],ductIn.mediums[1].p,ductIn.mediums[1].Xi[1],ductIn.mediums[1].T,ductIn.mediums[2].p,ductIn.mediums[2].Xi[1],ductIn.mediums[2].T) * Number of discrete variables: 3 ($whenCondition1,numberOfPeople.nextTimeEvent,numberOfPeople.nextTimeEventScaled) * Number of discrete states: 2 (numberOfPeople.nextTimeEvent,numberOfPeople.nextTimeEventScaled) * Top-level inputs: 0 Notification: Strong component statistics for simulation (366): * Single equations (assignments): 354 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 4 * When equations: 2 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 6 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 6 {2 6,2 6,2 6,2 6,2 6,1 7} Notification: Performance of Backend phase and start with SimCode phase: time 0.007555/8.27, allocations: 3.273 MB / 5.034 GB, free: 13.62 MB / 0.5105 GB Notification: Performance of simCode: created initialization part: time 0.01403/8.284, allocations: 10.2 MB / 5.044 GB, free: 4.723 MB / 0.5105 GB Notification: Performance of simCode: created event and clocks part: time 7.044e-06/8.284, allocations: 4.984 kB / 5.044 GB, free: 4.719 MB / 0.5105 GB Notification: Performance of simCode: created simulation system equations: time 0.004941/8.289, allocations: 3.122 MB / 5.047 GB, free: 2.039 MB / 0.5105 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005838/8.295, allocations: 1.128 MB / 5.048 GB, free: 1.281 MB / 0.5105 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2001/8.495, allocations: 9.415 MB / 5.058 GB, free: 70.38 MB / 0.5105 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003353/8.499, allocations: 2.985 MB / 5.06 GB, free: 69.6 MB / 0.5105 GB Notification: Performance of SimCode: time 9.42e-07/8.499, allocations: 0 / 5.06 GB, free: 69.6 MB / 0.5105 GB (rm -f Modelica_trunk_Modelica.Fluid.Examples.TraceSubstances.RoomCO2WithControls.pipe ; mkfifo Modelica_trunk_Modelica.Fluid.Examples.TraceSubstances.RoomCO2WithControls.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Fluid.Examples.TraceSubstances.RoomCO2WithControls.pipe >> ../files/Modelica_trunk_Modelica.Fluid.Examples.TraceSubstances.RoomCO2WithControls.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_Modelica.Fluid.Examples.TraceSubstances.RoomCO2WithControls_res.mat --tempDir=temp_Modelica_trunk_Modelica_Fluid_Examples_TraceSubstances_RoomCO2WithControls_fmu --startTime=0 --stopTime=86400 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Fluid_Examples_TraceSubstances_RoomCO2WithControls.fmu > Modelica_trunk_Modelica.Fluid.Examples.TraceSubstances.RoomCO2WithControls.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_trunk_Modelica.Fluid.Examples.TraceSubstances.RoomCO2WithControls_res.mat does not exist to compare? outputFormat=mat