Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_12_Buildings.Templates.Components.Controls.Validation.StatusEmulator.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001608/0.001608, allocations: 113 kB / 16.46 MB, free: 6.453 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001948/0.001948, allocations: 213.7 kB / 19.43 MB, free: 3.625 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.541/1.541, allocations: 230.6 MB / 252.8 MB, free: 8.977 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.1-maint.12.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.1-maint.12.x/package.mo): time 3.269/3.269, allocations: 0.49 GB / 0.7916 GB, free: 33.22 MB / 0.6231 GB " [Timeout remaining time 176] Using package Buildings with version 12.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.1-maint.12.x/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Buildings.Templates.Components.Controls.Validation.StatusEmulator,fileNamePrefix="Buildings_12_Buildings_Templates_Components_Controls_Validation_StatusEmulator",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Templates.Components.Controls.Validation.StatusEmulator,fileNamePrefix="Buildings_12_Buildings_Templates_Components_Controls_Validation_StatusEmulator",fmuType="me",version="2.0",platforms={"static"}) [Timeout 300] "Notification: Buildings requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.002135/0.002135, allocations: 73.02 kB / 1.149 GB, free: 26.35 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3924/0.3946, allocations: 176.1 MB / 1.321 GB, free: 3.414 MB / 1.014 GB Notification: Performance of NFInst.instantiate(Buildings.Templates.Components.Controls.Validation.StatusEmulator): time 0.005148/0.3997, allocations: 1.789 MB / 1.323 GB, free: 1.613 MB / 1.014 GB Notification: Performance of NFInst.instExpressions: time 0.002127/0.4018, allocations: 0.709 MB / 1.323 GB, free: 0.9023 MB / 1.014 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001406/0.402, allocations: 7.938 kB / 1.323 GB, free: 0.8945 MB / 1.014 GB Notification: Performance of NFTyping.typeComponents: time 0.0001914/0.4022, allocations: 31.67 kB / 1.323 GB, free: 0.8633 MB / 1.014 GB Notification: Performance of NFTyping.typeBindings: time 0.0001099/0.4023, allocations: 23.75 kB / 1.323 GB, free: 0.8398 MB / 1.014 GB Notification: Performance of NFTyping.typeClassSections: time 0.001155/0.4034, allocations: 259 kB / 1.324 GB, free: 0.5898 MB / 1.014 GB Notification: Performance of NFFlatten.flatten: time 0.0006326/0.4041, allocations: 407.3 kB / 1.324 GB, free: 196 kB / 1.014 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0003134/0.4044, allocations: 187.2 kB / 1.324 GB, free: 4 kB / 1.014 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001919/0.4046, allocations: 147.6 kB / 1.324 GB, free: 15.86 MB / 1.029 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002219/0.4048, allocations: 131.5 kB / 1.324 GB, free: 15.73 MB / 1.029 GB Notification: Performance of NFPackage.collectConstants: time 5.527e-05/0.4048, allocations: 40 kB / 1.324 GB, free: 15.69 MB / 1.029 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001219/0.405, allocations: 55.98 kB / 1.324 GB, free: 15.64 MB / 1.029 GB Notification: Performance of NFScalarize.scalarize: time 8.512e-05/0.4051, allocations: 75.81 kB / 1.325 GB, free: 15.56 MB / 1.029 GB Notification: Performance of NFVerifyModel.verify: time 0.0001594/0.4052, allocations: 147.3 kB / 1.325 GB, free: 15.42 MB / 1.029 GB Notification: Performance of NFConvertDAE.convert: time 0.0005193/0.4057, allocations: 410.6 kB / 1.325 GB, free: 15.02 MB / 1.029 GB Notification: Performance of FrontEnd - DAE generated: time 6.111e-06/0.4057, allocations: 8 kB / 1.325 GB, free: 15.01 MB / 1.029 GB Notification: Performance of FrontEnd: time 2.034e-06/0.4057, allocations: 0 / 1.325 GB, free: 15.01 MB / 1.029 GB Notification: Performance of Transformations before backend: time 1.211e-05/0.4058, allocations: 0 / 1.325 GB, free: 15.01 MB / 1.029 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.0009739/0.4067, allocations: 0.56 MB / 1.326 GB, free: 14.39 MB / 1.029 GB Notification: Performance of prepare preOptimizeDAE: time 5.236e-05/0.4068, allocations: 15.98 kB / 1.326 GB, free: 14.38 MB / 1.029 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.482e-05/0.4069, allocations: 66.72 kB / 1.326 GB, free: 14.3 MB / 1.029 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002931/0.4071, allocations: 36.78 kB / 1.326 GB, free: 14.27 MB / 1.029 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003917/0.4075, allocations: 268 kB / 1.326 GB, free: 13.96 MB / 1.029 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.805e-05/0.4076, allocations: 24.94 kB / 1.326 GB, free: 13.94 MB / 1.029 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.776e-05/0.4076, allocations: 28.38 kB / 1.326 GB, free: 13.91 MB / 1.029 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004909/0.4081, allocations: 272.3 kB / 1.326 GB, free: 13.64 MB / 1.029 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.226e-05/0.4081, allocations: 7.875 kB / 1.326 GB, free: 13.63 MB / 1.029 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.589e-05/0.4082, allocations: 8 kB / 1.326 GB, free: 13.62 MB / 1.029 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.586e-06/0.4082, allocations: 4 kB / 1.326 GB, free: 13.62 MB / 1.029 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003737/0.4085, allocations: 190.1 kB / 1.326 GB, free: 13.43 MB / 1.029 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001221/0.4098, allocations: 0.8503 MB / 1.327 GB, free: 12.53 MB / 1.029 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003106/0.4101, allocations: 158.8 kB / 1.327 GB, free: 12.36 MB / 1.029 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001428/0.4102, allocations: 76.83 kB / 1.328 GB, free: 12.29 MB / 1.029 GB Notification: Performance of preOpt evalFunc (simulation): time 2.528e-05/0.4102, allocations: 8 kB / 1.328 GB, free: 12.28 MB / 1.029 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002595/0.4105, allocations: 141.8 kB / 1.328 GB, free: 12.12 MB / 1.029 GB Notification: Performance of pre-optimization done (n=27): time 1.964e-06/0.4105, allocations: 3.938 kB / 1.328 GB, free: 12.12 MB / 1.029 GB Notification: Performance of matching and sorting (n=27): time 0.0005374/0.411, allocations: 271.6 kB / 1.328 GB, free: 11.85 MB / 1.029 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.224e-05/0.4111, allocations: 59.41 kB / 1.328 GB, free: 11.78 MB / 1.029 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001453/0.4112, allocations: 163.6 kB / 1.328 GB, free: 11.61 MB / 1.029 GB Notification: Performance of collectPreVariables (initialization): time 5.375e-05/0.4113, allocations: 37.7 kB / 1.328 GB, free: 11.57 MB / 1.029 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001197/0.4114, allocations: 148.8 kB / 1.328 GB, free: 11.42 MB / 1.029 GB Notification: Performance of collectInitialBindings (initialization): time 6.731e-05/0.4115, allocations: 71.47 kB / 1.328 GB, free: 11.35 MB / 1.029 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001395/0.4116, allocations: 89.62 kB / 1.328 GB, free: 11.25 MB / 1.029 GB Notification: Performance of setup shared object (initialization): time 0.0001459/0.4118, allocations: 326.8 kB / 1.329 GB, free: 10.93 MB / 1.029 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002034/0.412, allocations: 99.95 kB / 1.329 GB, free: 10.83 MB / 1.029 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002516/0.4122, allocations: 166.8 kB / 1.329 GB, free: 10.64 MB / 1.029 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003784/0.4126, allocations: 241.5 kB / 1.329 GB, free: 10.37 MB / 1.029 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.645e-06/0.4126, allocations: 0 / 1.329 GB, free: 10.37 MB / 1.029 GB Notification: Performance of matching and sorting (n=43) (initialization): time 0.0006199/0.4132, allocations: 360.1 kB / 1.33 GB, free: 10.01 MB / 1.029 GB Notification: Performance of prepare postOptimizeDAE: time 5.011e-05/0.4133, allocations: 37.69 kB / 1.33 GB, free: 9.965 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.714e-06/0.4133, allocations: 4 kB / 1.33 GB, free: 9.961 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.766e-05/0.4133, allocations: 4 kB / 1.33 GB, free: 9.957 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001462/0.4134, allocations: 31.92 kB / 1.33 GB, free: 9.926 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.078e-05/0.4135, allocations: 4.156 kB / 1.33 GB, free: 9.922 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002527/0.4137, allocations: 51.81 kB / 1.33 GB, free: 9.871 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.426e-05/0.4137, allocations: 19.98 kB / 1.33 GB, free: 9.852 MB / 1.029 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.0001831/0.4139, allocations: 161.8 kB / 1.33 GB, free: 9.688 MB / 1.029 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.069e-05/0.414, allocations: 19.84 kB / 1.33 GB, free: 9.668 MB / 1.029 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.058e-05/0.414, allocations: 25.86 kB / 1.33 GB, free: 9.645 MB / 1.029 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.085e-06/0.414, allocations: 4 kB / 1.33 GB, free: 9.641 MB / 1.029 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.07e-06/0.414, allocations: 0 / 1.33 GB, free: 9.641 MB / 1.029 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.048e-06/0.414, allocations: 0 / 1.33 GB, free: 9.641 MB / 1.029 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008962/0.4149, allocations: 0.6274 MB / 1.331 GB, free: 8.953 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.763e-06/0.4149, allocations: 0 / 1.331 GB, free: 8.953 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.52e-05/0.415, allocations: 19.94 kB / 1.331 GB, free: 8.934 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.38e-06/0.415, allocations: 4 kB / 1.331 GB, free: 8.93 MB / 1.029 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.82e-05/0.415, allocations: 7.984 kB / 1.331 GB, free: 8.922 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.814e-06/0.415, allocations: 4 kB / 1.331 GB, free: 8.918 MB / 1.029 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.573e-06/0.415, allocations: 3.938 kB / 1.331 GB, free: 8.914 MB / 1.029 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003887/0.4154, allocations: 309.3 kB / 1.331 GB, free: 8.598 MB / 1.029 GB Notification: Performance of postOpt removeConstants (simulation): time 5.929e-05/0.4155, allocations: 92.95 kB / 1.331 GB, free: 8.488 MB / 1.029 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.847e-05/0.4155, allocations: 7.938 kB / 1.331 GB, free: 8.48 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.591e-05/0.4156, allocations: 11.98 kB / 1.331 GB, free: 8.469 MB / 1.029 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.756e-05/0.4157, allocations: 27.95 kB / 1.331 GB, free: 8.441 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.511e-05/0.4157, allocations: 8 kB / 1.331 GB, free: 8.434 MB / 1.029 GB Notification: Performance of sorting global known variables: time 8.05e-05/0.4158, allocations: 108.7 kB / 1.331 GB, free: 8.328 MB / 1.029 GB Notification: Performance of sort global known variables: time 1.1e-07/0.4158, allocations: 0 / 1.331 GB, free: 8.328 MB / 1.029 GB Notification: Performance of remove unused functions: time 0.0003389/0.4161, allocations: 75.72 kB / 1.331 GB, free: 8.254 MB / 1.029 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 20 (sta.offToOn.enableFire,sta.onToOff.enableFire,sta.on.active,sta.off.active,$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 (27): * Single equations (assignments): 22 * 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.0008259/0.417, allocations: 0.849 MB / 1.332 GB, free: 7.375 MB / 1.029 GB Notification: Performance of simCode: created initialization part: time 0.0005107/0.4175, allocations: 275.7 kB / 1.332 GB, free: 7.094 MB / 1.029 GB Notification: Performance of simCode: created event and clocks part: time 2.315e-06/0.4175, allocations: 4 kB / 1.332 GB, free: 7.09 MB / 1.029 GB Notification: Performance of simCode: created simulation system equations: time 0.0001544/0.4176, allocations: 79.91 kB / 1.332 GB, free: 7.012 MB / 1.029 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003406/0.418, allocations: 26.02 kB / 1.332 GB, free: 6.988 MB / 1.029 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003165/0.4211, allocations: 2.376 MB / 1.335 GB, free: 4.477 MB / 1.029 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004046/0.4215, allocations: 0.7402 MB / 1.335 GB, free: 3.711 MB / 1.029 GB Notification: Performance of simCode: alias equations: time 8.572e-05/0.4216, allocations: 21.94 kB / 1.336 GB, free: 3.691 MB / 1.029 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000127/0.4218, allocations: 63.42 kB / 1.336 GB, free: 3.629 MB / 1.029 GB Notification: Performance of SimCode: time 3.21e-07/0.4218, allocations: 4 kB / 1.336 GB, free: 3.625 MB / 1.029 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03012/0.4519, allocations: 4.708 MB / 1.34 GB, free: 15.05 MB / 1.045 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.654/9.106, allocations: 14.12 kB / 1.34 GB, free: 15.04 MB / 1.045 GB " [Timeout remaining time 291] (rm -f Buildings_12_Buildings.Templates.Components.Controls.Validation.StatusEmulator.pipe ; mkfifo Buildings_12_Buildings.Templates.Components.Controls.Validation.StatusEmulator.pipe ; head -c 1048576 < Buildings_12_Buildings.Templates.Components.Controls.Validation.StatusEmulator.pipe >> ../files/Buildings_12_Buildings.Templates.Components.Controls.Validation.StatusEmulator.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_12_Buildings.Templates.Components.Controls.Validation.StatusEmulator_res.mat --tempDir=temp_Buildings_12_Buildings_Templates_Components_Controls_Validation_StatusEmulator_fmu --startTime=0 --stopTime=50 --stepSize=0.02 --timeout=400 --tolerance=1e-06 Buildings_12_Buildings_Templates_Components_Controls_Validation_StatusEmulator.fmu > Buildings_12_Buildings.Templates.Components.Controls.Validation.StatusEmulator.pipe 2>&1) [Timeout 420.0] diffSimulationResults("Buildings_12_Buildings.Templates.Components.Controls.Validation.StatusEmulator_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_12.x/Buildings_Templates_Components_Controls_Validation_StatusEmulator.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_12_Buildings.Templates.Components.Controls.Validation.StatusEmulator.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 300] "" [Timeout remaining time 300] Reference file matches [Calling sys.exit(0), Time elapsed: 16.013433221029118]