Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTrigger.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.1.0-master/package.mo", uses=false) Using package Buildings with version 11.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-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.Logical.Sources.Validation.SampleTrigger,fileNamePrefix="Buildings_latest_Buildings_Controls_OBC_CDL_Logical_Sources_Validation_SampleTrigger",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTrigger,fileNamePrefix="Buildings_latest_Buildings_Controls_OBC_CDL_Logical_Sources_Validation_SampleTrigger",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.008389/0.008389, allocations: 99.45 kB / 15.73 MB, free: 6.059 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.002013/0.002013, allocations: 192.2 kB / 16.67 MB, free: 5.969 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.417/1.417, allocations: 222.9 MB / 240.4 MB, free: 15.09 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-master/package.mo): time 2.623/2.623, allocations: 469.4 MB / 0.7422 GB, free: 3.473 MB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.00147/0.00147, allocations: 60.12 kB / 1.064 GB, free: 14.24 MB / 0.8419 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.933/0.9345, allocations: 159.1 MB / 1.22 GB, free: 2.348 MB / 0.9356 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTrigger): time 0.002563/0.9371, allocations: 0.756 MB / 1.22 GB, free: 1.594 MB / 0.9356 GB Notification: Performance of NFInst.instExpressions: time 0.002031/0.9392, allocations: 1.073 MB / 1.222 GB, free: 0.5078 MB / 0.9356 GB Notification: Performance of NFInst.updateImplicitVariability: time 9.394e-05/0.9393, allocations: 3.938 kB / 1.222 GB, free: 0.5039 MB / 0.9356 GB Notification: Performance of NFTyping.typeComponents: time 4.637e-05/0.9394, allocations: 7.922 kB / 1.222 GB, free: 0.4961 MB / 0.9356 GB Notification: Performance of NFTyping.typeBindings: time 0.0001236/0.9395, allocations: 11.86 kB / 1.222 GB, free: 496 kB / 0.9356 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004705/0.94, allocations: 51.89 kB / 1.222 GB, free: 444 kB / 0.9356 GB Notification: Performance of NFFlatten.flatten: time 0.0001882/0.9402, allocations: 71.77 kB / 1.222 GB, free: 372 kB / 0.9356 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001492/0.9404, allocations: 16.19 kB / 1.222 GB, free: 352 kB / 0.9356 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001299/0.9405, allocations: 35.84 kB / 1.222 GB, free: 316 kB / 0.9356 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001148/0.9406, allocations: 31.91 kB / 1.222 GB, free: 284 kB / 0.9356 GB Notification: Performance of NFPackage.collectConstants: time 3.099e-05/0.9407, allocations: 4 kB / 1.222 GB, free: 280 kB / 0.9356 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001119/0.9408, allocations: 15.98 kB / 1.222 GB, free: 264 kB / 0.9356 GB Notification: Performance of NFScalarize.scalarize: time 3.249e-05/0.9408, allocations: 19.92 kB / 1.222 GB, free: 244 kB / 0.9356 GB Notification: Performance of NFVerifyModel.verify: time 6.017e-05/0.9409, allocations: 27.86 kB / 1.222 GB, free: 216 kB / 0.9356 GB Notification: Performance of NFConvertDAE.convert: time 0.0002455/0.9412, allocations: 82.36 kB / 1.222 GB, free: 136 kB / 0.9356 GB Notification: Performance of FrontEnd - DAE generated: time 6.583e-06/0.9412, allocations: 0 / 1.222 GB, free: 136 kB / 0.9356 GB Notification: Performance of FrontEnd: time 3.637e-06/0.9412, allocations: 0 / 1.222 GB, free: 136 kB / 0.9356 GB Notification: Performance of Transformations before backend: time 2.059e-05/0.9412, allocations: 4 kB / 1.222 GB, free: 132 kB / 0.9356 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 9 * Number of variables: 9 Notification: Performance of Generate backend data structure: time 0.0009193/0.9421, allocations: 396 kB / 1.222 GB, free: 15.7 MB / 0.9512 GB Notification: Performance of prepare preOptimizeDAE: time 7.173e-05/0.9422, allocations: 8.625 kB / 1.222 GB, free: 15.69 MB / 0.9512 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.604e-05/0.9423, allocations: 30.75 kB / 1.222 GB, free: 15.65 MB / 0.9512 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.435e-05/0.9424, allocations: 8.891 kB / 1.222 GB, free: 15.64 MB / 0.9512 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002348/0.9426, allocations: 180.2 kB / 1.223 GB, free: 15.43 MB / 0.9512 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.74e-05/0.9427, allocations: 8.375 kB / 1.223 GB, free: 15.42 MB / 0.9512 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.636e-05/0.9427, allocations: 4.375 kB / 1.223 GB, free: 15.41 MB / 0.9512 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003058/0.943, allocations: 73.92 kB / 1.223 GB, free: 15.34 MB / 0.9512 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.59e-05/0.943, allocations: 3.984 kB / 1.223 GB, free: 15.33 MB / 0.9512 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.607e-05/0.943, allocations: 0 / 1.223 GB, free: 15.33 MB / 0.9512 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.252e-05/0.9431, allocations: 0 / 1.223 GB, free: 15.33 MB / 0.9512 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002/0.9433, allocations: 39.97 kB / 1.223 GB, free: 15.29 MB / 0.9512 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008553/0.9441, allocations: 320.9 kB / 1.223 GB, free: 14.93 MB / 0.9512 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001994/0.9443, allocations: 62.48 kB / 1.223 GB, free: 14.86 MB / 0.9512 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.724e-05/0.9445, allocations: 24.97 kB / 1.223 GB, free: 14.83 MB / 0.9512 GB Notification: Performance of preOpt evalFunc (simulation): time 2.728e-05/0.9445, allocations: 0 / 1.223 GB, free: 14.83 MB / 0.9512 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002589/0.9448, allocations: 83.33 kB / 1.223 GB, free: 14.74 MB / 0.9512 GB Notification: Performance of pre-optimization done (n=7): time 3.367e-06/0.9448, allocations: 3.984 kB / 1.223 GB, free: 14.73 MB / 0.9512 GB Notification: Performance of matching and sorting (n=7): time 0.0004397/0.9452, allocations: 133.5 kB / 1.223 GB, free: 14.6 MB / 0.9512 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.173e-05/0.9453, allocations: 51.41 kB / 1.223 GB, free: 14.54 MB / 0.9512 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001032/0.9454, allocations: 125.8 kB / 1.223 GB, free: 14.4 MB / 0.9512 GB Notification: Performance of collectPreVariables (initialization): time 2.131e-05/0.9454, allocations: 29.7 kB / 1.223 GB, free: 14.37 MB / 0.9512 GB Notification: Performance of collectInitialEqns (initialization): time 6.377e-05/0.9455, allocations: 96.08 kB / 1.224 GB, free: 14.27 MB / 0.9512 GB Notification: Performance of collectInitialBindings (initialization): time 2.762e-05/0.9455, allocations: 15.89 kB / 1.224 GB, free: 14.25 MB / 0.9512 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.478e-05/0.9456, allocations: 33.7 kB / 1.224 GB, free: 14.21 MB / 0.9512 GB Notification: Performance of setup shared object (initialization): time 0.00013/0.9457, allocations: 318.8 kB / 1.224 GB, free: 13.89 MB / 0.9512 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001132/0.9458, allocations: 35.91 kB / 1.224 GB, free: 13.86 MB / 0.9512 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001332/0.946, allocations: 73.98 kB / 1.224 GB, free: 13.77 MB / 0.9512 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002415/0.9462, allocations: 113.8 kB / 1.224 GB, free: 13.63 MB / 0.9512 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.056e-06/0.9462, allocations: 0 / 1.224 GB, free: 13.63 MB / 0.9512 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0003313/0.9466, allocations: 125.5 kB / 1.224 GB, free: 13.5 MB / 0.9512 GB Notification: Performance of prepare postOptimizeDAE: time 2.194e-05/0.9466, allocations: 8.219 kB / 1.224 GB, free: 13.5 MB / 0.9512 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.019e-05/0.9466, allocations: 7.938 kB / 1.224 GB, free: 13.49 MB / 0.9512 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.6e-05/0.9467, allocations: 4 kB / 1.224 GB, free: 13.48 MB / 0.9512 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001458/0.9468, allocations: 19.92 kB / 1.224 GB, free: 13.46 MB / 0.9512 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.472e-05/0.9468, allocations: 3.984 kB / 1.224 GB, free: 13.46 MB / 0.9512 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.598e-05/0.9469, allocations: 15.95 kB / 1.224 GB, free: 13.45 MB / 0.9512 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.062e-05/0.947, allocations: 4 kB / 1.224 GB, free: 13.44 MB / 0.9512 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 7 * Number of states: 0 () * Number of discrete variables: 8 (triggeredSampler1.y,$PRE.triggeredSampler1.y,triggeredSampler.y,$PRE.triggeredSampler.y,samTri.y,$whenCondition1,samTri1.y,$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): 11 * 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 0.0001443/0.9471, allocations: 126.2 kB / 1.224 GB, free: 13.31 MB / 0.9512 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.339e-05/0.9472, allocations: 7.953 kB / 1.224 GB, free: 13.3 MB / 0.9512 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.376e-05/0.9472, allocations: 12.38 kB / 1.224 GB, free: 13.28 MB / 0.9512 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.601e-06/0.9472, allocations: 7.938 kB / 1.224 GB, free: 13.27 MB / 0.9512 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.745e-06/0.9472, allocations: 0 / 1.224 GB, free: 13.27 MB / 0.9512 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.971e-06/0.9472, allocations: 0 / 1.224 GB, free: 13.27 MB / 0.9512 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005427/0.9478, allocations: 366.5 kB / 1.225 GB, free: 12.86 MB / 0.9512 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.274e-06/0.9478, allocations: 0 / 1.225 GB, free: 12.86 MB / 0.9512 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.975e-05/0.9479, allocations: 15.92 kB / 1.225 GB, free: 12.84 MB / 0.9512 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.979e-06/0.9479, allocations: 8 kB / 1.225 GB, free: 12.84 MB / 0.9512 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.618e-06/0.9479, allocations: 0 / 1.225 GB, free: 12.84 MB / 0.9512 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.356e-06/0.9479, allocations: 3.938 kB / 1.225 GB, free: 12.83 MB / 0.9512 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.072e-06/0.9479, allocations: 0 / 1.225 GB, free: 12.83 MB / 0.9512 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000336/0.9483, allocations: 203.5 kB / 1.225 GB, free: 12.62 MB / 0.9512 GB Notification: Performance of postOpt removeConstants (simulation): time 4.696e-05/0.9483, allocations: 81.06 kB / 1.225 GB, free: 12.52 MB / 0.9512 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.004e-05/0.9483, allocations: 4 kB / 1.225 GB, free: 12.52 MB / 0.9512 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.432e-05/0.9484, allocations: 15.92 kB / 1.225 GB, free: 12.5 MB / 0.9512 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.598e-05/0.9485, allocations: 3.984 kB / 1.225 GB, free: 12.5 MB / 0.9512 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.757e-06/0.9485, allocations: 4 kB / 1.225 GB, free: 12.49 MB / 0.9512 GB Notification: Performance of sorting global known variables: time 6.991e-05/0.9486, allocations: 103.8 kB / 1.225 GB, free: 12.39 MB / 0.9512 GB Notification: Performance of sort global known variables: time 5.21e-07/0.9486, allocations: 0 / 1.225 GB, free: 12.39 MB / 0.9512 GB Notification: Performance of remove unused functions: time 0.000272/0.9489, allocations: 12 kB / 1.225 GB, free: 12.38 MB / 0.9512 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 (samTri1.y,samTri.y,$whenCondition2,$whenCondition1,triggeredSampler.y,triggeredSampler1.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (7): * Single equations (assignments): 5 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * 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.0006747/0.9495, allocations: 0.7518 MB / 1.226 GB, free: 11.6 MB / 0.9512 GB Notification: Performance of simCode: created initialization part: time 0.0003111/0.9499, allocations: 71.89 kB / 1.226 GB, free: 11.53 MB / 0.9512 GB Notification: Performance of simCode: created event and clocks part: time 3.156e-06/0.9499, allocations: 448 / 1.226 GB, free: 11.53 MB / 0.9512 GB Notification: Performance of simCode: created simulation system equations: time 0.0001149/0.95, allocations: 43.91 kB / 1.226 GB, free: 11.49 MB / 0.9512 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002773/0.9503, allocations: 11.94 kB / 1.226 GB, free: 11.48 MB / 0.9512 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001784/0.9521, allocations: 1.521 MB / 1.228 GB, free: 9.836 MB / 0.9512 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002913/0.9524, allocations: 0.7001 MB / 1.228 GB, free: 9.109 MB / 0.9512 GB Notification: Performance of simCode: alias equations: time 4.742e-05/0.9524, allocations: 4 kB / 1.228 GB, free: 9.105 MB / 0.9512 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.147e-05/0.9525, allocations: 23.42 kB / 1.228 GB, free: 9.082 MB / 0.9512 GB Notification: Performance of SimCode: time 2e-07/0.9525, allocations: 0 / 1.228 GB, free: 9.082 MB / 0.9512 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02013/0.9726, allocations: 2.09 MB / 1.23 GB, free: 7.141 MB / 0.9512 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.627/8.6, allocations: 14.61 kB / 1.23 GB, free: 7.129 MB / 0.9512 GB (rm -f Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTrigger.pipe ; mkfifo Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTrigger.pipe ; head -c 1048576 < Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTrigger.pipe >> ../files/Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTrigger.sim & python3 -m fmpy simulate --output-file Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTrigger_res.csv --start-time 0 --stop-time 5 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.002 Buildings_latest_Buildings_Controls_OBC_CDL_Logical_Sources_Validation_SampleTrigger.fmu > Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTrigger.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTrigger_res.csv","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Controls_OBC_CDL_Logical_Sources_Validation_SampleTrigger.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTrigger.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches