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/ModelicaServices 4.0.0+maint.om/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/NcDataReader2 2.5.1-master/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo", uses=false) Using package BuildingSystems with version 2.0.0-beta (/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo) Using package NcDataReader2 with version 2.5.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/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 ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(BuildingSystems.Controls.Continuous.Examples.LimPID,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Controls.Continuous.Examples.LimPID") translateModel(BuildingSystems.Controls.Continuous.Examples.LimPID,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Controls.Continuous.Examples.LimPID") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001236/0.001236, allocations: 118.5 kB / 16.37 MB, free: 6.004 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0009617/0.0009617, allocations: 192.8 kB / 17.31 MB, free: 5.613 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.235/1.235, allocations: 222.9 MB / 241 MB, free: 15.18 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002105/0.002105, allocations: 283.2 kB / 291.4 MB, free: 14.49 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.8846/0.8846, allocations: 169.2 MB / 0.4989 GB, free: 4.477 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001649/0.001649, allocations: 89.98 kB / 0.5967 GB, free: 14.44 MB / 414.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1526/0.1543, allocations: 86.97 MB / 0.6816 GB, free: 7.453 MB / 494.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Controls.Continuous.Examples.LimPID): time 0.004722/0.1591, allocations: 3.714 MB / 0.6852 GB, free: 3.715 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.002277/0.1614, allocations: 1.332 MB / 0.6865 GB, free: 2.375 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002999/0.1617, allocations: 27.88 kB / 0.6866 GB, free: 2.348 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000305/0.162, allocations: 126.6 kB / 0.6867 GB, free: 2.223 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004379/0.1625, allocations: 170.5 kB / 0.6868 GB, free: 2.055 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001032/0.1635, allocations: 0.5631 MB / 0.6874 GB, free: 1.5 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 0.0008343/0.1644, allocations: 0.9604 MB / 0.6883 GB, free: 0.5391 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004666/0.1648, allocations: 357.5 kB / 0.6887 GB, free: 180 kB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.2805/0.4454, allocations: 366.9 kB / 0.689 GB, free: 13.11 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000669/0.4461, allocations: 353.5 kB / 0.6894 GB, free: 13.08 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003619/0.4465, allocations: 77.44 kB / 0.6894 GB, free: 13.08 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002397/0.4467, allocations: 78.34 kB / 0.6895 GB, free: 13.08 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001985/0.4469, allocations: 176.2 kB / 0.6897 GB, free: 13.05 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005171/0.4475, allocations: 385.4 kB / 0.69 GB, free: 12.92 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00116/0.4486, allocations: 0.8778 MB / 0.6909 GB, free: 12.78 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.454e-06/0.4486, allocations: 4.344 kB / 0.6909 GB, free: 12.78 MB / 494.1 MB Notification: Performance of FrontEnd: time 2.284e-06/0.4487, allocations: 0 / 0.6909 GB, free: 12.78 MB / 494.1 MB Notification: Performance of Transformations before backend: time 2.181e-05/0.4487, allocations: 0 / 0.6909 GB, free: 12.78 MB / 494.1 MB 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.002025/0.4507, allocations: 1.182 MB / 0.6921 GB, free: 12.09 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.971e-05/0.4508, allocations: 9.375 kB / 0.6921 GB, free: 12.09 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000156/0.4509, allocations: 97.17 kB / 0.6922 GB, free: 12.05 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009811/0.4519, allocations: 0.6186 MB / 0.6928 GB, free: 11.74 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001002/0.452, allocations: 100.8 kB / 0.6929 GB, free: 11.68 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.253e-05/0.4521, allocations: 57.64 kB / 0.6929 GB, free: 11.68 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001073/0.4532, allocations: 0.6064 MB / 0.6935 GB, free: 11.54 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.754e-05/0.4532, allocations: 2.672 kB / 0.6935 GB, free: 11.54 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.284e-05/0.4533, allocations: 20.12 kB / 0.6935 GB, free: 11.54 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.607e-05/0.4533, allocations: 15.8 kB / 0.6935 GB, free: 11.54 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009384/0.4542, allocations: 427.4 kB / 0.6939 GB, free: 11.53 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002665/0.4569, allocations: 2.095 MB / 0.696 GB, free: 10.52 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001164/0.4581, allocations: 0.5011 MB / 0.6965 GB, free: 10.38 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004392/0.4585, allocations: 222.9 kB / 0.6967 GB, free: 10.3 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.341e-05/0.4586, allocations: 5.219 kB / 0.6967 GB, free: 10.3 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006256/0.4592, allocations: 277 kB / 0.697 GB, free: 10.18 MB / 494.1 MB Notification: Performance of pre-optimization done (n=45): time 1.884e-06/0.4592, allocations: 0 / 0.697 GB, free: 10.18 MB / 494.1 MB Notification: Performance of matching and sorting (n=45): time 0.001402/0.4606, allocations: 0.6133 MB / 0.6976 GB, free: 9.934 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.792e-05/0.4607, allocations: 86.67 kB / 0.6976 GB, free: 9.836 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007347/0.4614, allocations: 0.6125 MB / 0.6982 GB, free: 9.562 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 4.392e-05/0.4615, allocations: 37.16 kB / 0.6983 GB, free: 9.523 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002252/0.4617, allocations: 357.6 kB / 0.6986 GB, free: 9.238 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001092/0.4618, allocations: 153.3 kB / 0.6988 GB, free: 9.121 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001483/0.462, allocations: 92.41 kB / 0.6989 GB, free: 9.07 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 5.851e-05/0.4621, allocations: 330 kB / 0.6992 GB, free: 8.754 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004269/0.4625, allocations: 181.9 kB / 0.6993 GB, free: 8.684 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004892/0.463, allocations: 288.3 kB / 0.6996 GB, free: 8.512 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008603/0.4639, allocations: 471.9 kB / 0.7001 GB, free: 8.246 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.827e-06/0.4639, allocations: 1.062 kB / 0.7001 GB, free: 8.246 MB / 494.1 MB Notification: Performance of matching and sorting (n=64) (initialization): time 0.001195/0.4651, allocations: 0.6016 MB / 0.7007 GB, free: 7.984 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.851e-05/0.4651, allocations: 35.33 kB / 0.7007 GB, free: 7.953 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.748e-06/0.4651, allocations: 2.453 kB / 0.7007 GB, free: 7.953 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.375e-05/0.4652, allocations: 5.812 kB / 0.7007 GB, free: 7.953 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004732/0.4657, allocations: 108.2 kB / 0.7008 GB, free: 7.949 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.221e-05/0.4657, allocations: 5.938 kB / 0.7008 GB, free: 7.949 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003563/0.466, allocations: 67.42 kB / 0.7009 GB, free: 7.91 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.077e-05/0.4661, allocations: 22.44 kB / 0.7009 GB, free: 7.906 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0004917/0.4666, allocations: 309.9 kB / 0.7012 GB, free: 7.73 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0004/0.467, allocations: 273 kB / 0.7014 GB, free: 7.559 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0006999/0.4677, allocations: 451.6 kB / 0.7019 GB, free: 7.289 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 2.795e-06/0.4677, allocations: 1 kB / 0.7019 GB, free: 7.289 MB / 494.1 MB Notification: Performance of matching and sorting (n=64) (initialization_lambda0): time 0.0009771/0.4687, allocations: 0.5801 MB / 0.7024 GB, free: 7.027 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.3e-05/0.4687, allocations: 33.94 kB / 0.7025 GB, free: 6.996 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.278e-06/0.4687, allocations: 3 kB / 0.7025 GB, free: 6.996 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 8.466e-06/0.4687, allocations: 4.719 kB / 0.7025 GB, free: 6.996 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004308/0.4692, allocations: 107.1 kB / 0.7026 GB, free: 6.988 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.514e-06/0.4692, allocations: 4.938 kB / 0.7026 GB, free: 6.988 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000336/0.4695, allocations: 55.12 kB / 0.7026 GB, free: 6.957 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.02e-05/0.4696, allocations: 19.75 kB / 0.7027 GB, free: 6.953 MB / 494.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 11 * Number of states: 0 () * Number of discrete variables: 8 (pulse.count,$PRE.pulse.count,pulse.T_start,$PRE.pulse.T_start,$whenCondition1,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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001711/0.4698, allocations: 217.3 kB / 0.7029 GB, free: 6.754 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001054/0.4699, allocations: 73.16 kB / 0.7029 GB, free: 6.715 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001477/0.47, allocations: 79.8 kB / 0.703 GB, free: 6.664 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.124e-06/0.47, allocations: 4.906 kB / 0.703 GB, free: 6.664 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.123e-05/0.4701, allocations: 0.7969 kB / 0.703 GB, free: 6.664 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.137e-06/0.4701, allocations: 3.062 kB / 0.703 GB, free: 6.664 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008035/0.4709, allocations: 0.6261 MB / 0.7036 GB, free: 6.301 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.258e-06/0.4709, allocations: 0.6094 kB / 0.7036 GB, free: 6.301 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004638/0.4714, allocations: 87.78 kB / 0.7037 GB, free: 6.293 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.072e-06/0.4714, allocations: 1.125 kB / 0.7037 GB, free: 6.293 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.751e-05/0.4714, allocations: 12.81 kB / 0.7037 GB, free: 6.285 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.616e-06/0.4714, allocations: 1.625 kB / 0.7037 GB, free: 6.285 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.743e-06/0.4714, allocations: 4.312 kB / 0.7037 GB, free: 6.285 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001448/0.4729, allocations: 0.7308 MB / 0.7045 GB, free: 5.949 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002272/0.4731, allocations: 187.6 kB / 0.7046 GB, free: 5.789 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.312e-05/0.4732, allocations: 11.28 kB / 0.7046 GB, free: 5.781 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003827/0.4736, allocations: 36.33 kB / 0.7047 GB, free: 5.773 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001111/0.4737, allocations: 29.75 kB / 0.7047 GB, free: 5.77 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.368e-05/0.4738, allocations: 17.59 kB / 0.7047 GB, free: 5.766 MB / 494.1 MB Notification: Performance of sorting global known variables: time 0.0005712/0.4743, allocations: 436.5 kB / 0.7051 GB, free: 5.574 MB / 494.1 MB Notification: Performance of sort global known variables: time 7.91e-07/0.4744, allocations: 0 / 0.7051 GB, free: 5.574 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.0006847/0.475, allocations: 219 kB / 0.7053 GB, free: 5.52 MB / 494.1 MB 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001374/0.4752, allocations: 110.8 kB / 0.7055 GB, free: 5.426 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.001709/0.4769, allocations: 0.7885 MB / 0.7062 GB, free: 5.098 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 3.877e-06/0.4769, allocations: 0 / 0.7062 GB, free: 5.098 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005441/0.4775, allocations: 212.3 kB / 0.7064 GB, free: 5.043 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009742/0.4785, allocations: 213.3 kB / 0.7066 GB, free: 4.973 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002514/0.481, allocations: 1.177 MB / 0.7078 GB, free: 4.328 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000602/0.4816, allocations: 0.9127 MB / 0.7087 GB, free: 3.621 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 0.0005555/0.4822, allocations: 96 kB / 0.7088 GB, free: 3.598 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000179/0.4824, allocations: 46.44 kB / 0.7088 GB, free: 3.59 MB / 494.1 MB Notification: Performance of SimCode: time 3.6e-07/0.4824, allocations: 1.875 kB / 0.7088 GB, free: 3.59 MB / 494.1 MB Notification: Performance of Templates: time 0.02041/0.5028, allocations: 7.591 MB / 0.7162 GB, free: 2.355 MB / 494.1 MB make -j1 -f BuildingSystems_BuildingSystems.Controls.Continuous.Examples.LimPID.makefile (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 & ./BuildingSystems_BuildingSystems.Controls.Continuous.Examples.LimPID -abortSlowSimulation -alarm=480 -s cvode -lv LOG_STATS > BuildingSystems_BuildingSystems.Controls.Continuous.Examples.LimPID.pipe 2>&1)