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 11.0.1-master/package.mo", uses=false) Using package Buildings with version 11.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-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.001273/0.001273, allocations: 110.2 kB / 16.41 MB, free: 6.477 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.001329/0.001329, allocations: 185.5 kB / 17.34 MB, free: 5.754 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.322/1.322, allocations: 222.9 MB / 241 MB, free: 15.16 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.557/2.557, allocations: 469.4 MB / 0.7428 GB, free: 3.59 MB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.001346/0.001346, allocations: 72.11 kB / 1.065 GB, free: 13.8 MB / 0.8419 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.9/0.9014, allocations: 159.1 MB / 1.221 GB, free: 2.355 MB / 0.9356 GB Notification: Performance of NFInst.instantiate(Buildings.Templates.Components.Controls.Validation.StatusEmulator): time 0.003472/0.9049, allocations: 1.762 MB / 1.223 GB, free: 0.5742 MB / 0.9356 GB Notification: Performance of NFInst.instExpressions: time 0.001668/0.9066, allocations: 0.8346 MB / 1.223 GB, free: 15.73 MB / 0.9512 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001792/0.9068, allocations: 4 kB / 1.223 GB, free: 15.73 MB / 0.9512 GB Notification: Performance of NFTyping.typeComponents: time 0.0001579/0.907, allocations: 11.81 kB / 1.223 GB, free: 15.72 MB / 0.9512 GB Notification: Performance of NFTyping.typeBindings: time 0.0003415/0.9074, allocations: 43.78 kB / 1.223 GB, free: 15.68 MB / 0.9512 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005808/0.908, allocations: 158.9 kB / 1.224 GB, free: 15.52 MB / 0.9512 GB Notification: Performance of NFFlatten.flatten: time 0.0003844/0.9084, allocations: 219.6 kB / 1.224 GB, free: 15.31 MB / 0.9512 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001369/0.9085, allocations: 41.38 kB / 1.224 GB, free: 15.27 MB / 0.9512 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001965/0.9087, allocations: 87.69 kB / 1.224 GB, free: 15.18 MB / 0.9512 GB Notification: Performance of NFSimplifyModel.simplify: time 0.000205/0.9089, allocations: 83.66 kB / 1.224 GB, free: 15.1 MB / 0.9512 GB Notification: Performance of NFPackage.collectConstants: time 5.075e-05/0.909, allocations: 16 kB / 1.224 GB, free: 15.08 MB / 0.9512 GB Notification: Performance of NFFlatten.collectFunctions: time 9.587e-05/0.9091, allocations: 39.91 kB / 1.224 GB, free: 15.04 MB / 0.9512 GB Notification: Performance of NFScalarize.scalarize: time 7.501e-05/0.9092, allocations: 31.86 kB / 1.224 GB, free: 15.01 MB / 0.9512 GB Notification: Performance of NFVerifyModel.verify: time 0.0001021/0.9093, allocations: 67.72 kB / 1.224 GB, free: 14.95 MB / 0.9512 GB Notification: Performance of NFConvertDAE.convert: time 0.0002914/0.9096, allocations: 203.2 kB / 1.224 GB, free: 14.75 MB / 0.9512 GB Notification: Performance of FrontEnd - DAE generated: time 4.538e-06/0.9096, allocations: 0 / 1.224 GB, free: 14.75 MB / 0.9512 GB Notification: Performance of FrontEnd: time 1.402e-06/0.9096, allocations: 0 / 1.224 GB, free: 14.75 MB / 0.9512 GB Notification: Performance of Transformations before backend: time 6.562e-06/0.9096, allocations: 0 / 1.224 GB, free: 14.75 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: 15 * Number of variables: 15 Notification: Performance of Generate backend data structure: time 0.0009542/0.9106, allocations: 490.3 kB / 1.225 GB, free: 14.22 MB / 0.9512 GB Notification: Performance of prepare preOptimizeDAE: time 3.966e-05/0.9106, allocations: 8.031 kB / 1.225 GB, free: 14.21 MB / 0.9512 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.849e-05/0.9107, allocations: 16.75 kB / 1.225 GB, free: 14.2 MB / 0.9512 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003557/0.9111, allocations: 236.8 kB / 1.225 GB, free: 13.93 MB / 0.9512 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.043e-05/0.9111, allocations: 12.3 kB / 1.225 GB, free: 13.91 MB / 0.9512 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.126e-05/0.9111, allocations: 12.38 kB / 1.225 GB, free: 13.9 MB / 0.9512 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001691/0.9113, allocations: 89.92 kB / 1.225 GB, free: 13.81 MB / 0.9512 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.476e-06/0.9113, allocations: 0 / 1.225 GB, free: 13.81 MB / 0.9512 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.632e-05/0.9114, allocations: 7.984 kB / 1.225 GB, free: 13.8 MB / 0.9512 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.025e-05/0.9114, allocations: 4 kB / 1.225 GB, free: 13.8 MB / 0.9512 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001238/0.9115, allocations: 55.97 kB / 1.225 GB, free: 13.74 MB / 0.9512 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006399/0.9122, allocations: 456.3 kB / 1.226 GB, free: 13.25 MB / 0.9512 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000157/0.9123, allocations: 86.58 kB / 1.226 GB, free: 13.15 MB / 0.9512 GB Notification: Performance of preOpt resolveLoops (simulation): time 5.791e-05/0.9124, allocations: 28.89 kB / 1.226 GB, free: 13.12 MB / 0.9512 GB Notification: Performance of preOpt evalFunc (simulation): time 1.036e-05/0.9124, allocations: 0 / 1.226 GB, free: 13.12 MB / 0.9512 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001343/0.9125, allocations: 87.31 kB / 1.226 GB, free: 13.02 MB / 0.9512 GB Notification: Performance of pre-optimization done (n=9): time 1.242e-06/0.9126, allocations: 0 / 1.226 GB, free: 13.02 MB / 0.9512 GB Notification: Performance of matching and sorting (n=9): time 0.0002902/0.9128, allocations: 133.5 kB / 1.226 GB, free: 12.89 MB / 0.9512 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.298e-05/0.9129, allocations: 51.78 kB / 1.226 GB, free: 12.82 MB / 0.9512 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000211/0.9131, allocations: 187.2 kB / 1.226 GB, free: 12.63 MB / 0.9512 GB Notification: Performance of collectPreVariables (initialization): time 2.484e-05/0.9131, allocations: 25.7 kB / 1.226 GB, free: 12.6 MB / 0.9512 GB Notification: Performance of collectInitialEqns (initialization): time 7.37e-05/0.9132, allocations: 112 kB / 1.226 GB, free: 12.48 MB / 0.9512 GB Notification: Performance of collectInitialBindings (initialization): time 3.003e-05/0.9133, allocations: 31.72 kB / 1.226 GB, free: 12.45 MB / 0.9512 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.129e-05/0.9133, allocations: 41.7 kB / 1.226 GB, free: 12.41 MB / 0.9512 GB Notification: Performance of setup shared object (initialization): time 0.0001176/0.9135, allocations: 318.8 kB / 1.227 GB, free: 12.09 MB / 0.9512 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001061/0.9136, allocations: 55.97 kB / 1.227 GB, free: 12.03 MB / 0.9512 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001185/0.9137, allocations: 78.48 kB / 1.227 GB, free: 11.95 MB / 0.9512 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001688/0.9139, allocations: 128.2 kB / 1.227 GB, free: 11.8 MB / 0.9512 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.044e-06/0.9139, allocations: 0 / 1.227 GB, free: 11.8 MB / 0.9512 GB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0003298/0.9142, allocations: 211 kB / 1.227 GB, free: 11.59 MB / 0.9512 GB Notification: Performance of prepare postOptimizeDAE: time 4.101e-05/0.9143, allocations: 41.69 kB / 1.227 GB, free: 11.54 MB / 0.9512 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.601e-06/0.9143, allocations: 0 / 1.227 GB, free: 11.54 MB / 0.9512 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.561e-05/0.9143, allocations: 4 kB / 1.227 GB, free: 11.54 MB / 0.9512 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001555/0.9145, allocations: 27.98 kB / 1.227 GB, free: 11.51 MB / 0.9512 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.557e-06/0.9145, allocations: 7.938 kB / 1.227 GB, free: 11.5 MB / 0.9512 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002247/0.9147, allocations: 27.91 kB / 1.227 GB, free: 11.47 MB / 0.9512 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.669e-05/0.9148, allocations: 15.98 kB / 1.227 GB, free: 11.46 MB / 0.9512 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.0001075/0.9149, allocations: 122.4 kB / 1.227 GB, free: 11.33 MB / 0.9512 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.471e-05/0.9149, allocations: 15.81 kB / 1.227 GB, free: 11.31 MB / 0.9512 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.309e-05/0.9149, allocations: 25.39 kB / 1.227 GB, free: 11.28 MB / 0.9512 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.084e-06/0.915, allocations: 0 / 1.227 GB, free: 11.28 MB / 0.9512 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.154e-06/0.915, allocations: 3.938 kB / 1.227 GB, free: 11.27 MB / 0.9512 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.457e-06/0.915, allocations: 0 / 1.227 GB, free: 11.27 MB / 0.9512 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001863/0.9152, allocations: 225.7 kB / 1.228 GB, free: 11 MB / 0.9512 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.212e-06/0.9152, allocations: 0 / 1.228 GB, free: 11 MB / 0.9512 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.008e-05/0.9153, allocations: 15.94 kB / 1.228 GB, free: 10.99 MB / 0.9512 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.723e-06/0.9153, allocations: 0 / 1.228 GB, free: 10.99 MB / 0.9512 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.437e-05/0.9153, allocations: 4 kB / 1.228 GB, free: 10.98 MB / 0.9512 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.512e-06/0.9153, allocations: 0 / 1.228 GB, free: 10.98 MB / 0.9512 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.354e-06/0.9153, allocations: 3.938 kB / 1.228 GB, free: 10.98 MB / 0.9512 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000261/0.9156, allocations: 172.9 kB / 1.228 GB, free: 10.79 MB / 0.9512 GB Notification: Performance of postOpt removeConstants (simulation): time 7.798e-05/0.9157, allocations: 96.98 kB / 1.228 GB, free: 10.68 MB / 0.9512 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.591e-05/0.9157, allocations: 7.984 kB / 1.228 GB, free: 10.67 MB / 0.9512 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.933e-05/0.9158, allocations: 7.938 kB / 1.228 GB, free: 10.66 MB / 0.9512 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.254e-05/0.9158, allocations: 16.11 kB / 1.228 GB, free: 10.65 MB / 0.9512 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.608e-06/0.9159, allocations: 4 kB / 1.228 GB, free: 10.64 MB / 0.9512 GB Notification: Performance of sorting global known variables: time 0.0001346/0.916, allocations: 128 kB / 1.228 GB, free: 10.52 MB / 0.9512 GB Notification: Performance of sort global known variables: time 1.8e-07/0.916, allocations: 4 kB / 1.228 GB, free: 10.52 MB / 0.9512 GB Notification: Performance of remove unused functions: time 0.0002399/0.9163, allocations: 35.94 kB / 1.228 GB, free: 10.48 MB / 0.9512 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.0001551/0.9164, allocations: 111.2 kB / 1.228 GB, free: 10.36 MB / 0.9512 GB Notification: Performance of simCode: created initialization part: time 0.0003006/0.9167, allocations: 171.2 kB / 1.228 GB, free: 10.18 MB / 0.9512 GB Notification: Performance of simCode: created event and clocks part: time 3.757e-06/0.9167, allocations: 4 kB / 1.228 GB, free: 10.18 MB / 0.9512 GB Notification: Performance of simCode: created simulation system equations: time 7.329e-05/0.9168, allocations: 35.98 kB / 1.228 GB, free: 10.14 MB / 0.9512 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002886/0.9171, allocations: 36.09 kB / 1.229 GB, free: 10.11 MB / 0.9512 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005741/0.9177, allocations: 314.9 kB / 1.229 GB, free: 9.77 MB / 0.9512 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000283/0.918, allocations: 0.7158 MB / 1.23 GB, free: 9.027 MB / 0.9512 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.681e-05/0.918, allocations: 11.44 kB / 1.23 GB, free: 9.016 MB / 0.9512 GB Notification: Performance of SimCode: time 2.31e-07/0.918, allocations: 4 kB / 1.23 GB, free: 9.012 MB / 0.9512 GB Notification: Performance of Templates: time 0.003954/0.922, allocations: 1.947 MB / 1.231 GB, free: 7.078 MB / 0.9512 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/jenkins1/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