Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_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 9.1.3-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.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: translateModel(Buildings.Controls.Continuous.Examples.LimPID,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|limPID.u_s|limPID.u_m|limPID.y|limPIDRev.y",fileNamePrefix="Buildings_9_Buildings.Controls.Continuous.Examples.LimPID") translateModel(Buildings.Controls.Continuous.Examples.LimPID,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|limPID.u_s|limPID.u_m|limPID.y|limPIDRev.y",fileNamePrefix="Buildings_9_Buildings.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.007813/0.007813, allocations: 109.3 kB / 15.74 MB, free: 5.578 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.001443/0.001443, allocations: 189.6 kB / 16.67 MB, free: 5.516 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.551/1.551, allocations: 222.9 MB / 240.4 MB, free: 15.16 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/package.mo): time 2.392/2.392, allocations: 390.2 MB / 0.6648 GB, free: 0.6094 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.001289/0.001289, allocations: 63.91 kB / 0.9508 GB, free: 7.672 MB / 0.7325 GB Notification: Performance of FrontEnd - Absyn->SCode: time 1.211/1.213, allocations: 140.4 MB / 1.088 GB, free: 5.516 MB / 0.8575 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.Continuous.Examples.LimPID): time 0.005037/1.218, allocations: 3.72 MB / 1.092 GB, free: 2.852 MB / 0.8575 GB Notification: Performance of NFInst.instExpressions: time 0.002936/1.221, allocations: 1.323 MB / 1.093 GB, free: 1.895 MB / 0.8575 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004768/1.221, allocations: 25.5 kB / 1.093 GB, free: 1.887 MB / 0.8575 GB Notification: Performance of NFTyping.typeComponents: time 0.0003705/1.222, allocations: 126.1 kB / 1.093 GB, free: 1.793 MB / 0.8575 GB Notification: Performance of NFTyping.typeBindings: time 0.0006191/1.222, allocations: 191.8 kB / 1.093 GB, free: 1.656 MB / 0.8575 GB Notification: Performance of NFTyping.typeClassSections: time 0.001433/1.224, allocations: 0.5736 MB / 1.094 GB, free: 1.34 MB / 0.8575 GB Notification: Performance of NFFlatten.flatten: time 0.001439/1.225, allocations: 0.9674 MB / 1.095 GB, free: 0.8594 MB / 0.8575 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0006707/1.226, allocations: 352.1 kB / 1.095 GB, free: 0.6641 MB / 0.8575 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0006579/1.227, allocations: 377.9 kB / 1.095 GB, free: 480 kB / 0.8575 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0004624/1.227, allocations: 354.6 kB / 1.096 GB, free: 272 kB / 0.8575 GB Notification: Performance of NFPackage.collectConstants: time 0.000194/1.227, allocations: 77.38 kB / 1.096 GB, free: 272 kB / 0.8575 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001732/1.227, allocations: 79.03 kB / 1.096 GB, free: 272 kB / 0.8575 GB Notification: Performance of NFScalarize.scalarize: time 0.0002119/1.228, allocations: 181.5 kB / 1.096 GB, free: 144 kB / 0.8575 GB Notification: Performance of NFVerifyModel.verify: time 0.0004623/1.228, allocations: 385.2 kB / 1.096 GB, free: 15.86 MB / 0.8731 GB Notification: Performance of NFConvertDAE.convert: time 0.001286/1.229, allocations: 0.8838 MB / 1.097 GB, free: 15.45 MB / 0.8731 GB Notification: Performance of FrontEnd - DAE generated: time 6.192e-06/1.229, allocations: 0.7969 kB / 1.097 GB, free: 15.45 MB / 0.8731 GB Notification: Performance of FrontEnd: time 1.944e-06/1.229, allocations: 0 / 1.097 GB, free: 15.45 MB / 0.8731 GB Notification: Performance of Transformations before backend: time 1.718e-05/1.229, allocations: 1.188 kB / 1.097 GB, free: 15.45 MB / 0.8731 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.002477/1.232, allocations: 1.182 MB / 1.098 GB, free: 14.63 MB / 0.8731 GB Notification: Performance of prepare preOptimizeDAE: time 5.321e-05/1.232, allocations: 9.984 kB / 1.098 GB, free: 14.63 MB / 0.8731 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001955/1.232, allocations: 93.62 kB / 1.098 GB, free: 14.58 MB / 0.8731 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001197/1.233, allocations: 0.6203 MB / 1.099 GB, free: 14.16 MB / 0.8731 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001271/1.234, allocations: 100.2 kB / 1.099 GB, free: 14.07 MB / 0.8731 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001018/1.234, allocations: 56.66 kB / 1.099 GB, free: 14.05 MB / 0.8731 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00122/1.235, allocations: 0.603 MB / 1.1 GB, free: 13.73 MB / 0.8731 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.721e-05/1.235, allocations: 0.6562 kB / 1.1 GB, free: 13.73 MB / 0.8731 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.655e-05/1.235, allocations: 22.19 kB / 1.1 GB, free: 13.72 MB / 0.8731 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.999e-05/1.235, allocations: 12.41 kB / 1.1 GB, free: 13.72 MB / 0.8731 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001072/1.236, allocations: 427.1 kB / 1.1 GB, free: 13.57 MB / 0.8731 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003329/1.239, allocations: 2.097 MB / 1.102 GB, free: 12.14 MB / 0.8731 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001384/1.241, allocations: 0.4952 MB / 1.103 GB, free: 11.95 MB / 0.8731 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005341/1.241, allocations: 218.3 kB / 1.103 GB, free: 11.86 MB / 0.8731 GB Notification: Performance of preOpt evalFunc (simulation): time 5.307e-05/1.241, allocations: 5.766 kB / 1.103 GB, free: 11.86 MB / 0.8731 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008482/1.242, allocations: 281.3 kB / 1.103 GB, free: 11.74 MB / 0.8731 GB Notification: Performance of pre-optimization done (n=45): time 2.996e-06/1.242, allocations: 0.5 kB / 1.103 GB, free: 11.74 MB / 0.8731 GB Notification: Performance of matching and sorting (n=45): time 0.00169/1.244, allocations: 0.6129 MB / 1.104 GB, free: 11.49 MB / 0.8731 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.991e-05/1.244, allocations: 91.03 kB / 1.104 GB, free: 11.39 MB / 0.8731 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000869/1.245, allocations: 0.6077 MB / 1.105 GB, free: 11.12 MB / 0.8731 GB Notification: Performance of collectPreVariables (initialization): time 5.324e-05/1.245, allocations: 33.58 kB / 1.105 GB, free: 11.09 MB / 0.8731 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003134/1.245, allocations: 356.7 kB / 1.105 GB, free: 10.8 MB / 0.8731 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001455/1.245, allocations: 158.6 kB / 1.105 GB, free: 10.68 MB / 0.8731 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001667/1.246, allocations: 93.75 kB / 1.105 GB, free: 10.63 MB / 0.8731 GB Notification: Performance of setup shared object (initialization): time 0.0001235/1.246, allocations: 332.3 kB / 1.105 GB, free: 10.31 MB / 0.8731 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004664/1.246, allocations: 190.9 kB / 1.106 GB, free: 10.23 MB / 0.8731 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000524/1.247, allocations: 276.4 kB / 1.106 GB, free: 10.06 MB / 0.8731 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009494/1.248, allocations: 477.3 kB / 1.106 GB, free: 9.781 MB / 0.8731 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.955e-06/1.248, allocations: 3.938 kB / 1.106 GB, free: 9.777 MB / 0.8731 GB Notification: Performance of matching and sorting (n=64) (initialization): time 0.001291/1.249, allocations: 0.6026 MB / 1.107 GB, free: 9.496 MB / 0.8731 GB Notification: Performance of prepare postOptimizeDAE: time 4.773e-05/1.249, allocations: 33.73 kB / 1.107 GB, free: 9.465 MB / 0.8731 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.046e-05/1.249, allocations: 3.469 kB / 1.107 GB, free: 9.465 MB / 0.8731 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.147e-05/1.249, allocations: 4.812 kB / 1.107 GB, free: 9.465 MB / 0.8731 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004972/1.25, allocations: 108.3 kB / 1.107 GB, free: 9.453 MB / 0.8731 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.7e-05/1.25, allocations: 5.375 kB / 1.107 GB, free: 9.453 MB / 0.8731 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004506/1.25, allocations: 72.67 kB / 1.107 GB, free: 9.41 MB / 0.8731 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.493e-05/1.25, allocations: 19.09 kB / 1.107 GB, free: 9.406 MB / 0.8731 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0006103/1.251, allocations: 310.1 kB / 1.108 GB, free: 9.23 MB / 0.8731 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0005028/1.251, allocations: 269.6 kB / 1.108 GB, free: 9.055 MB / 0.8731 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0008606/1.252, allocations: 445.7 kB / 1.108 GB, free: 8.781 MB / 0.8731 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 2.295e-06/1.252, allocations: 5.094 kB / 1.108 GB, free: 8.777 MB / 0.8731 GB Notification: Performance of matching and sorting (n=64) (initialization_lambda0): time 0.001164/1.253, allocations: 0.5794 MB / 1.109 GB, free: 8.5 MB / 0.8731 GB Notification: Performance of prepare postOptimizeDAE: time 4.568e-05/1.253, allocations: 38.7 kB / 1.109 GB, free: 8.465 MB / 0.8731 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.204e-06/1.253, allocations: 2.906 kB / 1.109 GB, free: 8.465 MB / 0.8731 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.079e-05/1.253, allocations: 4.375 kB / 1.109 GB, free: 8.465 MB / 0.8731 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004919/1.254, allocations: 104.2 kB / 1.109 GB, free: 8.453 MB / 0.8731 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.418e-05/1.254, allocations: 6.047 kB / 1.109 GB, free: 8.453 MB / 0.8731 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003996/1.254, allocations: 46.97 kB / 1.109 GB, free: 8.43 MB / 0.8731 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.37e-05/1.254, allocations: 19.17 kB / 1.109 GB, free: 8.426 MB / 0.8731 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.0002593/1.255, allocations: 221 kB / 1.109 GB, free: 8.211 MB / 0.8731 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001145/1.255, allocations: 74.97 kB / 1.109 GB, free: 8.172 MB / 0.8731 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002089/1.255, allocations: 78.61 kB / 1.109 GB, free: 8.113 MB / 0.8731 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.147e-06/1.255, allocations: 5.891 kB / 1.109 GB, free: 8.113 MB / 0.8731 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.569e-05/1.255, allocations: 0 / 1.109 GB, free: 8.113 MB / 0.8731 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.084e-05/1.255, allocations: 3.609 kB / 1.109 GB, free: 8.113 MB / 0.8731 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009866/1.256, allocations: 0.6229 MB / 1.11 GB, free: 7.742 MB / 0.8731 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.525e-06/1.256, allocations: 0 / 1.11 GB, free: 7.742 MB / 0.8731 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004698/1.257, allocations: 88.28 kB / 1.11 GB, free: 7.73 MB / 0.8731 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.09e-06/1.257, allocations: 1.25 kB / 1.11 GB, free: 7.73 MB / 0.8731 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.186e-05/1.257, allocations: 12.89 kB / 1.11 GB, free: 7.723 MB / 0.8731 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.284e-06/1.257, allocations: 5.844 kB / 1.11 GB, free: 7.719 MB / 0.8731 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.739e-06/1.257, allocations: 1.281 kB / 1.11 GB, free: 7.719 MB / 0.8731 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0016/1.258, allocations: 0.7347 MB / 1.111 GB, free: 7.375 MB / 0.8731 GB Notification: Performance of postOpt removeConstants (simulation): time 0.000252/1.259, allocations: 191.2 kB / 1.111 GB, free: 7.211 MB / 0.8731 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.64e-05/1.259, allocations: 8.797 kB / 1.111 GB, free: 7.207 MB / 0.8731 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003732/1.259, allocations: 36.05 kB / 1.111 GB, free: 7.199 MB / 0.8731 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001086/1.259, allocations: 33 kB / 1.111 GB, free: 7.191 MB / 0.8731 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.156e-05/1.259, allocations: 21.58 kB / 1.111 GB, free: 7.184 MB / 0.8731 GB Notification: Performance of sorting global known variables: time 0.0007956/1.26, allocations: 428.4 kB / 1.111 GB, free: 7 MB / 0.8731 GB Notification: Performance of sort global known variables: time 3.1e-07/1.26, allocations: 1.125 kB / 1.111 GB, free: 7 MB / 0.8731 GB Notification: Performance of remove unused functions: time 0.0007877/1.261, allocations: 218.1 kB / 1.112 GB, free: 6.941 MB / 0.8731 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.000162/1.261, allocations: 112.5 kB / 1.112 GB, free: 6.844 MB / 0.8731 GB Notification: Performance of simCode: created initialization part: time 0.001778/1.263, allocations: 0.7842 MB / 1.113 GB, free: 6.5 MB / 0.8731 GB Notification: Performance of simCode: created event and clocks part: time 3.116e-06/1.263, allocations: 4.125 kB / 1.113 GB, free: 6.496 MB / 0.8731 GB Notification: Performance of simCode: created simulation system equations: time 0.0004903/1.263, allocations: 214.5 kB / 1.113 GB, free: 6.43 MB / 0.8731 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009208/1.264, allocations: 195.3 kB / 1.113 GB, free: 6.363 MB / 0.8731 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002456/1.267, allocations: 1.173 MB / 1.114 GB, free: 5.715 MB / 0.8731 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006489/1.267, allocations: 0.9167 MB / 1.115 GB, free: 5.004 MB / 0.8731 GB Notification: Performance of simCode: alias equations: time 0.0004385/1.268, allocations: 93.72 kB / 1.115 GB, free: 4.984 MB / 0.8731 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001644/1.268, allocations: 49.84 kB / 1.115 GB, free: 4.973 MB / 0.8731 GB Notification: Performance of SimCode: time 1.242e-06/1.268, allocations: 4 kB / 1.115 GB, free: 4.969 MB / 0.8731 GB Notification: Performance of Templates: time 0.02266/1.291, allocations: 7.66 MB / 1.123 GB, free: 4.422 MB / 0.8731 GB make -j1 -f Buildings_9_Buildings.Controls.Continuous.Examples.LimPID.makefile (rm -f Buildings_9_Buildings.Controls.Continuous.Examples.LimPID.pipe ; mkfifo Buildings_9_Buildings.Controls.Continuous.Examples.LimPID.pipe ; head -c 1048576 < Buildings_9_Buildings.Controls.Continuous.Examples.LimPID.pipe >> ../files/Buildings_9_Buildings.Controls.Continuous.Examples.LimPID.sim & ./Buildings_9_Buildings.Controls.Continuous.Examples.LimPID -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Controls.Continuous.Examples.LimPID.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Controls.Continuous.Examples.LimPID_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Controls_Continuous_Examples_LimPID.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Controls.Continuous.Examples.LimPID.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches