Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Controls.Continuous.Examples.OffTimer.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.Controls.Continuous.Examples.OffTimer,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|offTim1.u|offTim1.y|offTim2.u|offTim2.y",fileNamePrefix="Buildings_latest_Buildings.Controls.Continuous.Examples.OffTimer") translateModel(Buildings.Controls.Continuous.Examples.OffTimer,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|offTim1.u|offTim1.y|offTim2.u|offTim2.y",fileNamePrefix="Buildings_latest_Buildings.Controls.Continuous.Examples.OffTimer") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001164/0.001164, allocations: 102.1 kB / 15.98 MB, free: 5.891 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.001293/0.001294, allocations: 192.7 kB / 16.91 MB, free: 5.746 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.437/1.437, allocations: 222.9 MB / 240.6 MB, free: 4.527 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.941/2.941, allocations: 469.4 MB / 0.7423 GB, free: 7.91 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001329/0.001329, allocations: 65.12 kB / 0.9083 GB, free: 34.68 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4046/0.406, allocations: 159.1 MB / 1.064 GB, free: 15 MB / 0.8262 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.Continuous.Examples.OffTimer): time 0.004346/0.4104, allocations: 1.539 MB / 1.065 GB, free: 13.44 MB / 0.8262 GB Notification: Performance of NFInst.instExpressions: time 0.001037/0.4114, allocations: 431 kB / 1.066 GB, free: 13.01 MB / 0.8262 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.815e-05/0.4115, allocations: 0 / 1.066 GB, free: 13.01 MB / 0.8262 GB Notification: Performance of NFTyping.typeComponents: time 5.483e-05/0.4116, allocations: 3.938 kB / 1.066 GB, free: 13.01 MB / 0.8262 GB Notification: Performance of NFTyping.typeBindings: time 0.0001044/0.4117, allocations: 11.94 kB / 1.066 GB, free: 13 MB / 0.8262 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002796/0.412, allocations: 19.97 kB / 1.066 GB, free: 12.98 MB / 0.8262 GB Notification: Performance of NFFlatten.flatten: time 0.0001127/0.4122, allocations: 47.91 kB / 1.066 GB, free: 12.93 MB / 0.8262 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001371/0.4123, allocations: 8 kB / 1.066 GB, free: 12.92 MB / 0.8262 GB Notification: Performance of NFEvalConstants.evaluate: time 6.706e-05/0.4124, allocations: 31.8 kB / 1.066 GB, free: 12.89 MB / 0.8262 GB Notification: Performance of NFSimplifyModel.simplify: time 6.795e-05/0.4124, allocations: 23.91 kB / 1.066 GB, free: 12.87 MB / 0.8262 GB Notification: Performance of NFPackage.collectConstants: time 2.777e-05/0.4125, allocations: 4 kB / 1.066 GB, free: 12.86 MB / 0.8262 GB Notification: Performance of NFFlatten.collectFunctions: time 1.629e-05/0.4125, allocations: 7.938 kB / 1.066 GB, free: 12.86 MB / 0.8262 GB Notification: Performance of NFScalarize.scalarize: time 2.681e-05/0.4125, allocations: 11.98 kB / 1.066 GB, free: 12.84 MB / 0.8262 GB Notification: Performance of NFVerifyModel.verify: time 6.622e-05/0.4126, allocations: 27.86 kB / 1.066 GB, free: 12.82 MB / 0.8262 GB Notification: Performance of NFConvertDAE.convert: time 0.0001153/0.4127, allocations: 27.95 kB / 1.066 GB, free: 12.79 MB / 0.8262 GB Notification: Performance of FrontEnd - DAE generated: time 9.458e-06/0.4127, allocations: 4 kB / 1.066 GB, free: 12.79 MB / 0.8262 GB Notification: Performance of FrontEnd: time 2.124e-06/0.4128, allocations: 0 / 1.066 GB, free: 12.79 MB / 0.8262 GB Notification: Performance of Transformations before backend: time 6.743e-06/0.4128, allocations: 0 / 1.066 GB, free: 12.79 MB / 0.8262 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 10 * Number of variables: 10 Notification: Performance of Generate backend data structure: time 0.0008441/0.4136, allocations: 359.7 kB / 1.066 GB, free: 12.39 MB / 0.8262 GB Notification: Performance of prepare preOptimizeDAE: time 4.572e-05/0.4137, allocations: 8.031 kB / 1.066 GB, free: 12.38 MB / 0.8262 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.863e-05/0.4137, allocations: 8.844 kB / 1.066 GB, free: 12.37 MB / 0.8262 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001809/0.4139, allocations: 172.3 kB / 1.066 GB, free: 12.16 MB / 0.8262 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.657e-05/0.4139, allocations: 4.312 kB / 1.066 GB, free: 12.16 MB / 0.8262 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.32e-05/0.414, allocations: 8.375 kB / 1.066 GB, free: 12.15 MB / 0.8262 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001569/0.4141, allocations: 61.98 kB / 1.066 GB, free: 12.09 MB / 0.8262 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.898e-06/0.4142, allocations: 0 / 1.066 GB, free: 12.09 MB / 0.8262 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.484e-05/0.4142, allocations: 0 / 1.066 GB, free: 12.09 MB / 0.8262 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.033e-06/0.4142, allocations: 0 / 1.066 GB, free: 12.09 MB / 0.8262 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.857e-05/0.4143, allocations: 27.98 kB / 1.066 GB, free: 12.06 MB / 0.8262 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006389/0.4149, allocations: 308.6 kB / 1.067 GB, free: 11.71 MB / 0.8262 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001318/0.4151, allocations: 54.56 kB / 1.067 GB, free: 11.64 MB / 0.8262 GB Notification: Performance of preOpt resolveLoops (simulation): time 5.271e-05/0.4151, allocations: 20.95 kB / 1.067 GB, free: 11.62 MB / 0.8262 GB Notification: Performance of preOpt evalFunc (simulation): time 1.272e-05/0.4152, allocations: 0 / 1.067 GB, free: 11.62 MB / 0.8262 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003997/0.4156, allocations: 79.41 kB / 1.067 GB, free: 11.53 MB / 0.8262 GB Notification: Performance of pre-optimization done (n=9): time 4.95e-06/0.4156, allocations: 3.984 kB / 1.067 GB, free: 11.53 MB / 0.8262 GB Notification: Performance of matching and sorting (n=9): time 0.0002715/0.4159, allocations: 105.5 kB / 1.067 GB, free: 11.42 MB / 0.8262 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.519e-05/0.4159, allocations: 55.41 kB / 1.067 GB, free: 11.35 MB / 0.8262 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001771/0.4161, allocations: 105.8 kB / 1.067 GB, free: 11.24 MB / 0.8262 GB Notification: Performance of collectPreVariables (initialization): time 2.273e-05/0.4161, allocations: 33.7 kB / 1.067 GB, free: 11.2 MB / 0.8262 GB Notification: Performance of collectInitialEqns (initialization): time 5.4e-05/0.4162, allocations: 80.14 kB / 1.067 GB, free: 11.12 MB / 0.8262 GB Notification: Performance of collectInitialBindings (initialization): time 0.00012/0.4163, allocations: 23.66 kB / 1.067 GB, free: 11.09 MB / 0.8262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.661e-05/0.4164, allocations: 33.7 kB / 1.067 GB, free: 11.05 MB / 0.8262 GB Notification: Performance of setup shared object (initialization): time 0.0001675/0.4166, allocations: 322.8 kB / 1.068 GB, free: 10.73 MB / 0.8262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 4.645e-05/0.4166, allocations: 19.94 kB / 1.068 GB, free: 10.71 MB / 0.8262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 7.027e-05/0.4167, allocations: 47.36 kB / 1.068 GB, free: 10.65 MB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001291/0.4168, allocations: 67.42 kB / 1.068 GB, free: 10.57 MB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.104e-06/0.4168, allocations: 0 / 1.068 GB, free: 10.57 MB / 0.8262 GB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0001631/0.417, allocations: 93.56 kB / 1.068 GB, free: 10.48 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 2.112e-05/0.417, allocations: 9.719 kB / 1.068 GB, free: 10.47 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.854e-06/0.417, allocations: 0 / 1.068 GB, free: 10.47 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.734e-05/0.4171, allocations: 3.984 kB / 1.068 GB, free: 10.46 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.84e-05/0.4172, allocations: 8 kB / 1.068 GB, free: 10.46 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.127e-06/0.4172, allocations: 4 kB / 1.068 GB, free: 10.45 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.23e-05/0.4173, allocations: 11.89 kB / 1.068 GB, free: 10.44 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.295e-05/0.4173, allocations: 8 kB / 1.068 GB, free: 10.43 MB / 0.8262 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 10 ($whenCondition1,not1.y,booleanPulse.pulseStart,$PRE.booleanPulse.pulseStart,$whenCondition2,$whenCondition3,offTim1.entryTime,$PRE.offTim1.entryTime,offTim2.entryTime,$PRE.offTim2.entryTime) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (12): * Single equations (assignments): 12 * Array equations: 0 * Algorithm blocks: 0 * 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.0001252/0.4174, allocations: 127.5 kB / 1.068 GB, free: 10.3 MB / 0.8262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.846e-05/0.4175, allocations: 4 kB / 1.068 GB, free: 10.3 MB / 0.8262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.615e-05/0.4175, allocations: 7.969 kB / 1.068 GB, free: 10.29 MB / 0.8262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.745e-06/0.4175, allocations: 0 / 1.068 GB, free: 10.29 MB / 0.8262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.242e-06/0.4175, allocations: 0 / 1.068 GB, free: 10.29 MB / 0.8262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.697e-06/0.4175, allocations: 0 / 1.068 GB, free: 10.29 MB / 0.8262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005037/0.418, allocations: 362.3 kB / 1.068 GB, free: 9.879 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.779e-06/0.4181, allocations: 7.984 kB / 1.068 GB, free: 9.871 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.941e-05/0.4181, allocations: 4 kB / 1.068 GB, free: 9.867 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.605e-06/0.4181, allocations: 0 / 1.068 GB, free: 9.867 MB / 0.8262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.426e-06/0.4181, allocations: 0 / 1.068 GB, free: 9.867 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.338e-06/0.4181, allocations: 4.406 kB / 1.068 GB, free: 9.863 MB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.397e-06/0.4181, allocations: 3.938 kB / 1.068 GB, free: 9.859 MB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002863/0.4184, allocations: 179.8 kB / 1.069 GB, free: 9.668 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 4.904e-05/0.4185, allocations: 88.95 kB / 1.069 GB, free: 9.562 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.893e-05/0.4185, allocations: 8 kB / 1.069 GB, free: 9.555 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.704e-05/0.4186, allocations: 15.86 kB / 1.069 GB, free: 9.539 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.152e-05/0.4187, allocations: 7.984 kB / 1.069 GB, free: 9.531 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.387e-05/0.4187, allocations: 7.984 kB / 1.069 GB, free: 9.523 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 0.0001588/0.4188, allocations: 83.28 kB / 1.069 GB, free: 9.441 MB / 0.8262 GB Notification: Performance of sort global known variables: time 1.21e-07/0.4189, allocations: 3.938 kB / 1.069 GB, free: 9.438 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.0002618/0.4191, allocations: 12 kB / 1.069 GB, free: 9.426 MB / 0.8262 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 7 (not1.y,$whenCondition3,$whenCondition2,$whenCondition1,booleanPulse.pulseStart,offTim1.entryTime,offTim2.entryTime) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (9): * Single equations (assignments): 6 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 3 * 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.0001316/0.4193, allocations: 95.25 kB / 1.069 GB, free: 9.324 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.0001619/0.4194, allocations: 63.91 kB / 1.069 GB, free: 9.262 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 4.138e-06/0.4194, allocations: 4 kB / 1.069 GB, free: 9.258 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 6.227e-05/0.4195, allocations: 23.94 kB / 1.069 GB, free: 9.234 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003458/0.4199, allocations: 14.17 kB / 1.069 GB, free: 9.223 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005426/0.4204, allocations: 199.4 kB / 1.069 GB, free: 8.996 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003923/0.4208, allocations: 0.6846 MB / 1.07 GB, free: 8.285 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.382e-05/0.4209, allocations: 11.44 kB / 1.07 GB, free: 8.273 MB / 0.8262 GB Notification: Performance of SimCode: time 3.21e-07/0.4209, allocations: 0 / 1.07 GB, free: 8.273 MB / 0.8262 GB Notification: Performance of Templates: time 0.003053/0.4239, allocations: 0.8633 MB / 1.071 GB, free: 7.41 MB / 0.8262 GB make -j1 -f Buildings_latest_Buildings.Controls.Continuous.Examples.OffTimer.makefile (rm -f Buildings_latest_Buildings.Controls.Continuous.Examples.OffTimer.pipe ; mkfifo Buildings_latest_Buildings.Controls.Continuous.Examples.OffTimer.pipe ; head -c 1048576 < Buildings_latest_Buildings.Controls.Continuous.Examples.OffTimer.pipe >> ../files/Buildings_latest_Buildings.Controls.Continuous.Examples.OffTimer.sim & ./Buildings_latest_Buildings.Controls.Continuous.Examples.OffTimer -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Controls.Continuous.Examples.OffTimer.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Controls.Continuous.Examples.OffTimer_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Controls_Continuous_Examples_OffTimer.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Controls.Continuous.Examples.OffTimer.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches