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.001384/0.001388, allocations: 107.2 kB / 16.27 MB, free: 6.414 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.001412/0.001412, allocations: 191.8 kB / 17.2 MB, free: 5.953 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.323/1.323, allocations: 222.9 MB / 240.9 MB, free: 15.24 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002121/0.002121, allocations: 288.7 kB / 291.3 MB, free: 14.45 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.9482/0.9482, allocations: 169.3 MB / 0.4988 GB, free: 4.504 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00194/0.00194, allocations: 94.09 kB / 0.5959 GB, free: 15.15 MB / 414.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1508/0.1528, allocations: 86.98 MB / 0.6808 GB, free: 8.184 MB / 494.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Controls.Continuous.Examples.LimPID): time 0.005242/0.1581, allocations: 3.71 MB / 0.6845 GB, free: 4.449 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.002908/0.161, allocations: 1.329 MB / 0.6858 GB, free: 3.113 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006113/0.1616, allocations: 23.88 kB / 0.6858 GB, free: 3.09 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004196/0.1621, allocations: 126.6 kB / 0.6859 GB, free: 2.965 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0007375/0.1629, allocations: 178.5 kB / 0.6861 GB, free: 2.789 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001327/0.1642, allocations: 0.5628 MB / 0.6866 GB, free: 2.234 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 0.001126/0.1654, allocations: 0.9604 MB / 0.6876 GB, free: 1.273 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005915/0.166, allocations: 361.8 kB / 0.6879 GB, free: 0.9062 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004848/0.1664, allocations: 358.4 kB / 0.6882 GB, free: 0.5547 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004377/0.1669, allocations: 350.1 kB / 0.6886 GB, free: 216 kB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001567/0.1671, allocations: 76 kB / 0.6887 GB, free: 140 kB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001357/0.1672, allocations: 80 kB / 0.6887 GB, free: 60 kB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 0.2617/0.4289, allocations: 185.7 kB / 0.6889 GB, free: 13.3 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000427/0.4293, allocations: 379.9 kB / 0.6893 GB, free: 13.26 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0009727/0.4303, allocations: 0.8496 MB / 0.6901 GB, free: 13.13 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.057e-06/0.4303, allocations: 0.875 kB / 0.6901 GB, free: 13.13 MB / 494.1 MB Notification: Performance of FrontEnd: time 1.383e-06/0.4303, allocations: 0 / 0.6901 GB, free: 13.13 MB / 494.1 MB Notification: Performance of Transformations before backend: time 1.159e-05/0.4303, allocations: 0 / 0.6901 GB, free: 13.13 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.001909/0.4323, allocations: 1.179 MB / 0.6912 GB, free: 12.45 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.767e-05/0.4323, allocations: 9.438 kB / 0.6913 GB, free: 12.45 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001596/0.4325, allocations: 95.3 kB / 0.6913 GB, free: 12.4 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008497/0.4333, allocations: 0.5956 MB / 0.6919 GB, free: 12.09 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.785e-05/0.4334, allocations: 104.6 kB / 0.692 GB, free: 12.02 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.438e-05/0.4335, allocations: 58.52 kB / 0.6921 GB, free: 12.02 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001036/0.4346, allocations: 0.6033 MB / 0.6927 GB, free: 11.88 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.539e-05/0.4346, allocations: 4 kB / 0.6927 GB, free: 11.88 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.366e-05/0.4347, allocations: 21.94 kB / 0.6927 GB, free: 11.88 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.316e-05/0.4347, allocations: 12.75 kB / 0.6927 GB, free: 11.88 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009712/0.4357, allocations: 420.5 kB / 0.6931 GB, free: 11.88 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002569/0.4382, allocations: 2.114 MB / 0.6952 GB, free: 10.85 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001201/0.4394, allocations: 0.4943 MB / 0.6957 GB, free: 10.81 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004545/0.4399, allocations: 220.2 kB / 0.6959 GB, free: 10.74 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.656e-05/0.44, allocations: 8.953 kB / 0.6959 GB, free: 10.74 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006272/0.4406, allocations: 280.2 kB / 0.6961 GB, free: 10.61 MB / 494.1 MB Notification: Performance of pre-optimization done (n=45): time 3.155e-06/0.4406, allocations: 0 / 0.6961 GB, free: 10.61 MB / 494.1 MB Notification: Performance of matching and sorting (n=45): time 0.001461/0.4421, allocations: 0.6088 MB / 0.6967 GB, free: 10.38 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.13e-05/0.4421, allocations: 91.25 kB / 0.6968 GB, free: 10.27 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006964/0.4428, allocations: 0.6133 MB / 0.6974 GB, free: 10 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 4.094e-05/0.4429, allocations: 36.3 kB / 0.6975 GB, free: 9.961 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002104/0.4431, allocations: 356.8 kB / 0.6978 GB, free: 9.68 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001046/0.4432, allocations: 155.6 kB / 0.6979 GB, free: 9.562 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001543/0.4434, allocations: 95.3 kB / 0.698 GB, free: 9.512 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 5.677e-05/0.4434, allocations: 324.6 kB / 0.6983 GB, free: 9.199 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004502/0.4439, allocations: 187.1 kB / 0.6985 GB, free: 9.125 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004826/0.4444, allocations: 279.8 kB / 0.6988 GB, free: 8.961 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008863/0.4453, allocations: 478.5 kB / 0.6993 GB, free: 8.691 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.308e-06/0.4453, allocations: 1.094 kB / 0.6993 GB, free: 8.691 MB / 494.1 MB Notification: Performance of matching and sorting (n=64) (initialization): time 0.00118/0.4465, allocations: 0.6011 MB / 0.6998 GB, free: 8.43 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.267e-05/0.4465, allocations: 37.64 kB / 0.6999 GB, free: 8.395 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.368e-06/0.4465, allocations: 4.125 kB / 0.6999 GB, free: 8.395 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.935e-05/0.4466, allocations: 5.594 kB / 0.6999 GB, free: 8.395 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004886/0.447, allocations: 106.9 kB / 0.7 GB, free: 8.391 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.266e-05/0.4471, allocations: 7.938 kB / 0.7 GB, free: 8.391 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004096/0.4475, allocations: 64.92 kB / 0.7001 GB, free: 8.355 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.895e-05/0.4475, allocations: 18.8 kB / 0.7001 GB, free: 8.352 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0005174/0.4481, allocations: 313.6 kB / 0.7004 GB, free: 8.172 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0004328/0.4485, allocations: 269.5 kB / 0.7006 GB, free: 8 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0007785/0.4493, allocations: 452.6 kB / 0.7011 GB, free: 7.734 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 3.336e-06/0.4493, allocations: 1 kB / 0.7011 GB, free: 7.734 MB / 494.1 MB Notification: Performance of matching and sorting (n=64) (initialization_lambda0): time 0.001039/0.4503, allocations: 0.5778 MB / 0.7016 GB, free: 7.473 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.102e-05/0.4504, allocations: 34.12 kB / 0.7017 GB, free: 7.441 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.599e-06/0.4504, allocations: 3 kB / 0.7017 GB, free: 7.441 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 6.071e-06/0.4504, allocations: 8.938 kB / 0.7017 GB, free: 7.438 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004419/0.4508, allocations: 102.7 kB / 0.7018 GB, free: 7.434 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.097e-06/0.4509, allocations: 6.484 kB / 0.7018 GB, free: 7.434 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003621/0.4512, allocations: 56.22 kB / 0.7018 GB, free: 7.402 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.552e-05/0.4513, allocations: 18.84 kB / 0.7018 GB, free: 7.398 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.0001557/0.4514, allocations: 214.4 kB / 0.7021 GB, free: 7.199 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.526e-05/0.4515, allocations: 76.19 kB / 0.7021 GB, free: 7.16 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001336/0.4517, allocations: 84.97 kB / 0.7022 GB, free: 7.102 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.612e-06/0.4517, allocations: 5.031 kB / 0.7022 GB, free: 7.102 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.046e-05/0.4517, allocations: 0.875 kB / 0.7022 GB, free: 7.102 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.993e-06/0.4517, allocations: 2.25 kB / 0.7022 GB, free: 7.102 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006442/0.4524, allocations: 0.6252 MB / 0.7028 GB, free: 6.738 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.073e-06/0.4524, allocations: 0 / 0.7028 GB, free: 6.738 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004558/0.4528, allocations: 83.52 kB / 0.7029 GB, free: 6.734 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.857e-06/0.4528, allocations: 1.781 kB / 0.7029 GB, free: 6.734 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.186e-05/0.4529, allocations: 14.77 kB / 0.7029 GB, free: 6.727 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.416e-06/0.4529, allocations: 3.031 kB / 0.7029 GB, free: 6.727 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.583e-06/0.4529, allocations: 0 / 0.7029 GB, free: 6.727 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001441/0.4543, allocations: 0.7314 MB / 0.7036 GB, free: 6.391 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001899/0.4545, allocations: 193 kB / 0.7038 GB, free: 6.227 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.834e-05/0.4546, allocations: 10.8 kB / 0.7038 GB, free: 6.219 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004072/0.455, allocations: 32.62 kB / 0.7039 GB, free: 6.215 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.545e-05/0.4552, allocations: 29.11 kB / 0.7039 GB, free: 6.211 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.931e-05/0.4552, allocations: 17.97 kB / 0.7039 GB, free: 6.207 MB / 494.1 MB Notification: Performance of sorting global known variables: time 0.0005092/0.4557, allocations: 436.5 kB / 0.7043 GB, free: 6.016 MB / 494.1 MB Notification: Performance of sort global known variables: time 1.71e-07/0.4557, allocations: 1.062 kB / 0.7043 GB, free: 6.016 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.0006188/0.4563, allocations: 214.2 kB / 0.7045 GB, free: 5.961 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.000122/0.4565, allocations: 111.1 kB / 0.7046 GB, free: 5.867 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.001667/0.4581, allocations: 0.8026 MB / 0.7054 GB, free: 5.535 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 2.354e-06/0.4582, allocations: 0 / 0.7054 GB, free: 5.535 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004654/0.4586, allocations: 216.5 kB / 0.7056 GB, free: 5.477 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009288/0.4596, allocations: 220.9 kB / 0.7058 GB, free: 5.395 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00198/0.4616, allocations: 1.224 MB / 0.707 GB, free: 4.703 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003513/0.4619, allocations: 0.9181 MB / 0.7079 GB, free: 3.992 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001819/0.4621, allocations: 50.25 kB / 0.708 GB, free: 3.984 MB / 494.1 MB Notification: Performance of SimCode: time 4.4e-07/0.4621, allocations: 0 / 0.708 GB, free: 3.984 MB / 494.1 MB Notification: Performance of Templates: time 0.01291/0.475, allocations: 8.651 MB / 0.7164 GB, free: 1.984 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 -lv LOG_STATS > BuildingSystems_BuildingSystems.Controls.Continuous.Examples.LimPID.pipe 2>&1)