Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_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 10.1.1-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/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_10_Buildings_Controls_Continuous_Examples_OffTimer",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.Continuous.Examples.OffTimer,fileNamePrefix="Buildings_10_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.001229/0.00123, allocations: 108 kB / 15.6 MB, free: 132 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001147/0.001147, allocations: 193.9 kB / 16.53 MB, free: 6.391 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.174/1.174, allocations: 222.9 MB / 240.2 MB, free: 4.387 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/package.mo): time 2.222/2.222, allocations: 437 MB / 0.7104 GB, free: 5.031 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.001182/0.001182, allocations: 63.91 kB / 0.8693 GB, free: 4.566 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4457/0.4469, allocations: 151.6 MB / 1.017 GB, free: 2.574 MB / 0.7637 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.Continuous.Examples.OffTimer): time 0.002337/0.4493, allocations: 1.457 MB / 1.019 GB, free: 1.105 MB / 0.7637 GB Notification: Performance of NFInst.instExpressions: time 0.0005858/0.4499, allocations: 450.9 kB / 1.019 GB, free: 0.6602 MB / 0.7637 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.484e-05/0.4499, allocations: 0 / 1.019 GB, free: 0.6602 MB / 0.7637 GB Notification: Performance of NFTyping.typeComponents: time 2.417e-05/0.45, allocations: 3.938 kB / 1.019 GB, free: 0.6562 MB / 0.7637 GB Notification: Performance of NFTyping.typeBindings: time 6.245e-05/0.4501, allocations: 11.92 kB / 1.019 GB, free: 0.6445 MB / 0.7637 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001198/0.4502, allocations: 15.92 kB / 1.019 GB, free: 0.6289 MB / 0.7637 GB Notification: Performance of NFFlatten.flatten: time 6.831e-05/0.4503, allocations: 51.91 kB / 1.019 GB, free: 0.5781 MB / 0.7637 GB Notification: Performance of NFFlatten.resolveConnections: time 8.316e-05/0.4503, allocations: 11.98 kB / 1.019 GB, free: 0.5664 MB / 0.7637 GB Notification: Performance of NFEvalConstants.evaluate: time 4.289e-05/0.4504, allocations: 27.88 kB / 1.019 GB, free: 0.5391 MB / 0.7637 GB Notification: Performance of NFSimplifyModel.simplify: time 4.633e-05/0.4504, allocations: 23.89 kB / 1.019 GB, free: 0.5156 MB / 0.7637 GB Notification: Performance of NFPackage.collectConstants: time 1.582e-05/0.4505, allocations: 4 kB / 1.019 GB, free: 0.5117 MB / 0.7637 GB Notification: Performance of NFFlatten.collectFunctions: time 1.196e-05/0.4505, allocations: 8 kB / 1.019 GB, free: 0.5039 MB / 0.7637 GB Notification: Performance of NFScalarize.scalarize: time 1.782e-05/0.4505, allocations: 11.92 kB / 1.019 GB, free: 0.4922 MB / 0.7637 GB Notification: Performance of NFVerifyModel.verify: time 4.177e-05/0.4506, allocations: 23.92 kB / 1.019 GB, free: 480 kB / 0.7637 GB Notification: Performance of NFConvertDAE.convert: time 7.525e-05/0.4506, allocations: 46.08 kB / 1.019 GB, free: 436 kB / 0.7637 GB Notification: Performance of FrontEnd - DAE generated: time 3.116e-06/0.4506, allocations: 0 / 1.019 GB, free: 436 kB / 0.7637 GB Notification: Performance of FrontEnd: time 9.82e-07/0.4506, allocations: 4 kB / 1.019 GB, free: 432 kB / 0.7637 GB Notification: Performance of Transformations before backend: time 6.352e-06/0.4507, allocations: 0 / 1.019 GB, free: 432 kB / 0.7637 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.0004115/0.4511, allocations: 364.5 kB / 1.02 GB, free: 20 kB / 0.7637 GB Notification: Performance of prepare preOptimizeDAE: time 3.088e-05/0.4511, allocations: 12.02 kB / 1.02 GB, free: 8 kB / 0.7637 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.66e-05/0.4512, allocations: 34.75 kB / 1.02 GB, free: 15.96 MB / 0.7794 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.441e-05/0.4512, allocations: 4.938 kB / 1.02 GB, free: 15.96 MB / 0.7794 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001042/0.4513, allocations: 176.2 kB / 1.02 GB, free: 15.75 MB / 0.7794 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.877e-06/0.4513, allocations: 4.375 kB / 1.02 GB, free: 15.75 MB / 0.7794 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.316e-05/0.4513, allocations: 8.359 kB / 1.02 GB, free: 15.74 MB / 0.7794 GB Notification: Performance of preOpt clockPartitioning (simulation): time 9.111e-05/0.4514, allocations: 57.75 kB / 1.02 GB, free: 15.68 MB / 0.7794 GB Notification: Performance of preOpt findStateOrder (simulation): time 5.761e-06/0.4514, allocations: 4 kB / 1.02 GB, free: 15.67 MB / 0.7794 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.043e-05/0.4514, allocations: 8 kB / 1.02 GB, free: 15.66 MB / 0.7794 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.947e-06/0.4515, allocations: 0 / 1.02 GB, free: 15.66 MB / 0.7794 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.083e-05/0.4515, allocations: 19.98 kB / 1.02 GB, free: 15.64 MB / 0.7794 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003987/0.4519, allocations: 308.7 kB / 1.02 GB, free: 15.29 MB / 0.7794 GB Notification: Performance of preOpt comSubExp (simulation): time 9.158e-05/0.452, allocations: 58.62 kB / 1.021 GB, free: 15.23 MB / 0.7794 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.75e-05/0.4521, allocations: 24.88 kB / 1.021 GB, free: 15.2 MB / 0.7794 GB Notification: Performance of preOpt evalFunc (simulation): time 9.959e-06/0.4521, allocations: 96 / 1.021 GB, free: 15.2 MB / 0.7794 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001295/0.4522, allocations: 79.23 kB / 1.021 GB, free: 15.11 MB / 0.7794 GB Notification: Performance of pre-optimization done (n=9): time 1.162e-06/0.4522, allocations: 0 / 1.021 GB, free: 15.11 MB / 0.7794 GB Notification: Performance of matching and sorting (n=9): time 0.0001847/0.4524, allocations: 97.61 kB / 1.021 GB, free: 15.01 MB / 0.7794 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.973e-05/0.4524, allocations: 51.41 kB / 1.021 GB, free: 14.95 MB / 0.7794 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.576e-05/0.4525, allocations: 113.8 kB / 1.021 GB, free: 14.82 MB / 0.7794 GB Notification: Performance of collectPreVariables (initialization): time 1.326e-05/0.4525, allocations: 25.7 kB / 1.021 GB, free: 14.79 MB / 0.7794 GB Notification: Performance of collectInitialEqns (initialization): time 3.515e-05/0.4526, allocations: 92.05 kB / 1.021 GB, free: 14.7 MB / 0.7794 GB Notification: Performance of collectInitialBindings (initialization): time 1.985e-05/0.4526, allocations: 19.78 kB / 1.021 GB, free: 14.68 MB / 0.7794 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.757e-05/0.4526, allocations: 33.66 kB / 1.021 GB, free: 14.64 MB / 0.7794 GB Notification: Performance of setup shared object (initialization): time 7.9e-05/0.4527, allocations: 318.8 kB / 1.021 GB, free: 14.32 MB / 0.7794 GB Notification: Performance of preBalanceInitialSystem (initialization): time 2.982e-05/0.4528, allocations: 12 kB / 1.021 GB, free: 14.31 MB / 0.7794 GB Notification: Performance of partitionIndependentBlocks (initialization): time 4.674e-05/0.4528, allocations: 55.36 kB / 1.021 GB, free: 14.24 MB / 0.7794 GB Notification: Performance of analyzeInitialSystem (initialization): time 7.515e-05/0.4529, allocations: 63.42 kB / 1.021 GB, free: 14.17 MB / 0.7794 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.535e-06/0.4529, allocations: 0 / 1.021 GB, free: 14.17 MB / 0.7794 GB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0001255/0.453, allocations: 102 kB / 1.022 GB, free: 14.06 MB / 0.7794 GB Notification: Performance of prepare postOptimizeDAE: time 1.203e-05/0.4531, allocations: 7.984 kB / 1.022 GB, free: 14.05 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.27e-06/0.4531, allocations: 4 kB / 1.022 GB, free: 14.05 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.022e-05/0.4531, allocations: 4.031 kB / 1.022 GB, free: 14.05 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.961e-05/0.4531, allocations: 11.94 kB / 1.022 GB, free: 14.04 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.027e-06/0.4531, allocations: 0 / 1.022 GB, free: 14.04 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.392e-05/0.4532, allocations: 15.92 kB / 1.022 GB, free: 14.02 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.343e-06/0.4532, allocations: 3.938 kB / 1.022 GB, free: 14.02 MB / 0.7794 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 6.911e-05/0.4533, allocations: 128 kB / 1.022 GB, free: 13.88 MB / 0.7794 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.147e-05/0.4533, allocations: 3.906 kB / 1.022 GB, free: 13.88 MB / 0.7794 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.444e-05/0.4533, allocations: 7.969 kB / 1.022 GB, free: 13.87 MB / 0.7794 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.833e-06/0.4534, allocations: 4 kB / 1.022 GB, free: 13.86 MB / 0.7794 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.865e-06/0.4534, allocations: 4 kB / 1.022 GB, free: 13.86 MB / 0.7794 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.835e-06/0.4534, allocations: 0 / 1.022 GB, free: 13.86 MB / 0.7794 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003267/0.4537, allocations: 354.4 kB / 1.022 GB, free: 13.46 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.302e-06/0.4537, allocations: 0 / 1.022 GB, free: 13.46 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.463e-05/0.4537, allocations: 4 kB / 1.022 GB, free: 13.45 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.673e-06/0.4538, allocations: 0 / 1.022 GB, free: 13.45 MB / 0.7794 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.227e-06/0.4538, allocations: 8.062 kB / 1.022 GB, free: 13.45 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.199e-06/0.4538, allocations: 7.875 kB / 1.022 GB, free: 13.44 MB / 0.7794 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.052e-06/0.4538, allocations: 4 kB / 1.022 GB, free: 13.43 MB / 0.7794 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001337/0.4539, allocations: 179.4 kB / 1.022 GB, free: 13.24 MB / 0.7794 GB Notification: Performance of postOpt removeConstants (simulation): time 3.14e-05/0.454, allocations: 84.95 kB / 1.022 GB, free: 13.14 MB / 0.7794 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.477e-05/0.454, allocations: 4 kB / 1.022 GB, free: 13.14 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.156e-05/0.4541, allocations: 15.86 kB / 1.022 GB, free: 13.12 MB / 0.7794 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.68e-05/0.4541, allocations: 11.98 kB / 1.022 GB, free: 13.11 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.468e-06/0.4541, allocations: 0 / 1.022 GB, free: 13.11 MB / 0.7794 GB Notification: Performance of sorting global known variables: time 3.07e-05/0.4541, allocations: 87.28 kB / 1.022 GB, free: 13.02 MB / 0.7794 GB Notification: Performance of sort global known variables: time 1e-07/0.4542, allocations: 0 / 1.022 GB, free: 13.02 MB / 0.7794 GB Notification: Performance of remove unused functions: time 0.0002199/0.4544, allocations: 12 kB / 1.022 GB, free: 13.01 MB / 0.7794 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.0003306/0.4547, allocations: 0.7126 MB / 1.023 GB, free: 12.27 MB / 0.7794 GB Notification: Performance of simCode: created initialization part: time 0.0001202/0.4548, allocations: 63.91 kB / 1.023 GB, free: 12.21 MB / 0.7794 GB Notification: Performance of simCode: created event and clocks part: time 1.313e-06/0.4549, allocations: 4.062 kB / 1.023 GB, free: 12.2 MB / 0.7794 GB Notification: Performance of simCode: created simulation system equations: time 4.499e-05/0.4549, allocations: 23.94 kB / 1.023 GB, free: 12.18 MB / 0.7794 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002496/0.4552, allocations: 15.92 kB / 1.023 GB, free: 12.16 MB / 0.7794 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001047/0.4562, allocations: 1.365 MB / 1.025 GB, free: 10.7 MB / 0.7794 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001823/0.4564, allocations: 0.6889 MB / 1.025 GB, free: 9.988 MB / 0.7794 GB Notification: Performance of simCode: alias equations: time 2.682e-05/0.4564, allocations: 11.92 kB / 1.025 GB, free: 9.977 MB / 0.7794 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.52e-05/0.4565, allocations: 19.38 kB / 1.025 GB, free: 9.961 MB / 0.7794 GB Notification: Performance of SimCode: time 1.91e-07/0.4565, allocations: 0 / 1.025 GB, free: 9.961 MB / 0.7794 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 1.859/2.316, allocations: 1.723 MB / 1.027 GB, free: 8.305 MB / 0.7794 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.037/10.35, allocations: 13.95 kB / 1.027 GB, free: 8.297 MB / 0.7794 GB (rm -f Buildings_10_Buildings.Controls.Continuous.Examples.OffTimer.pipe ; mkfifo Buildings_10_Buildings.Controls.Continuous.Examples.OffTimer.pipe ; head -c 1048576 < Buildings_10_Buildings.Controls.Continuous.Examples.OffTimer.pipe >> ../files/Buildings_10_Buildings.Controls.Continuous.Examples.OffTimer.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_10_Buildings.Controls.Continuous.Examples.OffTimer_res.mat --tempDir=temp_Buildings_10_Buildings_Controls_Continuous_Examples_OffTimer_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Buildings_10_Buildings_Controls_Continuous_Examples_OffTimer.fmu > Buildings_10_Buildings.Controls.Continuous.Examples.OffTimer.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Controls.Continuous.Examples.OffTimer_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Controls_Continuous_Examples_OffTimer.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Controls.Continuous.Examples.OffTimer.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches