Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr BuildingSystems_BuildingSystems.Controls.Continuous.Examples.LimPID.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo", uses=false) 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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo", uses=false) Using package NcDataReader2 with version 2.5.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo) 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) Using package BuildingSystems with version 2.0.0-beta (/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo) Running command: "" <> buildModelFMU(BuildingSystems.Controls.Continuous.Examples.LimPID,fileNamePrefix="BuildingSystems_BuildingSystems_Controls_Continuous_Examples_LimPID",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(BuildingSystems.Controls.Continuous.Examples.LimPID,fileNamePrefix="BuildingSystems_BuildingSystems_Controls_Continuous_Examples_LimPID",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.8286/0.8286, allocations: 143.4 MB / 158.3 MB, free: 5.66 MB / 122.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001069/0.001069, allocations: 184.6 kB / 191.5 MB, free: 5.664 MB / 154.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.48/1.48, allocations: 223.2 MB / 447.7 MB, free: 6.488 MB / 330.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008903/0.0008902, allocations: 98.16 kB / 0.5187 GB, free: 2.836 MB / 410.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.00197/0.00197, allocations: 267.9 kB / 0.6005 GB, free: 49 MB / 410.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004534/0.0004535, allocations: 20 kB / 0.6929 GB, free: 2.238 MB / 458.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4225/0.423, allocations: 82.77 MB / 0.7738 GB, free: 26.23 MB / 458.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1628/0.5859, allocations: 116.6 MB / 0.8877 GB, free: 5.445 MB / 0.5417 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002292/0.5862, allocations: 87.89 kB / 0.8878 GB, free: 5.359 MB / 0.5417 GB Notification: Performance of FrontEnd - DAE generated: time 0.04726/0.6334, allocations: 16.92 MB / 0.9043 GB, free: 4.402 MB / 0.5573 GB Notification: Performance of FrontEnd: time 2.806e-06/0.6335, allocations: 4 kB / 0.9043 GB, free: 4.398 MB / 0.5573 GB Notification: Performance of Transformations before backend: time 7.112e-05/0.6336, allocations: 23.92 kB / 0.9043 GB, free: 4.375 MB / 0.5573 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 126 * Number of variables: 126 Notification: Performance of Generate backend data structure: time 0.00201/0.6356, allocations: 1.063 MB / 0.9053 GB, free: 3.254 MB / 0.5573 GB Notification: Performance of prepare preOptimizeDAE: time 4.784e-05/0.6356, allocations: 12.03 kB / 0.9054 GB, free: 3.242 MB / 0.5573 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001291/0.6358, allocations: 94.45 kB / 0.9054 GB, free: 3.141 MB / 0.5573 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001617/0.6359, allocations: 94.83 kB / 0.9055 GB, free: 3.047 MB / 0.5573 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001003/0.6369, allocations: 0.5901 MB / 0.9061 GB, free: 2.41 MB / 0.5573 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001292/0.6371, allocations: 100.4 kB / 0.9062 GB, free: 2.301 MB / 0.5573 GB Notification: Performance of preOpt expandDerOperator (simulation): time 7.878e-05/0.6372, allocations: 52 kB / 0.9063 GB, free: 2.25 MB / 0.5573 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001185/0.6384, allocations: 0.6564 MB / 0.9069 GB, free: 1.543 MB / 0.5573 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.329e-05/0.6384, allocations: 0 / 0.9069 GB, free: 1.543 MB / 0.5573 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.983e-05/0.6385, allocations: 27.94 kB / 0.9069 GB, free: 1.516 MB / 0.5573 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.316e-05/0.6385, allocations: 12 kB / 0.9069 GB, free: 1.504 MB / 0.5573 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001036/0.6395, allocations: 0.4918 MB / 0.9074 GB, free: 1.012 MB / 0.5573 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.3872/1.027, allocations: 2.198 MB / 0.9096 GB, free: 122 MB / 0.5573 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001672/1.028, allocations: 0.6091 MB / 0.9102 GB, free: 122 MB / 0.5573 GB Notification: Performance of preOpt evalFunc (simulation): time 5.525e-05/1.028, allocations: 5.422 kB / 0.9102 GB, free: 122 MB / 0.5573 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008714/1.029, allocations: 324.1 kB / 0.9105 GB, free: 122 MB / 0.5573 GB Notification: Performance of pre-optimization done (n=45): time 2.785e-06/1.029, allocations: 0.75 kB / 0.9105 GB, free: 122 MB / 0.5573 GB Notification: Performance of matching and sorting (n=45): time 0.00209/1.031, allocations: 0.7152 MB / 0.9112 GB, free: 121.9 MB / 0.5573 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.108e-05/1.032, allocations: 195.1 kB / 0.9114 GB, free: 121.7 MB / 0.5573 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000805/1.032, allocations: 0.5366 MB / 0.9119 GB, free: 121.6 MB / 0.5573 GB Notification: Performance of collectPreVariables (initialization): time 6.556e-05/1.032, allocations: 39.86 kB / 0.9119 GB, free: 121.5 MB / 0.5573 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002684/1.033, allocations: 361 kB / 0.9123 GB, free: 121.4 MB / 0.5573 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001271/1.033, allocations: 153.9 kB / 0.9124 GB, free: 121.3 MB / 0.5573 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.868e-05/1.033, allocations: 10.16 kB / 0.9124 GB, free: 121.3 MB / 0.5573 GB Notification: Performance of setup shared object (initialization): time 7.946e-05/1.033, allocations: 325.7 kB / 0.9127 GB, free: 121 MB / 0.5573 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005086/1.034, allocations: 211.8 kB / 0.9129 GB, free: 121 MB / 0.5573 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006473/1.034, allocations: 340.9 kB / 0.9133 GB, free: 120.9 MB / 0.5573 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005868/1.035, allocations: 263.7 kB / 0.9135 GB, free: 120.9 MB / 0.5573 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.679e-06/1.035, allocations: 0.7188 kB / 0.9135 GB, free: 120.9 MB / 0.5573 GB Notification: Performance of matching and sorting (n=64) (initialization): time 0.00155/1.036, allocations: 0.6599 MB / 0.9142 GB, free: 120.8 MB / 0.5573 GB Notification: Performance of prepare postOptimizeDAE: time 0.000237/1.037, allocations: 0.9902 MB / 0.9151 GB, free: 119.7 MB / 0.5573 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.155e-05/1.037, allocations: 3.094 kB / 0.9151 GB, free: 119.7 MB / 0.5573 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.453e-05/1.037, allocations: 4.75 kB / 0.9151 GB, free: 119.7 MB / 0.5573 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005997/1.037, allocations: 130 kB / 0.9153 GB, free: 119.7 MB / 0.5573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.911e-05/1.037, allocations: 8.734 kB / 0.9153 GB, free: 119.7 MB / 0.5573 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005735/1.038, allocations: 84.02 kB / 0.9153 GB, free: 119.7 MB / 0.5573 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.532e-05/1.038, allocations: 26.11 kB / 0.9154 GB, free: 119.7 MB / 0.5573 GB Notification: Performance of prepare postOptimizeDAE: time 1.322e-05/1.038, allocations: 7.359 kB / 0.9154 GB, free: 119.7 MB / 0.5573 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001262/1.039, allocations: 0.5447 MB / 0.9159 GB, free: 119.7 MB / 0.5573 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.951e-06/1.039, allocations: 2.688 kB / 0.9159 GB, free: 119.7 MB / 0.5573 GB Notification: Performance of postOpt tearingSystem (initialization): time 8.345e-06/1.039, allocations: 8.719 kB / 0.9159 GB, free: 119.7 MB / 0.5573 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005/1.04, allocations: 112.7 kB / 0.916 GB, free: 119.7 MB / 0.5573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.142e-05/1.04, allocations: 8.391 kB / 0.916 GB, free: 119.7 MB / 0.5573 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005302/1.04, allocations: 76.72 kB / 0.9161 GB, free: 119.7 MB / 0.5573 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.966e-05/1.04, allocations: 18.56 kB / 0.9161 GB, free: 119.7 MB / 0.5573 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 11 * Number of states: 0 () * Number of discrete variables: 8 ($whenCondition1,$PRE.pulse.T_start,pulse.T_start,$PRE.pulse.count,pulse.count,limPIDOri.I.local_reset,limPIDRev.I.trigger_internal,limPID.I.trigger_internal) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (63): * Single equations (assignments): 62 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.000456/1.041, allocations: 280.6 kB / 0.9164 GB, free: 119.5 MB / 0.5573 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001357/1.041, allocations: 75.69 kB / 0.9165 GB, free: 119.4 MB / 0.5573 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001721/1.041, allocations: 78.55 kB / 0.9165 GB, free: 119.4 MB / 0.5573 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.146e-06/1.041, allocations: 8.844 kB / 0.9165 GB, free: 119.4 MB / 0.5573 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.211e-05/1.041, allocations: 4.031 kB / 0.9166 GB, free: 119.4 MB / 0.5573 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.658e-06/1.041, allocations: 2.984 kB / 0.9166 GB, free: 119.4 MB / 0.5573 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009607/1.042, allocations: 0.6599 MB / 0.9172 GB, free: 119.2 MB / 0.5573 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.118e-06/1.042, allocations: 0.7031 kB / 0.9172 GB, free: 119.2 MB / 0.5573 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005097/1.043, allocations: 98.28 kB / 0.9173 GB, free: 119.2 MB / 0.5573 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.5e-06/1.043, allocations: 2.625 kB / 0.9173 GB, free: 119.2 MB / 0.5573 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.742e-05/1.043, allocations: 16.48 kB / 0.9173 GB, free: 119.2 MB / 0.5573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.306e-06/1.043, allocations: 2.281 kB / 0.9173 GB, free: 119.2 MB / 0.5573 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.084e-06/1.043, allocations: 1.406 kB / 0.9173 GB, free: 119.2 MB / 0.5573 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001697/1.044, allocations: 0.8253 MB / 0.9181 GB, free: 119.1 MB / 0.5573 GB Notification: Performance of postOpt removeConstants (simulation): time 0.000262/1.045, allocations: 209.1 kB / 0.9183 GB, free: 119 MB / 0.5573 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.842e-05/1.045, allocations: 12.7 kB / 0.9183 GB, free: 119 MB / 0.5573 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005135/1.045, allocations: 65.19 kB / 0.9184 GB, free: 119 MB / 0.5573 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001227/1.045, allocations: 31.08 kB / 0.9184 GB, free: 119 MB / 0.5573 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.463e-05/1.046, allocations: 15.94 kB / 0.9184 GB, free: 119 MB / 0.5573 GB Notification: Performance of sorting global known variables: time 0.0006223/1.046, allocations: 434.3 kB / 0.9189 GB, free: 118.8 MB / 0.5573 GB Notification: Performance of sort global known variables: time 2.11e-07/1.046, allocations: 0 / 0.9189 GB, free: 118.8 MB / 0.5573 GB Notification: Performance of remove unused functions: time 0.000923/1.047, allocations: 227 kB / 0.9191 GB, free: 118.7 MB / 0.5573 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 6 (limPID.I.y,limPID.D.x,limPIDRev.I.y,limPIDRev.D.x,limPIDOri.I.y,limPIDOri.D.x) * Number of discrete variables: 3 ($whenCondition1,pulse.T_start,pulse.count) * Number of discrete states: 1 (pulse.count) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (45): * Single equations (assignments): 43 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.002132/1.049, allocations: 1.402 MB / 0.9204 GB, free: 117.8 MB / 0.5573 GB Notification: Performance of simCode: created initialization part: time 0.001927/1.051, allocations: 0.8856 MB / 0.9213 GB, free: 117.5 MB / 0.5573 GB Notification: Performance of simCode: created event and clocks part: time 5.279e-06/1.051, allocations: 0.5312 kB / 0.9213 GB, free: 117.5 MB / 0.5573 GB Notification: Performance of simCode: created simulation system equations: time 0.0005917/1.052, allocations: 256.8 kB / 0.9215 GB, free: 117.4 MB / 0.5573 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009118/1.053, allocations: 172.9 kB / 0.9217 GB, free: 117.4 MB / 0.5573 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003357/1.056, allocations: 3.313 MB / 0.9249 GB, free: 114.7 MB / 0.5573 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006096/1.057, allocations: 0.9306 MB / 0.9259 GB, free: 114 MB / 0.5573 GB Notification: Performance of simCode: alias equations: time 0.0005763/1.057, allocations: 95.09 kB / 0.9259 GB, free: 114 MB / 0.5573 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003973/1.058, allocations: 260.1 kB / 0.9262 GB, free: 113.8 MB / 0.5573 GB Notification: Performance of SimCode: time 1.132e-06/1.058, allocations: 0 / 0.9262 GB, free: 113.8 MB / 0.5573 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02524/1.083, allocations: 13.65 MB / 0.9395 GB, free: 110.1 MB / 0.5573 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001675/1.083, allocations: 195.9 kB / 0.9397 GB, free: 109.8 MB / 0.5573 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.426/3.509, allocations: 0 / 0.9397 GB, free: 109.8 MB / 0.5573 GB (rm -f BuildingSystems_BuildingSystems.Controls.Continuous.Examples.LimPID.pipe ; mkfifo BuildingSystems_BuildingSystems.Controls.Continuous.Examples.LimPID.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Controls.Continuous.Examples.LimPID.pipe >> ../files/BuildingSystems_BuildingSystems.Controls.Continuous.Examples.LimPID.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_BuildingSystems_BuildingSystems_Controls_Continuous_Examples_LimPID_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 BuildingSystems_BuildingSystems_Controls_Continuous_Examples_LimPID.fmu > BuildingSystems_BuildingSystems.Controls.Continuous.Examples.LimPID.pipe 2>&1)