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.2-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-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.000979/0.000979, allocations: 91.77 kB / 15.36 MB, free: 0.7383 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.006082/0.006082, allocations: 172.4 kB / 16.26 MB, free: 6.613 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.32/1.32, allocations: 223.3 MB / 240.3 MB, free: 5.34 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-maint.9.1.x/package.mo): time 2.284/2.284, allocations: 390.9 MB / 0.6664 GB, free: 2.402 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.0003497/0.0003498, allocations: 8 kB / 0.8161 GB, free: 13.15 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7461/0.7465, allocations: 142.4 MB / 0.9552 GB, free: 7.75 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredSampler): time 0.00073/0.7472, allocations: 495.9 kB / 0.9557 GB, free: 7.371 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.001101/0.7483, allocations: 1.143 MB / 0.9568 GB, free: 6.457 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.042e-05/0.7484, allocations: 1.5 kB / 0.9568 GB, free: 6.457 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 1.509e-05/0.7484, allocations: 3.938 kB / 0.9568 GB, free: 6.453 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 6.184e-05/0.7485, allocations: 13.12 kB / 0.9568 GB, free: 6.441 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003782/0.7489, allocations: 122 kB / 0.9569 GB, free: 6.363 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 0.000102/0.749, allocations: 113 kB / 0.957 GB, free: 6.301 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 8.814e-05/0.7491, allocations: 23.97 kB / 0.957 GB, free: 6.281 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 7.225e-05/0.7491, allocations: 40.84 kB / 0.9571 GB, free: 6.262 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 5.919e-05/0.7492, allocations: 34.06 kB / 0.9571 GB, free: 6.238 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 1.92e-05/0.7492, allocations: 4.719 kB / 0.9571 GB, free: 6.238 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 5.825e-05/0.7493, allocations: 19.92 kB / 0.9571 GB, free: 6.23 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 1.976e-05/0.7493, allocations: 22.19 kB / 0.9572 GB, free: 6.215 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 5.905e-05/0.7494, allocations: 60.61 kB / 0.9572 GB, free: 6.16 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.0001298/0.7495, allocations: 112.8 kB / 0.9573 GB, free: 6.074 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 4.208e-06/0.7495, allocations: 3.984 kB / 0.9573 GB, free: 6.07 MB / 0.7169 GB Notification: Performance of FrontEnd: time 1.333e-06/0.7495, allocations: 4 kB / 0.9573 GB, free: 6.066 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 4.378e-06/0.7495, allocations: 1.781 kB / 0.9573 GB, free: 6.066 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.0004278/0.75, allocations: 399 kB / 0.9577 GB, free: 5.652 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 3.662e-05/0.75, allocations: 10.16 kB / 0.9577 GB, free: 5.652 MB / 0.7169 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.081e-05/0.7501, allocations: 31.97 kB / 0.9578 GB, free: 5.613 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.691e-05/0.7501, allocations: 15.94 kB / 0.9578 GB, free: 5.605 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 6.929e-05/0.7502, allocations: 178.8 kB / 0.9579 GB, free: 5.395 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.559e-05/0.7502, allocations: 8.219 kB / 0.9579 GB, free: 5.391 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.441e-05/0.7502, allocations: 7.844 kB / 0.958 GB, free: 5.391 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000185/0.7504, allocations: 87.94 kB / 0.958 GB, free: 5.324 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.172e-06/0.7504, allocations: 5.188 kB / 0.958 GB, free: 5.32 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.557e-06/0.7504, allocations: 0 / 0.958 GB, free: 5.32 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.708e-06/0.7505, allocations: 1.062 kB / 0.958 GB, free: 5.32 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001923/0.7507, allocations: 59.95 kB / 0.9581 GB, free: 5.297 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003866/0.751, allocations: 346.1 kB / 0.9584 GB, free: 4.945 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000159/0.7512, allocations: 72.05 kB / 0.9585 GB, free: 4.895 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.908e-05/0.7513, allocations: 32.84 kB / 0.9585 GB, free: 4.879 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 1.551e-05/0.7514, allocations: 1.094 kB / 0.9585 GB, free: 4.879 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001789/0.7515, allocations: 96.55 kB / 0.9586 GB, free: 4.801 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=8): time 1.432e-06/0.7515, allocations: 5.094 kB / 0.9586 GB, free: 4.797 MB / 0.7169 GB Notification: Performance of matching and sorting (n=8): time 0.0004093/0.752, allocations: 166.4 kB / 0.9588 GB, free: 4.711 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.768e-05/0.752, allocations: 53.69 kB / 0.9588 GB, free: 4.648 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.242e-05/0.7521, allocations: 123.4 kB / 0.959 GB, free: 4.531 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 2.033e-05/0.7521, allocations: 36.59 kB / 0.959 GB, free: 4.492 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 3.564e-05/0.7521, allocations: 88.52 kB / 0.9591 GB, free: 4.406 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 1.681e-05/0.7522, allocations: 18.66 kB / 0.9591 GB, free: 4.391 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.359e-05/0.7522, allocations: 28.05 kB / 0.9591 GB, free: 4.363 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 3.875e-05/0.7522, allocations: 324.3 kB / 0.9594 GB, free: 4.039 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001502/0.7524, allocations: 52.53 kB / 0.9595 GB, free: 4.02 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001561/0.7526, allocations: 102 kB / 0.9596 GB, free: 3.938 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002501/0.7528, allocations: 155.6 kB / 0.9597 GB, free: 3.816 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.454e-06/0.7528, allocations: 1.375 kB / 0.9597 GB, free: 3.816 MB / 0.7169 GB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0003902/0.7532, allocations: 227.4 kB / 0.9599 GB, free: 3.676 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 2.849e-05/0.7533, allocations: 39.67 kB / 0.96 GB, free: 3.641 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.22e-06/0.7533, allocations: 1.375 kB / 0.96 GB, free: 3.641 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.14e-05/0.7533, allocations: 2.797 kB / 0.96 GB, free: 3.641 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.179e-05/0.7534, allocations: 20.34 kB / 0.96 GB, free: 3.633 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.642e-06/0.7534, allocations: 9.312 kB / 0.96 GB, free: 3.625 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002255/0.7536, allocations: 52.98 kB / 0.9601 GB, free: 3.605 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.027e-05/0.7537, allocations: 14.81 kB / 0.9601 GB, free: 3.598 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 6.367e-05/0.7537, allocations: 120.7 kB / 0.9602 GB, free: 3.477 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.231e-05/0.7537, allocations: 12.03 kB / 0.9602 GB, free: 3.469 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000284/0.754, allocations: 129.1 kB / 0.9603 GB, free: 3.395 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.074e-06/0.754, allocations: 1.375 kB / 0.9603 GB, free: 3.395 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.548e-06/0.754, allocations: 1.375 kB / 0.9603 GB, free: 3.395 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.557e-06/0.7541, allocations: 7.922 kB / 0.9603 GB, free: 3.387 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003305/0.7544, allocations: 387.4 kB / 0.9607 GB, free: 3.023 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.483e-06/0.7544, allocations: 1.375 kB / 0.9607 GB, free: 3.023 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.799e-05/0.7545, allocations: 12.23 kB / 0.9607 GB, free: 3.02 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.174e-06/0.7545, allocations: 5.375 kB / 0.9607 GB, free: 3.016 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.364e-06/0.7545, allocations: 1.375 kB / 0.9607 GB, free: 3.016 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.883e-06/0.7545, allocations: 7.875 kB / 0.9607 GB, free: 3.008 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.52e-07/0.7545, allocations: 0 / 0.9607 GB, free: 3.008 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002562/0.7548, allocations: 231.3 kB / 0.961 GB, free: 2.828 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 1.811e-05/0.7548, allocations: 82.17 kB / 0.961 GB, free: 2.73 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.46e-05/0.7548, allocations: 5.078 kB / 0.961 GB, free: 2.727 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.417e-05/0.7549, allocations: 14.97 kB / 0.9611 GB, free: 2.719 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.11e-05/0.7549, allocations: 7.109 kB / 0.9611 GB, free: 2.715 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.733e-06/0.7549, allocations: 1.969 kB / 0.9611 GB, free: 2.715 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 3.167e-05/0.755, allocations: 91.73 kB / 0.9611 GB, free: 2.633 MB / 0.7169 GB Notification: Performance of sort global known variables: time 1.01e-07/0.755, allocations: 4 kB / 0.9612 GB, free: 2.629 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.0002554/0.7552, allocations: 24.94 kB / 0.9612 GB, free: 2.625 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.0004573/0.7557, allocations: 0.7641 MB / 0.9619 GB, free: 1.914 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.0003504/0.7561, allocations: 189.4 kB / 0.9621 GB, free: 1.793 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 1.713e-06/0.7561, allocations: 1.281 kB / 0.9621 GB, free: 1.793 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 0.0001204/0.7562, allocations: 48.69 kB / 0.9621 GB, free: 1.773 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002542/0.7565, allocations: 15.36 kB / 0.9622 GB, free: 1.766 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001641/0.7581, allocations: 1.752 MB / 0.9639 GB, free: 216 kB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001912/0.7583, allocations: 0.6907 MB / 0.9645 GB, free: 15.51 MB / 0.7325 GB Notification: Performance of simCode: alias equations: time 3.019e-05/0.7584, allocations: 7.812 kB / 0.9646 GB, free: 15.5 MB / 0.7325 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.112e-05/0.7584, allocations: 22.17 kB / 0.9646 GB, free: 15.48 MB / 0.7325 GB Notification: Performance of SimCode: time 3.01e-07/0.7584, allocations: 1.094 kB / 0.9646 GB, free: 15.48 MB / 0.7325 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01118/0.7696, allocations: 2.23 MB / 0.9668 GB, free: 14.43 MB / 0.7325 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001838/0.7698, allocations: 215 kB / 0.967 GB, free: 14.18 MB / 0.7325 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.689/2.459, allocations: 2.531 kB / 0.967 GB, free: 14.18 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