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.008826/0.008826, allocations: 100.8 kB / 15.73 MB, free: 6.477 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.002245/0.002246, allocations: 189.9 kB / 16.67 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.577/1.577, allocations: 222.9 MB / 240.4 MB, free: 4.367 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.568/2.568, allocations: 437 MB / 0.7105 GB, free: 5.023 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.001412/0.001412, allocations: 63.89 kB / 1.018 GB, free: 15.1 MB / 0.7794 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2984/0.2998, allocations: 151.6 MB / 1.166 GB, free: 7.355 MB / 0.92 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.Continuous.Examples.OffTimer): time 0.003017/0.3029, allocations: 1.467 MB / 1.168 GB, free: 5.867 MB / 0.92 GB Notification: Performance of NFInst.instExpressions: time 0.0007797/0.3037, allocations: 446.9 kB / 1.168 GB, free: 5.426 MB / 0.92 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.539e-05/0.3038, allocations: 0 / 1.168 GB, free: 5.426 MB / 0.92 GB Notification: Performance of NFTyping.typeComponents: time 2.995e-05/0.3038, allocations: 3.938 kB / 1.168 GB, free: 5.422 MB / 0.92 GB Notification: Performance of NFTyping.typeBindings: time 9.252e-05/0.304, allocations: 7.938 kB / 1.168 GB, free: 5.414 MB / 0.92 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001691/0.3041, allocations: 23.91 kB / 1.168 GB, free: 5.391 MB / 0.92 GB Notification: Performance of NFFlatten.flatten: time 0.0001013/0.3042, allocations: 51.84 kB / 1.168 GB, free: 5.34 MB / 0.92 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001081/0.3044, allocations: 15.98 kB / 1.168 GB, free: 5.324 MB / 0.92 GB Notification: Performance of NFEvalConstants.evaluate: time 6.263e-05/0.3044, allocations: 23.92 kB / 1.168 GB, free: 5.301 MB / 0.92 GB Notification: Performance of NFSimplifyModel.simplify: time 6.71e-05/0.3045, allocations: 15.92 kB / 1.168 GB, free: 5.285 MB / 0.92 GB Notification: Performance of NFPackage.collectConstants: time 1.921e-05/0.3045, allocations: 7.938 kB / 1.168 GB, free: 5.277 MB / 0.92 GB Notification: Performance of NFFlatten.collectFunctions: time 1.227e-05/0.3046, allocations: 8 kB / 1.168 GB, free: 5.27 MB / 0.92 GB Notification: Performance of NFScalarize.scalarize: time 2.225e-05/0.3046, allocations: 11.92 kB / 1.168 GB, free: 5.258 MB / 0.92 GB Notification: Performance of NFVerifyModel.verify: time 4.901e-05/0.3046, allocations: 27.86 kB / 1.168 GB, free: 5.23 MB / 0.92 GB Notification: Performance of NFConvertDAE.convert: time 0.0001103/0.3047, allocations: 46.69 kB / 1.168 GB, free: 5.188 MB / 0.92 GB Notification: Performance of FrontEnd - DAE generated: time 4.338e-06/0.3048, allocations: 4 kB / 1.168 GB, free: 5.184 MB / 0.92 GB Notification: Performance of FrontEnd: time 1.613e-06/0.3048, allocations: 0 / 1.168 GB, free: 5.184 MB / 0.92 GB Notification: Performance of Transformations before backend: time 1.054e-05/0.3048, allocations: 0 / 1.168 GB, free: 5.184 MB / 0.92 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.0005002/0.3053, allocations: 360.2 kB / 1.169 GB, free: 4.785 MB / 0.92 GB Notification: Performance of prepare preOptimizeDAE: time 4.114e-05/0.3053, allocations: 12.03 kB / 1.169 GB, free: 4.773 MB / 0.92 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.12e-05/0.3054, allocations: 30.75 kB / 1.169 GB, free: 4.734 MB / 0.92 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.06e-05/0.3054, allocations: 12.83 kB / 1.169 GB, free: 4.723 MB / 0.92 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001384/0.3056, allocations: 164.3 kB / 1.169 GB, free: 4.523 MB / 0.92 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.54e-05/0.3056, allocations: 8.375 kB / 1.169 GB, free: 4.516 MB / 0.92 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.468e-05/0.3056, allocations: 8.375 kB / 1.169 GB, free: 4.508 MB / 0.92 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001215/0.3057, allocations: 61.73 kB / 1.169 GB, free: 4.441 MB / 0.92 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.125e-06/0.3058, allocations: 4 kB / 1.169 GB, free: 4.438 MB / 0.92 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.839e-06/0.3058, allocations: 0 / 1.169 GB, free: 4.438 MB / 0.92 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.799e-06/0.3058, allocations: 0 / 1.169 GB, free: 4.438 MB / 0.92 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.575e-05/0.3059, allocations: 27.98 kB / 1.169 GB, free: 4.41 MB / 0.92 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004909/0.3064, allocations: 300.6 kB / 1.169 GB, free: 4.066 MB / 0.92 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001288/0.3065, allocations: 50.58 kB / 1.169 GB, free: 4.008 MB / 0.92 GB Notification: Performance of preOpt resolveLoops (simulation): time 4.412e-05/0.3065, allocations: 28.94 kB / 1.169 GB, free: 3.977 MB / 0.92 GB Notification: Performance of preOpt evalFunc (simulation): time 2.024e-05/0.3066, allocations: 4 kB / 1.169 GB, free: 3.973 MB / 0.92 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002252/0.3068, allocations: 79.41 kB / 1.169 GB, free: 3.883 MB / 0.92 GB Notification: Performance of pre-optimization done (n=9): time 1.703e-06/0.3068, allocations: 0 / 1.169 GB, free: 3.883 MB / 0.92 GB Notification: Performance of matching and sorting (n=9): time 0.0002543/0.3071, allocations: 105.5 kB / 1.169 GB, free: 3.773 MB / 0.92 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.668e-05/0.3071, allocations: 55.39 kB / 1.169 GB, free: 3.707 MB / 0.92 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.353e-05/0.3072, allocations: 105.9 kB / 1.17 GB, free: 3.594 MB / 0.92 GB Notification: Performance of collectPreVariables (initialization): time 2.001e-05/0.3073, allocations: 25.7 kB / 1.17 GB, free: 3.562 MB / 0.92 GB Notification: Performance of collectInitialEqns (initialization): time 5.749e-05/0.3073, allocations: 96.11 kB / 1.17 GB, free: 3.465 MB / 0.92 GB Notification: Performance of collectInitialBindings (initialization): time 2.648e-05/0.3074, allocations: 23.66 kB / 1.17 GB, free: 3.441 MB / 0.92 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.267e-05/0.3074, allocations: 25.7 kB / 1.17 GB, free: 3.41 MB / 0.92 GB Notification: Performance of setup shared object (initialization): time 0.0001064/0.3075, allocations: 318.8 kB / 1.17 GB, free: 3.09 MB / 0.92 GB Notification: Performance of preBalanceInitialSystem (initialization): time 3.988e-05/0.3076, allocations: 23.98 kB / 1.17 GB, free: 3.066 MB / 0.92 GB Notification: Performance of partitionIndependentBlocks (initialization): time 6.184e-05/0.3076, allocations: 43.42 kB / 1.17 GB, free: 3.012 MB / 0.92 GB Notification: Performance of analyzeInitialSystem (initialization): time 8.918e-05/0.3077, allocations: 71.48 kB / 1.17 GB, free: 2.93 MB / 0.92 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.884e-06/0.3077, allocations: 0 / 1.17 GB, free: 2.93 MB / 0.92 GB Notification: Performance of matching and sorting (n=12) (initialization): time 0.000142/0.3079, allocations: 97.45 kB / 1.17 GB, free: 2.828 MB / 0.92 GB Notification: Performance of prepare postOptimizeDAE: time 1.428e-05/0.3079, allocations: 8.031 kB / 1.17 GB, free: 2.82 MB / 0.92 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.152e-06/0.3079, allocations: 4 kB / 1.17 GB, free: 2.816 MB / 0.92 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.466e-05/0.3079, allocations: 0 / 1.17 GB, free: 2.816 MB / 0.92 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.284e-05/0.308, allocations: 15.98 kB / 1.17 GB, free: 2.801 MB / 0.92 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.192e-05/0.308, allocations: 4 kB / 1.17 GB, free: 2.797 MB / 0.92 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.199e-05/0.3081, allocations: 4 kB / 1.17 GB, free: 2.793 MB / 0.92 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.448e-06/0.3081, allocations: 7.938 kB / 1.17 GB, free: 2.785 MB / 0.92 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 8.785e-05/0.3082, allocations: 117.8 kB / 1.17 GB, free: 2.66 MB / 0.92 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.426e-05/0.3082, allocations: 3.984 kB / 1.17 GB, free: 2.656 MB / 0.92 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.272e-05/0.3083, allocations: 15.97 kB / 1.17 GB, free: 2.637 MB / 0.92 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.875e-06/0.3083, allocations: 0 / 1.17 GB, free: 2.637 MB / 0.92 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.05e-06/0.3083, allocations: 0 / 1.17 GB, free: 2.637 MB / 0.92 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.885e-06/0.3083, allocations: 0 / 1.17 GB, free: 2.637 MB / 0.92 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003848/0.3087, allocations: 362.3 kB / 1.171 GB, free: 2.227 MB / 0.92 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.723e-06/0.3087, allocations: 0 / 1.171 GB, free: 2.227 MB / 0.92 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.641e-05/0.3087, allocations: 4 kB / 1.171 GB, free: 2.223 MB / 0.92 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.358e-06/0.3087, allocations: 4 kB / 1.171 GB, free: 2.219 MB / 0.92 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.145e-05/0.3088, allocations: 3.984 kB / 1.171 GB, free: 2.215 MB / 0.92 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.106e-06/0.3088, allocations: 7.938 kB / 1.171 GB, free: 2.207 MB / 0.92 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.186e-06/0.3088, allocations: 4.531 kB / 1.171 GB, free: 2.203 MB / 0.92 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001574/0.3089, allocations: 183.3 kB / 1.171 GB, free: 2.008 MB / 0.92 GB Notification: Performance of postOpt removeConstants (simulation): time 3.728e-05/0.309, allocations: 85.09 kB / 1.171 GB, free: 1.906 MB / 0.92 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.288e-05/0.309, allocations: 0 / 1.171 GB, free: 1.906 MB / 0.92 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.196e-05/0.3091, allocations: 7.938 kB / 1.171 GB, free: 1.898 MB / 0.92 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.536e-05/0.3091, allocations: 11.98 kB / 1.171 GB, free: 1.887 MB / 0.92 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.28e-06/0.3091, allocations: 4 kB / 1.171 GB, free: 1.883 MB / 0.92 GB Notification: Performance of sorting global known variables: time 4.52e-05/0.3092, allocations: 87.2 kB / 1.171 GB, free: 1.797 MB / 0.92 GB Notification: Performance of sort global known variables: time 1e-07/0.3092, allocations: 0 / 1.171 GB, free: 1.797 MB / 0.92 GB Notification: Performance of remove unused functions: time 0.0002326/0.3094, allocations: 16 kB / 1.171 GB, free: 1.781 MB / 0.92 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.0003981/0.3098, allocations: 0.7085 MB / 1.172 GB, free: 1.047 MB / 0.92 GB Notification: Performance of simCode: created initialization part: time 0.0001305/0.31, allocations: 60.25 kB / 1.172 GB, free: 0.9883 MB / 0.92 GB Notification: Performance of simCode: created event and clocks part: time 2.365e-06/0.31, allocations: 0 / 1.172 GB, free: 0.9883 MB / 0.92 GB Notification: Performance of simCode: created simulation system equations: time 5.798e-05/0.3101, allocations: 35.91 kB / 1.172 GB, free: 0.9531 MB / 0.92 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000266/0.3103, allocations: 13.94 kB / 1.172 GB, free: 0.9414 MB / 0.92 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001237/0.3116, allocations: 1.383 MB / 1.173 GB, free: 15.46 MB / 0.9356 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002212/0.3118, allocations: 0.6807 MB / 1.174 GB, free: 14.75 MB / 0.9356 GB Notification: Performance of simCode: alias equations: time 2.963e-05/0.3118, allocations: 7.984 kB / 1.174 GB, free: 14.75 MB / 0.9356 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.625e-05/0.3119, allocations: 19.44 kB / 1.174 GB, free: 14.73 MB / 0.9356 GB Notification: Performance of SimCode: time 4.51e-07/0.3119, allocations: 0 / 1.174 GB, free: 14.73 MB / 0.9356 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01716/0.3291, allocations: 1.747 MB / 1.176 GB, free: 13.07 MB / 0.9356 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.597/7.926, allocations: 17.83 kB / 1.176 GB, free: 13.05 MB / 0.9356 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) "" 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