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.001465/0.001465, allocations: 113.7 kB / 16.37 MB, free: 6.012 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.001622/0.001622, allocations: 191 kB / 17.3 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.415/1.415, allocations: 222.9 MB / 241 MB, free: 15.15 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.411/2.411, allocations: 390.3 MB / 0.6655 GB, free: 0.5625 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.001281/0.001281, allocations: 62.62 kB / 0.814 GB, free: 32.66 MB / 0.6231 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2886/0.2899, allocations: 140.4 MB / 0.9511 GB, free: 8.074 MB / 0.7325 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.Continuous.Examples.OffTimer): time 0.002865/0.2928, allocations: 1.477 MB / 0.9525 GB, free: 6.59 MB / 0.7325 GB Notification: Performance of NFInst.instExpressions: time 0.0007066/0.2936, allocations: 450.9 kB / 0.953 GB, free: 6.145 MB / 0.7325 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.06e-05/0.2936, allocations: 0 / 0.953 GB, free: 6.145 MB / 0.7325 GB Notification: Performance of NFTyping.typeComponents: time 2.948e-05/0.2937, allocations: 3.938 kB / 0.953 GB, free: 6.141 MB / 0.7325 GB Notification: Performance of NFTyping.typeBindings: time 7.539e-05/0.2938, allocations: 7.922 kB / 0.953 GB, free: 6.133 MB / 0.7325 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001498/0.2939, allocations: 15.98 kB / 0.953 GB, free: 6.117 MB / 0.7325 GB Notification: Performance of NFFlatten.flatten: time 8.982e-05/0.294, allocations: 55.83 kB / 0.9531 GB, free: 6.062 MB / 0.7325 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001181/0.2942, allocations: 16 kB / 0.9531 GB, free: 6.047 MB / 0.7325 GB Notification: Performance of NFEvalConstants.evaluate: time 4.896e-05/0.2942, allocations: 23.92 kB / 0.9531 GB, free: 6.023 MB / 0.7325 GB Notification: Performance of NFSimplifyModel.simplify: time 6.205e-05/0.2943, allocations: 27.84 kB / 0.9531 GB, free: 5.996 MB / 0.7325 GB Notification: Performance of NFPackage.collectConstants: time 1.73e-05/0.2943, allocations: 7.938 kB / 0.9531 GB, free: 5.988 MB / 0.7325 GB Notification: Performance of NFFlatten.collectFunctions: time 1.149e-05/0.2943, allocations: 4 kB / 0.9531 GB, free: 5.984 MB / 0.7325 GB Notification: Performance of NFScalarize.scalarize: time 2.383e-05/0.2943, allocations: 8 kB / 0.9531 GB, free: 5.977 MB / 0.7325 GB Notification: Performance of NFVerifyModel.verify: time 5.332e-05/0.2944, allocations: 27.84 kB / 0.9532 GB, free: 5.949 MB / 0.7325 GB Notification: Performance of NFConvertDAE.convert: time 9.782e-05/0.2945, allocations: 39.83 kB / 0.9532 GB, free: 5.91 MB / 0.7325 GB Notification: Performance of FrontEnd - DAE generated: time 4.228e-06/0.2945, allocations: 0 / 0.9532 GB, free: 5.91 MB / 0.7325 GB Notification: Performance of FrontEnd: time 1.462e-06/0.2945, allocations: 0 / 0.9532 GB, free: 5.91 MB / 0.7325 GB Notification: Performance of Transformations before backend: time 4.488e-06/0.2945, allocations: 0 / 0.9532 GB, free: 5.91 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.0005041/0.295, allocations: 367.3 kB / 0.9536 GB, free: 5.504 MB / 0.7325 GB Notification: Performance of prepare preOptimizeDAE: time 3.532e-05/0.2951, allocations: 8.031 kB / 0.9536 GB, free: 5.496 MB / 0.7325 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.437e-05/0.2951, allocations: 4.938 kB / 0.9536 GB, free: 5.492 MB / 0.7325 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001562/0.2953, allocations: 180.2 kB / 0.9537 GB, free: 5.277 MB / 0.7325 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.187e-05/0.2953, allocations: 4.375 kB / 0.9537 GB, free: 5.273 MB / 0.7325 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.242e-05/0.2953, allocations: 4.375 kB / 0.9537 GB, free: 5.27 MB / 0.7325 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001253/0.2954, allocations: 65.92 kB / 0.9538 GB, free: 5.199 MB / 0.7325 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.752e-06/0.2955, allocations: 0 / 0.9538 GB, free: 5.199 MB / 0.7325 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.054e-05/0.2955, allocations: 4 kB / 0.9538 GB, free: 5.195 MB / 0.7325 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.508e-06/0.2955, allocations: 4 kB / 0.9538 GB, free: 5.191 MB / 0.7325 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.088e-05/0.2956, allocations: 23.98 kB / 0.9538 GB, free: 5.168 MB / 0.7325 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004554/0.296, allocations: 300.7 kB / 0.9541 GB, free: 4.824 MB / 0.7325 GB Notification: Performance of preOpt comSubExp (simulation): time 0.00011/0.2961, allocations: 50.56 kB / 0.9542 GB, free: 4.766 MB / 0.7325 GB Notification: Performance of preOpt resolveLoops (simulation): time 4.166e-05/0.2962, allocations: 28.88 kB / 0.9542 GB, free: 4.734 MB / 0.7325 GB Notification: Performance of preOpt evalFunc (simulation): time 1.232e-05/0.2962, allocations: 8 kB / 0.9542 GB, free: 4.727 MB / 0.7325 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001507/0.2964, allocations: 79.31 kB / 0.9543 GB, free: 4.637 MB / 0.7325 GB Notification: Performance of pre-optimization done (n=9): time 1.433e-06/0.2964, allocations: 0 / 0.9543 GB, free: 4.637 MB / 0.7325 GB Notification: Performance of matching and sorting (n=9): time 0.0002277/0.2966, allocations: 97.84 kB / 0.9544 GB, free: 4.535 MB / 0.7325 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.037e-05/0.2966, allocations: 55.39 kB / 0.9544 GB, free: 4.469 MB / 0.7325 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.485e-05/0.2967, allocations: 105.9 kB / 0.9545 GB, free: 4.355 MB / 0.7325 GB Notification: Performance of collectPreVariables (initialization): time 1.517e-05/0.2968, allocations: 25.7 kB / 0.9546 GB, free: 4.324 MB / 0.7325 GB Notification: Performance of collectInitialEqns (initialization): time 5.384e-05/0.2968, allocations: 100 kB / 0.9547 GB, free: 4.223 MB / 0.7325 GB Notification: Performance of collectInitialBindings (initialization): time 2.227e-05/0.2968, allocations: 19.75 kB / 0.9547 GB, free: 4.203 MB / 0.7325 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.32e-05/0.2969, allocations: 29.7 kB / 0.9547 GB, free: 4.168 MB / 0.7325 GB Notification: Performance of setup shared object (initialization): time 0.0001078/0.297, allocations: 314.8 kB / 0.955 GB, free: 3.852 MB / 0.7325 GB Notification: Performance of preBalanceInitialSystem (initialization): time 4.427e-05/0.297, allocations: 19.98 kB / 0.955 GB, free: 3.832 MB / 0.7325 GB Notification: Performance of partitionIndependentBlocks (initialization): time 5.384e-05/0.2971, allocations: 47.42 kB / 0.9551 GB, free: 3.773 MB / 0.7325 GB Notification: Performance of analyzeInitialSystem (initialization): time 8.488e-05/0.2972, allocations: 67.38 kB / 0.9551 GB, free: 3.695 MB / 0.7325 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.914e-06/0.2972, allocations: 0 / 0.9551 GB, free: 3.695 MB / 0.7325 GB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0001466/0.2974, allocations: 97.52 kB / 0.9552 GB, free: 3.594 MB / 0.7325 GB Notification: Performance of prepare postOptimizeDAE: time 1.473e-05/0.2974, allocations: 11.94 kB / 0.9552 GB, free: 3.582 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.628e-06/0.2974, allocations: 288 / 0.9552 GB, free: 3.582 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.307e-05/0.2974, allocations: 0 / 0.9552 GB, free: 3.582 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.405e-05/0.2975, allocations: 8 kB / 0.9552 GB, free: 3.574 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.215e-06/0.2975, allocations: 7.984 kB / 0.9553 GB, free: 3.566 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.096e-05/0.2976, allocations: 8.031 kB / 0.9553 GB, free: 3.559 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.175e-06/0.2976, allocations: 4 kB / 0.9553 GB, free: 3.555 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 9.016e-05/0.2977, allocations: 133.5 kB / 0.9554 GB, free: 3.418 MB / 0.7325 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.171e-05/0.2977, allocations: 3.906 kB / 0.9554 GB, free: 3.414 MB / 0.7325 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.402e-05/0.2977, allocations: 15.95 kB / 0.9554 GB, free: 3.391 MB / 0.7325 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.054e-06/0.2977, allocations: 0 / 0.9554 GB, free: 3.391 MB / 0.7325 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.883e-06/0.2977, allocations: 0 / 0.9554 GB, free: 3.391 MB / 0.7325 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.146e-06/0.2978, allocations: 3.938 kB / 0.9554 GB, free: 3.387 MB / 0.7325 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003875/0.2981, allocations: 358.4 kB / 0.9558 GB, free: 2.98 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.145e-06/0.2982, allocations: 4 kB / 0.9558 GB, free: 2.977 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.343e-05/0.2982, allocations: 0 / 0.9558 GB, free: 2.977 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.741e-06/0.2982, allocations: 4 kB / 0.9558 GB, free: 2.973 MB / 0.7325 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.884e-06/0.2982, allocations: 0 / 0.9558 GB, free: 2.973 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.248e-06/0.2982, allocations: 7.922 kB / 0.9558 GB, free: 2.965 MB / 0.7325 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.01e-07/0.2982, allocations: 0 / 0.9558 GB, free: 2.965 MB / 0.7325 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001562/0.2984, allocations: 187.5 kB / 0.9559 GB, free: 2.766 MB / 0.7325 GB Notification: Performance of postOpt removeConstants (simulation): time 4.949e-05/0.2984, allocations: 92.94 kB / 0.956 GB, free: 2.656 MB / 0.7325 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.542e-05/0.2985, allocations: 4.062 kB / 0.956 GB, free: 2.652 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.223e-05/0.2986, allocations: 11.94 kB / 0.9561 GB, free: 2.641 MB / 0.7325 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.095e-05/0.2986, allocations: 7.984 kB / 0.9561 GB, free: 2.633 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.98e-06/0.2986, allocations: 0 / 0.9561 GB, free: 2.633 MB / 0.7325 GB Notification: Performance of sorting global known variables: time 3.897e-05/0.2987, allocations: 87.27 kB / 0.9561 GB, free: 2.547 MB / 0.7325 GB Notification: Performance of sort global known variables: time 1.4e-07/0.2987, allocations: 0 / 0.9561 GB, free: 2.547 MB / 0.7325 GB Notification: Performance of remove unused functions: time 0.0002263/0.2989, allocations: 12 kB / 0.9562 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 0.0001032/0.299, allocations: 107.2 kB / 0.9563 GB, free: 2.422 MB / 0.7325 GB Notification: Performance of simCode: created initialization part: time 0.0001305/0.2991, allocations: 47.92 kB / 0.9563 GB, free: 2.375 MB / 0.7325 GB Notification: Performance of simCode: created event and clocks part: time 1.854e-06/0.2991, allocations: 0 / 0.9563 GB, free: 2.375 MB / 0.7325 GB Notification: Performance of simCode: created simulation system equations: time 5.686e-05/0.2992, allocations: 31.98 kB / 0.9563 GB, free: 2.344 MB / 0.7325 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002661/0.2995, allocations: 4 kB / 0.9563 GB, free: 2.34 MB / 0.7325 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003904/0.2999, allocations: 169.6 kB / 0.9565 GB, free: 2.148 MB / 0.7325 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002501/0.3001, allocations: 0.6844 MB / 0.9572 GB, free: 1.438 MB / 0.7325 GB Notification: Performance of simCode: alias equations: time 2.76e-05/0.3002, allocations: 7.984 kB / 0.9572 GB, free: 1.43 MB / 0.7325 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.762e-05/0.3002, allocations: 11.44 kB / 0.9572 GB, free: 1.422 MB / 0.7325 GB Notification: Performance of SimCode: time 2.71e-07/0.3002, allocations: 0 / 0.9572 GB, free: 1.422 MB / 0.7325 GB Notification: Performance of Templates: time 0.002845/0.3031, allocations: 0.7757 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 cvode -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