Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_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 12.0.0-master/package.mo", uses=false) Using package Buildings with version 12.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.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(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_latest_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_latest_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.001153/0.001153, allocations: 110.5 kB / 16.41 MB, free: 6.465 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.001089/0.001089, allocations: 190.7 kB / 17.35 MB, free: 5.711 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 / 241 MB, free: 15.09 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.575/2.575, allocations: 472.7 MB / 0.746 GB, free: 476 kB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.001287/0.001287, allocations: 63.89 kB / 1.07 GB, free: 9.582 MB / 0.8419 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8523/0.8536, allocations: 159.9 MB / 1.226 GB, free: 13.63 MB / 0.9512 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.Continuous.Examples.LimPID): time 0.005135/0.8588, allocations: 3.708 MB / 1.23 GB, free: 9.906 MB / 0.9512 GB Notification: Performance of NFInst.instExpressions: time 0.002862/0.8617, allocations: 1.317 MB / 1.231 GB, free: 8.582 MB / 0.9512 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006676/0.8624, allocations: 23.88 kB / 1.231 GB, free: 8.559 MB / 0.9512 GB Notification: Performance of NFTyping.typeComponents: time 0.0004773/0.8629, allocations: 130.6 kB / 1.231 GB, free: 8.43 MB / 0.9512 GB Notification: Performance of NFTyping.typeBindings: time 0.0008524/0.8638, allocations: 182.5 kB / 1.232 GB, free: 8.25 MB / 0.9512 GB Notification: Performance of NFTyping.typeClassSections: time 0.001368/0.8652, allocations: 0.582 MB / 1.232 GB, free: 7.68 MB / 0.9512 GB Notification: Performance of NFFlatten.flatten: time 0.001266/0.8664, allocations: 0.9682 MB / 1.233 GB, free: 6.707 MB / 0.9512 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0006264/0.8671, allocations: 353.6 kB / 1.233 GB, free: 6.348 MB / 0.9512 GB Notification: Performance of NFEvalConstants.evaluate: time 0.000622/0.8677, allocations: 370.4 kB / 1.234 GB, free: 5.984 MB / 0.9512 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0004734/0.8682, allocations: 358 kB / 1.234 GB, free: 5.633 MB / 0.9512 GB Notification: Performance of NFPackage.collectConstants: time 0.0001926/0.8684, allocations: 76 kB / 1.234 GB, free: 5.559 MB / 0.9512 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001522/0.8686, allocations: 87.88 kB / 1.234 GB, free: 5.473 MB / 0.9512 GB Notification: Performance of NFScalarize.scalarize: time 0.0001712/0.8687, allocations: 179.3 kB / 1.234 GB, free: 5.297 MB / 0.9512 GB Notification: Performance of NFVerifyModel.verify: time 0.0003779/0.8691, allocations: 373.7 kB / 1.235 GB, free: 4.93 MB / 0.9512 GB Notification: Performance of NFConvertDAE.convert: time 0.0009627/0.8701, allocations: 0.8954 MB / 1.236 GB, free: 4.031 MB / 0.9512 GB Notification: Performance of FrontEnd - DAE generated: time 4.688e-06/0.8701, allocations: 4 kB / 1.236 GB, free: 4.027 MB / 0.9512 GB Notification: Performance of FrontEnd: time 1.923e-06/0.8701, allocations: 0 / 1.236 GB, free: 4.027 MB / 0.9512 GB Notification: Performance of Transformations before backend: time 3.188e-05/0.8701, allocations: 4 kB / 1.236 GB, free: 4.023 MB / 0.9512 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.002356/0.8725, allocations: 1.206 MB / 1.237 GB, free: 2.758 MB / 0.9512 GB Notification: Performance of prepare preOptimizeDAE: time 4.057e-05/0.8726, allocations: 12.03 kB / 1.237 GB, free: 2.746 MB / 0.9512 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002043/0.8728, allocations: 96.33 kB / 1.237 GB, free: 2.652 MB / 0.9512 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001139/0.8739, allocations: 0.6305 MB / 1.238 GB, free: 1.98 MB / 0.9512 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001073/0.874, allocations: 96.97 kB / 1.238 GB, free: 1.871 MB / 0.9512 GB Notification: Performance of preOpt expandDerOperator (simulation): time 8.825e-05/0.8741, allocations: 52.38 kB / 1.238 GB, free: 1.82 MB / 0.9512 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001113/0.8752, allocations: 0.608 MB / 1.238 GB, free: 1.172 MB / 0.9512 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.706e-05/0.8753, allocations: 0 / 1.238 GB, free: 1.172 MB / 0.9512 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.31e-05/0.8753, allocations: 24 kB / 1.238 GB, free: 1.148 MB / 0.9512 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.313e-05/0.8754, allocations: 12 kB / 1.238 GB, free: 1.137 MB / 0.9512 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009691/0.8763, allocations: 427.6 kB / 1.239 GB, free: 0.7188 MB / 0.9512 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002865/0.8792, allocations: 2.106 MB / 1.241 GB, free: 14.53 MB / 0.9669 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001207/0.8804, allocations: 0.4951 MB / 1.241 GB, free: 14.02 MB / 0.9669 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004731/0.8809, allocations: 220.7 kB / 1.241 GB, free: 13.8 MB / 0.9669 GB Notification: Performance of preOpt evalFunc (simulation): time 4.817e-05/0.881, allocations: 11.94 kB / 1.241 GB, free: 13.79 MB / 0.9669 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006196/0.8816, allocations: 278.1 kB / 1.242 GB, free: 13.51 MB / 0.9669 GB Notification: Performance of pre-optimization done (n=45): time 3.787e-06/0.8816, allocations: 4 kB / 1.242 GB, free: 13.5 MB / 0.9669 GB Notification: Performance of matching and sorting (n=45): time 0.001446/0.8831, allocations: 0.6103 MB / 1.242 GB, free: 12.89 MB / 0.9669 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.486e-05/0.8831, allocations: 88.86 kB / 1.242 GB, free: 12.78 MB / 0.9669 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007329/0.8839, allocations: 0.6139 MB / 1.243 GB, free: 12.16 MB / 0.9669 GB Notification: Performance of collectPreVariables (initialization): time 5.227e-05/0.8839, allocations: 41.69 kB / 1.243 GB, free: 12.11 MB / 0.9669 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002513/0.8842, allocations: 353.3 kB / 1.243 GB, free: 11.76 MB / 0.9669 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001262/0.8843, allocations: 166.6 kB / 1.244 GB, free: 11.6 MB / 0.9669 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001451/0.8845, allocations: 90.25 kB / 1.244 GB, free: 11.5 MB / 0.9669 GB Notification: Performance of setup shared object (initialization): time 0.0001693/0.8847, allocations: 330 kB / 1.244 GB, free: 11.18 MB / 0.9669 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004485/0.8851, allocations: 191 kB / 1.244 GB, free: 10.99 MB / 0.9669 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004912/0.8856, allocations: 276.2 kB / 1.244 GB, free: 10.68 MB / 0.9669 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009512/0.8866, allocations: 477.8 kB / 1.245 GB, free: 10.17 MB / 0.9669 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.119e-06/0.8866, allocations: 4 kB / 1.245 GB, free: 10.17 MB / 0.9669 GB Notification: Performance of matching and sorting (n=64) (initialization): time 0.001225/0.8878, allocations: 0.6027 MB / 1.245 GB, free: 9.551 MB / 0.9669 GB Notification: Performance of prepare postOptimizeDAE: time 4.199e-05/0.8879, allocations: 36.27 kB / 1.246 GB, free: 9.512 MB / 0.9669 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.104e-05/0.8879, allocations: 7.984 kB / 1.246 GB, free: 9.504 MB / 0.9669 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.193e-05/0.8879, allocations: 7.938 kB / 1.246 GB, free: 9.496 MB / 0.9669 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004838/0.8884, allocations: 107.8 kB / 1.246 GB, free: 9.391 MB / 0.9669 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.762e-05/0.8884, allocations: 11.98 kB / 1.246 GB, free: 9.379 MB / 0.9669 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004195/0.8889, allocations: 59.61 kB / 1.246 GB, free: 9.32 MB / 0.9669 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.652e-05/0.8889, allocations: 23.98 kB / 1.246 GB, free: 9.297 MB / 0.9669 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0005519/0.8895, allocations: 309.2 kB / 1.246 GB, free: 8.992 MB / 0.9669 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.000455/0.8899, allocations: 272.1 kB / 1.246 GB, free: 8.691 MB / 0.9669 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0008282/0.8908, allocations: 450 kB / 1.247 GB, free: 8.211 MB / 0.9669 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 5.05e-06/0.8908, allocations: 4 kB / 1.247 GB, free: 8.207 MB / 0.9669 GB Notification: Performance of matching and sorting (n=64) (initialization_lambda0): time 0.001111/0.8919, allocations: 0.5829 MB / 1.247 GB, free: 7.609 MB / 0.9669 GB Notification: Performance of prepare postOptimizeDAE: time 3.269e-05/0.892, allocations: 37.69 kB / 1.247 GB, free: 7.566 MB / 0.9669 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.456e-06/0.892, allocations: 0 / 1.247 GB, free: 7.566 MB / 0.9669 GB Notification: Performance of postOpt tearingSystem (initialization): time 7.423e-06/0.892, allocations: 8.312 kB / 1.247 GB, free: 7.559 MB / 0.9669 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004368/0.8924, allocations: 103.8 kB / 1.247 GB, free: 7.457 MB / 0.9669 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.267e-06/0.8924, allocations: 4 kB / 1.247 GB, free: 7.453 MB / 0.9669 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003813/0.8928, allocations: 55.69 kB / 1.247 GB, free: 7.398 MB / 0.9669 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.706e-05/0.8929, allocations: 20 kB / 1.247 GB, free: 7.379 MB / 0.9669 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.000171/0.893, allocations: 213.3 kB / 1.248 GB, free: 7.164 MB / 0.9669 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001084/0.8932, allocations: 79.48 kB / 1.248 GB, free: 7.086 MB / 0.9669 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001516/0.8933, allocations: 87.2 kB / 1.248 GB, free: 7 MB / 0.9669 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.083e-06/0.8933, allocations: 3.984 kB / 1.248 GB, free: 6.996 MB / 0.9669 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.034e-06/0.8933, allocations: 0 / 1.248 GB, free: 6.996 MB / 0.9669 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002246/0.8936, allocations: 192.5 kB / 1.248 GB, free: 6.789 MB / 0.9669 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.087e-05/0.8937, allocations: 12 kB / 1.248 GB, free: 6.777 MB / 0.9669 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003983/0.8941, allocations: 31.95 kB / 1.248 GB, free: 6.746 MB / 0.9669 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001127/0.8942, allocations: 39.89 kB / 1.248 GB, free: 6.707 MB / 0.9669 GB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.001427/0.8956, allocations: 0.5602 MB / 1.249 GB, free: 6.141 MB / 0.9669 GB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.001532/0.8972, allocations: 0.8936 MB / 1.25 GB, free: 5.23 MB / 0.9669 GB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.0004306/0.8976, allocations: 211.9 kB / 1.25 GB, free: 5.023 MB / 0.9669 GB Notification: Performance of sorting global known variables: time 0.0004736/0.8981, allocations: 431 kB / 1.25 GB, free: 4.605 MB / 0.9669 GB Notification: Performance of Backend: time 5.11e-07/0.8981, allocations: 0 / 1.25 GB, free: 4.605 MB / 0.9669 GB Notification: Performance of simCode: created initialization part: time 0.00159/0.8997, allocations: 0.7132 MB / 1.251 GB, free: 3.863 MB / 0.9669 GB Notification: Performance of SimCode: time 0.002284/0.902, allocations: 1.682 MB / 1.252 GB, free: 2.141 MB / 0.9669 GB Notification: Performance of Templates: time 0.01827/0.9203, allocations: 10.5 MB / 1.263 GB, free: 7.73 MB / 0.9825 GB make -j1 -f Buildings_latest_Buildings.Controls.Continuous.Examples.LimPID.makefile (rm -f Buildings_latest_Buildings.Controls.Continuous.Examples.LimPID.pipe ; mkfifo Buildings_latest_Buildings.Controls.Continuous.Examples.LimPID.pipe ; head -c 1048576 < Buildings_latest_Buildings.Controls.Continuous.Examples.LimPID.pipe >> ../files/Buildings_latest_Buildings.Controls.Continuous.Examples.LimPID.sim & ./Buildings_latest_Buildings.Controls.Continuous.Examples.LimPID -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Controls.Continuous.Examples.LimPID.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Controls.Continuous.Examples.LimPID_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Controls_Continuous_Examples_LimPID.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Controls.Continuous.Examples.LimPID.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches