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.001472/0.001472, allocations: 104.7 kB / 15.98 MB, free: 6.34 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.001674/0.001674, allocations: 197.8 kB / 16.91 MB, free: 6.184 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.379/1.379, allocations: 222.9 MB / 240.6 MB, free: 13.74 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.239/2.239, allocations: 390.2 MB / 0.665 GB, free: 0.8867 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.001273/0.001273, allocations: 65.98 kB / 0.8127 GB, free: 32.52 MB / 0.6231 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2688/0.2701, allocations: 140.4 MB / 0.9498 GB, free: 9.23 MB / 0.7325 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.Continuous.Examples.OffTimer): time 0.002931/0.2731, allocations: 1.535 MB / 0.9513 GB, free: 7.68 MB / 0.7325 GB Notification: Performance of NFInst.instExpressions: time 0.0007641/0.2739, allocations: 435 kB / 0.9517 GB, free: 7.25 MB / 0.7325 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.028e-05/0.2739, allocations: 0 / 0.9517 GB, free: 7.25 MB / 0.7325 GB Notification: Performance of NFTyping.typeComponents: time 3.849e-05/0.274, allocations: 3.984 kB / 0.9517 GB, free: 7.246 MB / 0.7325 GB Notification: Performance of NFTyping.typeBindings: time 7.93e-05/0.2741, allocations: 3.938 kB / 0.9517 GB, free: 7.242 MB / 0.7325 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001402/0.2742, allocations: 23.97 kB / 0.9517 GB, free: 7.219 MB / 0.7325 GB Notification: Performance of NFFlatten.flatten: time 8.268e-05/0.2743, allocations: 51.86 kB / 0.9518 GB, free: 7.168 MB / 0.7325 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001028/0.2744, allocations: 15.98 kB / 0.9518 GB, free: 7.152 MB / 0.7325 GB Notification: Performance of NFEvalConstants.evaluate: time 5.19e-05/0.2745, allocations: 19.92 kB / 0.9518 GB, free: 7.133 MB / 0.7325 GB Notification: Performance of NFSimplifyModel.simplify: time 5.405e-05/0.2746, allocations: 19.92 kB / 0.9518 GB, free: 7.113 MB / 0.7325 GB Notification: Performance of NFPackage.collectConstants: time 1.735e-05/0.2746, allocations: 4 kB / 0.9518 GB, free: 7.109 MB / 0.7325 GB Notification: Performance of NFFlatten.collectFunctions: time 1.272e-05/0.2746, allocations: 4 kB / 0.9518 GB, free: 7.105 MB / 0.7325 GB Notification: Performance of NFScalarize.scalarize: time 2.163e-05/0.2746, allocations: 19.91 kB / 0.9518 GB, free: 7.086 MB / 0.7325 GB Notification: Performance of NFVerifyModel.verify: time 4.103e-05/0.2747, allocations: 19.94 kB / 0.9519 GB, free: 7.066 MB / 0.7325 GB Notification: Performance of NFConvertDAE.convert: time 7.592e-05/0.2748, allocations: 23.95 kB / 0.9519 GB, free: 7.043 MB / 0.7325 GB Notification: Performance of FrontEnd - DAE generated: time 3.838e-06/0.2748, allocations: 0 / 0.9519 GB, free: 7.043 MB / 0.7325 GB Notification: Performance of FrontEnd: time 1.593e-06/0.2748, allocations: 4 kB / 0.9519 GB, free: 7.039 MB / 0.7325 GB Notification: Performance of Transformations before backend: time 8.005e-06/0.2748, allocations: 0 / 0.9519 GB, free: 7.039 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.0005188/0.2753, allocations: 363.6 kB / 0.9522 GB, free: 6.637 MB / 0.7325 GB Notification: Performance of prepare preOptimizeDAE: time 3.739e-05/0.2754, allocations: 8.031 kB / 0.9522 GB, free: 6.629 MB / 0.7325 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.608e-05/0.2754, allocations: 8.875 kB / 0.9522 GB, free: 6.621 MB / 0.7325 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001343/0.2755, allocations: 184.1 kB / 0.9524 GB, free: 6.402 MB / 0.7325 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.017e-05/0.2756, allocations: 4.375 kB / 0.9524 GB, free: 6.398 MB / 0.7325 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.506e-05/0.2756, allocations: 4.375 kB / 0.9524 GB, free: 6.395 MB / 0.7325 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001168/0.2757, allocations: 65.92 kB / 0.9525 GB, free: 6.324 MB / 0.7325 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.574e-06/0.2757, allocations: 0 / 0.9525 GB, free: 6.324 MB / 0.7325 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.424e-05/0.2757, allocations: 8 kB / 0.9525 GB, free: 6.316 MB / 0.7325 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.148e-06/0.2757, allocations: 0 / 0.9525 GB, free: 6.316 MB / 0.7325 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.352e-05/0.2758, allocations: 23.92 kB / 0.9525 GB, free: 6.293 MB / 0.7325 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005474/0.2764, allocations: 300.8 kB / 0.9528 GB, free: 5.949 MB / 0.7325 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001053/0.2765, allocations: 58.59 kB / 0.9529 GB, free: 5.883 MB / 0.7325 GB Notification: Performance of preOpt resolveLoops (simulation): time 4.513e-05/0.2765, allocations: 24.94 kB / 0.9529 GB, free: 5.855 MB / 0.7325 GB Notification: Performance of preOpt evalFunc (simulation): time 8.546e-06/0.2765, allocations: 0 / 0.9529 GB, free: 5.855 MB / 0.7325 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002001/0.2767, allocations: 75.3 kB / 0.953 GB, free: 5.77 MB / 0.7325 GB Notification: Performance of pre-optimization done (n=9): time 1.422e-06/0.2768, allocations: 0 / 0.953 GB, free: 5.77 MB / 0.7325 GB Notification: Performance of matching and sorting (n=9): time 0.0002175/0.277, allocations: 97.61 kB / 0.953 GB, free: 5.668 MB / 0.7325 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.024e-05/0.277, allocations: 59.41 kB / 0.9531 GB, free: 5.598 MB / 0.7325 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.949e-05/0.2771, allocations: 105.8 kB / 0.9532 GB, free: 5.484 MB / 0.7325 GB Notification: Performance of collectPreVariables (initialization): time 1.604e-05/0.2771, allocations: 29.64 kB / 0.9532 GB, free: 5.449 MB / 0.7325 GB Notification: Performance of collectInitialEqns (initialization): time 4.804e-05/0.2772, allocations: 96.03 kB / 0.9533 GB, free: 5.352 MB / 0.7325 GB Notification: Performance of collectInitialBindings (initialization): time 2.406e-05/0.2772, allocations: 19.75 kB / 0.9533 GB, free: 5.332 MB / 0.7325 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.979e-05/0.2773, allocations: 29.7 kB / 0.9534 GB, free: 5.297 MB / 0.7325 GB Notification: Performance of setup shared object (initialization): time 9.794e-05/0.2774, allocations: 314.8 kB / 0.9537 GB, free: 4.98 MB / 0.7325 GB Notification: Performance of preBalanceInitialSystem (initialization): time 3.822e-05/0.2774, allocations: 19.98 kB / 0.9537 GB, free: 4.961 MB / 0.7325 GB Notification: Performance of partitionIndependentBlocks (initialization): time 5.121e-05/0.2775, allocations: 47.42 kB / 0.9537 GB, free: 4.902 MB / 0.7325 GB Notification: Performance of analyzeInitialSystem (initialization): time 8.694e-05/0.2776, allocations: 63.38 kB / 0.9538 GB, free: 4.828 MB / 0.7325 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.314e-06/0.2776, allocations: 0 / 0.9538 GB, free: 4.828 MB / 0.7325 GB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0001619/0.2777, allocations: 101.8 kB / 0.9539 GB, free: 4.723 MB / 0.7325 GB Notification: Performance of prepare postOptimizeDAE: time 1.49e-05/0.2778, allocations: 4 kB / 0.9539 GB, free: 4.719 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.752e-06/0.2778, allocations: 11.97 kB / 0.9539 GB, free: 4.707 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.349e-05/0.2778, allocations: 432 / 0.9539 GB, free: 4.707 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.724e-05/0.2779, allocations: 15.92 kB / 0.9539 GB, free: 4.691 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.891e-06/0.2779, allocations: 0 / 0.9539 GB, free: 4.691 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.733e-05/0.278, allocations: 11.98 kB / 0.9539 GB, free: 4.68 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.222e-06/0.278, allocations: 3.938 kB / 0.9539 GB, free: 4.676 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 0.0001404/0.2781, allocations: 129.3 kB / 0.9541 GB, free: 4.543 MB / 0.7325 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.228e-05/0.2781, allocations: 3.906 kB / 0.9541 GB, free: 4.539 MB / 0.7325 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.284e-05/0.2782, allocations: 15.95 kB / 0.9541 GB, free: 4.52 MB / 0.7325 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.104e-06/0.2782, allocations: 4 kB / 0.9541 GB, free: 4.516 MB / 0.7325 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.839e-06/0.2782, allocations: 0 / 0.9541 GB, free: 4.516 MB / 0.7325 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.146e-06/0.2782, allocations: 0 / 0.9541 GB, free: 4.516 MB / 0.7325 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003819/0.2786, allocations: 354.4 kB / 0.9544 GB, free: 4.113 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.874e-06/0.2786, allocations: 3.938 kB / 0.9544 GB, free: 4.109 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.717e-05/0.2786, allocations: 4 kB / 0.9544 GB, free: 4.105 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.485e-06/0.2786, allocations: 0 / 0.9544 GB, free: 4.105 MB / 0.7325 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.578e-06/0.2787, allocations: 8 kB / 0.9544 GB, free: 4.098 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.158e-06/0.2787, allocations: 3.938 kB / 0.9544 GB, free: 4.094 MB / 0.7325 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.194e-06/0.2787, allocations: 3.984 kB / 0.9544 GB, free: 4.09 MB / 0.7325 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001499/0.2788, allocations: 179.4 kB / 0.9546 GB, free: 3.898 MB / 0.7325 GB Notification: Performance of postOpt removeConstants (simulation): time 5.882e-05/0.2789, allocations: 84.95 kB / 0.9547 GB, free: 3.797 MB / 0.7325 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.542e-05/0.2789, allocations: 7.984 kB / 0.9547 GB, free: 3.789 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.92e-05/0.279, allocations: 15.94 kB / 0.9547 GB, free: 3.773 MB / 0.7325 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.332e-05/0.2791, allocations: 7.984 kB / 0.9547 GB, free: 3.766 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.159e-06/0.2791, allocations: 4 kB / 0.9547 GB, free: 3.762 MB / 0.7325 GB Notification: Performance of sorting global known variables: time 3.789e-05/0.2791, allocations: 83.28 kB / 0.9548 GB, free: 3.68 MB / 0.7325 GB Notification: Performance of sort global known variables: time 1.31e-07/0.2791, allocations: 0 / 0.9548 GB, free: 3.68 MB / 0.7325 GB Notification: Performance of remove unused functions: time 0.0002367/0.2794, allocations: 15.98 kB / 0.9548 GB, free: 3.664 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 0.0001018/0.2795, allocations: 101.9 kB / 0.9549 GB, free: 3.559 MB / 0.7325 GB Notification: Performance of simCode: created initialization part: time 0.0001458/0.2796, allocations: 59.86 kB / 0.955 GB, free: 3.5 MB / 0.7325 GB Notification: Performance of simCode: created event and clocks part: time 2.215e-06/0.2796, allocations: 192 / 0.955 GB, free: 3.5 MB / 0.7325 GB Notification: Performance of simCode: created simulation system equations: time 5.614e-05/0.2797, allocations: 35.98 kB / 0.955 GB, free: 3.465 MB / 0.7325 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002701/0.28, allocations: 8 kB / 0.955 GB, free: 3.457 MB / 0.7325 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004233/0.2804, allocations: 203 kB / 0.9552 GB, free: 3.227 MB / 0.7325 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002457/0.2807, allocations: 0.6883 MB / 0.9559 GB, free: 2.512 MB / 0.7325 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.377e-05/0.2807, allocations: 15.44 kB / 0.9559 GB, free: 2.496 MB / 0.7325 GB Notification: Performance of SimCode: time 2.5e-07/0.2807, allocations: 3.938 kB / 0.9559 GB, free: 2.492 MB / 0.7325 GB Notification: Performance of Templates: time 0.002249/0.283, allocations: 0.8559 MB / 0.9567 GB, free: 1.637 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 -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