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.2-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-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.00177/0.00177, allocations: 112.6 kB / 16.37 MB, free: 6 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.00203/0.00203, allocations: 196 kB / 17.31 MB, free: 5.613 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.352/1.352, allocations: 222.9 MB / 241 MB, free: 15.18 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-maint.9.1.x/package.mo): time 2.234/2.234, allocations: 390.3 MB / 0.6655 GB, free: 0.5859 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.002404/0.002405, allocations: 65.12 kB / 0.814 GB, free: 32.58 MB / 0.6231 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2435/0.2459, allocations: 140.4 MB / 0.9511 GB, free: 8.066 MB / 0.7325 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.Continuous.Examples.OffTimer): time 0.002515/0.2485, allocations: 1.476 MB / 0.9526 GB, free: 6.582 MB / 0.7325 GB Notification: Performance of NFInst.instExpressions: time 0.0006409/0.2491, allocations: 442.9 kB / 0.953 GB, free: 6.145 MB / 0.7325 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.61e-05/0.2492, allocations: 4 kB / 0.953 GB, free: 6.141 MB / 0.7325 GB Notification: Performance of NFTyping.typeComponents: time 2.783e-05/0.2492, allocations: 7.875 kB / 0.953 GB, free: 6.133 MB / 0.7325 GB Notification: Performance of NFTyping.typeBindings: time 6.597e-05/0.2493, allocations: 11.91 kB / 0.953 GB, free: 6.121 MB / 0.7325 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001325/0.2495, allocations: 19.92 kB / 0.953 GB, free: 6.102 MB / 0.7325 GB Notification: Performance of NFFlatten.flatten: time 7.781e-05/0.2495, allocations: 47.91 kB / 0.9531 GB, free: 6.055 MB / 0.7325 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001091/0.2497, allocations: 16 kB / 0.9531 GB, free: 6.039 MB / 0.7325 GB Notification: Performance of NFEvalConstants.evaluate: time 5.002e-05/0.2497, allocations: 27.86 kB / 0.9531 GB, free: 6.012 MB / 0.7325 GB Notification: Performance of NFSimplifyModel.simplify: time 5.657e-05/0.2498, allocations: 19.91 kB / 0.9531 GB, free: 5.992 MB / 0.7325 GB Notification: Performance of NFPackage.collectConstants: time 2.057e-05/0.2498, allocations: 8 kB / 0.9531 GB, free: 5.984 MB / 0.7325 GB Notification: Performance of NFFlatten.collectFunctions: time 1.101e-05/0.2498, allocations: 7.938 kB / 0.9531 GB, free: 5.977 MB / 0.7325 GB Notification: Performance of NFScalarize.scalarize: time 2.019e-05/0.2498, allocations: 11.98 kB / 0.9531 GB, free: 5.965 MB / 0.7325 GB Notification: Performance of NFVerifyModel.verify: time 5.953e-05/0.2499, allocations: 27.86 kB / 0.9532 GB, free: 5.938 MB / 0.7325 GB Notification: Performance of NFConvertDAE.convert: time 8.585e-05/0.25, allocations: 35.88 kB / 0.9532 GB, free: 5.902 MB / 0.7325 GB Notification: Performance of FrontEnd - DAE generated: time 3.837e-06/0.25, allocations: 0 / 0.9532 GB, free: 5.902 MB / 0.7325 GB Notification: Performance of FrontEnd: time 1.603e-06/0.25, allocations: 4 kB / 0.9532 GB, free: 5.898 MB / 0.7325 GB Notification: Performance of Transformations before backend: time 4.478e-06/0.25, allocations: 0 / 0.9532 GB, free: 5.898 MB / 0.7325 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.0004578/0.2505, allocations: 359.3 kB / 0.9536 GB, free: 5.5 MB / 0.7325 GB Notification: Performance of prepare preOptimizeDAE: time 3.016e-05/0.2505, allocations: 12.03 kB / 0.9536 GB, free: 5.488 MB / 0.7325 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.905e-05/0.2506, allocations: 4.938 kB / 0.9536 GB, free: 5.484 MB / 0.7325 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00012/0.2507, allocations: 184.2 kB / 0.9537 GB, free: 5.266 MB / 0.7325 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.105e-05/0.2507, allocations: 384 / 0.9537 GB, free: 5.266 MB / 0.7325 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.45e-05/0.2507, allocations: 4.375 kB / 0.9538 GB, free: 5.262 MB / 0.7325 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001045/0.2508, allocations: 58 kB / 0.9538 GB, free: 5.199 MB / 0.7325 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.582e-06/0.2508, allocations: 0 / 0.9538 GB, free: 5.199 MB / 0.7325 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.242e-05/0.2509, allocations: 7.984 kB / 0.9538 GB, free: 5.191 MB / 0.7325 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.198e-06/0.2509, allocations: 0 / 0.9538 GB, free: 5.191 MB / 0.7325 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.921e-05/0.2509, allocations: 27.92 kB / 0.9538 GB, free: 5.164 MB / 0.7325 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004407/0.2514, allocations: 296.8 kB / 0.9541 GB, free: 4.824 MB / 0.7325 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000101/0.2515, allocations: 54.66 kB / 0.9542 GB, free: 4.762 MB / 0.7325 GB Notification: Performance of preOpt resolveLoops (simulation): time 4.427e-05/0.2515, allocations: 32.86 kB / 0.9542 GB, free: 4.727 MB / 0.7325 GB Notification: Performance of preOpt evalFunc (simulation): time 1.144e-05/0.2516, allocations: 0 / 0.9542 GB, free: 4.727 MB / 0.7325 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001486/0.2517, allocations: 79.23 kB / 0.9543 GB, free: 4.637 MB / 0.7325 GB Notification: Performance of pre-optimization done (n=9): time 1.252e-06/0.2517, allocations: 3.938 kB / 0.9543 GB, free: 4.633 MB / 0.7325 GB Notification: Performance of matching and sorting (n=9): time 0.0002053/0.2519, allocations: 97.61 kB / 0.9544 GB, free: 4.531 MB / 0.7325 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.757e-05/0.252, allocations: 59.41 kB / 0.9544 GB, free: 4.461 MB / 0.7325 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.458e-05/0.2521, allocations: 101.8 kB / 0.9545 GB, free: 4.352 MB / 0.7325 GB Notification: Performance of collectPreVariables (initialization): time 1.753e-05/0.2521, allocations: 29.7 kB / 0.9546 GB, free: 4.316 MB / 0.7325 GB Notification: Performance of collectInitialEqns (initialization): time 3.803e-05/0.2521, allocations: 88.05 kB / 0.9546 GB, free: 4.227 MB / 0.7325 GB Notification: Performance of collectInitialBindings (initialization): time 2.555e-05/0.2522, allocations: 27.72 kB / 0.9547 GB, free: 4.199 MB / 0.7325 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.94e-05/0.2522, allocations: 29.72 kB / 0.9547 GB, free: 4.164 MB / 0.7325 GB Notification: Performance of setup shared object (initialization): time 9.977e-05/0.2523, allocations: 322.8 kB / 0.955 GB, free: 3.84 MB / 0.7325 GB Notification: Performance of preBalanceInitialSystem (initialization): time 3.54e-05/0.2524, allocations: 19.94 kB / 0.955 GB, free: 3.82 MB / 0.7325 GB Notification: Performance of partitionIndependentBlocks (initialization): time 4.845e-05/0.2524, allocations: 39.42 kB / 0.9551 GB, free: 3.77 MB / 0.7325 GB Notification: Performance of analyzeInitialSystem (initialization): time 9.19e-05/0.2525, allocations: 71.36 kB / 0.9551 GB, free: 3.688 MB / 0.7325 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.126e-06/0.2525, allocations: 4 kB / 0.9551 GB, free: 3.684 MB / 0.7325 GB Notification: Performance of matching and sorting (n=12) (initialization): time 0.000135/0.2527, allocations: 97.52 kB / 0.9552 GB, free: 3.582 MB / 0.7325 GB Notification: Performance of prepare postOptimizeDAE: time 1.121e-05/0.2527, allocations: 8 kB / 0.9552 GB, free: 3.574 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.849e-06/0.2527, allocations: 0 / 0.9552 GB, free: 3.574 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.259e-05/0.2527, allocations: 4 kB / 0.9552 GB, free: 3.57 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.218e-05/0.2528, allocations: 8 kB / 0.9553 GB, free: 3.562 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.542e-06/0.2528, allocations: 3.938 kB / 0.9553 GB, free: 3.559 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.256e-05/0.2529, allocations: 7.984 kB / 0.9553 GB, free: 3.551 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.745e-06/0.2529, allocations: 4.031 kB / 0.9553 GB, free: 3.547 MB / 0.7325 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.448e-05/0.253, allocations: 125.8 kB / 0.9554 GB, free: 3.414 MB / 0.7325 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.287e-05/0.253, allocations: 7.906 kB / 0.9554 GB, free: 3.406 MB / 0.7325 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.018e-05/0.253, allocations: 7.969 kB / 0.9554 GB, free: 3.391 MB / 0.7325 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.797e-06/0.253, allocations: 3.984 kB / 0.9554 GB, free: 3.387 MB / 0.7325 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.347e-06/0.253, allocations: 0 / 0.9554 GB, free: 3.387 MB / 0.7325 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.026e-06/0.253, allocations: 0 / 0.9554 GB, free: 3.387 MB / 0.7325 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003752/0.2534, allocations: 355.1 kB / 0.9557 GB, free: 2.984 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.643e-06/0.2534, allocations: 7.938 kB / 0.9558 GB, free: 2.977 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.789e-05/0.2535, allocations: 7.938 kB / 0.9558 GB, free: 2.969 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.844e-06/0.2535, allocations: 0 / 0.9558 GB, free: 2.969 MB / 0.7325 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.845e-06/0.2535, allocations: 96 / 0.9558 GB, free: 2.969 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.715e-06/0.2535, allocations: 7.875 kB / 0.9558 GB, free: 2.961 MB / 0.7325 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.204e-06/0.2535, allocations: 3.984 kB / 0.9558 GB, free: 2.957 MB / 0.7325 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001489/0.2537, allocations: 183.4 kB / 0.9559 GB, free: 2.762 MB / 0.7325 GB Notification: Performance of postOpt removeConstants (simulation): time 4.378e-05/0.2537, allocations: 88.95 kB / 0.956 GB, free: 2.656 MB / 0.7325 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.464e-05/0.2537, allocations: 7.984 kB / 0.956 GB, free: 2.648 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.608e-05/0.2538, allocations: 11.94 kB / 0.956 GB, free: 2.637 MB / 0.7325 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.395e-05/0.2539, allocations: 7.984 kB / 0.9561 GB, free: 2.629 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.712e-06/0.2539, allocations: 4 kB / 0.9561 GB, free: 2.625 MB / 0.7325 GB Notification: Performance of sorting global known variables: time 3.989e-05/0.2539, allocations: 83.28 kB / 0.9561 GB, free: 2.543 MB / 0.7325 GB Notification: Performance of sort global known variables: time 1.51e-07/0.2539, allocations: 0 / 0.9561 GB, free: 2.543 MB / 0.7325 GB Notification: Performance of remove unused functions: time 0.0002369/0.2542, allocations: 8 kB / 0.9561 GB, free: 2.535 MB / 0.7325 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 9.879e-05/0.2543, allocations: 103.2 kB / 0.9562 GB, free: 2.426 MB / 0.7325 GB Notification: Performance of simCode: created initialization part: time 0.0001291/0.2544, allocations: 59.92 kB / 0.9563 GB, free: 2.367 MB / 0.7325 GB Notification: Performance of simCode: created event and clocks part: time 1.784e-06/0.2544, allocations: 0 / 0.9563 GB, free: 2.367 MB / 0.7325 GB Notification: Performance of simCode: created simulation system equations: time 5.444e-05/0.2545, allocations: 27.92 kB / 0.9563 GB, free: 2.34 MB / 0.7325 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002634/0.2548, allocations: 4.188 kB / 0.9563 GB, free: 2.336 MB / 0.7325 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003865/0.2552, allocations: 161.6 kB / 0.9565 GB, free: 2.152 MB / 0.7325 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002408/0.2554, allocations: 0.6923 MB / 0.9572 GB, free: 1.434 MB / 0.7325 GB Notification: Performance of simCode: alias equations: time 2.418e-05/0.2554, allocations: 0 / 0.9572 GB, free: 1.434 MB / 0.7325 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.56e-05/0.2555, allocations: 15.44 kB / 0.9572 GB, free: 1.422 MB / 0.7325 GB Notification: Performance of SimCode: time 3.61e-07/0.2555, allocations: 288 / 0.9572 GB, free: 1.422 MB / 0.7325 GB Notification: Performance of Templates: time 0.002805/0.2583, allocations: 0.7749 MB / 0.9579 GB, free: 0.6523 MB / 0.7325 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 -s gbode -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/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Controls.Continuous.Examples.OffTimer.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches