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.006579/0.006579, allocations: 99.31 kB / 15.73 MB, free: 6.047 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.001551/0.001551, allocations: 185.3 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.548/1.548, allocations: 222.9 MB / 240.4 MB, free: 4.32 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.487/2.487, allocations: 390.2 MB / 0.6648 GB, free: 228 kB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001235/0.001235, allocations: 61.19 kB / 0.9508 GB, free: 5.555 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3092/0.3105, allocations: 140.4 MB / 1.088 GB, free: 1.562 MB / 0.8419 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.Continuous.Examples.OffTimer): time 0.002806/0.3133, allocations: 1.465 MB / 1.089 GB, free: 84 kB / 0.8419 GB Notification: Performance of NFInst.instExpressions: time 0.0007658/0.3141, allocations: 444.3 kB / 1.09 GB, free: 15.64 MB / 0.8575 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.198e-05/0.3142, allocations: 4 kB / 1.09 GB, free: 15.64 MB / 0.8575 GB Notification: Performance of NFTyping.typeComponents: time 3.246e-05/0.3142, allocations: 3.938 kB / 1.09 GB, free: 15.64 MB / 0.8575 GB Notification: Performance of NFTyping.typeBindings: time 8.937e-05/0.3143, allocations: 11.92 kB / 1.09 GB, free: 15.62 MB / 0.8575 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001612/0.3145, allocations: 19.92 kB / 1.09 GB, free: 15.61 MB / 0.8575 GB Notification: Performance of NFFlatten.flatten: time 9.007e-05/0.3146, allocations: 51.89 kB / 1.09 GB, free: 15.55 MB / 0.8575 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001167/0.3147, allocations: 12 kB / 1.09 GB, free: 15.54 MB / 0.8575 GB Notification: Performance of NFEvalConstants.evaluate: time 5.46e-05/0.3148, allocations: 27.86 kB / 1.09 GB, free: 15.52 MB / 0.8575 GB Notification: Performance of NFSimplifyModel.simplify: time 6.861e-05/0.3148, allocations: 19.91 kB / 1.09 GB, free: 15.5 MB / 0.8575 GB Notification: Performance of NFPackage.collectConstants: time 1.892e-05/0.3149, allocations: 7.938 kB / 1.09 GB, free: 15.49 MB / 0.8575 GB Notification: Performance of NFFlatten.collectFunctions: time 1.245e-05/0.3149, allocations: 8 kB / 1.09 GB, free: 15.48 MB / 0.8575 GB Notification: Performance of NFScalarize.scalarize: time 2.393e-05/0.3149, allocations: 8 kB / 1.09 GB, free: 15.47 MB / 0.8575 GB Notification: Performance of NFVerifyModel.verify: time 5.002e-05/0.315, allocations: 31.83 kB / 1.09 GB, free: 15.44 MB / 0.8575 GB Notification: Performance of NFConvertDAE.convert: time 0.0001158/0.3151, allocations: 39.83 kB / 1.09 GB, free: 15.4 MB / 0.8575 GB Notification: Performance of FrontEnd - DAE generated: time 8.286e-06/0.3151, allocations: 4 kB / 1.09 GB, free: 15.4 MB / 0.8575 GB Notification: Performance of FrontEnd: time 2.083e-06/0.3151, allocations: 0 / 1.09 GB, free: 15.4 MB / 0.8575 GB Notification: Performance of Transformations before backend: time 6.071e-06/0.3151, allocations: 0 / 1.09 GB, free: 15.4 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.0005344/0.3157, allocations: 359.5 kB / 1.09 GB, free: 15 MB / 0.8575 GB Notification: Performance of prepare preOptimizeDAE: time 3.935e-05/0.3157, allocations: 12.03 kB / 1.09 GB, free: 14.99 MB / 0.8575 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.562e-05/0.3157, allocations: 4.938 kB / 1.09 GB, free: 14.98 MB / 0.8575 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001506/0.3159, allocations: 184.2 kB / 1.091 GB, free: 14.77 MB / 0.8575 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.073e-05/0.3159, allocations: 384 / 1.091 GB, free: 14.77 MB / 0.8575 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.606e-05/0.3159, allocations: 8.375 kB / 1.091 GB, free: 14.76 MB / 0.8575 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001294/0.3161, allocations: 61.98 kB / 1.091 GB, free: 14.69 MB / 0.8575 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.634e-06/0.3161, allocations: 0 / 1.091 GB, free: 14.69 MB / 0.8575 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.165e-05/0.3161, allocations: 0 / 1.091 GB, free: 14.69 MB / 0.8575 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.209e-06/0.3161, allocations: 0 / 1.091 GB, free: 14.69 MB / 0.8575 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.863e-05/0.3162, allocations: 31.92 kB / 1.091 GB, free: 14.66 MB / 0.8575 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005127/0.3167, allocations: 300.7 kB / 1.091 GB, free: 14.32 MB / 0.8575 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001083/0.3168, allocations: 58.62 kB / 1.091 GB, free: 14.25 MB / 0.8575 GB Notification: Performance of preOpt resolveLoops (simulation): time 7.015e-05/0.3169, allocations: 28.84 kB / 1.091 GB, free: 14.22 MB / 0.8575 GB Notification: Performance of preOpt evalFunc (simulation): time 1.1e-05/0.3169, allocations: 3.938 kB / 1.091 GB, free: 14.21 MB / 0.8575 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001617/0.3171, allocations: 71.39 kB / 1.091 GB, free: 14.13 MB / 0.8575 GB Notification: Performance of pre-optimization done (n=9): time 1.403e-06/0.3171, allocations: 0 / 1.091 GB, free: 14.13 MB / 0.8575 GB Notification: Performance of matching and sorting (n=9): time 0.0002288/0.3173, allocations: 101.6 kB / 1.091 GB, free: 14.03 MB / 0.8575 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.211e-05/0.3174, allocations: 51.41 kB / 1.091 GB, free: 13.96 MB / 0.8575 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.374e-05/0.3175, allocations: 109.8 kB / 1.091 GB, free: 13.85 MB / 0.8575 GB Notification: Performance of collectPreVariables (initialization): time 1.923e-05/0.3175, allocations: 29.7 kB / 1.091 GB, free: 13.81 MB / 0.8575 GB Notification: Performance of collectInitialEqns (initialization): time 6.084e-05/0.3176, allocations: 88.12 kB / 1.091 GB, free: 13.72 MB / 0.8575 GB Notification: Performance of collectInitialBindings (initialization): time 2.748e-05/0.3176, allocations: 27.59 kB / 1.091 GB, free: 13.7 MB / 0.8575 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.419e-05/0.3177, allocations: 33.7 kB / 1.091 GB, free: 13.66 MB / 0.8575 GB Notification: Performance of setup shared object (initialization): time 0.0001171/0.3178, allocations: 314.8 kB / 1.092 GB, free: 13.34 MB / 0.8575 GB Notification: Performance of preBalanceInitialSystem (initialization): time 4.102e-05/0.3178, allocations: 23.98 kB / 1.092 GB, free: 13.32 MB / 0.8575 GB Notification: Performance of partitionIndependentBlocks (initialization): time 6.468e-05/0.3179, allocations: 43.42 kB / 1.092 GB, free: 13.26 MB / 0.8575 GB Notification: Performance of analyzeInitialSystem (initialization): time 8.457e-05/0.318, allocations: 67.38 kB / 1.092 GB, free: 13.18 MB / 0.8575 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.314e-06/0.318, allocations: 0 / 1.092 GB, free: 13.18 MB / 0.8575 GB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0001336/0.3181, allocations: 93.83 kB / 1.092 GB, free: 13.09 MB / 0.8575 GB Notification: Performance of prepare postOptimizeDAE: time 1.632e-05/0.3182, allocations: 8 kB / 1.092 GB, free: 13.08 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.531e-06/0.3182, allocations: 0 / 1.092 GB, free: 13.08 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.609e-05/0.3182, allocations: 0 / 1.092 GB, free: 13.08 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.298e-05/0.3183, allocations: 11.94 kB / 1.092 GB, free: 13.07 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.632e-05/0.3183, allocations: 4 kB / 1.092 GB, free: 13.06 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.271e-05/0.3183, allocations: 11.89 kB / 1.092 GB, free: 13.05 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.06e-05/0.3184, allocations: 8 kB / 1.092 GB, free: 13.04 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 8.454e-05/0.3185, allocations: 123.2 kB / 1.092 GB, free: 12.91 MB / 0.8575 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.234e-05/0.3185, allocations: 4 kB / 1.092 GB, free: 12.91 MB / 0.8575 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.155e-05/0.3185, allocations: 11.95 kB / 1.092 GB, free: 12.89 MB / 0.8575 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.693e-06/0.3185, allocations: 64 / 1.092 GB, free: 12.89 MB / 0.8575 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.773e-06/0.3185, allocations: 4.375 kB / 1.092 GB, free: 12.89 MB / 0.8575 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.26e-06/0.3185, allocations: 0 / 1.092 GB, free: 12.89 MB / 0.8575 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004135/0.319, allocations: 374.2 kB / 1.093 GB, free: 12.47 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.473e-06/0.319, allocations: 4 kB / 1.093 GB, free: 12.46 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.624e-05/0.319, allocations: 7.938 kB / 1.093 GB, free: 12.46 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.124e-06/0.319, allocations: 0 / 1.093 GB, free: 12.46 MB / 0.8575 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.045e-06/0.319, allocations: 0 / 1.093 GB, free: 12.46 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.456e-06/0.319, allocations: 3.938 kB / 1.093 GB, free: 12.45 MB / 0.8575 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.735e-06/0.319, allocations: 3.984 kB / 1.093 GB, free: 12.45 MB / 0.8575 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001701/0.3192, allocations: 175.5 kB / 1.093 GB, free: 12.26 MB / 0.8575 GB Notification: Performance of postOpt removeConstants (simulation): time 3.736e-05/0.3193, allocations: 85.02 kB / 1.093 GB, free: 12.16 MB / 0.8575 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.856e-05/0.3193, allocations: 11.98 kB / 1.093 GB, free: 12.15 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.966e-05/0.3194, allocations: 7.938 kB / 1.093 GB, free: 12.14 MB / 0.8575 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.757e-05/0.3194, allocations: 7.984 kB / 1.093 GB, free: 12.13 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.08e-06/0.3194, allocations: 0 / 1.093 GB, free: 12.13 MB / 0.8575 GB Notification: Performance of sorting global known variables: time 5.1e-05/0.3195, allocations: 83.28 kB / 1.093 GB, free: 12.05 MB / 0.8575 GB Notification: Performance of sort global known variables: time 1e-07/0.3195, allocations: 0 / 1.093 GB, free: 12.05 MB / 0.8575 GB Notification: Performance of remove unused functions: time 0.0002265/0.3197, allocations: 19.98 kB / 1.093 GB, free: 12.03 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.0001011/0.3198, allocations: 99.16 kB / 1.093 GB, free: 11.93 MB / 0.8575 GB Notification: Performance of simCode: created initialization part: time 0.000147/0.32, allocations: 59.92 kB / 1.093 GB, free: 11.87 MB / 0.8575 GB Notification: Performance of simCode: created event and clocks part: time 1.783e-06/0.32, allocations: 0 / 1.093 GB, free: 11.87 MB / 0.8575 GB Notification: Performance of simCode: created simulation system equations: time 5.354e-05/0.3201, allocations: 27.92 kB / 1.093 GB, free: 11.84 MB / 0.8575 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002727/0.3203, allocations: 9.938 kB / 1.093 GB, free: 11.84 MB / 0.8575 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003912/0.3207, allocations: 161.5 kB / 1.093 GB, free: 11.65 MB / 0.8575 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002538/0.321, allocations: 0.6846 MB / 1.094 GB, free: 10.94 MB / 0.8575 GB Notification: Performance of simCode: alias equations: time 2.8e-05/0.321, allocations: 7.984 kB / 1.094 GB, free: 10.93 MB / 0.8575 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.033e-05/0.3211, allocations: 15.44 kB / 1.094 GB, free: 10.92 MB / 0.8575 GB Notification: Performance of SimCode: time 1.402e-06/0.3211, allocations: 0 / 1.094 GB, free: 10.92 MB / 0.8575 GB Notification: Performance of Templates: time 0.002874/0.324, allocations: 0.8078 MB / 1.095 GB, free: 10.11 MB / 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