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: 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_9_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_9_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.01032/0.01032, allocations: 100.7 kB / 15.73 MB, free: 6.016 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.001862/0.001862, allocations: 185.9 kB / 16.67 MB, free: 5.934 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.416/1.416, allocations: 222.9 MB / 240.4 MB, free: 15.13 MB / 206.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.294/2.294, allocations: 390.2 MB / 0.6648 GB, free: 0.6211 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.001312/0.001313, allocations: 67.89 kB / 0.9508 GB, free: 7.68 MB / 0.7325 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.9858/0.9871, allocations: 140.4 MB / 1.088 GB, free: 5.516 MB / 0.8575 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.Continuous.Examples.OffTimer): time 0.002846/0.99, allocations: 1.456 MB / 1.089 GB, free: 4.504 MB / 0.8575 GB Notification: Performance of NFInst.instExpressions: time 0.0007506/0.9908, allocations: 446 kB / 1.09 GB, free: 4.195 MB / 0.8575 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.966e-05/0.9909, allocations: 4.844 kB / 1.09 GB, free: 4.191 MB / 0.8575 GB Notification: Performance of NFTyping.typeComponents: time 2.805e-05/0.9909, allocations: 5.297 kB / 1.09 GB, free: 4.188 MB / 0.8575 GB Notification: Performance of NFTyping.typeBindings: time 9.471e-05/0.991, allocations: 7.203 kB / 1.09 GB, free: 4.184 MB / 0.8575 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001704/0.9912, allocations: 25.77 kB / 1.09 GB, free: 4.168 MB / 0.8575 GB Notification: Performance of NFFlatten.flatten: time 9.512e-05/0.9913, allocations: 50.75 kB / 1.09 GB, free: 4.145 MB / 0.8575 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001207/0.9914, allocations: 12.78 kB / 1.09 GB, free: 4.141 MB / 0.8575 GB Notification: Performance of NFEvalConstants.evaluate: time 6.027e-05/0.9915, allocations: 21.55 kB / 1.09 GB, free: 4.129 MB / 0.8575 GB Notification: Performance of NFSimplifyModel.simplify: time 7.166e-05/0.9915, allocations: 31.28 kB / 1.09 GB, free: 4.109 MB / 0.8575 GB Notification: Performance of NFPackage.collectConstants: time 2.046e-05/0.9916, allocations: 3.812 kB / 1.09 GB, free: 4.109 MB / 0.8575 GB Notification: Performance of NFFlatten.collectFunctions: time 1.326e-05/0.9916, allocations: 4.562 kB / 1.09 GB, free: 4.109 MB / 0.8575 GB Notification: Performance of NFScalarize.scalarize: time 2.495e-05/0.9916, allocations: 12.94 kB / 1.09 GB, free: 4.102 MB / 0.8575 GB Notification: Performance of NFVerifyModel.verify: time 5.036e-05/0.9917, allocations: 26.33 kB / 1.09 GB, free: 4.086 MB / 0.8575 GB Notification: Performance of NFConvertDAE.convert: time 0.000135/0.9918, allocations: 42.86 kB / 1.09 GB, free: 4.07 MB / 0.8575 GB Notification: Performance of FrontEnd - DAE generated: time 4.088e-06/0.9918, allocations: 0.8125 kB / 1.09 GB, free: 4.07 MB / 0.8575 GB Notification: Performance of FrontEnd: time 2.304e-06/0.9918, allocations: 0 / 1.09 GB, free: 4.07 MB / 0.8575 GB Notification: Performance of Transformations before backend: time 6.121e-06/0.9918, allocations: 0.6562 kB / 1.09 GB, free: 4.07 MB / 0.8575 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.0004868/0.9923, allocations: 362.3 kB / 1.09 GB, free: 3.703 MB / 0.8575 GB Notification: Performance of prepare preOptimizeDAE: time 4.561e-05/0.9924, allocations: 9.109 kB / 1.09 GB, free: 3.703 MB / 0.8575 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.032e-05/0.9924, allocations: 8.078 kB / 1.09 GB, free: 3.699 MB / 0.8575 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001057/0.9926, allocations: 169.5 kB / 1.091 GB, free: 3.5 MB / 0.8575 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.422e-05/0.9926, allocations: 6.188 kB / 1.091 GB, free: 3.496 MB / 0.8575 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.002e-05/0.9926, allocations: 4.859 kB / 1.091 GB, free: 3.496 MB / 0.8575 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001229/0.9927, allocations: 58.55 kB / 1.091 GB, free: 3.453 MB / 0.8575 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.005e-06/0.9927, allocations: 0 / 1.091 GB, free: 3.453 MB / 0.8575 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.159e-05/0.9928, allocations: 1.859 kB / 1.091 GB, free: 3.453 MB / 0.8575 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.38e-06/0.9928, allocations: 1.156 kB / 1.091 GB, free: 3.453 MB / 0.8575 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.456e-05/0.9929, allocations: 30.36 kB / 1.091 GB, free: 3.441 MB / 0.8575 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004938/0.9934, allocations: 303.2 kB / 1.091 GB, free: 3.148 MB / 0.8575 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001227/0.9935, allocations: 53.16 kB / 1.091 GB, free: 3.113 MB / 0.8575 GB Notification: Performance of preOpt resolveLoops (simulation): time 4.745e-05/0.9935, allocations: 26.48 kB / 1.091 GB, free: 3.098 MB / 0.8575 GB Notification: Performance of preOpt evalFunc (simulation): time 1.163e-05/0.9936, allocations: 5.688 kB / 1.091 GB, free: 3.094 MB / 0.8575 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000192/0.9938, allocations: 81.47 kB / 1.091 GB, free: 3.027 MB / 0.8575 GB Notification: Performance of pre-optimization done (n=9): time 2.645e-06/0.9938, allocations: 5.078 kB / 1.091 GB, free: 3.023 MB / 0.8575 GB Notification: Performance of matching and sorting (n=9): time 0.0002594/0.994, allocations: 104.5 kB / 1.091 GB, free: 2.965 MB / 0.8575 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.293e-05/0.9941, allocations: 54.16 kB / 1.091 GB, free: 2.902 MB / 0.8575 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.169e-05/0.9941, allocations: 102.6 kB / 1.091 GB, free: 2.801 MB / 0.8575 GB Notification: Performance of collectPreVariables (initialization): time 1.841e-05/0.9942, allocations: 32.39 kB / 1.091 GB, free: 2.766 MB / 0.8575 GB Notification: Performance of collectInitialEqns (initialization): time 3.353e-05/0.9942, allocations: 90.11 kB / 1.091 GB, free: 2.676 MB / 0.8575 GB Notification: Performance of collectInitialBindings (initialization): time 2.773e-05/0.9942, allocations: 17.42 kB / 1.091 GB, free: 2.664 MB / 0.8575 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.423e-05/0.9943, allocations: 28.91 kB / 1.091 GB, free: 2.641 MB / 0.8575 GB Notification: Performance of setup shared object (initialization): time 7.018e-05/0.9944, allocations: 321.9 kB / 1.092 GB, free: 2.32 MB / 0.8575 GB Notification: Performance of preBalanceInitialSystem (initialization): time 4.2e-05/0.9944, allocations: 16.12 kB / 1.092 GB, free: 2.316 MB / 0.8575 GB Notification: Performance of partitionIndependentBlocks (initialization): time 6.139e-05/0.9945, allocations: 56.72 kB / 1.092 GB, free: 2.266 MB / 0.8575 GB Notification: Performance of analyzeInitialSystem (initialization): time 8.993e-05/0.9946, allocations: 64.58 kB / 1.092 GB, free: 2.215 MB / 0.8575 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.218e-06/0.9946, allocations: 0.9062 kB / 1.092 GB, free: 2.215 MB / 0.8575 GB Notification: Performance of matching and sorting (n=12) (initialization): time 0.000155/0.9947, allocations: 97.42 kB / 1.092 GB, free: 2.156 MB / 0.8575 GB Notification: Performance of prepare postOptimizeDAE: time 2.118e-05/0.9948, allocations: 5.641 kB / 1.092 GB, free: 2.156 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.143e-06/0.9948, allocations: 1.562 kB / 1.092 GB, free: 2.156 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.56e-05/0.9948, allocations: 1.594 kB / 1.092 GB, free: 2.156 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.406e-05/0.9949, allocations: 13.27 kB / 1.092 GB, free: 2.152 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.805e-06/0.9949, allocations: 2.047 kB / 1.092 GB, free: 2.152 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.871e-05/0.995, allocations: 14.52 kB / 1.092 GB, free: 2.145 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.006e-05/0.995, allocations: 3.625 kB / 1.092 GB, free: 2.145 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.312e-05/0.9951, allocations: 125.5 kB / 1.092 GB, free: 2.02 MB / 0.8575 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.576e-05/0.9951, allocations: 7.344 kB / 1.092 GB, free: 2.016 MB / 0.8575 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.3e-05/0.9951, allocations: 9.672 kB / 1.092 GB, free: 2 MB / 0.8575 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.296e-06/0.9951, allocations: 1.906 kB / 1.092 GB, free: 2 MB / 0.8575 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.989e-06/0.9952, allocations: 0 / 1.092 GB, free: 2 MB / 0.8575 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.288e-06/0.9952, allocations: 0.6094 kB / 1.092 GB, free: 2 MB / 0.8575 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003774/0.9955, allocations: 368.4 kB / 1.093 GB, free: 1.66 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.443e-06/0.9956, allocations: 0.7812 kB / 1.093 GB, free: 1.66 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.59e-05/0.9956, allocations: 4.031 kB / 1.093 GB, free: 1.66 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.515e-06/0.9956, allocations: 1.094 kB / 1.093 GB, free: 1.66 MB / 0.8575 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.468e-06/0.9956, allocations: 1.297 kB / 1.093 GB, free: 1.66 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.883e-06/0.9956, allocations: 5.516 kB / 1.093 GB, free: 1.656 MB / 0.8575 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.343e-06/0.9956, allocations: 4.406 kB / 1.093 GB, free: 1.652 MB / 0.8575 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001499/0.9958, allocations: 182.5 kB / 1.093 GB, free: 1.5 MB / 0.8575 GB Notification: Performance of postOpt removeConstants (simulation): time 2.597e-05/0.9958, allocations: 87.62 kB / 1.093 GB, free: 1.398 MB / 0.8575 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.714e-05/0.9958, allocations: 2.578 kB / 1.093 GB, free: 1.398 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.5e-05/0.9959, allocations: 8.75 kB / 1.093 GB, free: 1.395 MB / 0.8575 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.343e-05/0.996, allocations: 19.58 kB / 1.093 GB, free: 1.383 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.975e-06/0.996, allocations: 3.094 kB / 1.093 GB, free: 1.383 MB / 0.8575 GB Notification: Performance of sorting global known variables: time 2.971e-05/0.996, allocations: 80.59 kB / 1.093 GB, free: 1.309 MB / 0.8575 GB Notification: Performance of sort global known variables: time 1.002e-06/0.996, allocations: 0 / 1.093 GB, free: 1.309 MB / 0.8575 GB Notification: Performance of remove unused functions: time 0.0002471/0.9963, allocations: 20.22 kB / 1.093 GB, free: 1.301 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.0001164/0.9964, allocations: 103.6 kB / 1.093 GB, free: 1.211 MB / 0.8575 GB Notification: Performance of simCode: created initialization part: time 0.000155/0.9966, allocations: 53.69 kB / 1.093 GB, free: 1.195 MB / 0.8575 GB Notification: Performance of simCode: created event and clocks part: time 1.923e-06/0.9966, allocations: 0.625 kB / 1.093 GB, free: 1.195 MB / 0.8575 GB Notification: Performance of simCode: created simulation system equations: time 6.218e-05/0.9967, allocations: 26.97 kB / 1.093 GB, free: 1.188 MB / 0.8575 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002818/0.9969, allocations: 16.09 kB / 1.093 GB, free: 1.18 MB / 0.8575 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004764/0.9974, allocations: 159.8 kB / 1.093 GB, free: 1.051 MB / 0.8575 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001631/0.9976, allocations: 0.6845 MB / 1.094 GB, free: 364 kB / 0.8575 GB Notification: Performance of simCode: alias equations: time 3.146e-05/0.9976, allocations: 5.531 kB / 1.094 GB, free: 364 kB / 0.8575 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.643e-05/0.9977, allocations: 11.38 kB / 1.094 GB, free: 360 kB / 0.8575 GB Notification: Performance of SimCode: time 2.31e-07/0.9977, allocations: 0 / 1.094 GB, free: 360 kB / 0.8575 GB Notification: Performance of Templates: time 0.003916/1.002, allocations: 0.7738 MB / 1.095 GB, free: 276 kB / 0.8575 GB make -j1 -f Buildings_9_Buildings.Controls.Continuous.Examples.OffTimer.makefile (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 & ./Buildings_9_Buildings.Controls.Continuous.Examples.OffTimer -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > 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/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Controls.Continuous.Examples.OffTimer.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches