Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_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 9.1.3-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.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_9_Buildings_Controls_OBC_CDL_Discrete_Examples_TriggeredSampler",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredSampler,fileNamePrefix="Buildings_9_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.001397/0.001397, allocations: 115.3 kB / 15.34 MB, free: 0.5156 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.001175/0.001175, allocations: 191.8 kB / 16.25 MB, free: 6.648 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.442/1.442, allocations: 222.9 MB / 239.9 MB, free: 4.523 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/package.mo): time 2.429/2.429, allocations: 390.2 MB / 0.6644 GB, free: 0.6055 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001531/0.001531, allocations: 67.91 kB / 0.8122 GB, free: 14.69 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6534/0.655, allocations: 140.4 MB / 0.9492 GB, free: 9.133 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredSampler): time 0.001702/0.6567, allocations: 0.8095 MB / 0.95 GB, free: 8.512 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.001112/0.6578, allocations: 1.146 MB / 0.9512 GB, free: 7.59 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.628e-05/0.6579, allocations: 1.375 kB / 0.9512 GB, free: 7.59 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 2.892e-05/0.6579, allocations: 7.922 kB / 0.9512 GB, free: 7.582 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 6.397e-05/0.658, allocations: 13.3 kB / 0.9512 GB, free: 7.57 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004143/0.6584, allocations: 127 kB / 0.9513 GB, free: 7.488 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 0.000134/0.6585, allocations: 129.6 kB / 0.9514 GB, free: 7.418 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 9.355e-05/0.6586, allocations: 20.41 kB / 0.9514 GB, free: 7.402 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 8.027e-05/0.6587, allocations: 48.53 kB / 0.9515 GB, free: 7.375 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 6.244e-05/0.6588, allocations: 46.48 kB / 0.9515 GB, free: 7.34 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 2.442e-05/0.6588, allocations: 11.38 kB / 0.9515 GB, free: 7.34 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 6.315e-05/0.6589, allocations: 25.48 kB / 0.9516 GB, free: 7.332 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 2.1e-05/0.6589, allocations: 19.28 kB / 0.9516 GB, free: 7.316 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 6.175e-05/0.659, allocations: 45.53 kB / 0.9516 GB, free: 7.285 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.0001495/0.6591, allocations: 118.6 kB / 0.9517 GB, free: 7.195 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 5.129e-06/0.6592, allocations: 0 / 0.9517 GB, free: 7.195 MB / 0.7169 GB Notification: Performance of FrontEnd: time 1.964e-06/0.6592, allocations: 3.938 kB / 0.9517 GB, free: 7.191 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 5.07e-06/0.6592, allocations: 0 / 0.9517 GB, free: 7.191 MB / 0.7169 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.0005251/0.6597, allocations: 418.2 kB / 0.9521 GB, free: 6.766 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 4.342e-05/0.6598, allocations: 9.062 kB / 0.9522 GB, free: 6.766 MB / 0.7169 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.789e-05/0.6598, allocations: 41.05 kB / 0.9522 GB, free: 6.719 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.581e-05/0.6598, allocations: 10.62 kB / 0.9522 GB, free: 6.715 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 7.575e-05/0.6599, allocations: 172.2 kB / 0.9524 GB, free: 6.512 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.375e-05/0.6599, allocations: 8.375 kB / 0.9524 GB, free: 6.508 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.802e-05/0.66, allocations: 11.7 kB / 0.9524 GB, free: 6.504 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001931/0.6602, allocations: 74.88 kB / 0.9525 GB, free: 6.445 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.386e-06/0.6602, allocations: 5.125 kB / 0.9525 GB, free: 6.441 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.111e-05/0.6602, allocations: 4 kB / 0.9525 GB, free: 6.438 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.859e-06/0.6602, allocations: 1.188 kB / 0.9525 GB, free: 6.438 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001812/0.6604, allocations: 45.7 kB / 0.9525 GB, free: 6.418 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000433/0.6608, allocations: 345.4 kB / 0.9528 GB, free: 6.066 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001844/0.661, allocations: 68.08 kB / 0.9529 GB, free: 6.016 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.728e-05/0.6611, allocations: 31.02 kB / 0.9529 GB, free: 5.996 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 2.02e-05/0.6612, allocations: 1.375 kB / 0.9529 GB, free: 5.996 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000225/0.6614, allocations: 84.27 kB / 0.953 GB, free: 5.926 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=8): time 1.794e-06/0.6614, allocations: 4 kB / 0.953 GB, free: 5.922 MB / 0.7169 GB Notification: Performance of matching and sorting (n=8): time 0.0004237/0.6618, allocations: 156.5 kB / 0.9532 GB, free: 5.832 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.971e-05/0.6619, allocations: 56.92 kB / 0.9532 GB, free: 5.766 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.973e-05/0.662, allocations: 119.7 kB / 0.9533 GB, free: 5.652 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 2.307e-05/0.662, allocations: 32.39 kB / 0.9534 GB, free: 5.617 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 4.236e-05/0.662, allocations: 96.72 kB / 0.9535 GB, free: 5.523 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 1.754e-05/0.6621, allocations: 18.97 kB / 0.9535 GB, free: 5.508 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.042e-05/0.6621, allocations: 37.3 kB / 0.9535 GB, free: 5.48 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 4.836e-05/0.6622, allocations: 324.9 kB / 0.9538 GB, free: 5.156 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001547/0.6623, allocations: 51.11 kB / 0.9539 GB, free: 5.133 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000157/0.6625, allocations: 89.33 kB / 0.954 GB, free: 5.059 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002461/0.6628, allocations: 155.2 kB / 0.9541 GB, free: 4.93 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.615e-06/0.6628, allocations: 0 / 0.9541 GB, free: 4.93 MB / 0.7169 GB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0003962/0.6632, allocations: 214.4 kB / 0.9543 GB, free: 4.793 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 2.902e-05/0.6632, allocations: 33.67 kB / 0.9543 GB, free: 4.762 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.049e-06/0.6632, allocations: 1.578 kB / 0.9543 GB, free: 4.762 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.517e-05/0.6632, allocations: 9.906 kB / 0.9544 GB, free: 4.754 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.676e-05/0.6633, allocations: 18.44 kB / 0.9544 GB, free: 4.746 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.224e-06/0.6634, allocations: 5.484 kB / 0.9544 GB, free: 4.742 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002191/0.6636, allocations: 36.12 kB / 0.9544 GB, free: 4.727 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.408e-05/0.6636, allocations: 15.52 kB / 0.9544 GB, free: 4.719 MB / 0.7169 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 7.25e-05/0.6637, allocations: 124.7 kB / 0.9545 GB, free: 4.594 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.422e-05/0.6637, allocations: 7.25 kB / 0.9546 GB, free: 4.59 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002759/0.664, allocations: 124.3 kB / 0.9547 GB, free: 4.512 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.347e-06/0.664, allocations: 5.188 kB / 0.9547 GB, free: 4.508 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.967e-06/0.664, allocations: 0 / 0.9547 GB, free: 4.508 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.066e-06/0.664, allocations: 1.25 kB / 0.9547 GB, free: 4.508 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003431/0.6644, allocations: 377.8 kB / 0.955 GB, free: 4.145 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.933e-06/0.6644, allocations: 0 / 0.955 GB, free: 4.145 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.114e-05/0.6645, allocations: 11.02 kB / 0.955 GB, free: 4.141 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.965e-06/0.6645, allocations: 5.25 kB / 0.9551 GB, free: 4.137 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.807e-06/0.6645, allocations: 0 / 0.9551 GB, free: 4.137 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.194e-06/0.6645, allocations: 5.375 kB / 0.9551 GB, free: 4.133 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.72e-07/0.6645, allocations: 0 / 0.9551 GB, free: 4.133 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002529/0.6647, allocations: 220.4 kB / 0.9553 GB, free: 3.953 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 1.988e-05/0.6648, allocations: 83.11 kB / 0.9553 GB, free: 3.855 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.657e-05/0.6648, allocations: 1.062 kB / 0.9553 GB, free: 3.855 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.634e-05/0.6649, allocations: 16.55 kB / 0.9554 GB, free: 3.844 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.138e-05/0.6649, allocations: 6.531 kB / 0.9554 GB, free: 3.84 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.746e-06/0.665, allocations: 6.984 kB / 0.9554 GB, free: 3.836 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 3.799e-05/0.665, allocations: 91.95 kB / 0.9555 GB, free: 3.754 MB / 0.7169 GB Notification: Performance of sort global known variables: time 1.31e-07/0.665, allocations: 0 / 0.9555 GB, free: 3.754 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.0002778/0.6653, allocations: 29.05 kB / 0.9555 GB, free: 3.746 MB / 0.7169 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.0004836/0.6658, allocations: 0.7495 MB / 0.9562 GB, free: 3.039 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.0003705/0.6662, allocations: 181 kB / 0.9564 GB, free: 2.918 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 2.304e-06/0.6662, allocations: 0 / 0.9564 GB, free: 2.918 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 0.0001174/0.6663, allocations: 45.5 kB / 0.9564 GB, free: 2.898 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002745/0.6666, allocations: 21.55 kB / 0.9565 GB, free: 2.883 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001622/0.6682, allocations: 1.728 MB / 0.9581 GB, free: 1.32 MB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001083/0.6683, allocations: 0.69 MB / 0.9588 GB, free: 0.6172 MB / 0.7169 GB Notification: Performance of simCode: alias equations: time 3.759e-05/0.6684, allocations: 8.25 kB / 0.9588 GB, free: 0.6133 MB / 0.7169 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.073e-05/0.6684, allocations: 22.61 kB / 0.9589 GB, free: 0.5938 MB / 0.7169 GB Notification: Performance of SimCode: time 2.2e-07/0.6684, allocations: 0 / 0.9589 GB, free: 0.5938 MB / 0.7169 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0126/0.681, allocations: 2.39 MB / 0.9612 GB, free: 15.41 MB / 0.7325 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001772/0.6812, allocations: 214.2 kB / 0.9614 GB, free: 15.16 MB / 0.7325 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.906/2.587, allocations: 0 / 0.9614 GB, free: 15.16 MB / 0.7325 GB (rm -f Buildings_9_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredSampler.pipe ; mkfifo Buildings_9_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredSampler.pipe ; head -c 1048576 < Buildings_9_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredSampler.pipe >> ../files/Buildings_9_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredSampler.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_9_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredSampler_res.mat --tempDir=temp_Buildings_9_Buildings_Controls_OBC_CDL_Discrete_Examples_TriggeredSampler_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Buildings_9_Buildings_Controls_OBC_CDL_Discrete_Examples_TriggeredSampler.fmu > Buildings_9_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredSampler.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredSampler_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Controls_OBC_CDL_Discrete_Examples_TriggeredSampler.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredSampler.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches