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: "" <> 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.007117/0.007117, allocations: 99.53 kB / 15.73 MB, free: 5.996 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.001236/0.001236, allocations: 198.2 kB / 16.68 MB, free: 5.918 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.291/1.291, allocations: 222.9 MB / 240.4 MB, free: 15.08 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.419/2.419, allocations: 461.9 MB / 0.7348 GB, free: 11.04 MB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.001337/0.001337, allocations: 64.11 kB / 1.054 GB, free: 8.203 MB / 0.8262 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8385/0.8398, allocations: 157.4 MB / 1.207 GB, free: 13.56 MB / 0.9356 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.Continuous.Examples.OffTimer): time 0.002513/0.8424, allocations: 1.467 MB / 1.209 GB, free: 12.09 MB / 0.9356 GB Notification: Performance of NFInst.instExpressions: time 0.000709/0.8431, allocations: 442.9 kB / 1.209 GB, free: 11.65 MB / 0.9356 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.578e-05/0.8431, allocations: 0 / 1.209 GB, free: 11.65 MB / 0.9356 GB Notification: Performance of NFTyping.typeComponents: time 3.307e-05/0.8432, allocations: 3.938 kB / 1.209 GB, free: 11.65 MB / 0.9356 GB Notification: Performance of NFTyping.typeBindings: time 9.551e-05/0.8433, allocations: 7.938 kB / 1.209 GB, free: 11.64 MB / 0.9356 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002013/0.8435, allocations: 27.91 kB / 1.209 GB, free: 11.61 MB / 0.9356 GB Notification: Performance of NFFlatten.flatten: time 9.523e-05/0.8436, allocations: 47.91 kB / 1.209 GB, free: 11.57 MB / 0.9356 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001245/0.8437, allocations: 15.98 kB / 1.209 GB, free: 11.55 MB / 0.9356 GB Notification: Performance of NFEvalConstants.evaluate: time 5.746e-05/0.8438, allocations: 27.86 kB / 1.209 GB, free: 11.52 MB / 0.9356 GB Notification: Performance of NFSimplifyModel.simplify: time 7.736e-05/0.8439, allocations: 15.92 kB / 1.209 GB, free: 11.51 MB / 0.9356 GB Notification: Performance of NFPackage.collectConstants: time 2.081e-05/0.8439, allocations: 8 kB / 1.209 GB, free: 11.5 MB / 0.9356 GB Notification: Performance of NFFlatten.collectFunctions: time 1.342e-05/0.8439, allocations: 4 kB / 1.209 GB, free: 11.5 MB / 0.9356 GB Notification: Performance of NFScalarize.scalarize: time 3.491e-05/0.844, allocations: 15.91 kB / 1.209 GB, free: 11.48 MB / 0.9356 GB Notification: Performance of NFVerifyModel.verify: time 4.985e-05/0.844, allocations: 23.92 kB / 1.209 GB, free: 11.46 MB / 0.9356 GB Notification: Performance of NFConvertDAE.convert: time 0.0001137/0.8441, allocations: 46.06 kB / 1.209 GB, free: 11.41 MB / 0.9356 GB Notification: Performance of FrontEnd - DAE generated: time 4.909e-06/0.8441, allocations: 0 / 1.209 GB, free: 11.41 MB / 0.9356 GB Notification: Performance of FrontEnd: time 1.743e-06/0.8441, allocations: 0 / 1.209 GB, free: 11.41 MB / 0.9356 GB Notification: Performance of Transformations before backend: time 6.613e-06/0.8442, allocations: 0 / 1.209 GB, free: 11.41 MB / 0.9356 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.0005216/0.8447, allocations: 367.4 kB / 1.21 GB, free: 11.01 MB / 0.9356 GB Notification: Performance of prepare preOptimizeDAE: time 3.634e-05/0.8447, allocations: 15.97 kB / 1.21 GB, free: 10.99 MB / 0.9356 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.546e-05/0.8448, allocations: 30.75 kB / 1.21 GB, free: 10.95 MB / 0.9356 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.987e-05/0.8448, allocations: 8.844 kB / 1.21 GB, free: 10.95 MB / 0.9356 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001607/0.845, allocations: 176.3 kB / 1.21 GB, free: 10.73 MB / 0.9356 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.999e-06/0.845, allocations: 4.375 kB / 1.21 GB, free: 10.73 MB / 0.9356 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.463e-05/0.845, allocations: 4.375 kB / 1.21 GB, free: 10.73 MB / 0.9356 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001073/0.8451, allocations: 57.81 kB / 1.21 GB, free: 10.66 MB / 0.9356 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.375e-06/0.8451, allocations: 7.984 kB / 1.21 GB, free: 10.66 MB / 0.9356 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.907e-06/0.8451, allocations: 0 / 1.21 GB, free: 10.66 MB / 0.9356 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.757e-06/0.8452, allocations: 0 / 1.21 GB, free: 10.66 MB / 0.9356 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.292e-05/0.8452, allocations: 31.92 kB / 1.21 GB, free: 10.62 MB / 0.9356 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004861/0.8457, allocations: 300.6 kB / 1.21 GB, free: 10.28 MB / 0.9356 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001071/0.8458, allocations: 58.69 kB / 1.21 GB, free: 10.21 MB / 0.9356 GB Notification: Performance of preOpt resolveLoops (simulation): time 4.581e-05/0.8459, allocations: 28.84 kB / 1.21 GB, free: 10.18 MB / 0.9356 GB Notification: Performance of preOpt evalFunc (simulation): time 8.095e-06/0.8459, allocations: 4 kB / 1.21 GB, free: 10.18 MB / 0.9356 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001608/0.8461, allocations: 67.39 kB / 1.21 GB, free: 10.1 MB / 0.9356 GB Notification: Performance of pre-optimization done (n=9): time 1.402e-06/0.8461, allocations: 0 / 1.21 GB, free: 10.1 MB / 0.9356 GB Notification: Performance of matching and sorting (n=9): time 0.000226/0.8463, allocations: 101.5 kB / 1.211 GB, free: 9.996 MB / 0.9356 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.721e-05/0.8464, allocations: 51.41 kB / 1.211 GB, free: 9.934 MB / 0.9356 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.279e-05/0.8465, allocations: 109.8 kB / 1.211 GB, free: 9.816 MB / 0.9356 GB Notification: Performance of collectPreVariables (initialization): time 1.942e-05/0.8465, allocations: 29.7 kB / 1.211 GB, free: 9.781 MB / 0.9356 GB Notification: Performance of collectInitialEqns (initialization): time 5.52e-05/0.8465, allocations: 88.14 kB / 1.211 GB, free: 9.691 MB / 0.9356 GB Notification: Performance of collectInitialBindings (initialization): time 2.445e-05/0.8466, allocations: 20.08 kB / 1.211 GB, free: 9.672 MB / 0.9356 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.402e-05/0.8466, allocations: 29.66 kB / 1.211 GB, free: 9.637 MB / 0.9356 GB Notification: Performance of setup shared object (initialization): time 0.0001199/0.8467, allocations: 322.8 kB / 1.211 GB, free: 9.312 MB / 0.9356 GB Notification: Performance of preBalanceInitialSystem (initialization): time 3.673e-05/0.8468, allocations: 19.94 kB / 1.211 GB, free: 9.293 MB / 0.9356 GB Notification: Performance of partitionIndependentBlocks (initialization): time 5.822e-05/0.8469, allocations: 51.36 kB / 1.211 GB, free: 9.23 MB / 0.9356 GB Notification: Performance of analyzeInitialSystem (initialization): time 9.526e-05/0.847, allocations: 67.36 kB / 1.211 GB, free: 9.152 MB / 0.9356 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.305e-06/0.847, allocations: 0 / 1.211 GB, free: 9.152 MB / 0.9356 GB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0001414/0.8471, allocations: 97.69 kB / 1.211 GB, free: 9.051 MB / 0.9356 GB Notification: Performance of prepare postOptimizeDAE: time 2.134e-05/0.8471, allocations: 8 kB / 1.211 GB, free: 9.043 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.158e-06/0.8471, allocations: 0 / 1.211 GB, free: 9.043 MB / 0.9356 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.174e-05/0.8472, allocations: 0 / 1.211 GB, free: 9.043 MB / 0.9356 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.144e-05/0.8472, allocations: 16.03 kB / 1.211 GB, free: 9.027 MB / 0.9356 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.766e-06/0.8473, allocations: 7.938 kB / 1.211 GB, free: 9.02 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.829e-05/0.8473, allocations: 11.92 kB / 1.211 GB, free: 9.008 MB / 0.9356 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.295e-06/0.8473, allocations: 7.938 kB / 1.211 GB, free: 9 MB / 0.9356 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.631e-05/0.8474, allocations: 113.8 kB / 1.212 GB, free: 8.879 MB / 0.9356 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.195e-05/0.8475, allocations: 4 kB / 1.212 GB, free: 8.875 MB / 0.9356 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.258e-05/0.8475, allocations: 7.969 kB / 1.212 GB, free: 8.859 MB / 0.9356 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.707e-06/0.8475, allocations: 4.047 kB / 1.212 GB, free: 8.855 MB / 0.9356 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.46e-06/0.8475, allocations: 8 kB / 1.212 GB, free: 8.848 MB / 0.9356 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.276e-06/0.8475, allocations: 0 / 1.212 GB, free: 8.848 MB / 0.9356 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004037/0.8479, allocations: 366.3 kB / 1.212 GB, free: 8.434 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.282e-06/0.8479, allocations: 0 / 1.212 GB, free: 8.434 MB / 0.9356 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.268e-05/0.848, allocations: 3.938 kB / 1.212 GB, free: 8.43 MB / 0.9356 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.793e-06/0.848, allocations: 4 kB / 1.212 GB, free: 8.426 MB / 0.9356 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.494e-06/0.848, allocations: 0 / 1.212 GB, free: 8.426 MB / 0.9356 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.026e-06/0.848, allocations: 3.938 kB / 1.212 GB, free: 8.422 MB / 0.9356 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.92e-07/0.848, allocations: 0 / 1.212 GB, free: 8.422 MB / 0.9356 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001596/0.8482, allocations: 187.4 kB / 1.212 GB, free: 8.223 MB / 0.9356 GB Notification: Performance of postOpt removeConstants (simulation): time 4.686e-05/0.8482, allocations: 81.11 kB / 1.212 GB, free: 8.125 MB / 0.9356 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.615e-05/0.8483, allocations: 3.984 kB / 1.212 GB, free: 8.121 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.151e-05/0.8483, allocations: 11.88 kB / 1.212 GB, free: 8.109 MB / 0.9356 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.481e-05/0.8484, allocations: 12.17 kB / 1.212 GB, free: 8.098 MB / 0.9356 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.879e-06/0.8484, allocations: 0 / 1.212 GB, free: 8.098 MB / 0.9356 GB Notification: Performance of sorting global known variables: time 4.063e-05/0.8484, allocations: 83.22 kB / 1.212 GB, free: 8.016 MB / 0.9356 GB Notification: Performance of sort global known variables: time 1.2e-07/0.8485, allocations: 4 kB / 1.212 GB, free: 8.012 MB / 0.9356 GB Notification: Performance of remove unused functions: time 0.000235/0.8487, allocations: 16 kB / 1.212 GB, free: 7.996 MB / 0.9356 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.0004701/0.8492, allocations: 0.7123 MB / 1.213 GB, free: 7.258 MB / 0.9356 GB Notification: Performance of simCode: created initialization part: time 0.0001447/0.8493, allocations: 55.92 kB / 1.213 GB, free: 7.203 MB / 0.9356 GB Notification: Performance of simCode: created event and clocks part: time 1.633e-06/0.8493, allocations: 0 / 1.213 GB, free: 7.203 MB / 0.9356 GB Notification: Performance of simCode: created simulation system equations: time 5.5e-05/0.8494, allocations: 31.98 kB / 1.213 GB, free: 7.172 MB / 0.9356 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002857/0.8497, allocations: 11.94 kB / 1.213 GB, free: 7.16 MB / 0.9356 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001337/0.851, allocations: 1.375 MB / 1.214 GB, free: 5.688 MB / 0.9356 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002676/0.8513, allocations: 0.6846 MB / 1.215 GB, free: 4.977 MB / 0.9356 GB Notification: Performance of simCode: alias equations: time 2.758e-05/0.8513, allocations: 8.359 kB / 1.215 GB, free: 4.969 MB / 0.9356 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.803e-05/0.8514, allocations: 23.42 kB / 1.215 GB, free: 4.945 MB / 0.9356 GB Notification: Performance of SimCode: time 1.793e-06/0.8514, allocations: 0 / 1.215 GB, free: 4.945 MB / 0.9356 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01962/0.871, allocations: 1.793 MB / 1.217 GB, free: 3.242 MB / 0.9356 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.106/7.977, allocations: 22.45 kB / 1.217 GB, free: 3.227 MB / 0.9356 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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_latest_Buildings.Controls.Continuous.Examples.OffTimer_res.mat --tempDir=temp_Buildings_latest_Buildings_Controls_Continuous_Examples_OffTimer_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 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.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) "" Variables in the reference:time,offTim1.u,offTim1.y,offTim2.u,offTim2.y Variables in the result:booleanPulse.period,booleanPulse.startTime,booleanPulse.width,booleanPulse.y,not1.u,not1.y,offTim1.u,offTim1.y,offTim2.u,offTim2.y,time