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 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.Controls.Continuous.Examples.OffTimer,fileNamePrefix="Buildings_latest_Buildings_Controls_Continuous_Examples_OffTimer",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.Continuous.Examples.OffTimer,fileNamePrefix="Buildings_latest_Buildings_Controls_Continuous_Examples_OffTimer",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.006897/0.006897, allocations: 97.36 kB / 15.73 MB, free: 6.062 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.001562/0.001562, allocations: 196.8 kB / 16.68 MB, free: 5.98 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.47/1.47, allocations: 222.9 MB / 240.4 MB, free: 4.328 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.884/2.884, allocations: 472.7 MB / 0.7453 GB, free: 4.543 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001386/0.001386, allocations: 63.84 kB / 1.069 GB, free: 9.73 MB / 0.8262 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3318/0.3332, allocations: 159.9 MB / 1.225 GB, free: 9.715 MB / 0.9825 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.Continuous.Examples.OffTimer): time 0.002855/0.3361, allocations: 1.483 MB / 1.227 GB, free: 8.223 MB / 0.9825 GB Notification: Performance of NFInst.instExpressions: time 0.0007912/0.3369, allocations: 434.9 kB / 1.227 GB, free: 7.793 MB / 0.9825 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.089e-05/0.337, allocations: 0 / 1.227 GB, free: 7.793 MB / 0.9825 GB Notification: Performance of NFTyping.typeComponents: time 3.217e-05/0.337, allocations: 3.938 kB / 1.227 GB, free: 7.789 MB / 0.9825 GB Notification: Performance of NFTyping.typeBindings: time 8.482e-05/0.3371, allocations: 15.92 kB / 1.227 GB, free: 7.773 MB / 0.9825 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001518/0.3373, allocations: 19.98 kB / 1.227 GB, free: 7.754 MB / 0.9825 GB Notification: Performance of NFFlatten.flatten: time 9.346e-05/0.3374, allocations: 55.84 kB / 1.227 GB, free: 7.699 MB / 0.9825 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001073/0.3375, allocations: 11.98 kB / 1.227 GB, free: 7.688 MB / 0.9825 GB Notification: Performance of NFEvalConstants.evaluate: time 5.893e-05/0.3376, allocations: 19.92 kB / 1.227 GB, free: 7.668 MB / 0.9825 GB Notification: Performance of NFSimplifyModel.simplify: time 6.424e-05/0.3377, allocations: 19.92 kB / 1.227 GB, free: 7.648 MB / 0.9825 GB Notification: Performance of NFPackage.collectConstants: time 1.867e-05/0.3377, allocations: 7.938 kB / 1.227 GB, free: 7.641 MB / 0.9825 GB Notification: Performance of NFFlatten.collectFunctions: time 1.062e-05/0.3377, allocations: 4 kB / 1.227 GB, free: 7.637 MB / 0.9825 GB Notification: Performance of NFScalarize.scalarize: time 2.458e-05/0.3377, allocations: 11.98 kB / 1.227 GB, free: 7.625 MB / 0.9825 GB Notification: Performance of NFVerifyModel.verify: time 5.037e-05/0.3378, allocations: 27.86 kB / 1.227 GB, free: 7.598 MB / 0.9825 GB Notification: Performance of NFConvertDAE.convert: time 0.0001139/0.3379, allocations: 47.75 kB / 1.227 GB, free: 7.551 MB / 0.9825 GB Notification: Performance of FrontEnd - DAE generated: time 4.198e-06/0.3379, allocations: 4 kB / 1.227 GB, free: 7.547 MB / 0.9825 GB Notification: Performance of FrontEnd: time 1.232e-06/0.3379, allocations: 0 / 1.227 GB, free: 7.547 MB / 0.9825 GB Notification: Performance of Transformations before backend: time 5.901e-06/0.3379, allocations: 0 / 1.227 GB, free: 7.547 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: 10 * Number of variables: 10 Notification: Performance of Generate backend data structure: time 0.0004896/0.3384, allocations: 363.3 kB / 1.228 GB, free: 7.145 MB / 0.9825 GB Notification: Performance of prepare preOptimizeDAE: time 3.951e-05/0.3385, allocations: 8.031 kB / 1.228 GB, free: 7.137 MB / 0.9825 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.668e-05/0.3385, allocations: 34.75 kB / 1.228 GB, free: 7.094 MB / 0.9825 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.524e-05/0.3386, allocations: 8.922 kB / 1.228 GB, free: 7.086 MB / 0.9825 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001345/0.3387, allocations: 172.3 kB / 1.228 GB, free: 6.879 MB / 0.9825 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.611e-05/0.3387, allocations: 4.375 kB / 1.228 GB, free: 6.875 MB / 0.9825 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.295e-05/0.3387, allocations: 8.375 kB / 1.228 GB, free: 6.867 MB / 0.9825 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001316/0.3389, allocations: 69.72 kB / 1.228 GB, free: 6.793 MB / 0.9825 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.075e-06/0.3389, allocations: 0 / 1.228 GB, free: 6.793 MB / 0.9825 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.516e-06/0.3389, allocations: 0 / 1.228 GB, free: 6.793 MB / 0.9825 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.28e-06/0.3389, allocations: 0 / 1.228 GB, free: 6.793 MB / 0.9825 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.433e-05/0.339, allocations: 27.98 kB / 1.228 GB, free: 6.766 MB / 0.9825 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004782/0.3395, allocations: 300.7 kB / 1.228 GB, free: 6.422 MB / 0.9825 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001037/0.3396, allocations: 54.56 kB / 1.228 GB, free: 6.359 MB / 0.9825 GB Notification: Performance of preOpt resolveLoops (simulation): time 4.354e-05/0.3397, allocations: 24.89 kB / 1.228 GB, free: 6.332 MB / 0.9825 GB Notification: Performance of preOpt evalFunc (simulation): time 1.036e-05/0.3397, allocations: 3.938 kB / 1.228 GB, free: 6.328 MB / 0.9825 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001846/0.3399, allocations: 79.36 kB / 1.228 GB, free: 6.238 MB / 0.9825 GB Notification: Performance of pre-optimization done (n=9): time 1.493e-06/0.3399, allocations: 0 / 1.228 GB, free: 6.238 MB / 0.9825 GB Notification: Performance of matching and sorting (n=9): time 0.0002187/0.3401, allocations: 101.6 kB / 1.228 GB, free: 6.133 MB / 0.9825 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.141e-05/0.3402, allocations: 59.39 kB / 1.229 GB, free: 6.062 MB / 0.9825 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.125e-05/0.3402, allocations: 101.8 kB / 1.229 GB, free: 5.953 MB / 0.9825 GB Notification: Performance of collectPreVariables (initialization): time 2.243e-05/0.3403, allocations: 37.69 kB / 1.229 GB, free: 5.91 MB / 0.9825 GB Notification: Performance of collectInitialEqns (initialization): time 4.722e-05/0.3403, allocations: 84.12 kB / 1.229 GB, free: 5.824 MB / 0.9825 GB Notification: Performance of collectInitialBindings (initialization): time 2.441e-05/0.3403, allocations: 19.86 kB / 1.229 GB, free: 5.805 MB / 0.9825 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.408e-05/0.3404, allocations: 29.7 kB / 1.229 GB, free: 5.77 MB / 0.9825 GB Notification: Performance of setup shared object (initialization): time 0.0001037/0.3405, allocations: 314.8 kB / 1.229 GB, free: 5.453 MB / 0.9825 GB Notification: Performance of preBalanceInitialSystem (initialization): time 3.914e-05/0.3405, allocations: 27.98 kB / 1.229 GB, free: 5.426 MB / 0.9825 GB Notification: Performance of partitionIndependentBlocks (initialization): time 5.192e-05/0.3406, allocations: 43.42 kB / 1.229 GB, free: 5.371 MB / 0.9825 GB Notification: Performance of analyzeInitialSystem (initialization): time 9.395e-05/0.3407, allocations: 67.38 kB / 1.229 GB, free: 5.293 MB / 0.9825 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.144e-06/0.3407, allocations: 0 / 1.229 GB, free: 5.293 MB / 0.9825 GB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0001412/0.3409, allocations: 97.5 kB / 1.229 GB, free: 5.191 MB / 0.9825 GB Notification: Performance of prepare postOptimizeDAE: time 1.47e-05/0.3409, allocations: 12.03 kB / 1.229 GB, free: 5.18 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.851e-06/0.3409, allocations: 0 / 1.229 GB, free: 5.18 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.263e-05/0.3409, allocations: 0 / 1.229 GB, free: 5.18 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.098e-05/0.341, allocations: 11.98 kB / 1.229 GB, free: 5.168 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.442e-06/0.341, allocations: 4 kB / 1.229 GB, free: 5.164 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.573e-05/0.3411, allocations: 7.938 kB / 1.229 GB, free: 5.156 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.081e-05/0.3411, allocations: 11.94 kB / 1.229 GB, free: 5.145 MB / 0.9825 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 9.208e-05/0.3412, allocations: 129.8 kB / 1.229 GB, free: 5.012 MB / 0.9825 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.448e-05/0.3412, allocations: 7.953 kB / 1.229 GB, free: 5.004 MB / 0.9825 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.126e-05/0.3412, allocations: 11.97 kB / 1.229 GB, free: 4.984 MB / 0.9825 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.813e-06/0.3412, allocations: 0 / 1.229 GB, free: 4.984 MB / 0.9825 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.631e-06/0.3413, allocations: 0 / 1.229 GB, free: 4.984 MB / 0.9825 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.166e-06/0.3413, allocations: 4.312 kB / 1.229 GB, free: 4.98 MB / 0.9825 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003898/0.3417, allocations: 362.4 kB / 1.23 GB, free: 4.57 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.734e-06/0.3417, allocations: 0 / 1.23 GB, free: 4.57 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.839e-05/0.3417, allocations: 4 kB / 1.23 GB, free: 4.566 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.439e-06/0.3417, allocations: 3.984 kB / 1.23 GB, free: 4.562 MB / 0.9825 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.454e-06/0.3417, allocations: 4 kB / 1.23 GB, free: 4.559 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.356e-06/0.3417, allocations: 3.938 kB / 1.23 GB, free: 4.555 MB / 0.9825 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.012e-06/0.3417, allocations: 0 / 1.23 GB, free: 4.555 MB / 0.9825 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001633/0.3419, allocations: 179.4 kB / 1.23 GB, free: 4.363 MB / 0.9825 GB Notification: Performance of postOpt removeConstants (simulation): time 3.93e-05/0.342, allocations: 85.09 kB / 1.23 GB, free: 4.262 MB / 0.9825 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.422e-05/0.342, allocations: 4 kB / 1.23 GB, free: 4.258 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.421e-05/0.3421, allocations: 12 kB / 1.23 GB, free: 4.246 MB / 0.9825 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.784e-05/0.3421, allocations: 7.984 kB / 1.23 GB, free: 4.238 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.189e-06/0.3421, allocations: 4 kB / 1.23 GB, free: 4.234 MB / 0.9825 GB Notification: Performance of sorting global known variables: time 4.742e-05/0.3422, allocations: 87.27 kB / 1.23 GB, free: 4.148 MB / 0.9825 GB Notification: Performance of sort global known variables: time 1.6e-07/0.3422, allocations: 4 kB / 1.23 GB, free: 4.145 MB / 0.9825 GB Notification: Performance of remove unused functions: time 0.0002406/0.3424, allocations: 19.89 kB / 1.23 GB, free: 4.125 MB / 0.9825 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.0004298/0.3429, allocations: 0.7124 MB / 1.231 GB, free: 3.387 MB / 0.9825 GB Notification: Performance of simCode: created initialization part: time 0.0001304/0.343, allocations: 55.92 kB / 1.231 GB, free: 3.332 MB / 0.9825 GB Notification: Performance of simCode: created event and clocks part: time 1.923e-06/0.343, allocations: 288 / 1.231 GB, free: 3.332 MB / 0.9825 GB Notification: Performance of simCode: created simulation system equations: time 5.405e-05/0.3431, allocations: 27.92 kB / 1.231 GB, free: 3.305 MB / 0.9825 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002628/0.3433, allocations: 11.94 kB / 1.231 GB, free: 3.293 MB / 0.9825 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001297/0.3446, allocations: 1.391 MB / 1.232 GB, free: 1.805 MB / 0.9825 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002456/0.3449, allocations: 0.6807 MB / 1.233 GB, free: 1.098 MB / 0.9825 GB Notification: Performance of simCode: alias equations: time 3.306e-05/0.3449, allocations: 11.92 kB / 1.233 GB, free: 1.086 MB / 0.9825 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.934e-05/0.345, allocations: 15.44 kB / 1.233 GB, free: 1.07 MB / 0.9825 GB Notification: Performance of SimCode: time 2.31e-07/0.345, allocations: 0 / 1.233 GB, free: 1.07 MB / 0.9825 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01717/0.3622, allocations: 1.772 MB / 1.235 GB, free: 15.39 MB / 0.9981 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.328/7.69, allocations: 3.594 kB / 1.235 GB, free: 15.39 MB / 0.9981 GB (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 & python3 -m fmpy simulate --output-file Buildings_latest_Buildings.Controls.Continuous.Examples.OffTimer_res.csv --start-time 0 --stop-time 1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0004 Buildings_latest_Buildings_Controls_Continuous_Examples_OffTimer.fmu > Buildings_latest_Buildings.Controls.Continuous.Examples.OffTimer.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Controls.Continuous.Examples.OffTimer_res.csv","/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