Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Templates.Components.Controls.Validation.StatusEmulator.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.Templates.Components.Controls.Validation.StatusEmulator,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|sta.y1|sta.y1_actual|sta.fil.y|sta.yLim",fileNamePrefix="Buildings_latest_Buildings.Templates.Components.Controls.Validation.StatusEmulator") translateModel(Buildings.Templates.Components.Controls.Validation.StatusEmulator,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|sta.y1|sta.y1_actual|sta.fil.y|sta.yLim",fileNamePrefix="Buildings_latest_Buildings.Templates.Components.Controls.Validation.StatusEmulator") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.008559/0.00856, allocations: 98.95 kB / 15.73 MB, free: 6.055 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.001727/0.001727, allocations: 199.1 kB / 16.68 MB, free: 5.977 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.426/1.426, allocations: 222.9 MB / 240.4 MB, free: 4.316 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.923/2.923, allocations: 472.6 MB / 0.7453 GB, free: 4.617 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001514/0.001514, allocations: 63.91 kB / 1.069 GB, free: 9.23 MB / 0.8262 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.409/0.4105, allocations: 159.9 MB / 1.226 GB, free: 9.227 MB / 0.9825 GB Notification: Performance of NFInst.instantiate(Buildings.Templates.Components.Controls.Validation.StatusEmulator): time 0.004164/0.4147, allocations: 1.789 MB / 1.227 GB, free: 7.43 MB / 0.9825 GB Notification: Performance of NFInst.instExpressions: time 0.001995/0.4168, allocations: 0.8414 MB / 1.228 GB, free: 6.582 MB / 0.9825 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002267/0.417, allocations: 0 / 1.228 GB, free: 6.582 MB / 0.9825 GB Notification: Performance of NFTyping.typeComponents: time 0.0002051/0.4172, allocations: 15.81 kB / 1.228 GB, free: 6.566 MB / 0.9825 GB Notification: Performance of NFTyping.typeBindings: time 0.000373/0.4177, allocations: 35.77 kB / 1.228 GB, free: 6.531 MB / 0.9825 GB Notification: Performance of NFTyping.typeClassSections: time 0.0007148/0.4184, allocations: 154.8 kB / 1.228 GB, free: 6.383 MB / 0.9825 GB Notification: Performance of NFFlatten.flatten: time 0.0004209/0.4188, allocations: 219.5 kB / 1.229 GB, free: 6.168 MB / 0.9825 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001571/0.419, allocations: 49.38 kB / 1.229 GB, free: 6.117 MB / 0.9825 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002278/0.4192, allocations: 79.75 kB / 1.229 GB, free: 6.039 MB / 0.9825 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002399/0.4195, allocations: 87.64 kB / 1.229 GB, free: 5.953 MB / 0.9825 GB Notification: Performance of NFPackage.collectConstants: time 7.648e-05/0.4196, allocations: 16 kB / 1.229 GB, free: 5.938 MB / 0.9825 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001178/0.4197, allocations: 31.92 kB / 1.229 GB, free: 5.906 MB / 0.9825 GB Notification: Performance of NFScalarize.scalarize: time 9.825e-05/0.4198, allocations: 31.92 kB / 1.229 GB, free: 5.875 MB / 0.9825 GB Notification: Performance of NFVerifyModel.verify: time 0.0001302/0.4199, allocations: 75.64 kB / 1.229 GB, free: 5.801 MB / 0.9825 GB Notification: Performance of NFConvertDAE.convert: time 0.0004045/0.4204, allocations: 199.3 kB / 1.229 GB, free: 5.605 MB / 0.9825 GB Notification: Performance of FrontEnd - DAE generated: time 6.242e-06/0.4204, allocations: 0 / 1.229 GB, free: 5.605 MB / 0.9825 GB Notification: Performance of FrontEnd: time 2.104e-06/0.4204, allocations: 4 kB / 1.229 GB, free: 5.602 MB / 0.9825 GB Notification: Performance of Transformations before backend: time 1.129e-05/0.4204, allocations: 0 / 1.229 GB, free: 5.602 MB / 0.9825 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 15 * Number of variables: 15 Notification: Performance of Generate backend data structure: time 0.001197/0.4216, allocations: 480.4 kB / 1.23 GB, free: 5.078 MB / 0.9825 GB Notification: Performance of prepare preOptimizeDAE: time 5.886e-05/0.4217, allocations: 8.031 kB / 1.23 GB, free: 5.07 MB / 0.9825 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001259/0.4218, allocations: 20.84 kB / 1.23 GB, free: 5.051 MB / 0.9825 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005128/0.4223, allocations: 238 kB / 1.23 GB, free: 4.781 MB / 0.9825 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.111e-05/0.4224, allocations: 20.3 kB / 1.23 GB, free: 4.762 MB / 0.9825 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.124e-05/0.4224, allocations: 12.36 kB / 1.23 GB, free: 4.75 MB / 0.9825 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000231/0.4227, allocations: 89.92 kB / 1.23 GB, free: 4.656 MB / 0.9825 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.308e-05/0.4227, allocations: 0 / 1.23 GB, free: 4.656 MB / 0.9825 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.994e-05/0.4227, allocations: 3.984 kB / 1.23 GB, free: 4.652 MB / 0.9825 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.294e-05/0.4228, allocations: 8 kB / 1.23 GB, free: 4.645 MB / 0.9825 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001606/0.4229, allocations: 51.97 kB / 1.23 GB, free: 4.594 MB / 0.9825 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008859/0.4238, allocations: 452.4 kB / 1.23 GB, free: 4.102 MB / 0.9825 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001932/0.424, allocations: 82.58 kB / 1.23 GB, free: 4.012 MB / 0.9825 GB Notification: Performance of preOpt resolveLoops (simulation): time 5.878e-05/0.4241, allocations: 28.89 kB / 1.231 GB, free: 3.98 MB / 0.9825 GB Notification: Performance of preOpt evalFunc (simulation): time 1.193e-05/0.4241, allocations: 0 / 1.231 GB, free: 3.98 MB / 0.9825 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001612/0.4243, allocations: 91.31 kB / 1.231 GB, free: 3.879 MB / 0.9825 GB Notification: Performance of pre-optimization done (n=9): time 1.523e-06/0.4243, allocations: 4 kB / 1.231 GB, free: 3.875 MB / 0.9825 GB Notification: Performance of matching and sorting (n=9): time 0.0003625/0.4247, allocations: 133.5 kB / 1.231 GB, free: 3.738 MB / 0.9825 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.131e-05/0.4247, allocations: 55.41 kB / 1.231 GB, free: 3.672 MB / 0.9825 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002645/0.425, allocations: 176 kB / 1.231 GB, free: 3.488 MB / 0.9825 GB Notification: Performance of collectPreVariables (initialization): time 3.218e-05/0.425, allocations: 33.7 kB / 1.231 GB, free: 3.449 MB / 0.9825 GB Notification: Performance of collectInitialEqns (initialization): time 9.904e-05/0.4251, allocations: 104.1 kB / 1.231 GB, free: 3.344 MB / 0.9825 GB Notification: Performance of collectInitialBindings (initialization): time 3.947e-05/0.4252, allocations: 36.03 kB / 1.231 GB, free: 3.309 MB / 0.9825 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.338e-05/0.4253, allocations: 37.7 kB / 1.231 GB, free: 3.266 MB / 0.9825 GB Notification: Performance of setup shared object (initialization): time 0.0001349/0.4254, allocations: 330.8 kB / 1.231 GB, free: 2.934 MB / 0.9825 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001496/0.4256, allocations: 47.97 kB / 1.232 GB, free: 2.887 MB / 0.9825 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001334/0.4257, allocations: 86.42 kB / 1.232 GB, free: 2.793 MB / 0.9825 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002062/0.4259, allocations: 132.2 kB / 1.232 GB, free: 2.648 MB / 0.9825 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.865e-06/0.4259, allocations: 0 / 1.232 GB, free: 2.648 MB / 0.9825 GB Notification: Performance of matching and sorting (n=14) (initialization): time 0.000401/0.4264, allocations: 211.2 kB / 1.232 GB, free: 2.43 MB / 0.9825 GB Notification: Performance of prepare postOptimizeDAE: time 4.984e-05/0.4264, allocations: 37.69 kB / 1.232 GB, free: 2.387 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.071e-05/0.4264, allocations: 8.469 kB / 1.232 GB, free: 2.379 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.726e-05/0.4265, allocations: 0 / 1.232 GB, free: 2.379 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001605/0.4266, allocations: 27.92 kB / 1.232 GB, free: 2.352 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.898e-06/0.4266, allocations: 3.938 kB / 1.232 GB, free: 2.348 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002324/0.4269, allocations: 35.91 kB / 1.232 GB, free: 2.312 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.735e-05/0.4269, allocations: 11.92 kB / 1.232 GB, free: 2.301 MB / 0.9825 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 5 ($whenCondition1,$whenCondition2,sta.y1_actual,y1.y,$PRE.y1.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (12): * Single equations (assignments): 11 * 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.0001571/0.4271, allocations: 134.4 kB / 1.232 GB, free: 2.16 MB / 0.9825 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.931e-05/0.4271, allocations: 11.91 kB / 1.232 GB, free: 2.148 MB / 0.9825 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.358e-05/0.4272, allocations: 17.39 kB / 1.232 GB, free: 2.117 MB / 0.9825 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.995e-06/0.4272, allocations: 0 / 1.232 GB, free: 2.117 MB / 0.9825 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.917e-06/0.4272, allocations: 3.938 kB / 1.232 GB, free: 2.113 MB / 0.9825 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.909e-06/0.4272, allocations: 0 / 1.232 GB, free: 2.113 MB / 0.9825 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002277/0.4274, allocations: 225.6 kB / 1.232 GB, free: 1.844 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.024e-06/0.4274, allocations: 3.938 kB / 1.232 GB, free: 1.84 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.617e-05/0.4275, allocations: 11.94 kB / 1.232 GB, free: 1.828 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.479e-06/0.4275, allocations: 8 kB / 1.232 GB, free: 1.82 MB / 0.9825 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.446e-05/0.4276, allocations: 0 / 1.232 GB, free: 1.82 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.604e-06/0.4276, allocations: 0 / 1.232 GB, free: 1.82 MB / 0.9825 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.236e-06/0.4276, allocations: 3.938 kB / 1.232 GB, free: 1.816 MB / 0.9825 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002898/0.4279, allocations: 172.9 kB / 1.233 GB, free: 1.629 MB / 0.9825 GB Notification: Performance of postOpt removeConstants (simulation): time 7.841e-05/0.428, allocations: 93.08 kB / 1.233 GB, free: 1.52 MB / 0.9825 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.761e-05/0.428, allocations: 7.984 kB / 1.233 GB, free: 1.512 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.653e-05/0.4281, allocations: 8.062 kB / 1.233 GB, free: 1.504 MB / 0.9825 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.002e-05/0.4281, allocations: 11.92 kB / 1.233 GB, free: 1.492 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.936e-06/0.4282, allocations: 4 kB / 1.233 GB, free: 1.488 MB / 0.9825 GB Notification: Performance of sorting global known variables: time 0.000148/0.4283, allocations: 128 kB / 1.233 GB, free: 1.363 MB / 0.9825 GB Notification: Performance of sort global known variables: time 3.6e-07/0.4283, allocations: 0 / 1.233 GB, free: 1.363 MB / 0.9825 GB Notification: Performance of remove unused functions: time 0.0002475/0.4286, allocations: 35.89 kB / 1.233 GB, free: 1.328 MB / 0.9825 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 2 (sta.fil.s[1],sta.fil.s[2]) * Number of discrete variables: 4 ($whenCondition1,$whenCondition2,y1.y,sta.y1_actual) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (9): * Single equations (assignments): 8 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * 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.0001921/0.4288, allocations: 107.2 kB / 1.233 GB, free: 1.215 MB / 0.9825 GB Notification: Performance of simCode: created initialization part: time 0.0003505/0.4291, allocations: 183.3 kB / 1.233 GB, free: 1.023 MB / 0.9825 GB Notification: Performance of simCode: created event and clocks part: time 3.006e-06/0.4291, allocations: 0 / 1.233 GB, free: 1.023 MB / 0.9825 GB Notification: Performance of simCode: created simulation system equations: time 8.209e-05/0.4292, allocations: 32.27 kB / 1.233 GB, free: 0.9922 MB / 0.9825 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003038/0.4295, allocations: 32.11 kB / 1.233 GB, free: 0.9609 MB / 0.9825 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006475/0.4302, allocations: 295.7 kB / 1.234 GB, free: 0.6484 MB / 0.9825 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003999/0.4306, allocations: 0.7197 MB / 1.234 GB, free: 15.9 MB / 0.9981 GB Notification: Performance of simCode: alias equations: time 7.253e-05/0.4307, allocations: 16.88 kB / 1.234 GB, free: 15.89 MB / 0.9981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.862e-05/0.4307, allocations: 15.44 kB / 1.234 GB, free: 15.87 MB / 0.9981 GB Notification: Performance of SimCode: time 3.01e-07/0.4307, allocations: 0 / 1.234 GB, free: 15.87 MB / 0.9981 GB Notification: Performance of Templates: time 0.005659/0.4364, allocations: 1.972 MB / 1.236 GB, free: 13.91 MB / 0.9981 GB make -j1 -f Buildings_latest_Buildings.Templates.Components.Controls.Validation.StatusEmulator.makefile (rm -f Buildings_latest_Buildings.Templates.Components.Controls.Validation.StatusEmulator.pipe ; mkfifo Buildings_latest_Buildings.Templates.Components.Controls.Validation.StatusEmulator.pipe ; head -c 1048576 < Buildings_latest_Buildings.Templates.Components.Controls.Validation.StatusEmulator.pipe >> ../files/Buildings_latest_Buildings.Templates.Components.Controls.Validation.StatusEmulator.sim & ./Buildings_latest_Buildings.Templates.Components.Controls.Validation.StatusEmulator -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Templates.Components.Controls.Validation.StatusEmulator.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Templates.Components.Controls.Validation.StatusEmulator_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Templates_Components_Controls_Validation_StatusEmulator.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Templates.Components.Controls.Validation.StatusEmulator.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches