Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_12_Buildings.Controls.Continuous.Validation.OffTimerNonZeroStart.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001673/0.001673, allocations: 103.6 kB / 18.95 MB, free: 2.66 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.002338/0.002338, allocations: 215.7 kB / 22.25 MB, free: 5.258 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.526/1.526, allocations: 230.6 MB / 256 MB, free: 7.789 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.1-maint.12.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.1-maint.12.x/package.mo): time 3.115/3.115, allocations: 0.49 GB / 0.7951 GB, free: 35.55 MB / 0.6231 GB " [Timeout remaining time 177] Using package Buildings with version 12.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.1-maint.12.x/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Buildings.Controls.Continuous.Validation.OffTimerNonZeroStart,fileNamePrefix="Buildings_12_Buildings_Controls_Continuous_Validation_OffTimerNonZeroStart",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.Continuous.Validation.OffTimerNonZeroStart,fileNamePrefix="Buildings_12_Buildings_Controls_Continuous_Validation_OffTimerNonZeroStart",fmuType="me",version="2.0",platforms={"static"}) [Timeout 300] "Notification: Buildings requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.002059/0.002059, allocations: 72.03 kB / 1.154 GB, free: 25.42 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3269/0.329, allocations: 176.1 MB / 1.326 GB, free: 1.516 MB / 1.014 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.Continuous.Validation.OffTimerNonZeroStart): time 0.002725/0.3317, allocations: 1.495 MB / 1.327 GB, free: 16 kB / 1.014 GB Notification: Performance of NFInst.instExpressions: time 0.0008012/0.3325, allocations: 454.9 kB / 1.328 GB, free: 15.57 MB / 1.029 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.869e-05/0.3325, allocations: 0 / 1.328 GB, free: 15.57 MB / 1.029 GB Notification: Performance of NFTyping.typeComponents: time 3.062e-05/0.3326, allocations: 3.938 kB / 1.328 GB, free: 15.56 MB / 1.029 GB Notification: Performance of NFTyping.typeBindings: time 7.635e-05/0.3326, allocations: 7.922 kB / 1.328 GB, free: 15.55 MB / 1.029 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001393/0.3328, allocations: 23.92 kB / 1.328 GB, free: 15.53 MB / 1.029 GB Notification: Performance of NFFlatten.flatten: time 8.583e-05/0.3329, allocations: 51.84 kB / 1.328 GB, free: 15.48 MB / 1.029 GB Notification: Performance of NFFlatten.resolveConnections: time 9.529e-05/0.333, allocations: 15.98 kB / 1.328 GB, free: 15.46 MB / 1.029 GB Notification: Performance of NFEvalConstants.evaluate: time 5.44e-05/0.333, allocations: 23.92 kB / 1.328 GB, free: 15.44 MB / 1.029 GB Notification: Performance of NFSimplifyModel.simplify: time 5.967e-05/0.3331, allocations: 23.86 kB / 1.328 GB, free: 15.42 MB / 1.029 GB Notification: Performance of NFPackage.collectConstants: time 1.685e-05/0.3331, allocations: 4 kB / 1.328 GB, free: 15.41 MB / 1.029 GB Notification: Performance of NFFlatten.collectFunctions: time 1.167e-05/0.3331, allocations: 4 kB / 1.328 GB, free: 15.41 MB / 1.029 GB Notification: Performance of NFScalarize.scalarize: time 2.01e-05/0.3331, allocations: 7.984 kB / 1.328 GB, free: 15.4 MB / 1.029 GB Notification: Performance of NFVerifyModel.verify: time 4.455e-05/0.3332, allocations: 23.92 kB / 1.328 GB, free: 15.38 MB / 1.029 GB Notification: Performance of NFConvertDAE.convert: time 0.0001006/0.3333, allocations: 51.97 kB / 1.328 GB, free: 15.33 MB / 1.029 GB Notification: Performance of FrontEnd - DAE generated: time 3.967e-06/0.3333, allocations: 0 / 1.328 GB, free: 15.33 MB / 1.029 GB Notification: Performance of FrontEnd: time 1.513e-06/0.3333, allocations: 0 / 1.328 GB, free: 15.33 MB / 1.029 GB Notification: Performance of Transformations before backend: time 4.078e-06/0.3333, allocations: 0 / 1.328 GB, free: 15.33 MB / 1.029 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.00048/0.3338, allocations: 294.1 kB / 1.328 GB, free: 15.01 MB / 1.029 GB Notification: Performance of prepare preOptimizeDAE: time 3.668e-05/0.3338, allocations: 8.031 kB / 1.328 GB, free: 15 MB / 1.029 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.182e-05/0.3338, allocations: 38.75 kB / 1.328 GB, free: 14.96 MB / 1.029 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.759e-05/0.3339, allocations: 4.891 kB / 1.328 GB, free: 14.95 MB / 1.029 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000117/0.334, allocations: 114.5 kB / 1.328 GB, free: 14.82 MB / 1.029 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.499e-05/0.334, allocations: 8.375 kB / 1.328 GB, free: 14.81 MB / 1.029 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.149e-05/0.334, allocations: 4.375 kB / 1.328 GB, free: 14.8 MB / 1.029 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001121/0.3341, allocations: 57.8 kB / 1.328 GB, free: 14.74 MB / 1.029 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.253e-06/0.3341, allocations: 0 / 1.328 GB, free: 14.74 MB / 1.029 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.067e-05/0.3341, allocations: 4 kB / 1.328 GB, free: 14.74 MB / 1.029 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.238e-06/0.3341, allocations: 4 kB / 1.328 GB, free: 14.73 MB / 1.029 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.795e-05/0.3342, allocations: 23.98 kB / 1.329 GB, free: 14.71 MB / 1.029 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004551/0.3347, allocations: 259.8 kB / 1.329 GB, free: 14.41 MB / 1.029 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001051/0.3348, allocations: 54.66 kB / 1.329 GB, free: 14.35 MB / 1.029 GB Notification: Performance of preOpt resolveLoops (simulation): time 4.025e-05/0.3348, allocations: 20.84 kB / 1.329 GB, free: 14.33 MB / 1.029 GB Notification: Performance of preOpt evalFunc (simulation): time 9.388e-06/0.3348, allocations: 4.031 kB / 1.329 GB, free: 14.32 MB / 1.029 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001633/0.335, allocations: 75.38 kB / 1.329 GB, free: 14.24 MB / 1.029 GB Notification: Performance of pre-optimization done (n=9): time 1.272e-06/0.335, allocations: 4 kB / 1.329 GB, free: 14.23 MB / 1.029 GB Notification: Performance of matching and sorting (n=9): time 0.0002077/0.3352, allocations: 97.86 kB / 1.329 GB, free: 14.13 MB / 1.029 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.769e-05/0.3352, allocations: 59.39 kB / 1.329 GB, free: 14.06 MB / 1.029 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.914e-05/0.3353, allocations: 101.9 kB / 1.329 GB, free: 13.95 MB / 1.029 GB Notification: Performance of collectPreVariables (initialization): time 2.07e-05/0.3353, allocations: 29.8 kB / 1.329 GB, free: 13.92 MB / 1.029 GB Notification: Performance of collectInitialEqns (initialization): time 5.584e-05/0.3354, allocations: 100 kB / 1.329 GB, free: 13.82 MB / 1.029 GB Notification: Performance of collectInitialBindings (initialization): time 2.386e-05/0.3354, allocations: 23.78 kB / 1.329 GB, free: 13.79 MB / 1.029 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.713e-05/0.3355, allocations: 33.7 kB / 1.329 GB, free: 13.75 MB / 1.029 GB Notification: Performance of setup shared object (initialization): time 0.0001264/0.3356, allocations: 318.8 kB / 1.33 GB, free: 13.43 MB / 1.029 GB Notification: Performance of preBalanceInitialSystem (initialization): time 3.772e-05/0.3356, allocations: 19.98 kB / 1.33 GB, free: 13.41 MB / 1.029 GB Notification: Performance of partitionIndependentBlocks (initialization): time 6.126e-05/0.3357, allocations: 55.3 kB / 1.33 GB, free: 13.35 MB / 1.029 GB Notification: Performance of analyzeInitialSystem (initialization): time 9.188e-05/0.3358, allocations: 67.61 kB / 1.33 GB, free: 13.27 MB / 1.029 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.713e-06/0.3358, allocations: 3.938 kB / 1.33 GB, free: 13.27 MB / 1.029 GB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0001416/0.3359, allocations: 97.56 kB / 1.33 GB, free: 13.16 MB / 1.029 GB Notification: Performance of prepare postOptimizeDAE: time 1.43e-05/0.3359, allocations: 4 kB / 1.33 GB, free: 13.16 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.931e-06/0.3359, allocations: 4 kB / 1.33 GB, free: 13.16 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.174e-05/0.336, allocations: 0 / 1.33 GB, free: 13.16 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.908e-05/0.336, allocations: 11.98 kB / 1.33 GB, free: 13.14 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.295e-06/0.336, allocations: 7.984 kB / 1.33 GB, free: 13.14 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.331e-05/0.3361, allocations: 7.953 kB / 1.33 GB, free: 13.13 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.675e-06/0.3361, allocations: 11.91 kB / 1.33 GB, free: 13.12 MB / 1.029 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.712e-05/0.3362, allocations: 122.4 kB / 1.33 GB, free: 12.99 MB / 1.029 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.16e-05/0.3362, allocations: 3.984 kB / 1.33 GB, free: 12.98 MB / 1.029 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.502e-05/0.3362, allocations: 12.06 kB / 1.33 GB, free: 12.96 MB / 1.029 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.803e-06/0.3362, allocations: 0 / 1.33 GB, free: 12.96 MB / 1.029 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.546e-06/0.3362, allocations: 0 / 1.33 GB, free: 12.96 MB / 1.029 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.635e-06/0.3362, allocations: 0 / 1.33 GB, free: 12.96 MB / 1.029 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003917/0.3366, allocations: 333.4 kB / 1.33 GB, free: 12.59 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.263e-06/0.3366, allocations: 0 / 1.33 GB, free: 12.59 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.595e-05/0.3367, allocations: 8 kB / 1.33 GB, free: 12.58 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.774e-06/0.3367, allocations: 0 / 1.33 GB, free: 12.58 MB / 1.029 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.183e-06/0.3367, allocations: 0 / 1.33 GB, free: 12.58 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.613e-06/0.3367, allocations: 7.875 kB / 1.33 GB, free: 12.57 MB / 1.029 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.92e-07/0.3367, allocations: 0 / 1.33 GB, free: 12.57 MB / 1.029 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001712/0.3368, allocations: 183.6 kB / 1.331 GB, free: 12.38 MB / 1.029 GB Notification: Performance of postOpt removeConstants (simulation): time 1.054e-05/0.3369, allocations: 7.891 kB / 1.331 GB, free: 12.37 MB / 1.029 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.013e-05/0.3369, allocations: 12.05 kB / 1.331 GB, free: 12.36 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.383e-05/0.337, allocations: 15.88 kB / 1.331 GB, free: 12.34 MB / 1.029 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.91e-05/0.337, allocations: 3.984 kB / 1.331 GB, free: 12.34 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.452e-06/0.337, allocations: 4 kB / 1.331 GB, free: 12.34 MB / 1.029 GB Notification: Performance of sorting global known variables: time 4.829e-05/0.3371, allocations: 91.27 kB / 1.331 GB, free: 12.25 MB / 1.029 GB Notification: Performance of sort global known variables: time 6e-08/0.3371, allocations: 0 / 1.331 GB, free: 12.25 MB / 1.029 GB Notification: Performance of remove unused functions: time 0.0002267/0.3373, allocations: 12 kB / 1.331 GB, free: 12.23 MB / 1.029 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.000465/0.3377, allocations: 0.7163 MB / 1.331 GB, free: 11.49 MB / 1.029 GB Notification: Performance of simCode: created initialization part: time 0.0001289/0.3379, allocations: 43.92 kB / 1.331 GB, free: 11.45 MB / 1.029 GB Notification: Performance of simCode: created event and clocks part: time 3.817e-06/0.3379, allocations: 4 kB / 1.331 GB, free: 11.45 MB / 1.029 GB Notification: Performance of simCode: created simulation system equations: time 5.038e-05/0.3379, allocations: 23.92 kB / 1.331 GB, free: 11.42 MB / 1.029 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002828/0.3382, allocations: 16.36 kB / 1.331 GB, free: 11.41 MB / 1.029 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001263/0.3395, allocations: 1.359 MB / 1.333 GB, free: 9.953 MB / 1.029 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 6.412e-05/0.3395, allocations: 71.33 kB / 1.333 GB, free: 9.863 MB / 1.029 GB Notification: Performance of simCode: alias equations: time 2.705e-05/0.3396, allocations: 4 kB / 1.333 GB, free: 9.859 MB / 1.029 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.595e-05/0.3396, allocations: 19.75 kB / 1.333 GB, free: 9.84 MB / 1.029 GB Notification: Performance of SimCode: time 3.91e-07/0.3396, allocations: 0 / 1.333 GB, free: 9.84 MB / 1.029 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02734/0.367, allocations: 2.363 MB / 1.335 GB, free: 7.625 MB / 1.029 GB Notification: Performance of buildModelFMU: Generate platform static: time 10.71/11.08, allocations: 5.094 kB / 1.335 GB, free: 7.621 MB / 1.029 GB " [Timeout remaining time 289] (rm -f Buildings_12_Buildings.Controls.Continuous.Validation.OffTimerNonZeroStart.pipe ; mkfifo Buildings_12_Buildings.Controls.Continuous.Validation.OffTimerNonZeroStart.pipe ; head -c 1048576 < Buildings_12_Buildings.Controls.Continuous.Validation.OffTimerNonZeroStart.pipe >> ../files/Buildings_12_Buildings.Controls.Continuous.Validation.OffTimerNonZeroStart.sim & python3 -m fmpy simulate --output-file Buildings_12_Buildings.Controls.Continuous.Validation.OffTimerNonZeroStart_res.csv --start-time -1 --stop-time 0 --timeout 400 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0004 Buildings_12_Buildings_Controls_Continuous_Validation_OffTimerNonZeroStart.fmu > Buildings_12_Buildings.Controls.Continuous.Validation.OffTimerNonZeroStart.pipe 2>&1) [Timeout 420.0] diffSimulationResults("Buildings_12_Buildings.Controls.Continuous.Validation.OffTimerNonZeroStart_res.csv","/mnt/ReferenceFiles/Buildings/csv/maint_12.x/Buildings_Controls_Continuous_Validation_OffTimerNonZeroStart.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_12_Buildings.Controls.Continuous.Validation.OffTimerNonZeroStart.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 300] "Warning: Resultfile and Reference have different end time points! Reffile[511]=0.000000 File[2518]=0.000400 Error: Could not read variable offTim1.u in file Buildings_12_Buildings.Controls.Continuous.Validation.OffTimerNonZeroStart_res.csv. Warning: Get data of variable offTim1.u from file Buildings_12_Buildings.Controls.Continuous.Validation.OffTimerNonZeroStart_res.csv failed! Error: Could not read variable offTim2.u in file Buildings_12_Buildings.Controls.Continuous.Validation.OffTimerNonZeroStart_res.csv. Warning: Get data of variable offTim2.u from file Buildings_12_Buildings.Controls.Continuous.Validation.OffTimerNonZeroStart_res.csv failed! " [Timeout remaining time 300] Reference file matches [Calling sys.exit(0), Time elapsed: 17.75258311899961]