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 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.Examples.OffTimer,fileNamePrefix="Buildings_latest_Buildings_Controls_Continuous_Examples_OffTimer",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.Continuous.Examples.OffTimer,fileNamePrefix="Buildings_latest_Buildings_Controls_Continuous_Examples_OffTimer",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.001204/0.001204, 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.001191/0.001191, allocations: 191.6 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.228/1.228, allocations: 222.9 MB / 240.2 MB, free: 4.406 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.52/2.52, allocations: 469.4 MB / 0.742 GB, free: 7.688 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001145/0.001145, allocations: 62.09 kB / 0.9083 GB, free: 34.45 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2417/0.2429, allocations: 159.1 MB / 1.064 GB, free: 14.5 MB / 0.8262 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.Continuous.Examples.OffTimer): time 0.002463/0.2454, allocations: 1.471 MB / 1.065 GB, free: 13.01 MB / 0.8262 GB Notification: Performance of NFInst.instExpressions: time 0.0006222/0.246, allocations: 432.6 kB / 1.066 GB, free: 12.58 MB / 0.8262 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.542e-05/0.2461, allocations: 0 / 1.066 GB, free: 12.58 MB / 0.8262 GB Notification: Performance of NFTyping.typeComponents: time 2.455e-05/0.2461, allocations: 3.938 kB / 1.066 GB, free: 12.58 MB / 0.8262 GB Notification: Performance of NFTyping.typeBindings: time 6.787e-05/0.2462, allocations: 19.86 kB / 1.066 GB, free: 12.56 MB / 0.8262 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001283/0.2463, allocations: 27.91 kB / 1.066 GB, free: 12.53 MB / 0.8262 GB Notification: Performance of NFFlatten.flatten: time 7.017e-05/0.2464, allocations: 51.8 kB / 1.066 GB, free: 12.48 MB / 0.8262 GB Notification: Performance of NFFlatten.resolveConnections: time 9.046e-05/0.2465, allocations: 11.98 kB / 1.066 GB, free: 12.47 MB / 0.8262 GB Notification: Performance of NFEvalConstants.evaluate: time 4.439e-05/0.2466, allocations: 19.98 kB / 1.066 GB, free: 12.45 MB / 0.8262 GB Notification: Performance of NFSimplifyModel.simplify: time 5.281e-05/0.2466, allocations: 27.84 kB / 1.066 GB, free: 12.42 MB / 0.8262 GB Notification: Performance of NFPackage.collectConstants: time 1.612e-05/0.2466, allocations: 4 kB / 1.066 GB, free: 12.42 MB / 0.8262 GB Notification: Performance of NFFlatten.collectFunctions: time 1.156e-05/0.2467, allocations: 4 kB / 1.066 GB, free: 12.41 MB / 0.8262 GB Notification: Performance of NFScalarize.scalarize: time 1.822e-05/0.2467, allocations: 7.984 kB / 1.066 GB, free: 12.41 MB / 0.8262 GB Notification: Performance of NFVerifyModel.verify: time 4.293e-05/0.2467, allocations: 23.88 kB / 1.066 GB, free: 12.38 MB / 0.8262 GB Notification: Performance of NFConvertDAE.convert: time 8.26e-05/0.2468, allocations: 48.14 kB / 1.066 GB, free: 12.34 MB / 0.8262 GB Notification: Performance of FrontEnd - DAE generated: time 3.306e-06/0.2468, allocations: 4 kB / 1.066 GB, free: 12.33 MB / 0.8262 GB Notification: Performance of FrontEnd: time 1.022e-06/0.2468, allocations: 0 / 1.066 GB, free: 12.33 MB / 0.8262 GB Notification: Performance of Transformations before backend: time 4.438e-06/0.2468, allocations: 0 / 1.066 GB, free: 12.33 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.0004346/0.2473, allocations: 359.4 kB / 1.066 GB, free: 11.93 MB / 0.8262 GB Notification: Performance of prepare preOptimizeDAE: time 3.228e-05/0.2473, allocations: 12.03 kB / 1.066 GB, free: 11.92 MB / 0.8262 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.991e-05/0.2474, allocations: 30.75 kB / 1.066 GB, free: 11.88 MB / 0.8262 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.067e-05/0.2474, allocations: 8.844 kB / 1.066 GB, free: 11.88 MB / 0.8262 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001109/0.2475, allocations: 180.2 kB / 1.066 GB, free: 11.66 MB / 0.8262 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.287e-06/0.2475, allocations: 4.375 kB / 1.066 GB, free: 11.66 MB / 0.8262 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.298e-05/0.2475, allocations: 4.375 kB / 1.066 GB, free: 11.65 MB / 0.8262 GB Notification: Performance of preOpt clockPartitioning (simulation): time 9.374e-05/0.2476, allocations: 57.81 kB / 1.066 GB, free: 11.59 MB / 0.8262 GB Notification: Performance of preOpt findStateOrder (simulation): time 5.631e-06/0.2476, allocations: 0 / 1.066 GB, free: 11.59 MB / 0.8262 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.049e-05/0.2477, allocations: 7.984 kB / 1.066 GB, free: 11.58 MB / 0.8262 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.657e-06/0.2477, allocations: 0 / 1.066 GB, free: 11.58 MB / 0.8262 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.554e-05/0.2477, allocations: 31.91 kB / 1.066 GB, free: 11.55 MB / 0.8262 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000413/0.2481, allocations: 300.7 kB / 1.067 GB, free: 11.21 MB / 0.8262 GB Notification: Performance of preOpt comSubExp (simulation): time 9.168e-05/0.2482, allocations: 58.66 kB / 1.067 GB, free: 11.14 MB / 0.8262 GB Notification: Performance of preOpt resolveLoops (simulation): time 4.006e-05/0.2483, allocations: 28.88 kB / 1.067 GB, free: 11.11 MB / 0.8262 GB Notification: Performance of preOpt evalFunc (simulation): time 8.065e-06/0.2483, allocations: 0 / 1.067 GB, free: 11.11 MB / 0.8262 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000154/0.2485, allocations: 67.39 kB / 1.067 GB, free: 11.03 MB / 0.8262 GB Notification: Performance of pre-optimization done (n=9): time 2.685e-06/0.2485, allocations: 7.938 kB / 1.067 GB, free: 11.02 MB / 0.8262 GB Notification: Performance of matching and sorting (n=9): time 0.0002058/0.2487, allocations: 101.5 kB / 1.067 GB, free: 10.92 MB / 0.8262 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.781e-05/0.2487, allocations: 55.41 kB / 1.067 GB, free: 10.85 MB / 0.8262 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.208e-05/0.2488, allocations: 113.7 kB / 1.067 GB, free: 10.73 MB / 0.8262 GB Notification: Performance of collectPreVariables (initialization): time 1.791e-05/0.2488, allocations: 29.7 kB / 1.067 GB, free: 10.7 MB / 0.8262 GB Notification: Performance of collectInitialEqns (initialization): time 3.682e-05/0.2489, allocations: 84.14 kB / 1.067 GB, free: 10.61 MB / 0.8262 GB Notification: Performance of collectInitialBindings (initialization): time 2.63e-05/0.2489, allocations: 31.62 kB / 1.067 GB, free: 10.58 MB / 0.8262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.888e-05/0.249, allocations: 25.72 kB / 1.067 GB, free: 10.55 MB / 0.8262 GB Notification: Performance of setup shared object (initialization): time 9.53e-05/0.2491, allocations: 322.8 kB / 1.068 GB, free: 10.22 MB / 0.8262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 3.573e-05/0.2491, allocations: 16 kB / 1.068 GB, free: 10.21 MB / 0.8262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 4.586e-05/0.2491, allocations: 43.42 kB / 1.068 GB, free: 10.15 MB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization): time 7.906e-05/0.2492, allocations: 67.36 kB / 1.068 GB, free: 10.07 MB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.793e-06/0.2492, allocations: 0 / 1.068 GB, free: 10.07 MB / 0.8262 GB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0001273/0.2494, allocations: 97.61 kB / 1.068 GB, free: 9.973 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 1.37e-05/0.2494, allocations: 10.03 kB / 1.068 GB, free: 9.965 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.499e-06/0.2494, allocations: 0 / 1.068 GB, free: 9.965 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.221e-05/0.2494, allocations: 0 / 1.068 GB, free: 9.965 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.585e-05/0.2495, allocations: 11.94 kB / 1.068 GB, free: 9.953 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.813e-06/0.2495, allocations: 4 kB / 1.068 GB, free: 9.949 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.298e-05/0.2496, allocations: 11.89 kB / 1.068 GB, free: 9.938 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.157e-06/0.2496, allocations: 7.938 kB / 1.068 GB, free: 9.93 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 8.068e-05/0.2497, allocations: 123.5 kB / 1.068 GB, free: 9.801 MB / 0.8262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.202e-05/0.2497, allocations: 4 kB / 1.068 GB, free: 9.797 MB / 0.8262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.044e-05/0.2497, allocations: 11.95 kB / 1.068 GB, free: 9.785 MB / 0.8262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.633e-06/0.2497, allocations: 0 / 1.068 GB, free: 9.785 MB / 0.8262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.068e-06/0.2497, allocations: 0 / 1.068 GB, free: 9.785 MB / 0.8262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.339e-06/0.2497, allocations: 3.984 kB / 1.068 GB, free: 9.781 MB / 0.8262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003537/0.2501, allocations: 362.7 kB / 1.068 GB, free: 9.371 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.252e-06/0.2501, allocations: 0 / 1.068 GB, free: 9.371 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.712e-05/0.2501, allocations: 4 kB / 1.068 GB, free: 9.367 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.324e-06/0.2501, allocations: 7.938 kB / 1.068 GB, free: 9.359 MB / 0.8262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.584e-06/0.2502, allocations: 96 / 1.068 GB, free: 9.359 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.67e-06/0.2502, allocations: 15.92 kB / 1.068 GB, free: 9.344 MB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.062e-06/0.2502, allocations: 0 / 1.068 GB, free: 9.344 MB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001438/0.2503, allocations: 179.5 kB / 1.069 GB, free: 9.152 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 4.279e-05/0.2504, allocations: 88.95 kB / 1.069 GB, free: 9.047 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.43e-05/0.2504, allocations: 0 / 1.069 GB, free: 9.047 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.794e-05/0.2505, allocations: 19.92 kB / 1.069 GB, free: 9.027 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.014e-05/0.2505, allocations: 7.984 kB / 1.069 GB, free: 9.02 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.07e-06/0.2505, allocations: 0 / 1.069 GB, free: 9.02 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 3.681e-05/0.2506, allocations: 83.28 kB / 1.069 GB, free: 8.938 MB / 0.8262 GB Notification: Performance of sort global known variables: time 1.2e-07/0.2506, allocations: 4 kB / 1.069 GB, free: 8.934 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.0002215/0.2508, allocations: 8 kB / 1.069 GB, free: 8.926 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.000386/0.2512, allocations: 0.7207 MB / 1.069 GB, free: 8.18 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.0001353/0.2514, allocations: 59.84 kB / 1.07 GB, free: 8.121 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 1.873e-06/0.2514, allocations: 0 / 1.07 GB, free: 8.121 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 4.762e-05/0.2514, allocations: 20 kB / 1.07 GB, free: 8.102 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002545/0.2517, allocations: 20.3 kB / 1.07 GB, free: 8.082 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001111/0.2528, allocations: 1.368 MB / 1.071 GB, free: 6.617 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001914/0.253, allocations: 0.6846 MB / 1.072 GB, free: 5.906 MB / 0.8262 GB Notification: Performance of simCode: alias equations: time 2.823e-05/0.253, allocations: 11.98 kB / 1.072 GB, free: 5.895 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.091e-05/0.2531, allocations: 15.44 kB / 1.072 GB, free: 5.879 MB / 0.8262 GB Notification: Performance of SimCode: time 2e-07/0.2531, allocations: 0 / 1.072 GB, free: 5.879 MB / 0.8262 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01415/0.2672, allocations: 1.732 MB / 1.073 GB, free: 4.219 MB / 0.8262 GB Notification: Performance of buildModelFMU: Generate platform static: time 6.396/6.663, allocations: 6.125 kB / 1.073 GB, free: 4.215 MB / 0.8262 GB (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 & python3 -m fmpy simulate --output-file Buildings_latest_Buildings.Controls.Continuous.Examples.OffTimer_res.csv --start-time 0 --stop-time 1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0004 Buildings_latest_Buildings_Controls_Continuous_Examples_OffTimer.fmu > Buildings_latest_Buildings.Controls.Continuous.Examples.OffTimer.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Controls.Continuous.Examples.OffTimer_res.csv","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Controls_Continuous_Examples_OffTimer.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Controls.Continuous.Examples.OffTimer.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches