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: "" <> buildModelFMU(Buildings.Templates.Components.Controls.Validation.StatusEmulator,fileNamePrefix="Buildings_latest_Buildings_Templates_Components_Controls_Validation_StatusEmulator",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Templates.Components.Controls.Validation.StatusEmulator,fileNamePrefix="Buildings_latest_Buildings_Templates_Components_Controls_Validation_StatusEmulator",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.006743/0.006744, allocations: 99.34 kB / 15.73 MB, free: 6.059 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.00176/0.00176, 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.376/1.376, 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.789/2.789, allocations: 482.6 MB / 0.755 GB, free: 10.61 MB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.001989/0.001989, allocations: 68.14 kB / 1.083 GB, free: 12.27 MB / 0.8419 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3075/0.3095, allocations: 162.3 MB / 1.242 GB, free: 9.879 MB / 0.9981 GB Notification: Performance of NFInst.instantiate(Buildings.Templates.Components.Controls.Validation.StatusEmulator): time 0.003066/0.3126, allocations: 1.769 MB / 1.244 GB, free: 8.094 MB / 0.9981 GB Notification: Performance of NFInst.instExpressions: time 0.001377/0.314, allocations: 0.6817 MB / 1.244 GB, free: 7.41 MB / 0.9981 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.00015/0.3142, allocations: 4 kB / 1.244 GB, free: 7.406 MB / 0.9981 GB Notification: Performance of NFTyping.typeComponents: time 0.0001511/0.3144, allocations: 31.67 kB / 1.244 GB, free: 7.375 MB / 0.9981 GB Notification: Performance of NFTyping.typeBindings: time 8.055e-05/0.3145, allocations: 23.73 kB / 1.244 GB, free: 7.352 MB / 0.9981 GB Notification: Performance of NFTyping.typeClassSections: time 0.0008502/0.3153, allocations: 263 kB / 1.245 GB, free: 7.098 MB / 0.9981 GB Notification: Performance of NFFlatten.flatten: time 0.000578/0.3159, allocations: 407.4 kB / 1.245 GB, free: 6.699 MB / 0.9981 GB Notification: Performance of NFFlatten.resolveConnections: time 0.00037/0.3163, allocations: 218.9 kB / 1.245 GB, free: 6.484 MB / 0.9981 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001926/0.3165, allocations: 135.7 kB / 1.245 GB, free: 6.352 MB / 0.9981 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002065/0.3167, allocations: 139.5 kB / 1.245 GB, free: 6.215 MB / 0.9981 GB Notification: Performance of NFPackage.collectConstants: time 6.524e-05/0.3168, allocations: 36 kB / 1.245 GB, free: 6.18 MB / 0.9981 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001354/0.3169, allocations: 63.92 kB / 1.245 GB, free: 6.117 MB / 0.9981 GB Notification: Performance of NFScalarize.scalarize: time 8.492e-05/0.317, allocations: 71.83 kB / 1.246 GB, free: 6.047 MB / 0.9981 GB Notification: Performance of NFVerifyModel.verify: time 0.0001643/0.3172, allocations: 143.4 kB / 1.246 GB, free: 5.906 MB / 0.9981 GB Notification: Performance of NFConvertDAE.convert: time 0.0004774/0.3177, allocations: 414.6 kB / 1.246 GB, free: 5.5 MB / 0.9981 GB Notification: Performance of FrontEnd - DAE generated: time 3.306e-06/0.3177, allocations: 4 kB / 1.246 GB, free: 5.496 MB / 0.9981 GB Notification: Performance of FrontEnd: time 1.673e-06/0.3177, allocations: 0 / 1.246 GB, free: 5.496 MB / 0.9981 GB Notification: Performance of Transformations before backend: time 9.147e-06/0.3177, allocations: 0 / 1.246 GB, free: 5.496 MB / 0.9981 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 60 * Number of variables: 60 Notification: Performance of Generate backend data structure: time 0.0008929/0.3186, allocations: 0.5545 MB / 1.247 GB, free: 4.883 MB / 0.9981 GB Notification: Performance of prepare preOptimizeDAE: time 4.945e-05/0.3187, allocations: 12.03 kB / 1.247 GB, free: 4.871 MB / 0.9981 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.984e-05/0.3188, allocations: 62.72 kB / 1.247 GB, free: 4.801 MB / 0.9981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.384e-05/0.3189, allocations: 28.75 kB / 1.247 GB, free: 4.773 MB / 0.9981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003942/0.3193, allocations: 268 kB / 1.247 GB, free: 4.473 MB / 0.9981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.401e-05/0.3193, allocations: 32.94 kB / 1.247 GB, free: 4.441 MB / 0.9981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.173e-05/0.3194, allocations: 28.38 kB / 1.247 GB, free: 4.414 MB / 0.9981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005122/0.3199, allocations: 272.2 kB / 1.247 GB, free: 4.137 MB / 0.9981 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.441e-05/0.3199, allocations: 3.938 kB / 1.247 GB, free: 4.133 MB / 0.9981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.893e-05/0.3199, allocations: 15.98 kB / 1.247 GB, free: 4.117 MB / 0.9981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.955e-06/0.32, allocations: 4 kB / 1.247 GB, free: 4.113 MB / 0.9981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003659/0.3203, allocations: 190.1 kB / 1.248 GB, free: 3.926 MB / 0.9981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001208/0.3215, allocations: 0.8619 MB / 1.248 GB, free: 3.008 MB / 0.9981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003202/0.3219, allocations: 174.8 kB / 1.249 GB, free: 2.828 MB / 0.9981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001486/0.322, allocations: 92.81 kB / 1.249 GB, free: 2.734 MB / 0.9981 GB Notification: Performance of preOpt evalFunc (simulation): time 2.418e-05/0.3221, allocations: 11.8 kB / 1.249 GB, free: 2.723 MB / 0.9981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002532/0.3223, allocations: 150.1 kB / 1.249 GB, free: 2.562 MB / 0.9981 GB Notification: Performance of pre-optimization done (n=27): time 1.764e-06/0.3223, allocations: 0 / 1.249 GB, free: 2.562 MB / 0.9981 GB Notification: Performance of matching and sorting (n=27): time 0.0005182/0.3229, allocations: 272.2 kB / 1.249 GB, free: 2.293 MB / 0.9981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.177e-05/0.3229, allocations: 59.41 kB / 1.249 GB, free: 2.223 MB / 0.9981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001455/0.3231, allocations: 163.1 kB / 1.249 GB, free: 2.055 MB / 0.9981 GB Notification: Performance of collectPreVariables (initialization): time 4.531e-05/0.3231, allocations: 45.64 kB / 1.249 GB, free: 2.004 MB / 0.9981 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001067/0.3232, allocations: 136.9 kB / 1.249 GB, free: 1.867 MB / 0.9981 GB Notification: Performance of collectInitialBindings (initialization): time 6.962e-05/0.3233, allocations: 79.41 kB / 1.249 GB, free: 1.789 MB / 0.9981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000145/0.3235, allocations: 89.61 kB / 1.25 GB, free: 1.695 MB / 0.9981 GB Notification: Performance of setup shared object (initialization): time 0.0001415/0.3236, allocations: 330.8 kB / 1.25 GB, free: 1.363 MB / 0.9981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002132/0.3238, allocations: 99.95 kB / 1.25 GB, free: 1.266 MB / 0.9981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002335/0.3241, allocations: 159 kB / 1.25 GB, free: 1.082 MB / 0.9981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003576/0.3244, allocations: 252.8 kB / 1.25 GB, free: 0.8047 MB / 0.9981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.435e-06/0.3244, allocations: 0 / 1.25 GB, free: 0.8047 MB / 0.9981 GB Notification: Performance of matching and sorting (n=43) (initialization): time 0.0005834/0.325, allocations: 357.3 kB / 1.251 GB, free: 456 kB / 0.9981 GB Notification: Performance of prepare postOptimizeDAE: time 4.258e-05/0.3251, allocations: 39.56 kB / 1.251 GB, free: 412 kB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.954e-06/0.3251, allocations: 4 kB / 1.251 GB, free: 408 kB / 0.9981 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.802e-05/0.3251, allocations: 4 kB / 1.251 GB, free: 404 kB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001389/0.3253, allocations: 35.86 kB / 1.251 GB, free: 368 kB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.714e-06/0.3253, allocations: 224 / 1.251 GB, free: 368 kB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002437/0.3255, allocations: 59.73 kB / 1.251 GB, free: 308 kB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.997e-05/0.3256, allocations: 16 kB / 1.251 GB, free: 292 kB / 0.9981 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 8 * Number of states: 0 () * Number of discrete variables: 33 ($PRE.sta.offToOn.enableFire,$PRE.sta.onToOff.enableFire,$whenCondition1,$whenCondition2,sta.onToOff.t_start,$PRE.sta.onToOff.t_start,sta.onToOff.fire,sta.onToOff.enableFire,sta.on.active,sta.on.oldActive,$PRE.sta.on.oldActive,sta.on.newActive,$PRE.sta.on.newActive,sta.on.localActive,$PRE.sta.on.localActive,sta.offToOn.t_start,$PRE.sta.offToOn.t_start,sta.offToOn.fire,sta.offToOn.enableFire,sta.off.active,sta.off.oldActive,$PRE.sta.off.oldActive,sta.off.newActive,$PRE.sta.off.newActive,sta.off.localActive,$PRE.sta.off.localActive,sta.stateGraphRoot.activeSteps,y1.y,$PRE.y1.y,$whenCondition3,$whenCondition4,sta.stateGraphRoot.resume,sta.stateGraphRoot.suspend) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (41): * Single equations (assignments): 40 * 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.0001709/0.3258, allocations: 165.8 kB / 1.251 GB, free: 120 kB / 0.9981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.926e-05/0.3258, allocations: 19.84 kB / 1.251 GB, free: 100 kB / 0.9981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.5838/0.9096, allocations: 231.7 kB / 1.251 GB, free: 14.88 MB / 0.9981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.877e-06/0.9096, allocations: 3.719 kB / 1.251 GB, free: 14.88 MB / 0.9981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.542e-06/0.9096, allocations: 0 / 1.251 GB, free: 14.88 MB / 0.9981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.582e-06/0.9096, allocations: 1.922 kB / 1.251 GB, free: 14.88 MB / 0.9981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008272/0.9105, allocations: 0.6346 MB / 1.252 GB, free: 14.57 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.695e-06/0.9105, allocations: 0 / 1.252 GB, free: 14.57 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.847e-05/0.9106, allocations: 23.19 kB / 1.252 GB, free: 14.57 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.46e-06/0.9106, allocations: 1.922 kB / 1.252 GB, free: 14.57 MB / 0.9981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.76e-05/0.9106, allocations: 8.734 kB / 1.252 GB, free: 14.57 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.659e-06/0.9106, allocations: 3.156 kB / 1.252 GB, free: 14.57 MB / 0.9981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.122e-06/0.9106, allocations: 0 / 1.252 GB, free: 14.57 MB / 0.9981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003173/0.911, allocations: 326.8 kB / 1.252 GB, free: 14.43 MB / 0.9981 GB Notification: Performance of postOpt removeConstants (simulation): time 2.754e-05/0.911, allocations: 94.34 kB / 1.252 GB, free: 14.34 MB / 0.9981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.904e-05/0.911, allocations: 7.047 kB / 1.252 GB, free: 14.34 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.975e-05/0.9111, allocations: 7.844 kB / 1.252 GB, free: 14.34 MB / 0.9981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.621e-05/0.9112, allocations: 26.36 kB / 1.252 GB, free: 14.34 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.282e-05/0.9112, allocations: 10.22 kB / 1.252 GB, free: 14.34 MB / 0.9981 GB Notification: Performance of sorting global known variables: time 5.714e-05/0.9113, allocations: 106.8 kB / 1.252 GB, free: 14.27 MB / 0.9981 GB Notification: Performance of sort global known variables: time 1.2e-07/0.9113, allocations: 0.6562 kB / 1.252 GB, free: 14.27 MB / 0.9981 GB Notification: Performance of remove unused functions: time 0.000385/0.9117, allocations: 67.67 kB / 1.253 GB, free: 14.27 MB / 0.9981 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 22 (sta.offToOn.enableFire,sta.onToOff.enableFire,sta.on.active,sta.off.active,$cse1,$cse2,$whenCondition4,$whenCondition3,$whenCondition1,$whenCondition2,y1.y,sta.stateGraphRoot.activeSteps,sta.off.localActive,sta.off.newActive,sta.off.oldActive,sta.offToOn.fire,sta.offToOn.t_start,sta.on.localActive,sta.on.newActive,sta.on.oldActive,sta.onToOff.fire,sta.onToOff.t_start) * Number of discrete states: 2 (sta.off.newActive,sta.on.newActive) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (29): * Single equations (assignments): 24 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 5 * 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.0005834/0.9123, allocations: 0.8661 MB / 1.253 GB, free: 13.6 MB / 0.9981 GB Notification: Performance of simCode: created initialization part: time 0.0004971/0.9128, allocations: 312.3 kB / 1.254 GB, free: 13.54 MB / 0.9981 GB Notification: Performance of simCode: created event and clocks part: time 2.825e-06/0.9128, allocations: 0 / 1.254 GB, free: 13.54 MB / 0.9981 GB Notification: Performance of simCode: created simulation system equations: time 0.0001619/0.913, allocations: 108.8 kB / 1.254 GB, free: 13.53 MB / 0.9981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003194/0.9133, allocations: 34 kB / 1.254 GB, free: 13.53 MB / 0.9981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00238/0.9157, allocations: 2.371 MB / 1.256 GB, free: 11.93 MB / 0.9981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001863/0.9159, allocations: 0.7457 MB / 1.257 GB, free: 11.23 MB / 0.9981 GB Notification: Performance of simCode: alias equations: time 9.164e-05/0.916, allocations: 29.88 kB / 1.257 GB, free: 11.23 MB / 0.9981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001081/0.9161, allocations: 69.98 kB / 1.257 GB, free: 11.18 MB / 0.9981 GB Notification: Performance of SimCode: time 9.52e-07/0.9161, allocations: 0 / 1.257 GB, free: 11.18 MB / 0.9981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02593/0.942, allocations: 4.964 MB / 1.262 GB, free: 10.63 MB / 0.9981 GB Notification: Performance of buildModelFMU: Generate platform static: time 12.42/13.36, allocations: 8.438 kB / 1.262 GB, free: 10.62 MB / 0.9981 GB (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_latest_Buildings.Templates.Components.Controls.Validation.StatusEmulator_res.mat --tempDir=temp_Buildings_latest_Buildings_Templates_Components_Controls_Validation_StatusEmulator_fmu --startTime=0 --stopTime=50 --timeout=400 --tolerance=1e-06 Buildings_latest_Buildings_Templates_Components_Controls_Validation_StatusEmulator.fmu > 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