Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Controls.Continuous.Validation.OffTimerNonZeroStart.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 11.0.1-master/package.mo", uses=false) Using package Buildings with version 11.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-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: "" <> buildModelFMU(Buildings.Controls.Continuous.Validation.OffTimerNonZeroStart,fileNamePrefix="Buildings_latest_Buildings_Controls_Continuous_Validation_OffTimerNonZeroStart",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.Continuous.Validation.OffTimerNonZeroStart,fileNamePrefix="Buildings_latest_Buildings_Controls_Continuous_Validation_OffTimerNonZeroStart",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001251/0.001251, allocations: 108 kB / 15.61 MB, free: 152 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.001304/0.001304, allocations: 195.7 kB / 16.53 MB, free: 6.664 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.216/1.216, allocations: 222.9 MB / 240.2 MB, free: 4.402 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.54/2.54, allocations: 469.4 MB / 0.742 GB, free: 7.742 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001175/0.001175, allocations: 65.12 kB / 0.9082 GB, free: 34.52 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2526/0.2538, allocations: 159.2 MB / 1.064 GB, free: 14.55 MB / 0.8262 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.Continuous.Validation.OffTimerNonZeroStart): time 0.002581/0.2564, allocations: 1.473 MB / 1.065 GB, free: 13.05 MB / 0.8262 GB Notification: Performance of NFInst.instExpressions: time 0.0006859/0.2571, allocations: 440.6 kB / 1.066 GB, free: 12.62 MB / 0.8262 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.275e-05/0.2572, allocations: 0 / 1.066 GB, free: 12.62 MB / 0.8262 GB Notification: Performance of NFTyping.typeComponents: time 3.069e-05/0.2572, allocations: 7.922 kB / 1.066 GB, free: 12.61 MB / 0.8262 GB Notification: Performance of NFTyping.typeBindings: time 7.357e-05/0.2573, allocations: 11.92 kB / 1.066 GB, free: 12.6 MB / 0.8262 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001431/0.2575, allocations: 23.92 kB / 1.066 GB, free: 12.58 MB / 0.8262 GB Notification: Performance of NFFlatten.flatten: time 7.809e-05/0.2576, allocations: 47.91 kB / 1.066 GB, free: 12.53 MB / 0.8262 GB Notification: Performance of NFFlatten.resolveConnections: time 9.792e-05/0.2577, allocations: 11.98 kB / 1.066 GB, free: 12.52 MB / 0.8262 GB Notification: Performance of NFEvalConstants.evaluate: time 5.098e-05/0.2577, allocations: 23.88 kB / 1.066 GB, free: 12.5 MB / 0.8262 GB Notification: Performance of NFSimplifyModel.simplify: time 5.601e-05/0.2578, allocations: 31.83 kB / 1.066 GB, free: 12.46 MB / 0.8262 GB Notification: Performance of NFPackage.collectConstants: time 1.703e-05/0.2578, allocations: 8 kB / 1.066 GB, free: 12.46 MB / 0.8262 GB Notification: Performance of NFFlatten.collectFunctions: time 1.297e-05/0.2578, allocations: 4 kB / 1.066 GB, free: 12.45 MB / 0.8262 GB Notification: Performance of NFScalarize.scalarize: time 1.813e-05/0.2579, allocations: 4 kB / 1.066 GB, free: 12.45 MB / 0.8262 GB Notification: Performance of NFVerifyModel.verify: time 4.9e-05/0.2579, allocations: 31.84 kB / 1.066 GB, free: 12.42 MB / 0.8262 GB Notification: Performance of NFConvertDAE.convert: time 8.683e-05/0.258, allocations: 36.17 kB / 1.066 GB, free: 12.38 MB / 0.8262 GB Notification: Performance of FrontEnd - DAE generated: time 3.457e-06/0.258, allocations: 0 / 1.066 GB, free: 12.38 MB / 0.8262 GB Notification: Performance of FrontEnd: time 1.773e-06/0.258, allocations: 0 / 1.066 GB, free: 12.38 MB / 0.8262 GB Notification: Performance of Transformations before backend: time 4.398e-06/0.258, allocations: 0 / 1.066 GB, free: 12.38 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.0004439/0.2585, allocations: 363.4 kB / 1.066 GB, free: 11.98 MB / 0.8262 GB Notification: Performance of prepare preOptimizeDAE: time 3.632e-05/0.2585, allocations: 15.97 kB / 1.066 GB, free: 11.96 MB / 0.8262 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.293e-05/0.2586, allocations: 38.73 kB / 1.066 GB, free: 11.92 MB / 0.8262 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.769e-05/0.2586, allocations: 8.844 kB / 1.066 GB, free: 11.91 MB / 0.8262 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001101/0.2587, allocations: 172.2 kB / 1.066 GB, free: 11.7 MB / 0.8262 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.408e-05/0.2587, allocations: 8.375 kB / 1.066 GB, free: 11.7 MB / 0.8262 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.389e-05/0.2587, allocations: 4.375 kB / 1.066 GB, free: 11.69 MB / 0.8262 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001043/0.2588, allocations: 57.8 kB / 1.066 GB, free: 11.63 MB / 0.8262 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.164e-06/0.2589, allocations: 8 kB / 1.066 GB, free: 11.62 MB / 0.8262 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.727e-06/0.2589, allocations: 0 / 1.066 GB, free: 11.62 MB / 0.8262 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.288e-06/0.2589, allocations: 0 / 1.066 GB, free: 11.62 MB / 0.8262 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.215e-05/0.259, allocations: 31.92 kB / 1.066 GB, free: 11.59 MB / 0.8262 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004271/0.2594, allocations: 296.7 kB / 1.067 GB, free: 11.25 MB / 0.8262 GB Notification: Performance of preOpt comSubExp (simulation): time 9.751e-05/0.2595, allocations: 58.59 kB / 1.067 GB, free: 11.18 MB / 0.8262 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.815e-05/0.2595, allocations: 24.95 kB / 1.067 GB, free: 11.16 MB / 0.8262 GB Notification: Performance of preOpt evalFunc (simulation): time 1.093e-05/0.2596, allocations: 4 kB / 1.067 GB, free: 11.15 MB / 0.8262 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001561/0.2597, allocations: 71.38 kB / 1.067 GB, free: 11.07 MB / 0.8262 GB Notification: Performance of pre-optimization done (n=9): time 1.273e-06/0.2597, allocations: 0 / 1.067 GB, free: 11.07 MB / 0.8262 GB Notification: Performance of matching and sorting (n=9): time 0.0001963/0.2599, allocations: 97.61 kB / 1.067 GB, free: 10.97 MB / 0.8262 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.495e-05/0.26, allocations: 51.41 kB / 1.067 GB, free: 10.91 MB / 0.8262 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.652e-05/0.26, allocations: 117.7 kB / 1.067 GB, free: 10.78 MB / 0.8262 GB Notification: Performance of collectPreVariables (initialization): time 1.596e-05/0.2601, allocations: 29.7 kB / 1.067 GB, free: 10.75 MB / 0.8262 GB Notification: Performance of collectInitialEqns (initialization): time 3.39e-05/0.2601, allocations: 84.14 kB / 1.067 GB, free: 10.66 MB / 0.8262 GB Notification: Performance of collectInitialBindings (initialization): time 2.6e-05/0.2601, allocations: 28.02 kB / 1.067 GB, free: 10.63 MB / 0.8262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.935e-05/0.2602, allocations: 29.7 kB / 1.067 GB, free: 10.6 MB / 0.8262 GB Notification: Performance of setup shared object (initialization): time 8.254e-05/0.2603, allocations: 322.8 kB / 1.068 GB, free: 10.27 MB / 0.8262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 3.207e-05/0.2603, allocations: 19.94 kB / 1.068 GB, free: 10.25 MB / 0.8262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 4.752e-05/0.2604, allocations: 51.36 kB / 1.068 GB, free: 10.19 MB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization): time 8.103e-05/0.2604, allocations: 71.36 kB / 1.068 GB, free: 10.11 MB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.623e-06/0.2605, allocations: 0 / 1.068 GB, free: 10.11 MB / 0.8262 GB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0001396/0.2606, allocations: 89.8 kB / 1.068 GB, free: 10.02 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 1.201e-05/0.2606, allocations: 4 kB / 1.068 GB, free: 10.01 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.21e-06/0.2606, allocations: 7.984 kB / 1.068 GB, free: 10 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.192e-05/0.2606, allocations: 4.031 kB / 1.068 GB, free: 10 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.396e-05/0.2607, allocations: 8 kB / 1.068 GB, free: 9.992 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.073e-06/0.2607, allocations: 7.938 kB / 1.068 GB, free: 9.984 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.686e-05/0.2608, allocations: 15.89 kB / 1.068 GB, free: 9.969 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.436e-06/0.2608, allocations: 7.938 kB / 1.068 GB, free: 9.961 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 7.812e-05/0.2609, allocations: 113.8 kB / 1.068 GB, free: 9.84 MB / 0.8262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.144e-05/0.2609, allocations: 0 / 1.068 GB, free: 9.84 MB / 0.8262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.793e-05/0.2609, allocations: 11.97 kB / 1.068 GB, free: 9.828 MB / 0.8262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.693e-06/0.2609, allocations: 0 / 1.068 GB, free: 9.828 MB / 0.8262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.379e-06/0.261, allocations: 4 kB / 1.068 GB, free: 9.824 MB / 0.8262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.665e-06/0.261, allocations: 0 / 1.068 GB, free: 9.824 MB / 0.8262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003411/0.2613, allocations: 354.4 kB / 1.068 GB, free: 9.422 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.897e-06/0.2613, allocations: 7.984 kB / 1.068 GB, free: 9.414 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.717e-05/0.2614, allocations: 3.938 kB / 1.068 GB, free: 9.41 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.758e-06/0.2614, allocations: 4 kB / 1.068 GB, free: 9.406 MB / 0.8262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.658e-06/0.2614, allocations: 4 kB / 1.068 GB, free: 9.402 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.805e-06/0.2614, allocations: 7.875 kB / 1.068 GB, free: 9.395 MB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.52e-07/0.2614, allocations: 4 kB / 1.068 GB, free: 9.391 MB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001364/0.2615, allocations: 175.5 kB / 1.069 GB, free: 9.203 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 3.555e-05/0.2616, allocations: 92.95 kB / 1.069 GB, free: 9.094 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.28e-05/0.2616, allocations: 0 / 1.069 GB, free: 9.094 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.283e-05/0.2617, allocations: 11.92 kB / 1.069 GB, free: 9.082 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.816e-05/0.2617, allocations: 4.188 kB / 1.069 GB, free: 9.078 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.926e-06/0.2617, allocations: 7.984 kB / 1.069 GB, free: 9.07 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 3.502e-05/0.2618, allocations: 87.22 kB / 1.069 GB, free: 8.984 MB / 0.8262 GB Notification: Performance of sort global known variables: time 1.2e-07/0.2618, allocations: 0 / 1.069 GB, free: 8.984 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.0002237/0.262, allocations: 16 kB / 1.069 GB, free: 8.969 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.0003647/0.2624, allocations: 0.7164 MB / 1.069 GB, free: 8.23 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.0001243/0.2625, allocations: 59.84 kB / 1.069 GB, free: 8.172 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 1.382e-06/0.2625, allocations: 4.062 kB / 1.07 GB, free: 8.168 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 4.675e-05/0.2626, allocations: 20 kB / 1.07 GB, free: 8.148 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002506/0.2628, allocations: 20.11 kB / 1.07 GB, free: 8.129 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001017/0.2639, allocations: 1.349 MB / 1.071 GB, free: 6.684 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002027/0.2641, allocations: 0.6889 MB / 1.072 GB, free: 5.969 MB / 0.8262 GB Notification: Performance of simCode: alias equations: time 2.645e-05/0.2641, allocations: 4 kB / 1.072 GB, free: 5.965 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.083e-05/0.2642, allocations: 19.44 kB / 1.072 GB, free: 5.945 MB / 0.8262 GB Notification: Performance of SimCode: time 2.3e-07/0.2642, allocations: 0 / 1.072 GB, free: 5.945 MB / 0.8262 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01669/0.2809, allocations: 1.743 MB / 1.073 GB, free: 4.301 MB / 0.8262 GB Notification: Performance of buildModelFMU: Generate platform static: time 6.753/7.034, allocations: 4.844 kB / 1.073 GB, free: 4.301 MB / 0.8262 GB (rm -f Buildings_latest_Buildings.Controls.Continuous.Validation.OffTimerNonZeroStart.pipe ; mkfifo Buildings_latest_Buildings.Controls.Continuous.Validation.OffTimerNonZeroStart.pipe ; head -c 1048576 < Buildings_latest_Buildings.Controls.Continuous.Validation.OffTimerNonZeroStart.pipe >> ../files/Buildings_latest_Buildings.Controls.Continuous.Validation.OffTimerNonZeroStart.sim & python3 -m fmpy simulate --output-file Buildings_latest_Buildings.Controls.Continuous.Validation.OffTimerNonZeroStart_res.csv --start-time -1 --stop-time 0 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0004 Buildings_latest_Buildings_Controls_Continuous_Validation_OffTimerNonZeroStart.fmu > Buildings_latest_Buildings.Controls.Continuous.Validation.OffTimerNonZeroStart.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Controls.Continuous.Validation.OffTimerNonZeroStart_res.csv","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Controls_Continuous_Validation_OffTimerNonZeroStart.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Controls.Continuous.Validation.OffTimerNonZeroStart.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) "Error: Could not read variable offTim1.u in file Buildings_latest_Buildings.Controls.Continuous.Validation.OffTimerNonZeroStart_res.csv. Warning: Get data of variable offTim1.u from file Buildings_latest_Buildings.Controls.Continuous.Validation.OffTimerNonZeroStart_res.csv failed! Error: Could not read variable offTim2.u in file Buildings_latest_Buildings.Controls.Continuous.Validation.OffTimerNonZeroStart_res.csv. Warning: Get data of variable offTim2.u from file Buildings_latest_Buildings.Controls.Continuous.Validation.OffTimerNonZeroStart_res.csv failed! " Variables in the reference:time,offTim1.u,offTim1.y,offTim2.u,offTim2.y Variables in the result:time,offTim1.y,offTim2.y,booleanPulse.period,booleanPulse.startTime,booleanPulse.width