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.001134/0.001134, allocations: 106.5 kB / 16.35 MB, free: 5.824 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.001003/0.001003, allocations: 189.4 kB / 17.29 MB, free: 5.48 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.277/1.277, allocations: 222.9 MB / 241 MB, free: 15.15 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002141/0.002141, allocations: 278.1 kB / 291.4 MB, free: 14.48 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.9236/0.9236, allocations: 169.3 MB / 0.4989 GB, free: 4.465 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001776/0.001776, allocations: 93.72 kB / 0.5966 GB, free: 14.47 MB / 414.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1361/0.1379, allocations: 86.98 MB / 0.6816 GB, free: 7.473 MB / 494.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Controls.Continuous.Examples.LimPID): time 0.004515/0.1425, allocations: 3.714 MB / 0.6852 GB, free: 3.734 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.001981/0.1445, allocations: 1.325 MB / 0.6865 GB, free: 2.402 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002657/0.1447, allocations: 23.88 kB / 0.6865 GB, free: 2.379 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002835/0.145, allocations: 126.6 kB / 0.6866 GB, free: 2.254 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004261/0.1455, allocations: 174.5 kB / 0.6868 GB, free: 2.082 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001004/0.1465, allocations: 0.5778 MB / 0.6874 GB, free: 1.516 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 0.0008931/0.1474, allocations: 0.972 MB / 0.6883 GB, free: 0.543 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004608/0.1479, allocations: 357.4 kB / 0.6887 GB, free: 188 kB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.2295/0.3773, allocations: 353.7 kB / 0.689 GB, free: 13.1 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004407/0.3778, allocations: 349 kB / 0.6893 GB, free: 13.07 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001377/0.378, allocations: 79.03 kB / 0.6894 GB, free: 13.07 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001054/0.3781, allocations: 79.44 kB / 0.6895 GB, free: 13.07 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001368/0.3782, allocations: 185.8 kB / 0.6897 GB, free: 13.04 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002733/0.3785, allocations: 377.9 kB / 0.69 GB, free: 12.91 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0008173/0.3793, allocations: 0.8884 MB / 0.6909 GB, free: 12.76 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.637e-06/0.3793, allocations: 0.5312 kB / 0.6909 GB, free: 12.76 MB / 494.1 MB Notification: Performance of FrontEnd: time 1.062e-06/0.3793, allocations: 0 / 0.6909 GB, free: 12.76 MB / 494.1 MB Notification: Performance of Transformations before backend: time 1.068e-05/0.3794, allocations: 2.031 kB / 0.6909 GB, free: 12.76 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.001825/0.3812, allocations: 1.176 MB / 0.692 GB, free: 12.08 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.072e-05/0.3812, allocations: 9.625 kB / 0.6921 GB, free: 12.08 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001423/0.3814, allocations: 96.8 kB / 0.6921 GB, free: 12.04 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000994/0.3824, allocations: 0.6215 MB / 0.6928 GB, free: 11.73 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.851e-05/0.3825, allocations: 98.12 kB / 0.6928 GB, free: 11.67 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.717e-05/0.3826, allocations: 56.95 kB / 0.6929 GB, free: 11.66 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00101/0.3836, allocations: 0.5998 MB / 0.6935 GB, free: 11.52 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.549e-05/0.3836, allocations: 3.906 kB / 0.6935 GB, free: 11.52 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.326e-05/0.3837, allocations: 22.62 kB / 0.6935 GB, free: 11.52 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.408e-05/0.3837, allocations: 13.72 kB / 0.6935 GB, free: 11.52 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009436/0.3846, allocations: 424.2 kB / 0.6939 GB, free: 11.52 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00243/0.3871, allocations: 2.105 MB / 0.696 GB, free: 10.5 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001135/0.3882, allocations: 0.4963 MB / 0.6965 GB, free: 10.39 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004352/0.3887, allocations: 218.8 kB / 0.6967 GB, free: 10.3 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.154e-05/0.3887, allocations: 9.656 kB / 0.6967 GB, free: 10.3 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005795/0.3893, allocations: 280.6 kB / 0.697 GB, free: 10.18 MB / 494.1 MB Notification: Performance of pre-optimization done (n=45): time 1.914e-06/0.3893, allocations: 0 / 0.697 GB, free: 10.18 MB / 494.1 MB Notification: Performance of matching and sorting (n=45): time 0.001372/0.3907, allocations: 0.6086 MB / 0.6976 GB, free: 9.938 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.789e-05/0.3907, allocations: 86.77 kB / 0.6976 GB, free: 9.84 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006639/0.3914, allocations: 0.6117 MB / 0.6982 GB, free: 9.566 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 4.25e-05/0.3915, allocations: 37.92 kB / 0.6983 GB, free: 9.527 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001995/0.3917, allocations: 362.8 kB / 0.6986 GB, free: 9.242 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.527e-05/0.3918, allocations: 152.1 kB / 0.6988 GB, free: 9.125 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001478/0.3919, allocations: 94.23 kB / 0.6988 GB, free: 9.074 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 4.636e-05/0.392, allocations: 325.7 kB / 0.6992 GB, free: 8.762 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004326/0.3924, allocations: 185.6 kB / 0.6993 GB, free: 8.688 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004703/0.3929, allocations: 275.8 kB / 0.6996 GB, free: 8.523 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008474/0.3937, allocations: 481 kB / 0.7001 GB, free: 8.254 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.288e-06/0.3938, allocations: 4.312 kB / 0.7001 GB, free: 8.254 MB / 494.1 MB Notification: Performance of matching and sorting (n=64) (initialization): time 0.001112/0.3949, allocations: 0.6 MB / 0.7006 GB, free: 7.992 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.767e-05/0.3949, allocations: 35.11 kB / 0.7007 GB, free: 7.961 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.424e-06/0.3949, allocations: 3.906 kB / 0.7007 GB, free: 7.961 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.607e-05/0.395, allocations: 4.156 kB / 0.7007 GB, free: 7.961 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000489/0.3954, allocations: 110.7 kB / 0.7008 GB, free: 7.957 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.128e-05/0.3955, allocations: 8.828 kB / 0.7008 GB, free: 7.957 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000371/0.3958, allocations: 68.28 kB / 0.7009 GB, free: 7.918 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.89e-05/0.3959, allocations: 19.27 kB / 0.7009 GB, free: 7.914 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0005048/0.3964, allocations: 309.7 kB / 0.7012 GB, free: 7.738 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0004093/0.3968, allocations: 270.2 kB / 0.7014 GB, free: 7.562 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0007347/0.3976, allocations: 453.6 kB / 0.7019 GB, free: 7.297 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 2.595e-06/0.3976, allocations: 5.219 kB / 0.7019 GB, free: 7.293 MB / 494.1 MB Notification: Performance of matching and sorting (n=64) (initialization_lambda0): time 0.0009985/0.3986, allocations: 0.5725 MB / 0.7024 GB, free: 7.035 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.84e-05/0.3986, allocations: 33.16 kB / 0.7025 GB, free: 7.004 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.909e-06/0.3986, allocations: 6.781 kB / 0.7025 GB, free: 7 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 5.961e-06/0.3986, allocations: 8.625 kB / 0.7025 GB, free: 7 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004367/0.3991, allocations: 102.5 kB / 0.7026 GB, free: 6.996 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.164e-06/0.3991, allocations: 6.172 kB / 0.7026 GB, free: 6.996 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003395/0.3994, allocations: 51.41 kB / 0.7026 GB, free: 6.969 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.558e-05/0.3995, allocations: 23.97 kB / 0.7027 GB, free: 6.961 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.0001086/0.3996, allocations: 215.5 kB / 0.7029 GB, free: 6.758 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.876e-05/0.3997, allocations: 73.72 kB / 0.7029 GB, free: 6.719 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001459/0.3998, allocations: 79.64 kB / 0.703 GB, free: 6.668 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.32e-06/0.3998, allocations: 5.094 kB / 0.703 GB, free: 6.668 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.174e-06/0.3999, allocations: 0 / 0.703 GB, free: 6.668 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.231e-06/0.3999, allocations: 3.578 kB / 0.703 GB, free: 6.668 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006116/0.4005, allocations: 0.6252 MB / 0.7036 GB, free: 6.305 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.054e-06/0.4005, allocations: 0 / 0.7036 GB, free: 6.305 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000472/0.401, allocations: 86.44 kB / 0.7037 GB, free: 6.301 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.318e-06/0.401, allocations: 9.938 kB / 0.7037 GB, free: 6.297 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.262e-05/0.401, allocations: 7.297 kB / 0.7037 GB, free: 6.293 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.547e-06/0.401, allocations: 3.406 kB / 0.7037 GB, free: 6.293 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.82e-07/0.401, allocations: 0 / 0.7037 GB, free: 6.293 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001399/0.4024, allocations: 0.7279 MB / 0.7044 GB, free: 5.957 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002041/0.4027, allocations: 187.2 kB / 0.7046 GB, free: 5.797 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.854e-05/0.4027, allocations: 12.25 kB / 0.7046 GB, free: 5.789 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000398/0.4031, allocations: 32.09 kB / 0.7047 GB, free: 5.785 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.438e-05/0.4032, allocations: 29.73 kB / 0.7047 GB, free: 5.781 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.94e-05/0.4033, allocations: 24.45 kB / 0.7047 GB, free: 5.773 MB / 494.1 MB Notification: Performance of sorting global known variables: time 0.0004644/0.4038, allocations: 432.1 kB / 0.7051 GB, free: 5.582 MB / 494.1 MB Notification: Performance of sort global known variables: time 2.7e-07/0.4038, allocations: 0.9688 kB / 0.7051 GB, free: 5.582 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.000574/0.4043, allocations: 214.2 kB / 0.7053 GB, free: 5.527 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.000109/0.4045, allocations: 117.9 kB / 0.7054 GB, free: 5.43 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.001453/0.4059, allocations: 0.7836 MB / 0.7062 GB, free: 5.109 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 3.035e-06/0.4059, allocations: 1.781 kB / 0.7062 GB, free: 5.109 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004535/0.4064, allocations: 223.8 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.0008253/0.4072, allocations: 207.4 kB / 0.7066 GB, free: 4.98 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00177/0.409, allocations: 1.179 MB / 0.7078 GB, free: 4.336 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003255/0.4093, allocations: 0.9133 MB / 0.7087 GB, free: 3.629 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 0.0003606/0.4097, allocations: 90.3 kB / 0.7088 GB, free: 3.609 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001458/0.4099, allocations: 47.42 kB / 0.7088 GB, free: 3.602 MB / 494.1 MB Notification: Performance of SimCode: time 2.61e-07/0.4099, allocations: 0 / 0.7088 GB, free: 3.602 MB / 494.1 MB Notification: Performance of Templates: time 0.01292/0.4228, allocations: 7.585 MB / 0.7162 GB, free: 2.371 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 gbode -lv LOG_STATS > BuildingSystems_BuildingSystems.Controls.Continuous.Examples.LimPID.pipe 2>&1)