Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_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 12.0.0-master/package.mo", uses=false) Using package Buildings with version 12.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/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_latest_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_latest_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.001416/0.001416, allocations: 108 kB / 15.6 MB, free: 132 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001704/0.001704, allocations: 194.5 kB / 16.53 MB, free: 6.391 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.402/1.402, allocations: 222.9 MB / 240.2 MB, free: 4.395 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.831/2.831, allocations: 472.6 MB / 0.7451 GB, free: 4.664 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001248/0.001249, allocations: 62.52 kB / 0.912 GB, free: 33.41 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3077/0.309, allocations: 159.9 MB / 1.068 GB, free: 10.42 MB / 0.8262 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.Continuous.Examples.OffTimer): time 0.003273/0.3123, allocations: 1.467 MB / 1.07 GB, free: 8.938 MB / 0.8262 GB Notification: Performance of NFInst.instExpressions: time 0.0007866/0.3131, allocations: 446.8 kB / 1.07 GB, free: 8.496 MB / 0.8262 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.439e-05/0.3131, allocations: 4 kB / 1.07 GB, free: 8.492 MB / 0.8262 GB Notification: Performance of NFTyping.typeComponents: time 3.731e-05/0.3132, allocations: 3.938 kB / 1.07 GB, free: 8.488 MB / 0.8262 GB Notification: Performance of NFTyping.typeBindings: time 7.01e-05/0.3133, allocations: 11.92 kB / 1.07 GB, free: 8.477 MB / 0.8262 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001603/0.3134, allocations: 19.92 kB / 1.07 GB, free: 8.457 MB / 0.8262 GB Notification: Performance of NFFlatten.flatten: time 0.0001035/0.3135, allocations: 51.91 kB / 1.07 GB, free: 8.406 MB / 0.8262 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001163/0.3137, allocations: 11.98 kB / 1.07 GB, free: 8.395 MB / 0.8262 GB Notification: Performance of NFEvalConstants.evaluate: time 5.939e-05/0.3137, allocations: 27.86 kB / 1.07 GB, free: 8.367 MB / 0.8262 GB Notification: Performance of NFSimplifyModel.simplify: time 5.788e-05/0.3138, allocations: 19.92 kB / 1.07 GB, free: 8.348 MB / 0.8262 GB Notification: Performance of NFPackage.collectConstants: time 1.839e-05/0.3138, allocations: 7.938 kB / 1.07 GB, free: 8.34 MB / 0.8262 GB Notification: Performance of NFFlatten.collectFunctions: time 1.178e-05/0.3138, allocations: 8 kB / 1.07 GB, free: 8.332 MB / 0.8262 GB Notification: Performance of NFScalarize.scalarize: time 2.204e-05/0.3139, allocations: 7.984 kB / 1.07 GB, free: 8.324 MB / 0.8262 GB Notification: Performance of NFVerifyModel.verify: time 5.209e-05/0.3139, allocations: 27.86 kB / 1.07 GB, free: 8.297 MB / 0.8262 GB Notification: Performance of NFConvertDAE.convert: time 0.0001011/0.314, allocations: 39.88 kB / 1.07 GB, free: 8.258 MB / 0.8262 GB Notification: Performance of FrontEnd - DAE generated: time 3.717e-06/0.314, allocations: 0 / 1.07 GB, free: 8.258 MB / 0.8262 GB Notification: Performance of FrontEnd: time 1.733e-06/0.314, allocations: 0 / 1.07 GB, free: 8.258 MB / 0.8262 GB Notification: Performance of Transformations before backend: time 5.41e-06/0.314, allocations: 0 / 1.07 GB, free: 8.258 MB / 0.8262 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.000486/0.3145, allocations: 359.6 kB / 1.071 GB, free: 7.859 MB / 0.8262 GB Notification: Performance of prepare preOptimizeDAE: time 3.585e-05/0.3146, allocations: 16.03 kB / 1.071 GB, free: 7.844 MB / 0.8262 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.279e-05/0.3146, allocations: 8.844 kB / 1.071 GB, free: 7.836 MB / 0.8262 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001405/0.3148, allocations: 176.3 kB / 1.071 GB, free: 7.625 MB / 0.8262 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.353e-05/0.3148, allocations: 4.375 kB / 1.071 GB, free: 7.621 MB / 0.8262 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.373e-05/0.3148, allocations: 4.375 kB / 1.071 GB, free: 7.617 MB / 0.8262 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001125/0.3149, allocations: 57.94 kB / 1.071 GB, free: 7.555 MB / 0.8262 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.001e-06/0.3149, allocations: 0 / 1.071 GB, free: 7.555 MB / 0.8262 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.124e-05/0.3149, allocations: 4 kB / 1.071 GB, free: 7.551 MB / 0.8262 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.118e-06/0.315, allocations: 4 kB / 1.071 GB, free: 7.547 MB / 0.8262 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.922e-05/0.315, allocations: 23.97 kB / 1.071 GB, free: 7.523 MB / 0.8262 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000471/0.3155, allocations: 304.7 kB / 1.071 GB, free: 7.176 MB / 0.8262 GB Notification: Performance of preOpt comSubExp (simulation): time 9.344e-05/0.3156, allocations: 54.56 kB / 1.071 GB, free: 7.113 MB / 0.8262 GB Notification: Performance of preOpt resolveLoops (simulation): time 4.078e-05/0.3157, allocations: 24.94 kB / 1.071 GB, free: 7.086 MB / 0.8262 GB Notification: Performance of preOpt evalFunc (simulation): time 8.045e-06/0.3157, allocations: 0 / 1.071 GB, free: 7.086 MB / 0.8262 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001505/0.3158, allocations: 79.42 kB / 1.071 GB, free: 6.996 MB / 0.8262 GB Notification: Performance of pre-optimization done (n=9): time 1.182e-06/0.3158, allocations: 0 / 1.071 GB, free: 6.996 MB / 0.8262 GB Notification: Performance of matching and sorting (n=9): time 0.0001968/0.316, allocations: 97.61 kB / 1.071 GB, free: 6.895 MB / 0.8262 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.834e-05/0.3161, allocations: 55.41 kB / 1.071 GB, free: 6.828 MB / 0.8262 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.844e-05/0.3162, allocations: 109.8 kB / 1.072 GB, free: 6.711 MB / 0.8262 GB Notification: Performance of collectPreVariables (initialization): time 1.655e-05/0.3162, allocations: 25.7 kB / 1.072 GB, free: 6.68 MB / 0.8262 GB Notification: Performance of collectInitialEqns (initialization): time 5.074e-05/0.3163, allocations: 100.1 kB / 1.072 GB, free: 6.578 MB / 0.8262 GB Notification: Performance of collectInitialBindings (initialization): time 3.045e-05/0.3163, allocations: 24.02 kB / 1.072 GB, free: 6.555 MB / 0.8262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.451e-05/0.3163, allocations: 29.72 kB / 1.072 GB, free: 6.52 MB / 0.8262 GB Notification: Performance of setup shared object (initialization): time 0.0001343/0.3165, allocations: 318.8 kB / 1.072 GB, free: 6.199 MB / 0.8262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 3.756e-05/0.3165, allocations: 16 kB / 1.072 GB, free: 6.184 MB / 0.8262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 5.175e-05/0.3166, allocations: 47.36 kB / 1.072 GB, free: 6.125 MB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization): time 9.134e-05/0.3167, allocations: 75.36 kB / 1.072 GB, free: 6.039 MB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.613e-06/0.3167, allocations: 0 / 1.072 GB, free: 6.039 MB / 0.8262 GB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0001278/0.3168, allocations: 97.55 kB / 1.072 GB, free: 5.938 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 1.241e-05/0.3168, allocations: 4 kB / 1.072 GB, free: 5.934 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.541e-06/0.3168, allocations: 4 kB / 1.072 GB, free: 5.93 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 9.748e-06/0.3169, allocations: 288 / 1.072 GB, free: 5.93 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.837e-05/0.3169, allocations: 8 kB / 1.072 GB, free: 5.922 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.08e-06/0.3169, allocations: 0 / 1.072 GB, free: 5.922 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.44e-05/0.317, allocations: 11.92 kB / 1.072 GB, free: 5.91 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.302e-06/0.317, allocations: 8 kB / 1.072 GB, free: 5.902 MB / 0.8262 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 9.431e-05/0.3171, allocations: 134.9 kB / 1.072 GB, free: 5.762 MB / 0.8262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.958e-06/0.3171, allocations: 0 / 1.072 GB, free: 5.762 MB / 0.8262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.976e-05/0.3172, allocations: 7.969 kB / 1.072 GB, free: 5.75 MB / 0.8262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.176e-06/0.3172, allocations: 4 kB / 1.072 GB, free: 5.746 MB / 0.8262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.429e-06/0.3172, allocations: 0 / 1.072 GB, free: 5.746 MB / 0.8262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.169e-06/0.3172, allocations: 3.984 kB / 1.072 GB, free: 5.742 MB / 0.8262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003984/0.3176, allocations: 362.3 kB / 1.073 GB, free: 5.332 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.202e-06/0.3176, allocations: 0 / 1.073 GB, free: 5.332 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.503e-05/0.3176, allocations: 4 kB / 1.073 GB, free: 5.328 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.593e-06/0.3176, allocations: 0 / 1.073 GB, free: 5.328 MB / 0.8262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.548e-06/0.3177, allocations: 4 kB / 1.073 GB, free: 5.324 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.474e-06/0.3177, allocations: 3.938 kB / 1.073 GB, free: 5.32 MB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.757e-06/0.3177, allocations: 0 / 1.073 GB, free: 5.32 MB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001585/0.3178, allocations: 187.4 kB / 1.073 GB, free: 5.121 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 3.811e-05/0.3179, allocations: 84.95 kB / 1.073 GB, free: 5.02 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.519e-05/0.3179, allocations: 4 kB / 1.073 GB, free: 5.016 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.48e-05/0.318, allocations: 11.92 kB / 1.073 GB, free: 5.004 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.624e-05/0.318, allocations: 8.172 kB / 1.073 GB, free: 4.996 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.398e-06/0.3181, allocations: 8 kB / 1.073 GB, free: 4.988 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 4.963e-05/0.3181, allocations: 87.22 kB / 1.073 GB, free: 4.902 MB / 0.8262 GB Notification: Performance of sort global known variables: time 9e-08/0.3181, allocations: 0 / 1.073 GB, free: 4.902 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.0002261/0.3183, allocations: 12 kB / 1.073 GB, free: 4.891 MB / 0.8262 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.0001065/0.3185, allocations: 108.9 kB / 1.073 GB, free: 4.777 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.0001387/0.3186, allocations: 59.92 kB / 1.073 GB, free: 4.719 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 1.864e-06/0.3186, allocations: 0 / 1.073 GB, free: 4.719 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 6.134e-05/0.3187, allocations: 31.92 kB / 1.073 GB, free: 4.688 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002627/0.3189, allocations: 9.25 kB / 1.073 GB, free: 4.68 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003941/0.3193, allocations: 169.4 kB / 1.074 GB, free: 4.488 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002563/0.3196, allocations: 0.6846 MB / 1.074 GB, free: 3.777 MB / 0.8262 GB Notification: Performance of simCode: alias equations: time 2.551e-05/0.3196, allocations: 4 kB / 1.074 GB, free: 3.773 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.042e-05/0.3197, allocations: 11.44 kB / 1.074 GB, free: 3.762 MB / 0.8262 GB Notification: Performance of SimCode: time 2.3e-07/0.3197, allocations: 0 / 1.074 GB, free: 3.762 MB / 0.8262 GB Notification: Performance of Templates: time 0.003001/0.3227, allocations: 0.7845 MB / 1.075 GB, free: 2.984 MB / 0.8262 GB make -j1 -f Buildings_latest_Buildings.Controls.Continuous.Examples.OffTimer.makefile (rm -f Buildings_latest_Buildings.Controls.Continuous.Examples.OffTimer.pipe ; mkfifo Buildings_latest_Buildings.Controls.Continuous.Examples.OffTimer.pipe ; head -c 1048576 < Buildings_latest_Buildings.Controls.Continuous.Examples.OffTimer.pipe >> ../files/Buildings_latest_Buildings.Controls.Continuous.Examples.OffTimer.sim & ./Buildings_latest_Buildings.Controls.Continuous.Examples.OffTimer -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Controls.Continuous.Examples.OffTimer.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Controls.Continuous.Examples.OffTimer_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Controls_Continuous_Examples_OffTimer.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Controls.Continuous.Examples.OffTimer.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches