Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_Buildings.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/Buildings 10.1.1-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/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: "" <> buildModelFMU(Buildings.Controls.Continuous.Examples.LimPID,fileNamePrefix="Buildings_10_Buildings_Controls_Continuous_Examples_LimPID",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.Continuous.Examples.LimPID,fileNamePrefix="Buildings_10_Buildings_Controls_Continuous_Examples_LimPID",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.008246/0.008246, allocations: 100 kB / 15.73 MB, free: 6.016 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.001918/0.001918, allocations: 187.8 kB / 16.67 MB, free: 5.93 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.453/1.453, allocations: 222.9 MB / 240.4 MB, free: 15.08 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/package.mo): time 2.61/2.61, allocations: 437 MB / 0.7105 GB, free: 4.344 MB / 0.5762 GB Notification: Performance of FrontEnd - loaded program: time 0.001912/0.001912, allocations: 67.89 kB / 1.018 GB, free: 9.898 MB / 0.795 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7063/0.7082, allocations: 151.6 MB / 1.166 GB, free: 3.715 MB / 0.8887 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.Continuous.Examples.LimPID): time 0.005085/0.7133, allocations: 3.715 MB / 1.17 GB, free: 15.98 MB / 0.9044 GB Notification: Performance of NFInst.instExpressions: time 0.002378/0.7157, allocations: 1.328 MB / 1.171 GB, free: 14.64 MB / 0.9044 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003081/0.7161, allocations: 23.88 kB / 1.171 GB, free: 14.62 MB / 0.9044 GB Notification: Performance of NFTyping.typeComponents: time 0.0003216/0.7164, allocations: 126.6 kB / 1.171 GB, free: 14.49 MB / 0.9044 GB Notification: Performance of NFTyping.typeBindings: time 0.0005064/0.7169, allocations: 174.5 kB / 1.171 GB, free: 14.32 MB / 0.9044 GB Notification: Performance of NFTyping.typeClassSections: time 0.001174/0.7181, allocations: 0.5683 MB / 1.172 GB, free: 13.76 MB / 0.9044 GB Notification: Performance of NFFlatten.flatten: time 0.001027/0.7191, allocations: 0.9682 MB / 1.173 GB, free: 12.79 MB / 0.9044 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0005278/0.7197, allocations: 353.6 kB / 1.173 GB, free: 12.43 MB / 0.9044 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0004176/0.7201, allocations: 358.4 kB / 1.174 GB, free: 12.08 MB / 0.9044 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0003897/0.7205, allocations: 350.1 kB / 1.174 GB, free: 11.74 MB / 0.9044 GB Notification: Performance of NFPackage.collectConstants: time 0.0001305/0.7206, allocations: 80 kB / 1.174 GB, free: 11.66 MB / 0.9044 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001137/0.7207, allocations: 79.94 kB / 1.174 GB, free: 11.58 MB / 0.9044 GB Notification: Performance of NFScalarize.scalarize: time 0.0001689/0.7209, allocations: 175.3 kB / 1.174 GB, free: 11.41 MB / 0.9044 GB Notification: Performance of NFVerifyModel.verify: time 0.0003341/0.7213, allocations: 385.7 kB / 1.175 GB, free: 11.03 MB / 0.9044 GB Notification: Performance of NFConvertDAE.convert: time 0.0009415/0.7222, allocations: 0.898 MB / 1.175 GB, free: 10.13 MB / 0.9044 GB Notification: Performance of FrontEnd - DAE generated: time 4.067e-06/0.7222, allocations: 0 / 1.175 GB, free: 10.13 MB / 0.9044 GB Notification: Performance of FrontEnd: time 1.373e-06/0.7222, allocations: 0 / 1.175 GB, free: 10.13 MB / 0.9044 GB Notification: Performance of Transformations before backend: time 1.143e-05/0.7223, allocations: 0 / 1.175 GB, free: 10.13 MB / 0.9044 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.002138/0.7244, allocations: 1.21 MB / 1.177 GB, free: 8.863 MB / 0.9044 GB Notification: Performance of prepare preOptimizeDAE: time 4.064e-05/0.7244, allocations: 12.92 kB / 1.177 GB, free: 8.852 MB / 0.9044 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001051/0.7246, allocations: 90.7 kB / 1.177 GB, free: 8.754 MB / 0.9044 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001569/0.7247, allocations: 96.33 kB / 1.177 GB, free: 8.66 MB / 0.9044 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001045/0.7258, allocations: 0.6267 MB / 1.177 GB, free: 7.992 MB / 0.9044 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001441/0.7259, allocations: 92.97 kB / 1.178 GB, free: 7.887 MB / 0.9044 GB Notification: Performance of preOpt expandDerOperator (simulation): time 8.825e-05/0.726, allocations: 64.27 kB / 1.178 GB, free: 7.824 MB / 0.9044 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001157/0.7272, allocations: 0.6079 MB / 1.178 GB, free: 7.176 MB / 0.9044 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.61e-05/0.7272, allocations: 0 / 1.178 GB, free: 7.176 MB / 0.9044 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.27e-05/0.7273, allocations: 20 kB / 1.178 GB, free: 7.156 MB / 0.9044 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.443e-05/0.7273, allocations: 12 kB / 1.178 GB, free: 7.145 MB / 0.9044 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001017/0.7283, allocations: 427.6 kB / 1.179 GB, free: 6.727 MB / 0.9044 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002963/0.7313, allocations: 2.099 MB / 1.181 GB, free: 4.543 MB / 0.9044 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001272/0.7326, allocations: 0.5029 MB / 1.181 GB, free: 4.027 MB / 0.9044 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004903/0.7331, allocations: 216.8 kB / 1.181 GB, free: 3.812 MB / 0.9044 GB Notification: Performance of preOpt evalFunc (simulation): time 4.216e-05/0.7331, allocations: 4 kB / 1.181 GB, free: 3.809 MB / 0.9044 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006906/0.7338, allocations: 289.8 kB / 1.182 GB, free: 3.512 MB / 0.9044 GB Notification: Performance of pre-optimization done (n=45): time 2.104e-06/0.7338, allocations: 0 / 1.182 GB, free: 3.512 MB / 0.9044 GB Notification: Performance of matching and sorting (n=45): time 0.001538/0.7354, allocations: 0.6144 MB / 1.182 GB, free: 2.891 MB / 0.9044 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.052e-05/0.7355, allocations: 84.86 kB / 1.182 GB, free: 2.789 MB / 0.9044 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00076/0.7362, allocations: 0.614 MB / 1.183 GB, free: 2.168 MB / 0.9044 GB Notification: Performance of collectPreVariables (initialization): time 4.777e-05/0.7363, allocations: 37.7 kB / 1.183 GB, free: 2.125 MB / 0.9044 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003065/0.7366, allocations: 361.1 kB / 1.183 GB, free: 1.766 MB / 0.9044 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001403/0.7367, allocations: 162.7 kB / 1.183 GB, free: 1.605 MB / 0.9044 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00016/0.7369, allocations: 86.25 kB / 1.184 GB, free: 1.516 MB / 0.9044 GB Notification: Performance of setup shared object (initialization): time 0.000147/0.7371, allocations: 337.9 kB / 1.184 GB, free: 1.18 MB / 0.9044 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000472/0.7375, allocations: 183 kB / 1.184 GB, free: 1 MB / 0.9044 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005494/0.7381, allocations: 280.2 kB / 1.184 GB, free: 0.6875 MB / 0.9044 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009802/0.7391, allocations: 477.9 kB / 1.185 GB, free: 188 kB / 0.9044 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.246e-06/0.7391, allocations: 0 / 1.185 GB, free: 188 kB / 0.9044 GB Notification: Performance of matching and sorting (n=64) (initialization): time 0.001265/0.7404, allocations: 0.6026 MB / 1.185 GB, free: 15.57 MB / 0.92 GB Notification: Performance of prepare postOptimizeDAE: time 4.35e-05/0.7404, allocations: 33.7 kB / 1.185 GB, free: 15.53 MB / 0.92 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.362e-06/0.7404, allocations: 4 kB / 1.185 GB, free: 15.52 MB / 0.92 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.38e-05/0.7405, allocations: 7.984 kB / 1.185 GB, free: 15.52 MB / 0.92 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004912/0.741, allocations: 111.8 kB / 1.185 GB, free: 15.41 MB / 0.92 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.047e-05/0.741, allocations: 5.094 kB / 1.185 GB, free: 15.4 MB / 0.92 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003886/0.7414, allocations: 71.78 kB / 1.186 GB, free: 15.33 MB / 0.92 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.47e-05/0.7414, allocations: 20 kB / 1.186 GB, free: 15.31 MB / 0.92 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0005877/0.742, allocations: 305.2 kB / 1.186 GB, free: 15.01 MB / 0.92 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0004887/0.7425, allocations: 268.2 kB / 1.186 GB, free: 14.71 MB / 0.92 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0008816/0.7434, allocations: 454 kB / 1.187 GB, free: 14.23 MB / 0.92 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 5.26e-06/0.7434, allocations: 4 kB / 1.187 GB, free: 14.23 MB / 0.92 GB Notification: Performance of matching and sorting (n=64) (initialization_lambda0): time 0.001158/0.7446, allocations: 0.5829 MB / 1.187 GB, free: 13.63 MB / 0.92 GB Notification: Performance of prepare postOptimizeDAE: time 3.125e-05/0.7447, allocations: 38 kB / 1.187 GB, free: 13.59 MB / 0.92 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.095e-06/0.7447, allocations: 4 kB / 1.187 GB, free: 13.59 MB / 0.92 GB Notification: Performance of postOpt tearingSystem (initialization): time 7.414e-06/0.7447, allocations: 11.98 kB / 1.187 GB, free: 13.57 MB / 0.92 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004554/0.7451, allocations: 99.83 kB / 1.187 GB, free: 13.48 MB / 0.92 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.188e-06/0.7452, allocations: 7.984 kB / 1.187 GB, free: 13.47 MB / 0.92 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003614/0.7455, allocations: 47.77 kB / 1.187 GB, free: 13.42 MB / 0.92 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.508e-05/0.7456, allocations: 16 kB / 1.187 GB, free: 13.41 MB / 0.92 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 (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.0001841/0.7458, allocations: 221.8 kB / 1.188 GB, free: 13.18 MB / 0.92 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001123/0.7459, allocations: 79.47 kB / 1.188 GB, free: 13.11 MB / 0.92 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001751/0.7461, allocations: 79.22 kB / 1.188 GB, free: 13.03 MB / 0.92 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.591e-06/0.7461, allocations: 4 kB / 1.188 GB, free: 13.02 MB / 0.92 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.691e-06/0.7461, allocations: 0 / 1.188 GB, free: 13.02 MB / 0.92 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.106e-05/0.7461, allocations: 3.984 kB / 1.188 GB, free: 13.02 MB / 0.92 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000726/0.7468, allocations: 0.6219 MB / 1.188 GB, free: 12.35 MB / 0.92 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.284e-06/0.7468, allocations: 0 / 1.188 GB, free: 12.35 MB / 0.92 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004794/0.7473, allocations: 95.81 kB / 1.188 GB, free: 12.25 MB / 0.92 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.766e-06/0.7473, allocations: 4 kB / 1.188 GB, free: 12.25 MB / 0.92 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.898e-05/0.7474, allocations: 12 kB / 1.188 GB, free: 12.24 MB / 0.92 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.348e-06/0.7474, allocations: 4 kB / 1.188 GB, free: 12.23 MB / 0.92 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.002e-06/0.7474, allocations: 0 / 1.188 GB, free: 12.23 MB / 0.92 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001587/0.749, allocations: 0.7329 MB / 1.189 GB, free: 11.48 MB / 0.92 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002371/0.7492, allocations: 192.5 kB / 1.189 GB, free: 11.27 MB / 0.92 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.618e-05/0.7493, allocations: 12 kB / 1.189 GB, free: 11.26 MB / 0.92 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004092/0.7497, allocations: 35.95 kB / 1.189 GB, free: 11.23 MB / 0.92 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.947e-05/0.7499, allocations: 31.95 kB / 1.189 GB, free: 11.2 MB / 0.92 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.128e-05/0.7499, allocations: 20 kB / 1.189 GB, free: 11.18 MB / 0.92 GB Notification: Performance of sorting global known variables: time 0.0005285/0.7504, allocations: 427 kB / 1.19 GB, free: 10.76 MB / 0.92 GB Notification: Performance of sort global known variables: time 1.4e-07/0.7505, allocations: 0 / 1.19 GB, free: 10.76 MB / 0.92 GB Notification: Performance of remove unused functions: time 0.0006097/0.7511, allocations: 219.5 kB / 1.19 GB, free: 10.55 MB / 0.92 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 (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.001916/0.753, allocations: 1.285 MB / 1.191 GB, free: 9.234 MB / 0.92 GB Notification: Performance of simCode: created initialization part: time 0.001655/0.7547, allocations: 0.7816 MB / 1.192 GB, free: 8.43 MB / 0.92 GB Notification: Performance of simCode: created event and clocks part: time 2.675e-06/0.7547, allocations: 4.125 kB / 1.192 GB, free: 8.426 MB / 0.92 GB Notification: Performance of simCode: created simulation system equations: time 0.0004939/0.7552, allocations: 223.5 kB / 1.192 GB, free: 8.207 MB / 0.92 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008941/0.7561, allocations: 195.3 kB / 1.192 GB, free: 8.027 MB / 0.92 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008238/0.7643, allocations: 5.388 MB / 1.198 GB, free: 2.477 MB / 0.92 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000538/0.7649, allocations: 0.9219 MB / 1.199 GB, free: 1.527 MB / 0.92 GB Notification: Performance of simCode: alias equations: time 0.0003825/0.7653, allocations: 93.11 kB / 1.199 GB, free: 1.434 MB / 0.92 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003833/0.7657, allocations: 263.3 kB / 1.199 GB, free: 1.176 MB / 0.92 GB Notification: Performance of SimCode: time 3.4e-07/0.7657, allocations: 0 / 1.199 GB, free: 1.176 MB / 0.92 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06191/0.8276, allocations: 14.04 MB / 1.213 GB, free: 3.293 MB / 0.9356 GB Notification: Performance of buildModelFMU: Generate platform static: time 10.05/10.88, allocations: 11.47 kB / 1.213 GB, free: 3.289 MB / 0.9356 GB (rm -f Buildings_10_Buildings.Controls.Continuous.Examples.LimPID.pipe ; mkfifo Buildings_10_Buildings.Controls.Continuous.Examples.LimPID.pipe ; head -c 1048576 < Buildings_10_Buildings.Controls.Continuous.Examples.LimPID.pipe >> ../files/Buildings_10_Buildings.Controls.Continuous.Examples.LimPID.sim & python3 -m fmpy simulate --output-file Buildings_10_Buildings.Controls.Continuous.Examples.LimPID_res.csv --start-time 0 --stop-time 1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0004 Buildings_10_Buildings_Controls_Continuous_Examples_LimPID.fmu > Buildings_10_Buildings.Controls.Continuous.Examples.LimPID.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Controls.Continuous.Examples.LimPID_res.csv","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Controls_Continuous_Examples_LimPID.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Controls.Continuous.Examples.LimPID.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches