Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_Buildings.Controls.OBC.CDL.Discrete.Examples.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 10.1.0-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.0-maint.10.0.x/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.Examples.TriggeredSampler,fileNamePrefix="Buildings_10_Buildings_Controls_OBC_CDL_Discrete_Examples_TriggeredSampler",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredSampler,fileNamePrefix="Buildings_10_Buildings_Controls_OBC_CDL_Discrete_Examples_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.0008116/0.0008116, allocations: 98.27 kB / 15.36 MB, free: 0.7344 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.004919/0.004919, allocations: 170.6 kB / 16.27 MB, free: 6.652 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.239/1.239, allocations: 223.3 MB / 240.3 MB, free: 5.359 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.0-maint.10.0.x/package.mo): time 2.293/2.293, allocations: 437.8 MB / 0.7121 GB, free: 6.996 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.0002764/0.0002764, allocations: 8 kB / 0.873 GB, free: 3.207 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5673/0.5676, allocations: 153.8 MB / 1.023 GB, free: 15.86 MB / 0.7794 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredSampler): time 0.0008361/0.5685, allocations: 485.3 kB / 1.024 GB, free: 15.39 MB / 0.7794 GB Notification: Performance of NFInst.instExpressions: time 0.001323/0.5699, allocations: 1.167 MB / 1.025 GB, free: 14.21 MB / 0.7794 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.095e-05/0.5699, allocations: 0 / 1.025 GB, free: 14.21 MB / 0.7794 GB Notification: Performance of NFTyping.typeComponents: time 1.32e-05/0.5699, allocations: 0 / 1.025 GB, free: 14.21 MB / 0.7794 GB Notification: Performance of NFTyping.typeBindings: time 5.993e-05/0.57, allocations: 7.938 kB / 1.025 GB, free: 14.2 MB / 0.7794 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004021/0.5704, allocations: 127.5 kB / 1.025 GB, free: 14.08 MB / 0.7794 GB Notification: Performance of NFFlatten.flatten: time 0.0001214/0.5705, allocations: 115.8 kB / 1.025 GB, free: 13.97 MB / 0.7794 GB Notification: Performance of NFFlatten.resolveConnections: time 8.81e-05/0.5706, allocations: 20.17 kB / 1.025 GB, free: 13.95 MB / 0.7794 GB Notification: Performance of NFEvalConstants.evaluate: time 7.649e-05/0.5707, allocations: 47.78 kB / 1.025 GB, free: 13.9 MB / 0.7794 GB Notification: Performance of NFSimplifyModel.simplify: time 6.447e-05/0.5708, allocations: 39.88 kB / 1.025 GB, free: 13.86 MB / 0.7794 GB Notification: Performance of NFPackage.collectConstants: time 1.926e-05/0.5708, allocations: 4 kB / 1.025 GB, free: 13.86 MB / 0.7794 GB Notification: Performance of NFFlatten.collectFunctions: time 6.035e-05/0.5709, allocations: 23.92 kB / 1.025 GB, free: 13.83 MB / 0.7794 GB Notification: Performance of NFScalarize.scalarize: time 1.818e-05/0.5709, allocations: 11.98 kB / 1.025 GB, free: 13.82 MB / 0.7794 GB Notification: Performance of NFVerifyModel.verify: time 7.721e-05/0.571, allocations: 61.55 kB / 1.025 GB, free: 13.75 MB / 0.7794 GB Notification: Performance of NFConvertDAE.convert: time 0.0001375/0.5711, allocations: 115.6 kB / 1.025 GB, free: 13.64 MB / 0.7794 GB Notification: Performance of FrontEnd - DAE generated: time 3.326e-06/0.5711, allocations: 0 / 1.025 GB, free: 13.64 MB / 0.7794 GB Notification: Performance of FrontEnd: time 1.303e-06/0.5711, allocations: 4 kB / 1.025 GB, free: 13.64 MB / 0.7794 GB Notification: Performance of Transformations before backend: time 3.376e-06/0.5711, allocations: 0 / 1.025 GB, free: 13.64 MB / 0.7794 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.0004951/0.5716, allocations: 407.3 kB / 1.026 GB, free: 13.19 MB / 0.7794 GB Notification: Performance of prepare preOptimizeDAE: time 3.59e-05/0.5717, allocations: 8.031 kB / 1.026 GB, free: 13.18 MB / 0.7794 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.71e-05/0.5717, allocations: 34.75 kB / 1.026 GB, free: 13.14 MB / 0.7794 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.57e-05/0.5718, allocations: 12.78 kB / 1.026 GB, free: 13.12 MB / 0.7794 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001068/0.5719, allocations: 176.2 kB / 1.026 GB, free: 12.91 MB / 0.7794 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.486e-05/0.5719, allocations: 16.3 kB / 1.026 GB, free: 12.9 MB / 0.7794 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.339e-05/0.5719, allocations: 8.375 kB / 1.026 GB, free: 12.89 MB / 0.7794 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000197/0.5721, allocations: 85.97 kB / 1.026 GB, free: 12.8 MB / 0.7794 GB Notification: Performance of preOpt findStateOrder (simulation): time 5.6e-06/0.5721, allocations: 0 / 1.026 GB, free: 12.8 MB / 0.7794 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.175e-06/0.5722, allocations: 0 / 1.026 GB, free: 12.8 MB / 0.7794 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.676e-06/0.5722, allocations: 0 / 1.026 GB, free: 12.8 MB / 0.7794 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001942/0.5724, allocations: 63.95 kB / 1.026 GB, free: 12.74 MB / 0.7794 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004548/0.5728, allocations: 348.5 kB / 1.026 GB, free: 12.35 MB / 0.7794 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001621/0.573, allocations: 74.53 kB / 1.026 GB, free: 12.27 MB / 0.7794 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.963e-05/0.5731, allocations: 32.97 kB / 1.027 GB, free: 12.23 MB / 0.7794 GB Notification: Performance of preOpt evalFunc (simulation): time 2.515e-05/0.5731, allocations: 96 / 1.027 GB, free: 12.23 MB / 0.7794 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001993/0.5733, allocations: 103.3 kB / 1.027 GB, free: 12.12 MB / 0.7794 GB Notification: Performance of pre-optimization done (n=8): time 1.332e-06/0.5734, allocations: 0 / 1.027 GB, free: 12.12 MB / 0.7794 GB Notification: Performance of matching and sorting (n=8): time 0.0004407/0.5738, allocations: 165.5 kB / 1.027 GB, free: 11.95 MB / 0.7794 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.378e-05/0.5739, allocations: 55.41 kB / 1.027 GB, free: 11.88 MB / 0.7794 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.698e-05/0.5739, allocations: 113.8 kB / 1.027 GB, free: 11.76 MB / 0.7794 GB Notification: Performance of collectPreVariables (initialization): time 2.823e-05/0.574, allocations: 33.7 kB / 1.027 GB, free: 11.72 MB / 0.7794 GB Notification: Performance of collectInitialEqns (initialization): time 6.404e-05/0.574, allocations: 96.06 kB / 1.027 GB, free: 11.62 MB / 0.7794 GB Notification: Performance of collectInitialBindings (initialization): time 2.168e-05/0.5741, allocations: 27.64 kB / 1.027 GB, free: 11.6 MB / 0.7794 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.722e-05/0.5741, allocations: 25.7 kB / 1.027 GB, free: 11.57 MB / 0.7794 GB Notification: Performance of setup shared object (initialization): time 0.0001013/0.5742, allocations: 318.8 kB / 1.027 GB, free: 11.25 MB / 0.7794 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001567/0.5744, allocations: 59.95 kB / 1.027 GB, free: 11.19 MB / 0.7794 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001785/0.5746, allocations: 97.11 kB / 1.028 GB, free: 11.07 MB / 0.7794 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000281/0.5749, allocations: 154.8 kB / 1.028 GB, free: 10.9 MB / 0.7794 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.727e-06/0.5749, allocations: 0 / 1.028 GB, free: 10.9 MB / 0.7794 GB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0004437/0.5753, allocations: 231.1 kB / 1.028 GB, free: 10.66 MB / 0.7794 GB Notification: Performance of prepare postOptimizeDAE: time 3.353e-05/0.5754, allocations: 41.69 kB / 1.028 GB, free: 10.61 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.418e-06/0.5754, allocations: 0 / 1.028 GB, free: 10.61 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (initialization): time 9.418e-06/0.5754, allocations: 0 / 1.028 GB, free: 10.61 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.852e-05/0.5755, allocations: 23.92 kB / 1.028 GB, free: 10.59 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.36e-06/0.5755, allocations: 0 / 1.028 GB, free: 10.59 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002306/0.5757, allocations: 51.95 kB / 1.028 GB, free: 10.54 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.088e-05/0.5758, allocations: 15.94 kB / 1.028 GB, free: 10.52 MB / 0.7794 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 9.288e-05/0.5759, allocations: 118.4 kB / 1.028 GB, free: 10.4 MB / 0.7794 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.29e-05/0.5759, allocations: 11.91 kB / 1.028 GB, free: 10.39 MB / 0.7794 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002983/0.5762, allocations: 133.9 kB / 1.028 GB, free: 10.25 MB / 0.7794 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.164e-06/0.5762, allocations: 0 / 1.028 GB, free: 10.25 MB / 0.7794 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.316e-06/0.5762, allocations: 0 / 1.028 GB, free: 10.25 MB / 0.7794 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.925e-06/0.5762, allocations: 0 / 1.028 GB, free: 10.25 MB / 0.7794 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004149/0.5766, allocations: 394.9 kB / 1.029 GB, free: 9.805 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.362e-06/0.5766, allocations: 3.938 kB / 1.029 GB, free: 9.801 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.666e-05/0.5767, allocations: 11.98 kB / 1.029 GB, free: 9.789 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.984e-06/0.5767, allocations: 0 / 1.029 GB, free: 9.789 MB / 0.7794 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.795e-06/0.5767, allocations: 4 kB / 1.029 GB, free: 9.785 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.569e-06/0.5767, allocations: 7.938 kB / 1.029 GB, free: 9.777 MB / 0.7794 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.084e-06/0.5768, allocations: 4.078 kB / 1.029 GB, free: 9.773 MB / 0.7794 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002958/0.5771, allocations: 223.4 kB / 1.029 GB, free: 9.539 MB / 0.7794 GB Notification: Performance of postOpt removeConstants (simulation): time 3.42e-05/0.5771, allocations: 85.02 kB / 1.029 GB, free: 9.438 MB / 0.7794 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.366e-05/0.5771, allocations: 0 / 1.029 GB, free: 9.438 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.702e-05/0.5772, allocations: 19.92 kB / 1.029 GB, free: 9.418 MB / 0.7794 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.28e-05/0.5773, allocations: 7.984 kB / 1.029 GB, free: 9.41 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.59e-06/0.5773, allocations: 0 / 1.029 GB, free: 9.41 MB / 0.7794 GB Notification: Performance of sorting global known variables: time 4.3e-05/0.5773, allocations: 91.27 kB / 1.029 GB, free: 9.32 MB / 0.7794 GB Notification: Performance of sort global known variables: time 9.588e-06/0.5773, allocations: 0 / 1.029 GB, free: 9.32 MB / 0.7794 GB Notification: Performance of remove unused functions: time 0.0002485/0.5776, allocations: 31.94 kB / 1.029 GB, free: 9.289 MB / 0.7794 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.0005677/0.5782, allocations: 0.767 MB / 1.03 GB, free: 8.496 MB / 0.7794 GB Notification: Performance of simCode: created initialization part: time 0.0003625/0.5785, allocations: 183.3 kB / 1.03 GB, free: 8.305 MB / 0.7794 GB Notification: Performance of simCode: created event and clocks part: time 1.684e-06/0.5785, allocations: 3.938 kB / 1.03 GB, free: 8.301 MB / 0.7794 GB Notification: Performance of simCode: created simulation system equations: time 0.0001215/0.5787, allocations: 52.23 kB / 1.03 GB, free: 8.25 MB / 0.7794 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002539/0.5789, allocations: 19.86 kB / 1.03 GB, free: 8.23 MB / 0.7794 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001902/0.5808, allocations: 1.757 MB / 1.032 GB, free: 6.359 MB / 0.7794 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002344/0.5811, allocations: 0.6888 MB / 1.033 GB, free: 5.645 MB / 0.7794 GB Notification: Performance of simCode: alias equations: time 2.745e-05/0.5811, allocations: 3.984 kB / 1.033 GB, free: 5.641 MB / 0.7794 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.46e-05/0.5812, allocations: 19.44 kB / 1.033 GB, free: 5.621 MB / 0.7794 GB Notification: Performance of SimCode: time 3.11e-07/0.5812, allocations: 0 / 1.033 GB, free: 5.621 MB / 0.7794 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01598/0.5972, allocations: 2.247 MB / 1.035 GB, free: 3.531 MB / 0.7794 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001841/0.5974, allocations: 221.6 kB / 1.035 GB, free: 3.266 MB / 0.7794 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.599/2.196, allocations: 0 / 1.035 GB, free: 3.266 MB / 0.7794 GB (rm -f Buildings_10_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredSampler.pipe ; mkfifo Buildings_10_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredSampler.pipe ; head -c 1048576 < Buildings_10_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredSampler.pipe >> ../files/Buildings_10_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredSampler.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_10_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredSampler_res.mat --tempDir=temp_Buildings_10_Buildings_Controls_OBC_CDL_Discrete_Examples_TriggeredSampler_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Buildings_10_Buildings_Controls_OBC_CDL_Discrete_Examples_TriggeredSampler.fmu > Buildings_10_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredSampler.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredSampler_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Controls_OBC_CDL_Discrete_Examples_TriggeredSampler.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredSampler.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches