Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredSampler.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.OBC.CDL.Discrete.Validation.TriggeredSampler,fileNamePrefix="Buildings_latest_Buildings_Controls_OBC_CDL_Discrete_Validation_TriggeredSampler",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredSampler,fileNamePrefix="Buildings_latest_Buildings_Controls_OBC_CDL_Discrete_Validation_TriggeredSampler",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.001329/0.001329, 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.00104/0.00104, allocations: 192.6 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.24/1.24, 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.53/2.53, allocations: 469.4 MB / 0.742 GB, free: 7.719 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001209/0.001209, allocations: 66.75 kB / 0.9083 GB, free: 34.51 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2394/0.2407, allocations: 159.1 MB / 1.064 GB, free: 14.51 MB / 0.8262 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredSampler): time 0.001932/0.2426, allocations: 0.7463 MB / 1.064 GB, free: 13.76 MB / 0.8262 GB Notification: Performance of NFInst.instExpressions: time 0.001281/0.2439, allocations: 1.16 MB / 1.066 GB, free: 12.59 MB / 0.8262 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.746e-05/0.244, allocations: 3.938 kB / 1.066 GB, free: 12.58 MB / 0.8262 GB Notification: Performance of NFTyping.typeComponents: time 2.918e-05/0.2441, allocations: 11.94 kB / 1.066 GB, free: 12.57 MB / 0.8262 GB Notification: Performance of NFTyping.typeBindings: time 6.812e-05/0.2441, allocations: 15.84 kB / 1.066 GB, free: 12.55 MB / 0.8262 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004552/0.2446, allocations: 132.7 kB / 1.066 GB, free: 12.43 MB / 0.8262 GB Notification: Performance of NFFlatten.flatten: time 0.0001449/0.2448, allocations: 131.8 kB / 1.066 GB, free: 12.3 MB / 0.8262 GB Notification: Performance of NFFlatten.resolveConnections: time 9.836e-05/0.2449, allocations: 20.17 kB / 1.066 GB, free: 12.28 MB / 0.8262 GB Notification: Performance of NFEvalConstants.evaluate: time 8.938e-05/0.245, allocations: 51.83 kB / 1.066 GB, free: 12.23 MB / 0.8262 GB Notification: Performance of NFSimplifyModel.simplify: time 7.718e-05/0.245, allocations: 43.83 kB / 1.066 GB, free: 12.18 MB / 0.8262 GB Notification: Performance of NFPackage.collectConstants: time 2.698e-05/0.2451, allocations: 12 kB / 1.066 GB, free: 12.17 MB / 0.8262 GB Notification: Performance of NFFlatten.collectFunctions: time 6.944e-05/0.2452, allocations: 23.98 kB / 1.066 GB, free: 12.15 MB / 0.8262 GB Notification: Performance of NFScalarize.scalarize: time 2.367e-05/0.2452, allocations: 19.98 kB / 1.066 GB, free: 12.13 MB / 0.8262 GB Notification: Performance of NFVerifyModel.verify: time 6.92e-05/0.2453, allocations: 47.78 kB / 1.066 GB, free: 12.08 MB / 0.8262 GB Notification: Performance of NFConvertDAE.convert: time 0.00017/0.2454, allocations: 115.7 kB / 1.066 GB, free: 11.97 MB / 0.8262 GB Notification: Performance of FrontEnd - DAE generated: time 3.447e-06/0.2454, allocations: 0 / 1.066 GB, free: 11.97 MB / 0.8262 GB Notification: Performance of FrontEnd: time 1.462e-06/0.2455, allocations: 0 / 1.066 GB, free: 11.97 MB / 0.8262 GB Notification: Performance of Transformations before backend: time 6.292e-06/0.2455, allocations: 0 / 1.066 GB, free: 11.97 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.0005254/0.246, allocations: 421.1 kB / 1.067 GB, free: 11.5 MB / 0.8262 GB Notification: Performance of prepare preOptimizeDAE: time 3.363e-05/0.246, allocations: 8.031 kB / 1.067 GB, free: 11.5 MB / 0.8262 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.142e-05/0.2461, allocations: 38.73 kB / 1.067 GB, free: 11.45 MB / 0.8262 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.432e-05/0.2461, allocations: 16.84 kB / 1.067 GB, free: 11.43 MB / 0.8262 GB Notification: Performance of preOpt evaluateParameters (simulation): time 9.395e-05/0.2462, allocations: 176.2 kB / 1.067 GB, free: 11.22 MB / 0.8262 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.424e-05/0.2462, allocations: 4.375 kB / 1.067 GB, free: 11.22 MB / 0.8262 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.401e-05/0.2463, allocations: 12.38 kB / 1.067 GB, free: 11.21 MB / 0.8262 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001888/0.2465, allocations: 73.95 kB / 1.067 GB, free: 11.13 MB / 0.8262 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.273e-06/0.2465, allocations: 3.984 kB / 1.067 GB, free: 11.12 MB / 0.8262 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.063e-05/0.2465, allocations: 4 kB / 1.067 GB, free: 11.12 MB / 0.8262 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.39e-06/0.2465, allocations: 4 kB / 1.067 GB, free: 11.12 MB / 0.8262 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000183/0.2467, allocations: 47.95 kB / 1.067 GB, free: 11.07 MB / 0.8262 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004435/0.2471, allocations: 348.6 kB / 1.067 GB, free: 10.68 MB / 0.8262 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001581/0.2473, allocations: 58.55 kB / 1.067 GB, free: 10.61 MB / 0.8262 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.671e-05/0.2474, allocations: 36.95 kB / 1.067 GB, free: 10.57 MB / 0.8262 GB Notification: Performance of preOpt evalFunc (simulation): time 1.929e-05/0.2475, allocations: 4.031 kB / 1.067 GB, free: 10.57 MB / 0.8262 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002085/0.2477, allocations: 91.27 kB / 1.067 GB, free: 10.47 MB / 0.8262 GB Notification: Performance of pre-optimization done (n=8): time 1.673e-06/0.2477, allocations: 0 / 1.067 GB, free: 10.47 MB / 0.8262 GB Notification: Performance of matching and sorting (n=8): time 0.0004133/0.2481, allocations: 141.6 kB / 1.068 GB, free: 10.32 MB / 0.8262 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.362e-05/0.2481, allocations: 55.41 kB / 1.068 GB, free: 10.26 MB / 0.8262 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.442e-05/0.2482, allocations: 125.7 kB / 1.068 GB, free: 10.12 MB / 0.8262 GB Notification: Performance of collectPreVariables (initialization): time 2.609e-05/0.2483, allocations: 33.64 kB / 1.068 GB, free: 10.09 MB / 0.8262 GB Notification: Performance of collectInitialEqns (initialization): time 5.05e-05/0.2483, allocations: 96.12 kB / 1.068 GB, free: 9.988 MB / 0.8262 GB Notification: Performance of collectInitialBindings (initialization): time 2.412e-05/0.2483, allocations: 27.64 kB / 1.068 GB, free: 9.961 MB / 0.8262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.667e-05/0.2484, allocations: 33.7 kB / 1.068 GB, free: 9.922 MB / 0.8262 GB Notification: Performance of setup shared object (initialization): time 8.565e-05/0.2485, allocations: 326.8 kB / 1.068 GB, free: 9.594 MB / 0.8262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001525/0.2487, allocations: 51.97 kB / 1.068 GB, free: 9.543 MB / 0.8262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001669/0.2488, allocations: 97.05 kB / 1.068 GB, free: 9.43 MB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002656/0.2491, allocations: 150.7 kB / 1.069 GB, free: 9.258 MB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.244e-06/0.2491, allocations: 0 / 1.069 GB, free: 9.258 MB / 0.8262 GB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0004264/0.2496, allocations: 211.2 kB / 1.069 GB, free: 9.039 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 3.316e-05/0.2496, allocations: 33.7 kB / 1.069 GB, free: 9 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.979e-06/0.2496, allocations: 0 / 1.069 GB, free: 9 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.076e-05/0.2496, allocations: 4 kB / 1.069 GB, free: 8.996 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001037/0.2497, allocations: 19.92 kB / 1.069 GB, free: 8.977 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.5e-06/0.2497, allocations: 320 / 1.069 GB, free: 8.977 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002214/0.25, allocations: 39.98 kB / 1.069 GB, free: 8.938 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.519e-05/0.25, allocations: 19.92 kB / 1.069 GB, free: 8.918 MB / 0.8262 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 6 * Number of states: 0 () * Number of discrete variables: 9 (triSam1.y,$PRE.triSam1.y,triSam.y,$PRE.triSam.y,booPul.y,$PRE.booPul.y,$whenCondition3,$whenCondition1,$whenCondition2) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (11): * Single equations (assignments): 10 * Array equations: 0 * Algorithm blocks: 1 * 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.098e-05/0.2501, allocations: 119.7 kB / 1.069 GB, free: 8.793 MB / 0.8262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.564e-05/0.2501, allocations: 7.906 kB / 1.069 GB, free: 8.785 MB / 0.8262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000284/0.2504, allocations: 129.9 kB / 1.069 GB, free: 8.652 MB / 0.8262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.275e-06/0.2504, allocations: 0 / 1.069 GB, free: 8.652 MB / 0.8262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.175e-06/0.2504, allocations: 4 kB / 1.069 GB, free: 8.648 MB / 0.8262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.226e-06/0.2504, allocations: 4 kB / 1.069 GB, free: 8.645 MB / 0.8262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003874/0.2508, allocations: 378.4 kB / 1.069 GB, free: 8.219 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.493e-06/0.2508, allocations: 0 / 1.069 GB, free: 8.219 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.863e-05/0.2509, allocations: 7.984 kB / 1.069 GB, free: 8.211 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.59e-06/0.2509, allocations: 8 kB / 1.069 GB, free: 8.203 MB / 0.8262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.017e-05/0.2509, allocations: 4 kB / 1.069 GB, free: 8.199 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.615e-06/0.2509, allocations: 3.938 kB / 1.069 GB, free: 8.195 MB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.032e-06/0.2509, allocations: 4 kB / 1.069 GB, free: 8.191 MB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002852/0.2512, allocations: 215.4 kB / 1.07 GB, free: 7.965 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 3.296e-05/0.2513, allocations: 85.09 kB / 1.07 GB, free: 7.863 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.529e-05/0.2513, allocations: 0 / 1.07 GB, free: 7.863 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.573e-05/0.2514, allocations: 11.92 kB / 1.07 GB, free: 7.852 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.289e-05/0.2514, allocations: 4 kB / 1.07 GB, free: 7.848 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.285e-06/0.2514, allocations: 12 kB / 1.07 GB, free: 7.836 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 4.683e-05/0.2515, allocations: 91.27 kB / 1.07 GB, free: 7.746 MB / 0.8262 GB Notification: Performance of sort global known variables: time 1.3e-07/0.2515, allocations: 7.875 kB / 1.07 GB, free: 7.738 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.0002582/0.2517, allocations: 23.91 kB / 1.07 GB, free: 7.715 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: 6 ($whenCondition3,$whenCondition1,$whenCondition2,booPul.y,triSam.y,triSam1.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (8): * Single equations (assignments): 5 * 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.0005324/0.2523, allocations: 0.752 MB / 1.071 GB, free: 6.938 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.0003523/0.2527, allocations: 179.2 kB / 1.071 GB, free: 6.75 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 1.804e-06/0.2527, allocations: 0 / 1.071 GB, free: 6.75 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 0.0001179/0.2528, allocations: 43.95 kB / 1.071 GB, free: 6.707 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002638/0.2531, allocations: 25.17 kB / 1.071 GB, free: 6.684 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001826/0.2549, allocations: 1.689 MB / 1.073 GB, free: 4.879 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001941/0.2551, allocations: 0.6924 MB / 1.073 GB, free: 4.16 MB / 0.8262 GB Notification: Performance of simCode: alias equations: time 2.962e-05/0.2551, allocations: 4 kB / 1.073 GB, free: 4.156 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.963e-05/0.2552, allocations: 23.42 kB / 1.073 GB, free: 4.133 MB / 0.8262 GB Notification: Performance of SimCode: time 2.5e-07/0.2552, allocations: 0 / 1.073 GB, free: 4.133 MB / 0.8262 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01784/0.273, allocations: 2.54 MB / 1.076 GB, free: 1.73 MB / 0.8262 GB Notification: Performance of buildModelFMU: Generate platform static: time 6.83/7.104, allocations: 13.56 kB / 1.076 GB, free: 1.719 MB / 0.8262 GB (rm -f Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredSampler.pipe ; mkfifo Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredSampler.pipe ; head -c 1048576 < Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredSampler.pipe >> ../files/Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredSampler.sim & python3 -m fmpy simulate --output-file Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredSampler_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_OBC_CDL_Discrete_Validation_TriggeredSampler.fmu > Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredSampler.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredSampler_res.csv","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Controls_OBC_CDL_Discrete_Validation_TriggeredSampler.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredSampler.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches