Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.Fluid.Examples.TraceSubstances.RoomCO2WithControls.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Fluid.Examples.TraceSubstances.RoomCO2WithControls,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Fluid_Examples_TraceSubstances_RoomCO2WithControls",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Fluid.Examples.TraceSubstances.RoomCO2WithControls,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Fluid_Examples_TraceSubstances_RoomCO2WithControls",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.00153/0.001535, allocations: 182.5 kB / 16.4 MB, free: 5.75 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.02/2.02, allocations: 205.4 MB / 222.5 MB, free: 9.117 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001618/0.001618, allocations: 101.4 kB / 270.9 MB, free: 8.352 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004332/0.0004335, allocations: 12 kB / 327.1 MB, free: 100 kB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3622/0.3626, allocations: 47.58 MB / 374.6 MB, free: 45.26 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Fluid.Examples.TraceSubstances.RoomCO2WithControls): time 0.7247/1.087, allocations: 206.7 MB / 0.5677 GB, free: 14.1 MB / 394.7 MB Notification: Performance of NFInst.instExpressions: time 0.03927/1.127, allocations: 18.05 MB / 0.5853 GB, free: 5.16 MB / 394.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003487/1.13, allocations: 79.72 kB / 0.5854 GB, free: 5.117 MB / 394.7 MB Notification: Performance of NFTyping.typeComponents: time 0.004491/1.135, allocations: 0.9441 MB / 0.5863 GB, free: 4.328 MB / 394.7 MB Notification: Performance of NFTyping.typeBindings: time 0.02065/1.156, allocations: 4.381 MB / 0.5906 GB, free: 156 kB / 394.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.01985/1.175, allocations: 4.359 MB / 0.5949 GB, free: 11.91 MB / 410.7 MB Notification: Performance of NFFlatten.flatten: time 0.01048/1.186, allocations: 4.161 MB / 0.5989 GB, free: 7.852 MB / 410.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004833/1.191, allocations: 1.817 MB / 0.6007 GB, free: 6.035 MB / 410.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.01628/1.207, allocations: 4.221 MB / 0.6048 GB, free: 2.16 MB / 410.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.006172/1.213, allocations: 2.182 MB / 0.607 GB, free: 220 kB / 410.7 MB Notification: Performance of NFPackage.collectConstants: time 0.001664/1.215, allocations: 172 kB / 0.6071 GB, free: 48 kB / 410.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.02626/1.241, allocations: 8.213 MB / 0.6151 GB, free: 7.949 MB / 426.7 MB Notification: Performance of NFScalarize.scalarize: time 0.003764/1.245, allocations: 1.539 MB / 0.6166 GB, free: 6.457 MB / 426.7 MB Notification: Performance of NFVerifyModel.verify: time 0.002006/1.247, allocations: 0.7148 MB / 0.6173 GB, free: 5.734 MB / 426.7 MB Notification: Performance of NFConvertDAE.convert: time 0.01935/1.267, allocations: 6.755 MB / 0.6239 GB, free: 14.96 MB / 442.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.809e-06/1.267, allocations: 4 kB / 0.6239 GB, free: 14.96 MB / 442.7 MB Notification: Performance of FrontEnd: time 3.667e-06/1.267, allocations: 0 / 0.6239 GB, free: 14.96 MB / 442.7 MB Notification: Performance of Transformations before backend: time 0.0002252/1.267, allocations: 0 / 0.6239 GB, free: 14.96 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 0.02167/1.289, allocations: 4.609 MB / 0.6284 GB, free: 10.27 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.622e-05/1.289, allocations: 12.03 kB / 0.6285 GB, free: 10.25 MB / 442.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.002032/1.291, allocations: 451.1 kB / 0.6289 GB, free: 9.801 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002402/1.293, allocations: 419.5 kB / 0.6293 GB, free: 9.387 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007529/1.301, allocations: 1.973 MB / 0.6312 GB, free: 7.355 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005961/1.301, allocations: 348.2 kB / 0.6315 GB, free: 6.988 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00148/1.303, allocations: 295.9 kB / 0.6318 GB, free: 6.699 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01734/1.32, allocations: 5.371 MB / 0.6371 GB, free: 1.164 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001409/1.321, allocations: 15.84 kB / 0.6371 GB, free: 1.148 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0008193/1.321, allocations: 123.9 kB / 0.6372 GB, free: 1.027 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0008654/1.322, allocations: 413.8 kB / 0.6376 GB, free: 0.6211 MB / 442.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01926/1.342, allocations: 5.684 MB / 0.6432 GB, free: 10.92 MB / 458.7 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.05979/1.401, allocations: 22.16 MB / 0.6648 GB, free: 3.219 MB / 474.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.3014/1.703, allocations: 3.725 MB / 0.6684 GB, free: 198.5 MB / 474.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.003192/1.706, allocations: 3.158 MB / 0.6715 GB, free: 195.1 MB / 474.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.008561/1.715, allocations: 2.692 MB / 0.6741 GB, free: 194.9 MB / 474.7 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.00245/1.717, allocations: 283.8 kB / 0.6744 GB, free: 194.8 MB / 474.7 MB Notification: Performance of pre-optimization done (n=317): time 1.531e-05/1.717, allocations: 1.188 kB / 0.6744 GB, free: 194.8 MB / 474.7 MB Notification: Performance of matching and sorting (n=377): time 0.225/1.942, allocations: 33.61 MB / 0.7072 GB, free: 175.1 MB / 474.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001714/1.943, allocations: 479.8 kB / 0.7077 GB, free: 174.5 MB / 474.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004307/1.947, allocations: 2.23 MB / 0.7099 GB, free: 172.2 MB / 474.7 MB Notification: Performance of collectPreVariables (initialization): time 0.00115/1.948, allocations: 101.7 kB / 0.71 GB, free: 172.1 MB / 474.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001303/1.949, allocations: 1.244 MB / 0.7112 GB, free: 170.9 MB / 474.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.002096/1.952, allocations: 1.319 MB / 0.7125 GB, free: 169.6 MB / 474.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006238/1.952, allocations: 88 kB / 0.7126 GB, free: 169.5 MB / 474.7 MB Notification: Performance of setup shared object (initialization): time 0.0003059/1.953, allocations: 491.9 kB / 0.713 GB, free: 169 MB / 474.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.009956/1.963, allocations: 2.954 MB / 0.7159 GB, free: 166 MB / 474.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01107/1.974, allocations: 3.987 MB / 0.7198 GB, free: 161.6 MB / 474.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01115/1.985, allocations: 3.492 MB / 0.7232 GB, free: 158.1 MB / 474.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.258e-05/1.985, allocations: 8 kB / 0.7232 GB, free: 158.1 MB / 474.7 MB Notification: Performance of matching and sorting (n=541) (initialization): time 0.04171/2.027, allocations: 9.628 MB / 0.7326 GB, free: 148.4 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.002292/2.029, allocations: 10.38 MB / 0.7428 GB, free: 137.2 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001252/2.029, allocations: 28 kB / 0.7428 GB, free: 137.2 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01884/2.048, allocations: 2.775 MB / 0.7455 GB, free: 134.4 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.008005/2.056, allocations: 0.9399 MB / 0.7464 GB, free: 133.5 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01653/2.073, allocations: 6.735 MB / 0.753 GB, free: 126.6 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.008802/2.082, allocations: 0.5342 MB / 0.7535 GB, free: 126 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001516/2.083, allocations: 244.8 kB / 0.7537 GB, free: 125.8 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.675e-05/2.083, allocations: 4 kB / 0.7537 GB, free: 125.8 MB / 474.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.03656/2.12, allocations: 8.718 MB / 0.7623 GB, free: 117 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001437/2.12, allocations: 31.94 kB / 0.7623 GB, free: 117 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01929/2.139, allocations: 2.585 MB / 0.7648 GB, free: 114.4 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.008244/2.148, allocations: 0.9438 MB / 0.7657 GB, free: 113.5 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01547/2.163, allocations: 6.589 MB / 0.7722 GB, free: 106.7 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007604/2.171, allocations: 0.5109 MB / 0.7727 GB, free: 106.2 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001319/2.172, allocations: 239.9 kB / 0.7729 GB, free: 106 MB / 474.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 118 * 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 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (500): * Single equations (assignments): 491 * 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.003779/2.176, allocations: 1.118 MB / 0.774 GB, free: 104.8 MB / 474.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001108/2.177, allocations: 308.3 kB / 0.7743 GB, free: 104.5 MB / 474.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.03054/2.208, allocations: 8.798 MB / 0.7829 GB, free: 95.68 MB / 474.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.652e-05/2.208, allocations: 44 kB / 0.7829 GB, free: 95.64 MB / 474.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.683e-05/2.208, allocations: 0 / 0.7829 GB, free: 95.64 MB / 474.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.02311/2.231, allocations: 6.882 MB / 0.7896 GB, free: 88.67 MB / 474.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04675/2.278, allocations: 13.5 MB / 0.8028 GB, free: 75.15 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.956e-05/2.278, allocations: 0 / 0.8028 GB, free: 75.15 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.01004/2.288, allocations: 0.7099 MB / 0.8035 GB, free: 74.44 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.02243/2.31, allocations: 3.155 MB / 0.8066 GB, free: 71.27 MB / 474.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001221/2.312, allocations: 175.8 kB / 0.8068 GB, free: 71.1 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01407/2.326, allocations: 6.357 MB / 0.813 GB, free: 64.6 MB / 474.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.461e-06/2.326, allocations: 3.984 kB / 0.813 GB, free: 64.59 MB / 474.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.04266/2.368, allocations: 11.16 MB / 0.8239 GB, free: 53.32 MB / 474.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.004251/2.373, allocations: 1.098 MB / 0.8249 GB, free: 52.2 MB / 474.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001899/2.375, allocations: 135.9 kB / 0.8251 GB, free: 52.07 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.007366/2.382, allocations: 423.2 kB / 0.8255 GB, free: 51.65 MB / 474.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001387/2.384, allocations: 266.8 kB / 0.8257 GB, free: 51.39 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0008703/2.384, allocations: 187.9 kB / 0.8259 GB, free: 51.21 MB / 474.7 MB Notification: Performance of sorting global known variables: time 0.003175/2.388, allocations: 1.504 MB / 0.8274 GB, free: 49.69 MB / 474.7 MB Notification: Performance of sort global known variables: time 5.91e-07/2.388, allocations: 3.938 kB / 0.8274 GB, free: 49.68 MB / 474.7 MB Notification: Performance of remove unused functions: time 0.01389/2.402, allocations: 2.971 MB / 0.8303 GB, free: 46.92 MB / 474.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 6 * 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) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (373): * Single equations (assignments): 361 * 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,1 7,2 6,2 6,2 6} Notification: Performance of Backend phase and start with SimCode phase: time 0.04569/2.447, allocations: 14.15 MB / 0.8441 GB, free: 32.88 MB / 474.7 MB Notification: Performance of simCode: created initialization part: time 0.03751/2.485, allocations: 11.44 MB / 0.8553 GB, free: 21.37 MB / 474.7 MB Notification: Performance of simCode: created event and clocks part: time 1.309e-05/2.485, allocations: 4.656 kB / 0.8553 GB, free: 21.37 MB / 474.7 MB Notification: Performance of simCode: created simulation system equations: time 0.01206/2.497, allocations: 3.559 MB / 0.8588 GB, free: 17.81 MB / 474.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01202/2.509, allocations: 1.408 MB / 0.8601 GB, free: 16.39 MB / 474.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.3285/2.838, allocations: 33.12 MB / 0.8925 GB, free: 171 MB / 474.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003897/2.842, allocations: 2.473 MB / 0.8949 GB, free: 170.2 MB / 474.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.005199/2.847, allocations: 1.518 MB / 0.8964 GB, free: 170.2 MB / 474.7 MB Notification: Performance of SimCode: time 1.533e-06/2.847, allocations: 0 / 0.8964 GB, free: 170.2 MB / 474.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 5.838/8.685, allocations: 167.8 MB / 1.06 GB, free: 22.01 MB / 474.7 MB (rm -f Modelica_3.2.3_cpp_Modelica.Fluid.Examples.TraceSubstances.RoomCO2WithControls.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Fluid.Examples.TraceSubstances.RoomCO2WithControls.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Fluid.Examples.TraceSubstances.RoomCO2WithControls.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Fluid.Examples.TraceSubstances.RoomCO2WithControls.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_cpp_Modelica.Fluid.Examples.TraceSubstances.RoomCO2WithControls_res.mat --tempDir=temp_Modelica_3_2_3_cpp_Modelica_Fluid_Examples_TraceSubstances_RoomCO2WithControls_fmu --startTime=0 --stopTime=86400 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_cpp_Modelica_Fluid_Examples_TraceSubstances_RoomCO2WithControls.fmu > Modelica_3.2.3_cpp_Modelica.Fluid.Examples.TraceSubstances.RoomCO2WithControls.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_cpp_Modelica.Fluid.Examples.TraceSubstances.RoomCO2WithControls_res.mat does not exist to compare? outputFormat=mat