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: 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.001498/0.001498, allocations: 103.4 kB / 15.33 MB, free: 0.5078 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.001951/0.001951, allocations: 191 kB / 16.25 MB, free: 6.625 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.531/1.531, allocations: 222.9 MB / 239.9 MB, free: 4.527 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.914/2.914, allocations: 472.6 MB / 0.7448 GB, free: 4.852 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001241/0.001241, allocations: 63.03 kB / 0.9115 GB, free: 33.57 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3229/0.3241, allocations: 159.9 MB / 1.068 GB, free: 10.75 MB / 0.8262 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.Continuous.Examples.OffTimer): time 0.003051/0.3272, allocations: 1.532 MB / 1.069 GB, free: 9.203 MB / 0.8262 GB Notification: Performance of NFInst.instExpressions: time 0.0007754/0.328, allocations: 446.8 kB / 1.07 GB, free: 8.762 MB / 0.8262 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.555e-05/0.3281, allocations: 0 / 1.07 GB, free: 8.762 MB / 0.8262 GB Notification: Performance of NFTyping.typeComponents: time 6.309e-05/0.3282, allocations: 3.938 kB / 1.07 GB, free: 8.758 MB / 0.8262 GB Notification: Performance of NFTyping.typeBindings: time 0.0001104/0.3283, allocations: 4 kB / 1.07 GB, free: 8.754 MB / 0.8262 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001962/0.3285, allocations: 19.92 kB / 1.07 GB, free: 8.734 MB / 0.8262 GB Notification: Performance of NFFlatten.flatten: time 0.000105/0.3286, allocations: 51.89 kB / 1.07 GB, free: 8.684 MB / 0.8262 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001474/0.3288, allocations: 12 kB / 1.07 GB, free: 8.672 MB / 0.8262 GB Notification: Performance of NFEvalConstants.evaluate: time 6.466e-05/0.3288, allocations: 23.92 kB / 1.07 GB, free: 8.648 MB / 0.8262 GB Notification: Performance of NFSimplifyModel.simplify: time 7.292e-05/0.3289, allocations: 23.86 kB / 1.07 GB, free: 8.625 MB / 0.8262 GB Notification: Performance of NFPackage.collectConstants: time 2.252e-05/0.3289, allocations: 7.938 kB / 1.07 GB, free: 8.617 MB / 0.8262 GB Notification: Performance of NFFlatten.collectFunctions: time 1.552e-05/0.329, allocations: 4 kB / 1.07 GB, free: 8.613 MB / 0.8262 GB Notification: Performance of NFScalarize.scalarize: time 2.826e-05/0.329, allocations: 7.984 kB / 1.07 GB, free: 8.605 MB / 0.8262 GB Notification: Performance of NFVerifyModel.verify: time 6.554e-05/0.3291, allocations: 31.84 kB / 1.07 GB, free: 8.574 MB / 0.8262 GB Notification: Performance of NFConvertDAE.convert: time 0.0001249/0.3292, allocations: 39.89 kB / 1.07 GB, free: 8.535 MB / 0.8262 GB Notification: Performance of FrontEnd - DAE generated: time 6.102e-06/0.3292, allocations: 0 / 1.07 GB, free: 8.535 MB / 0.8262 GB Notification: Performance of FrontEnd: time 1.834e-06/0.3292, allocations: 0 / 1.07 GB, free: 8.535 MB / 0.8262 GB Notification: Performance of Transformations before backend: time 8.396e-06/0.3292, allocations: 4 kB / 1.07 GB, free: 8.531 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.0006458/0.3299, allocations: 355.7 kB / 1.07 GB, free: 8.137 MB / 0.8262 GB Notification: Performance of prepare preOptimizeDAE: time 4.421e-05/0.3299, allocations: 12.03 kB / 1.07 GB, free: 8.125 MB / 0.8262 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.904e-05/0.33, allocations: 12.83 kB / 1.07 GB, free: 8.113 MB / 0.8262 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001539/0.3302, allocations: 172.3 kB / 1.07 GB, free: 7.906 MB / 0.8262 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.716e-05/0.3302, allocations: 4.375 kB / 1.07 GB, free: 7.902 MB / 0.8262 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.423e-05/0.3302, allocations: 4.375 kB / 1.07 GB, free: 7.898 MB / 0.8262 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001241/0.3303, allocations: 61.94 kB / 1.07 GB, free: 7.832 MB / 0.8262 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.021e-05/0.3303, allocations: 4 kB / 1.07 GB, free: 7.828 MB / 0.8262 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.311e-05/0.3304, allocations: 3.984 kB / 1.07 GB, free: 7.824 MB / 0.8262 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.732e-06/0.3304, allocations: 4 kB / 1.07 GB, free: 7.82 MB / 0.8262 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.234e-05/0.3304, allocations: 19.98 kB / 1.07 GB, free: 7.801 MB / 0.8262 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000494/0.3309, allocations: 304.6 kB / 1.071 GB, free: 7.453 MB / 0.8262 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001025/0.3311, allocations: 58.56 kB / 1.071 GB, free: 7.387 MB / 0.8262 GB Notification: Performance of preOpt resolveLoops (simulation): time 4.565e-05/0.3311, allocations: 24.94 kB / 1.071 GB, free: 7.359 MB / 0.8262 GB Notification: Performance of preOpt evalFunc (simulation): time 1.213e-05/0.3311, allocations: 0 / 1.071 GB, free: 7.359 MB / 0.8262 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001773/0.3313, allocations: 75.36 kB / 1.071 GB, free: 7.273 MB / 0.8262 GB Notification: Performance of pre-optimization done (n=9): time 1.303e-06/0.3313, allocations: 4 kB / 1.071 GB, free: 7.27 MB / 0.8262 GB Notification: Performance of matching and sorting (n=9): time 0.0002579/0.3316, allocations: 93.61 kB / 1.071 GB, free: 7.172 MB / 0.8262 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.099e-05/0.3317, allocations: 63.41 kB / 1.071 GB, free: 7.098 MB / 0.8262 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.217e-05/0.3317, allocations: 109.8 kB / 1.071 GB, free: 6.98 MB / 0.8262 GB Notification: Performance of collectPreVariables (initialization): time 1.695e-05/0.3318, allocations: 29.64 kB / 1.071 GB, free: 6.945 MB / 0.8262 GB Notification: Performance of collectInitialEqns (initialization): time 5.387e-05/0.3318, allocations: 84.14 kB / 1.071 GB, free: 6.859 MB / 0.8262 GB Notification: Performance of collectInitialBindings (initialization): time 2.419e-05/0.3319, allocations: 27.64 kB / 1.071 GB, free: 6.832 MB / 0.8262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.175e-05/0.3319, allocations: 25.72 kB / 1.071 GB, free: 6.801 MB / 0.8262 GB Notification: Performance of setup shared object (initialization): time 0.000118/0.332, allocations: 322.8 kB / 1.072 GB, free: 6.477 MB / 0.8262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 3.555e-05/0.3321, allocations: 16 kB / 1.072 GB, free: 6.461 MB / 0.8262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 5.726e-05/0.3321, allocations: 51.36 kB / 1.072 GB, free: 6.398 MB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization): time 8.184e-05/0.3322, allocations: 63.36 kB / 1.072 GB, free: 6.324 MB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.683e-06/0.3322, allocations: 4 kB / 1.072 GB, free: 6.32 MB / 0.8262 GB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0001286/0.3324, allocations: 97.83 kB / 1.072 GB, free: 6.219 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 1.428e-05/0.3324, allocations: 5.406 kB / 1.072 GB, free: 6.215 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.804e-06/0.3324, allocations: 8.016 kB / 1.072 GB, free: 6.207 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.28e-05/0.3324, allocations: 4 kB / 1.072 GB, free: 6.203 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.348e-05/0.3325, allocations: 8 kB / 1.072 GB, free: 6.195 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.903e-06/0.3325, allocations: 0 / 1.072 GB, free: 6.195 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.182e-05/0.3326, allocations: 11.89 kB / 1.072 GB, free: 6.184 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.701e-05/0.3326, allocations: 12.06 kB / 1.072 GB, free: 6.172 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 9.187e-05/0.3327, allocations: 121.7 kB / 1.072 GB, free: 6.043 MB / 0.8262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.002e-05/0.3327, allocations: 4 kB / 1.072 GB, free: 6.039 MB / 0.8262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.306e-05/0.3327, allocations: 7.969 kB / 1.072 GB, free: 6.027 MB / 0.8262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.318e-06/0.3328, allocations: 8 kB / 1.072 GB, free: 6.02 MB / 0.8262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.234e-06/0.3328, allocations: 3.984 kB / 1.072 GB, free: 6.016 MB / 0.8262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.286e-06/0.3328, allocations: 0 / 1.072 GB, free: 6.016 MB / 0.8262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000381/0.3332, allocations: 358.7 kB / 1.072 GB, free: 5.609 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.352e-06/0.3332, allocations: 96 / 1.072 GB, free: 5.609 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.522e-05/0.3332, allocations: 7.938 kB / 1.072 GB, free: 5.602 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.553e-06/0.3332, allocations: 0 / 1.072 GB, free: 5.602 MB / 0.8262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.203e-05/0.3332, allocations: 4 kB / 1.072 GB, free: 5.598 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.4e-06/0.3332, allocations: 7.938 kB / 1.072 GB, free: 5.59 MB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.21e-07/0.3332, allocations: 3.938 kB / 1.072 GB, free: 5.586 MB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001653/0.3334, allocations: 179.5 kB / 1.073 GB, free: 5.395 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 4.486e-05/0.3335, allocations: 84.95 kB / 1.073 GB, free: 5.293 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.795e-05/0.3335, allocations: 4 kB / 1.073 GB, free: 5.289 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.214e-05/0.3336, allocations: 11.92 kB / 1.073 GB, free: 5.277 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.943e-05/0.3336, allocations: 7.984 kB / 1.073 GB, free: 5.27 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.512e-06/0.3336, allocations: 8 kB / 1.073 GB, free: 5.262 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 5.278e-05/0.3337, allocations: 83.28 kB / 1.073 GB, free: 5.18 MB / 0.8262 GB Notification: Performance of sort global known variables: time 1.21e-07/0.3337, allocations: 0 / 1.073 GB, free: 5.18 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.0002241/0.3339, allocations: 12 kB / 1.073 GB, free: 5.168 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.000106/0.334, allocations: 107.2 kB / 1.073 GB, free: 5.055 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.000149/0.3342, allocations: 51.92 kB / 1.073 GB, free: 5.004 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 1.903e-06/0.3342, allocations: 0 / 1.073 GB, free: 5.004 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 5.819e-05/0.3343, allocations: 27.92 kB / 1.073 GB, free: 4.977 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000275/0.3346, allocations: 17.47 kB / 1.073 GB, free: 4.961 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004246/0.335, allocations: 192.6 kB / 1.073 GB, free: 4.75 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002588/0.3353, allocations: 0.6848 MB / 1.074 GB, free: 4.039 MB / 0.8262 GB Notification: Performance of simCode: alias equations: time 2.841e-05/0.3353, allocations: 8 kB / 1.074 GB, free: 4.031 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.138e-05/0.3353, allocations: 15.42 kB / 1.074 GB, free: 4.016 MB / 0.8262 GB Notification: Performance of SimCode: time 3.01e-07/0.3353, allocations: 3.938 kB / 1.074 GB, free: 4.012 MB / 0.8262 GB Notification: Performance of Templates: time 0.002875/0.3382, allocations: 0.7101 MB / 1.075 GB, free: 3.305 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/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Controls.Continuous.Examples.OffTimer.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches