Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr IBPSA_latest_IBPSA.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/IBPSA 4.0.0-master/package.mo", uses=false) Using package IBPSA with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/IBPSA 4.0.0-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(IBPSA.Controls.Continuous.Examples.LimPID,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="IBPSA_latest_IBPSA.Controls.Continuous.Examples.LimPID") translateModel(IBPSA.Controls.Continuous.Examples.LimPID,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="IBPSA_latest_IBPSA.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.001242/0.001242, allocations: 100.8 kB / 15.98 MB, free: 6.344 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.00162/0.00162, allocations: 191.6 kB / 16.9 MB, free: 6.188 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.386/1.386, allocations: 222.9 MB / 240.6 MB, free: 15.42 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IBPSA 4.0.0-master/package.mo): time 0.8426/0.8426, allocations: 126.1 MB / 416.8 MB, free: 12.96 MB / 334.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001229/0.001229, allocations: 67.89 kB / 0.4945 GB, free: 3.812 MB / 414.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3829/0.3842, allocations: 78.69 MB / 0.5713 GB, free: 31.24 MB / 446.1 MB Notification: Performance of NFInst.instantiate(IBPSA.Controls.Continuous.Examples.LimPID): time 0.005346/0.3895, allocations: 3.708 MB / 0.5749 GB, free: 28.6 MB / 446.1 MB Notification: Performance of NFInst.instExpressions: time 0.002694/0.3923, allocations: 1.295 MB / 0.5762 GB, free: 27.67 MB / 446.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004545/0.3927, allocations: 25.56 kB / 0.5762 GB, free: 27.66 MB / 446.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003493/0.3931, allocations: 94.84 kB / 0.5763 GB, free: 27.6 MB / 446.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005287/0.3937, allocations: 142.5 kB / 0.5764 GB, free: 27.5 MB / 446.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001145/0.3948, allocations: 0.5224 MB / 0.577 GB, free: 27.2 MB / 446.1 MB Notification: Performance of NFFlatten.flatten: time 0.001089/0.3959, allocations: 0.9681 MB / 0.5779 GB, free: 26.71 MB / 446.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005543/0.3965, allocations: 349.4 kB / 0.5782 GB, free: 26.54 MB / 446.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004826/0.397, allocations: 369 kB / 0.5786 GB, free: 26.34 MB / 446.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004161/0.3974, allocations: 359 kB / 0.5789 GB, free: 26.13 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001221/0.3975, allocations: 77.06 kB / 0.579 GB, free: 26.13 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001227/0.3977, allocations: 78.16 kB / 0.5791 GB, free: 26.13 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001537/0.3978, allocations: 179.5 kB / 0.5793 GB, free: 26.01 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002915/0.3981, allocations: 381 kB / 0.5796 GB, free: 25.72 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007672/0.3989, allocations: 0.8608 MB / 0.5805 GB, free: 25.04 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.642e-06/0.3989, allocations: 1.438 kB / 0.5805 GB, free: 25.04 MB / 446.1 MB Notification: Performance of FrontEnd: time 2.605e-06/0.3989, allocations: 0 / 0.5805 GB, free: 25.04 MB / 446.1 MB Notification: Performance of Transformations before backend: time 1.237e-05/0.3989, allocations: 0.8438 kB / 0.5805 GB, free: 25.04 MB / 446.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.001929/0.4009, allocations: 1.178 MB / 0.5816 GB, free: 24.11 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.209e-05/0.4009, allocations: 11.91 kB / 0.5816 GB, free: 24.11 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000167/0.4011, allocations: 93.44 kB / 0.5817 GB, free: 24.06 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007768/0.4019, allocations: 0.6022 MB / 0.5823 GB, free: 23.54 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.442e-05/0.402, allocations: 99.23 kB / 0.5824 GB, free: 23.46 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.375e-05/0.4021, allocations: 51.25 kB / 0.5824 GB, free: 23.44 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009898/0.4031, allocations: 0.602 MB / 0.583 GB, free: 23.04 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.695e-05/0.4031, allocations: 0.6875 kB / 0.583 GB, free: 23.04 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.916e-05/0.4032, allocations: 27.58 kB / 0.5831 GB, free: 23.02 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.068e-05/0.4032, allocations: 11.53 kB / 0.5831 GB, free: 23.02 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000864/0.4041, allocations: 420.6 kB / 0.5835 GB, free: 22.82 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002388/0.4065, allocations: 2.123 MB / 0.5855 GB, free: 21.07 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001144/0.4076, allocations: 0.4907 MB / 0.586 GB, free: 20.82 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004301/0.408, allocations: 218.1 kB / 0.5862 GB, free: 20.72 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.977e-05/0.4081, allocations: 4.75 kB / 0.5862 GB, free: 20.72 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006579/0.4088, allocations: 278.3 kB / 0.5865 GB, free: 20.54 MB / 446.1 MB Notification: Performance of pre-optimization done (n=45): time 1.763e-06/0.4088, allocations: 0 / 0.5865 GB, free: 20.54 MB / 446.1 MB Notification: Performance of matching and sorting (n=45): time 0.001494/0.4103, allocations: 0.6114 MB / 0.5871 GB, free: 20.24 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.575e-05/0.4103, allocations: 91.34 kB / 0.5872 GB, free: 20.14 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006491/0.411, allocations: 0.6154 MB / 0.5878 GB, free: 19.77 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 4.206e-05/0.4111, allocations: 37.2 kB / 0.5878 GB, free: 19.73 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002029/0.4113, allocations: 355.5 kB / 0.5882 GB, free: 19.43 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.613e-05/0.4114, allocations: 151.8 kB / 0.5883 GB, free: 19.29 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001431/0.4115, allocations: 100.5 kB / 0.5884 GB, free: 19.23 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 5.763e-05/0.4116, allocations: 322.5 kB / 0.5887 GB, free: 18.91 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004268/0.412, allocations: 191.6 kB / 0.5889 GB, free: 18.81 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004679/0.4125, allocations: 276.2 kB / 0.5892 GB, free: 18.61 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008964/0.4134, allocations: 477.8 kB / 0.5896 GB, free: 18.3 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.797e-06/0.4134, allocations: 7.875 kB / 0.5896 GB, free: 18.3 MB / 446.1 MB Notification: Performance of matching and sorting (n=64) (initialization): time 0.001233/0.4146, allocations: 0.597 MB / 0.5902 GB, free: 17.98 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.802e-05/0.4147, allocations: 32.89 kB / 0.5902 GB, free: 17.95 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.049e-05/0.4147, allocations: 2.531 kB / 0.5902 GB, free: 17.95 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.509e-05/0.4148, allocations: 7.938 kB / 0.5902 GB, free: 17.95 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004825/0.4152, allocations: 108.1 kB / 0.5903 GB, free: 17.92 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.442e-05/0.4153, allocations: 6.094 kB / 0.5903 GB, free: 17.92 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004094/0.4157, allocations: 65.41 kB / 0.5904 GB, free: 17.88 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.07e-05/0.4157, allocations: 18.5 kB / 0.5904 GB, free: 17.88 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0005539/0.4163, allocations: 313.9 kB / 0.5907 GB, free: 17.67 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0004335/0.4167, allocations: 269.8 kB / 0.591 GB, free: 17.48 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0007808/0.4175, allocations: 454.7 kB / 0.5914 GB, free: 17.18 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 2.625e-06/0.4175, allocations: 0 / 0.5914 GB, free: 17.18 MB / 446.1 MB Notification: Performance of matching and sorting (n=64) (initialization_lambda0): time 0.001057/0.4186, allocations: 0.5803 MB / 0.592 GB, free: 16.86 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.765e-05/0.4186, allocations: 40.39 kB / 0.592 GB, free: 16.82 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.348e-06/0.4186, allocations: 2.281 kB / 0.592 GB, free: 16.82 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 8.366e-06/0.4187, allocations: 5.531 kB / 0.592 GB, free: 16.82 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004274/0.4191, allocations: 105.4 kB / 0.5921 GB, free: 16.79 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.755e-06/0.4191, allocations: 4.969 kB / 0.5921 GB, free: 16.79 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003615/0.4195, allocations: 52.94 kB / 0.5922 GB, free: 16.75 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.711e-05/0.4195, allocations: 18.03 kB / 0.5922 GB, free: 16.75 MB / 446.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.0001746/0.4197, allocations: 219.7 kB / 0.5924 GB, free: 16.54 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001009/0.4198, allocations: 69.56 kB / 0.5925 GB, free: 16.5 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001439/0.42, allocations: 78 kB / 0.5926 GB, free: 16.44 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.183e-06/0.42, allocations: 8.047 kB / 0.5926 GB, free: 16.44 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.464e-05/0.42, allocations: 1.781 kB / 0.5926 GB, free: 16.44 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.981e-06/0.42, allocations: 0 / 0.5926 GB, free: 16.44 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006711/0.4207, allocations: 0.6316 MB / 0.5932 GB, free: 15.88 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.345e-06/0.4207, allocations: 0 / 0.5932 GB, free: 15.88 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004307/0.4211, allocations: 83.89 kB / 0.5933 GB, free: 15.8 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.799e-06/0.4211, allocations: 4 kB / 0.5933 GB, free: 15.79 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.018e-05/0.4212, allocations: 4 kB / 0.5933 GB, free: 15.79 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.255e-06/0.4212, allocations: 4 kB / 0.5933 GB, free: 15.79 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.465e-06/0.4212, allocations: 3.984 kB / 0.5933 GB, free: 15.78 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001275/0.4225, allocations: 0.7289 MB / 0.594 GB, free: 15.03 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001665/0.4226, allocations: 188.1 kB / 0.5942 GB, free: 14.83 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.631e-05/0.4227, allocations: 15.98 kB / 0.5942 GB, free: 14.81 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003745/0.4231, allocations: 31.97 kB / 0.5942 GB, free: 14.78 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.507e-05/0.4232, allocations: 35.95 kB / 0.5942 GB, free: 14.75 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.341e-05/0.4233, allocations: 15.98 kB / 0.5943 GB, free: 14.73 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.0003842/0.4236, allocations: 435 kB / 0.5947 GB, free: 14.31 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.4237, allocations: 0 / 0.5947 GB, free: 14.31 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.0005621/0.4242, allocations: 219.2 kB / 0.5949 GB, free: 14.1 MB / 446.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.0001332/0.4244, allocations: 114 kB / 0.595 GB, free: 13.98 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.001428/0.4258, allocations: 0.8089 MB / 0.5958 GB, free: 13.15 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 3.537e-06/0.4258, allocations: 4.125 kB / 0.5958 GB, free: 13.14 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003983/0.4262, allocations: 211.8 kB / 0.596 GB, free: 12.94 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008741/0.4271, allocations: 201.5 kB / 0.5962 GB, free: 12.75 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001783/0.4289, allocations: 1.453 MB / 0.5976 GB, free: 11.26 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002685/0.4292, allocations: 0.918 MB / 0.5985 GB, free: 10.32 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.0003674/0.4295, allocations: 93.11 kB / 0.5986 GB, free: 10.23 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001272/0.4297, allocations: 47.44 kB / 0.5986 GB, free: 10.18 MB / 446.1 MB Notification: Performance of SimCode: time 2.1e-07/0.4297, allocations: 0 / 0.5986 GB, free: 10.18 MB / 446.1 MB Notification: Performance of Templates: time 0.01115/0.4408, allocations: 7.505 MB / 0.606 GB, free: 2.77 MB / 446.1 MB make -j1 -f IBPSA_latest_IBPSA.Controls.Continuous.Examples.LimPID.makefile (rm -f IBPSA_latest_IBPSA.Controls.Continuous.Examples.LimPID.pipe ; mkfifo IBPSA_latest_IBPSA.Controls.Continuous.Examples.LimPID.pipe ; head -c 1048576 < IBPSA_latest_IBPSA.Controls.Continuous.Examples.LimPID.pipe >> ../files/IBPSA_latest_IBPSA.Controls.Continuous.Examples.LimPID.sim & ./IBPSA_latest_IBPSA.Controls.Continuous.Examples.LimPID -abortSlowSimulation -alarm=480 -lv LOG_STATS > IBPSA_latest_IBPSA.Controls.Continuous.Examples.LimPID.pipe 2>&1)