Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_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 9.1.3-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.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_9_Buildings_Controls_Continuous_Examples_OffTimer",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.Continuous.Examples.OffTimer,fileNamePrefix="Buildings_9_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.006079/0.006079, allocations: 101.2 kB / 15.73 MB, free: 6.051 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.001293/0.001293, allocations: 190.5 kB / 16.67 MB, free: 5.977 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.296/1.296, allocations: 222.9 MB / 240.4 MB, free: 4.316 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/package.mo): time 2.225/2.225, allocations: 390.2 MB / 0.6648 GB, free: 228 kB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001445/0.001445, allocations: 62.59 kB / 0.9504 GB, free: 6.078 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3021/0.3036, allocations: 140.4 MB / 1.087 GB, free: 2.18 MB / 0.8419 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.Continuous.Examples.OffTimer): time 0.002551/0.3062, allocations: 1.469 MB / 1.089 GB, free: 0.6953 MB / 0.8419 GB Notification: Performance of NFInst.instExpressions: time 0.0006893/0.3069, allocations: 432.4 kB / 1.089 GB, free: 276 kB / 0.8419 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.345e-05/0.3069, allocations: 7.938 kB / 1.089 GB, free: 268 kB / 0.8419 GB Notification: Performance of NFTyping.typeComponents: time 2.915e-05/0.307, allocations: 3.984 kB / 1.089 GB, free: 264 kB / 0.8419 GB Notification: Performance of NFTyping.typeBindings: time 7.148e-05/0.3071, allocations: 15.86 kB / 1.089 GB, free: 248 kB / 0.8419 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001373/0.3072, allocations: 19.98 kB / 1.089 GB, free: 228 kB / 0.8419 GB Notification: Performance of NFFlatten.flatten: time 8.858e-05/0.3073, allocations: 51.84 kB / 1.089 GB, free: 176 kB / 0.8419 GB Notification: Performance of NFFlatten.resolveConnections: time 9.293e-05/0.3074, allocations: 11.98 kB / 1.089 GB, free: 164 kB / 0.8419 GB Notification: Performance of NFEvalConstants.evaluate: time 5.504e-05/0.3075, allocations: 19.92 kB / 1.089 GB, free: 144 kB / 0.8419 GB Notification: Performance of NFSimplifyModel.simplify: time 6.338e-05/0.3075, allocations: 27.91 kB / 1.089 GB, free: 116 kB / 0.8419 GB Notification: Performance of NFPackage.collectConstants: time 1.682e-05/0.3076, allocations: 7.938 kB / 1.089 GB, free: 108 kB / 0.8419 GB Notification: Performance of NFFlatten.collectFunctions: time 1.065e-05/0.3076, allocations: 4 kB / 1.089 GB, free: 104 kB / 0.8419 GB Notification: Performance of NFScalarize.scalarize: time 1.965e-05/0.3076, allocations: 11.98 kB / 1.089 GB, free: 92 kB / 0.8419 GB Notification: Performance of NFVerifyModel.verify: time 3.861e-05/0.3076, allocations: 23.88 kB / 1.089 GB, free: 68 kB / 0.8419 GB Notification: Performance of NFConvertDAE.convert: time 9.994e-05/0.3078, allocations: 50.61 kB / 1.09 GB, free: 20 kB / 0.8419 GB Notification: Performance of FrontEnd - DAE generated: time 3.957e-06/0.3078, allocations: 0 / 1.09 GB, free: 20 kB / 0.8419 GB Notification: Performance of FrontEnd: time 1.362e-06/0.3078, allocations: 3.938 kB / 1.09 GB, free: 16 kB / 0.8419 GB Notification: Performance of Transformations before backend: time 5.05e-06/0.3078, allocations: 0 / 1.09 GB, free: 16 kB / 0.8419 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.0004607/0.3082, allocations: 356.3 kB / 1.09 GB, free: 15.62 MB / 0.8575 GB Notification: Performance of prepare preOptimizeDAE: time 3.448e-05/0.3083, allocations: 8.031 kB / 1.09 GB, free: 15.61 MB / 0.8575 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.704e-05/0.3083, allocations: 34.75 kB / 1.09 GB, free: 15.57 MB / 0.8575 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.598e-05/0.3084, allocations: 12.84 kB / 1.09 GB, free: 15.56 MB / 0.8575 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001079/0.3085, allocations: 172.3 kB / 1.09 GB, free: 15.35 MB / 0.8575 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.115e-05/0.3085, allocations: 384 / 1.09 GB, free: 15.35 MB / 0.8575 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.19e-05/0.3085, allocations: 8.375 kB / 1.09 GB, free: 15.34 MB / 0.8575 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001106/0.3086, allocations: 61.75 kB / 1.09 GB, free: 15.28 MB / 0.8575 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.935e-06/0.3086, allocations: 0 / 1.09 GB, free: 15.28 MB / 0.8575 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.899e-06/0.3087, allocations: 3.984 kB / 1.09 GB, free: 15.27 MB / 0.8575 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.242e-06/0.3087, allocations: 3.984 kB / 1.09 GB, free: 15.27 MB / 0.8575 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.122e-05/0.3087, allocations: 27.98 kB / 1.09 GB, free: 15.24 MB / 0.8575 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004214/0.3092, allocations: 300.7 kB / 1.09 GB, free: 14.9 MB / 0.8575 GB Notification: Performance of preOpt comSubExp (simulation): time 9.99e-05/0.3093, allocations: 54.56 kB / 1.091 GB, free: 14.84 MB / 0.8575 GB Notification: Performance of preOpt resolveLoops (simulation): time 4.067e-05/0.3093, allocations: 28.88 kB / 1.091 GB, free: 14.8 MB / 0.8575 GB Notification: Performance of preOpt evalFunc (simulation): time 1.022e-05/0.3093, allocations: 0 / 1.091 GB, free: 14.8 MB / 0.8575 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001511/0.3095, allocations: 75.42 kB / 1.091 GB, free: 14.72 MB / 0.8575 GB Notification: Performance of pre-optimization done (n=9): time 1.203e-06/0.3095, allocations: 0 / 1.091 GB, free: 14.72 MB / 0.8575 GB Notification: Performance of matching and sorting (n=9): time 0.0002066/0.3097, allocations: 101.6 kB / 1.091 GB, free: 14.61 MB / 0.8575 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.684e-05/0.3098, allocations: 55.41 kB / 1.091 GB, free: 14.55 MB / 0.8575 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.519e-05/0.3098, allocations: 106.1 kB / 1.091 GB, free: 14.43 MB / 0.8575 GB Notification: Performance of collectPreVariables (initialization): time 1.874e-05/0.3099, allocations: 33.7 kB / 1.091 GB, free: 14.39 MB / 0.8575 GB Notification: Performance of collectInitialEqns (initialization): time 3.496e-05/0.3099, allocations: 80.14 kB / 1.091 GB, free: 14.31 MB / 0.8575 GB Notification: Performance of collectInitialBindings (initialization): time 2.537e-05/0.3099, allocations: 31.62 kB / 1.091 GB, free: 14.28 MB / 0.8575 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.844e-05/0.31, allocations: 33.66 kB / 1.091 GB, free: 14.24 MB / 0.8575 GB Notification: Performance of setup shared object (initialization): time 0.0001005/0.3101, allocations: 326.8 kB / 1.091 GB, free: 13.91 MB / 0.8575 GB Notification: Performance of preBalanceInitialSystem (initialization): time 3.134e-05/0.3101, allocations: 12 kB / 1.091 GB, free: 13.9 MB / 0.8575 GB Notification: Performance of partitionIndependentBlocks (initialization): time 4.941e-05/0.3102, allocations: 43.42 kB / 1.091 GB, free: 13.85 MB / 0.8575 GB Notification: Performance of analyzeInitialSystem (initialization): time 7.754e-05/0.3102, allocations: 67.36 kB / 1.091 GB, free: 13.77 MB / 0.8575 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.402e-06/0.3103, allocations: 4 kB / 1.091 GB, free: 13.77 MB / 0.8575 GB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0001278/0.3104, allocations: 89.61 kB / 1.092 GB, free: 13.67 MB / 0.8575 GB Notification: Performance of prepare postOptimizeDAE: time 1.412e-05/0.3104, allocations: 8 kB / 1.092 GB, free: 13.66 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.248e-06/0.3104, allocations: 3.938 kB / 1.092 GB, free: 13.66 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.225e-05/0.3104, allocations: 4 kB / 1.092 GB, free: 13.66 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.282e-05/0.3105, allocations: 12.06 kB / 1.092 GB, free: 13.64 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.911e-06/0.3105, allocations: 3.984 kB / 1.092 GB, free: 13.64 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.319e-05/0.3106, allocations: 15.89 kB / 1.092 GB, free: 13.62 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.115e-06/0.3106, allocations: 7.938 kB / 1.092 GB, free: 13.62 MB / 0.8575 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 7.053e-05/0.3107, allocations: 121.8 kB / 1.092 GB, free: 13.49 MB / 0.8575 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.269e-05/0.3107, allocations: 4.281 kB / 1.092 GB, free: 13.48 MB / 0.8575 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.686e-05/0.3107, allocations: 7.969 kB / 1.092 GB, free: 13.47 MB / 0.8575 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.147e-06/0.3107, allocations: 3.984 kB / 1.092 GB, free: 13.47 MB / 0.8575 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.362e-06/0.3107, allocations: 0 / 1.092 GB, free: 13.47 MB / 0.8575 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.305e-06/0.3107, allocations: 11.92 kB / 1.092 GB, free: 13.46 MB / 0.8575 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003361/0.3111, allocations: 358.3 kB / 1.092 GB, free: 13.05 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.403e-06/0.3111, allocations: 4 kB / 1.092 GB, free: 13.05 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.53e-05/0.3111, allocations: 4 kB / 1.092 GB, free: 13.04 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.713e-06/0.3111, allocations: 0 / 1.092 GB, free: 13.04 MB / 0.8575 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.753e-06/0.3112, allocations: 0 / 1.092 GB, free: 13.04 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.066e-06/0.3112, allocations: 3.938 kB / 1.092 GB, free: 13.04 MB / 0.8575 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.81e-07/0.3112, allocations: 0 / 1.092 GB, free: 13.04 MB / 0.8575 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001398/0.3113, allocations: 179.5 kB / 1.092 GB, free: 12.85 MB / 0.8575 GB Notification: Performance of postOpt removeConstants (simulation): time 3.218e-05/0.3113, allocations: 85.2 kB / 1.092 GB, free: 12.75 MB / 0.8575 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.36e-05/0.3114, allocations: 4 kB / 1.092 GB, free: 12.74 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.964e-05/0.3115, allocations: 19.86 kB / 1.092 GB, free: 12.72 MB / 0.8575 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.44e-05/0.3115, allocations: 7.984 kB / 1.092 GB, free: 12.71 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.841e-06/0.3115, allocations: 4 kB / 1.092 GB, free: 12.71 MB / 0.8575 GB Notification: Performance of sorting global known variables: time 3.377e-05/0.3115, allocations: 83.28 kB / 1.092 GB, free: 12.63 MB / 0.8575 GB Notification: Performance of sort global known variables: time 1e-07/0.3115, allocations: 0 / 1.092 GB, free: 12.63 MB / 0.8575 GB Notification: Performance of remove unused functions: time 0.0002201/0.3118, allocations: 12 kB / 1.092 GB, free: 12.62 MB / 0.8575 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.0003658/0.3121, allocations: 0.7201 MB / 1.093 GB, free: 11.87 MB / 0.8575 GB Notification: Performance of simCode: created initialization part: time 0.0001235/0.3123, allocations: 59.91 kB / 1.093 GB, free: 11.81 MB / 0.8575 GB Notification: Performance of simCode: created event and clocks part: time 1.573e-06/0.3123, allocations: 0 / 1.093 GB, free: 11.81 MB / 0.8575 GB Notification: Performance of simCode: created simulation system equations: time 4.842e-05/0.3123, allocations: 20 kB / 1.093 GB, free: 11.79 MB / 0.8575 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002853/0.3126, allocations: 21.33 kB / 1.093 GB, free: 11.77 MB / 0.8575 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00114/0.3138, allocations: 1.381 MB / 1.095 GB, free: 10.3 MB / 0.8575 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002083/0.314, allocations: 0.6885 MB / 1.095 GB, free: 9.582 MB / 0.8575 GB Notification: Performance of simCode: alias equations: time 3.238e-05/0.314, allocations: 4 kB / 1.095 GB, free: 9.578 MB / 0.8575 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.012e-05/0.3141, allocations: 19.7 kB / 1.095 GB, free: 9.559 MB / 0.8575 GB Notification: Performance of SimCode: time 3.01e-07/0.3141, allocations: 4 kB / 1.095 GB, free: 9.555 MB / 0.8575 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.8084/1.122, allocations: 1.771 MB / 1.097 GB, free: 7.859 MB / 0.8575 GB Notification: Performance of buildModelFMU: Generate platform static: time 10.4/11.52, allocations: 5.328 kB / 1.097 GB, free: 7.859 MB / 0.8575 GB (rm -f Buildings_9_Buildings.Controls.Continuous.Examples.OffTimer.pipe ; mkfifo Buildings_9_Buildings.Controls.Continuous.Examples.OffTimer.pipe ; head -c 1048576 < Buildings_9_Buildings.Controls.Continuous.Examples.OffTimer.pipe >> ../files/Buildings_9_Buildings.Controls.Continuous.Examples.OffTimer.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_9_Buildings.Controls.Continuous.Examples.OffTimer_res.mat --tempDir=temp_Buildings_9_Buildings_Controls_Continuous_Examples_OffTimer_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Buildings_9_Buildings_Controls_Continuous_Examples_OffTimer.fmu > Buildings_9_Buildings.Controls.Continuous.Examples.OffTimer.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Controls.Continuous.Examples.OffTimer_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Controls_Continuous_Examples_OffTimer.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_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