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: translateModel(Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredSampler,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|booPul.y|sin1.y|triSam.y|triSam1.y",fileNamePrefix="Buildings_9_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredSampler") translateModel(Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredSampler,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|booPul.y|sin1.y|triSam.y|triSam1.y",fileNamePrefix="Buildings_9_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredSampler") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00113/0.00113, allocations: 99.86 kB / 15.05 MB, free: 1.105 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.001351/0.001351, allocations: 177.3 kB / 15.95 MB, free: 216 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.339/1.339, allocations: 223.2 MB / 239.9 MB, free: 5.43 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.342/2.342, allocations: 390.3 MB / 0.6653 GB, free: 2.945 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.0003513/0.0003513, allocations: 8 kB / 0.8145 GB, free: 14.27 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7498/0.7502, allocations: 142.3 MB / 0.9535 GB, free: 8.062 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredSampler): time 0.0008985/0.7511, allocations: 471.7 kB / 0.954 GB, free: 7.707 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.001126/0.7522, allocations: 1.117 MB / 0.9551 GB, free: 6.809 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.72e-05/0.7523, allocations: 1.344 kB / 0.9551 GB, free: 6.809 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 1.459e-05/0.7523, allocations: 3.938 kB / 0.9551 GB, free: 6.805 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 6.466e-05/0.7524, allocations: 5.641 kB / 0.9551 GB, free: 6.801 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003963/0.7528, allocations: 122.6 kB / 0.9552 GB, free: 6.723 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 8.877e-05/0.7529, allocations: 60.55 kB / 0.9552 GB, free: 6.684 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 9.36e-05/0.753, allocations: 15.58 kB / 0.9553 GB, free: 6.672 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 8.244e-05/0.7531, allocations: 47.2 kB / 0.9553 GB, free: 6.645 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 6.538e-05/0.7531, allocations: 37.89 kB / 0.9553 GB, free: 6.617 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 2.057e-05/0.7532, allocations: 6.719 kB / 0.9554 GB, free: 6.617 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 5.738e-05/0.7532, allocations: 15.08 kB / 0.9554 GB, free: 6.613 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 2.064e-05/0.7533, allocations: 15.94 kB / 0.9554 GB, free: 6.602 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 4.028e-05/0.7533, allocations: 40.56 kB / 0.9554 GB, free: 6.562 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.0001048/0.7534, allocations: 78.66 kB / 0.9555 GB, free: 6.504 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 2.985e-06/0.7534, allocations: 0 / 0.9555 GB, free: 6.504 MB / 0.7169 GB Notification: Performance of FrontEnd: time 1.362e-06/0.7534, allocations: 0 / 0.9555 GB, free: 6.504 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 7.534e-06/0.7535, allocations: 1.469 kB / 0.9555 GB, free: 6.504 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.0004529/0.7539, allocations: 408 kB / 0.9559 GB, free: 6.082 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 3.435e-05/0.754, allocations: 12.41 kB / 0.9559 GB, free: 6.078 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.653e-05/0.754, allocations: 14.8 kB / 0.9559 GB, free: 6.07 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 7.302e-05/0.7541, allocations: 170.2 kB / 0.9561 GB, free: 5.867 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.606e-05/0.7541, allocations: 3.344 kB / 0.9561 GB, free: 5.867 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.583e-05/0.7541, allocations: 11.47 kB / 0.9561 GB, free: 5.863 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001905/0.7543, allocations: 76.2 kB / 0.9562 GB, free: 5.809 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.652e-06/0.7543, allocations: 0 / 0.9562 GB, free: 5.809 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.188e-05/0.7544, allocations: 4.984 kB / 0.9562 GB, free: 5.805 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.759e-06/0.7544, allocations: 5.031 kB / 0.9562 GB, free: 5.801 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001857/0.7546, allocations: 66.78 kB / 0.9562 GB, free: 5.77 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004198/0.755, allocations: 341.9 kB / 0.9566 GB, free: 5.422 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001968/0.7552, allocations: 68.77 kB / 0.9566 GB, free: 5.375 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 2.107e-05/0.7552, allocations: 1.219 kB / 0.9566 GB, free: 5.375 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002122/0.7554, allocations: 96.62 kB / 0.9567 GB, free: 5.297 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=8): time 1.473e-06/0.7555, allocations: 0 / 0.9567 GB, free: 5.297 MB / 0.7169 GB Notification: Performance of matching and sorting (n=8): time 0.0004322/0.7559, allocations: 166.6 kB / 0.9569 GB, free: 5.211 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.876e-05/0.7559, allocations: 56.81 kB / 0.9569 GB, free: 5.145 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.718e-05/0.756, allocations: 124 kB / 0.957 GB, free: 5.027 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 2.175e-05/0.756, allocations: 32.61 kB / 0.9571 GB, free: 4.992 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 4.967e-05/0.7561, allocations: 104 kB / 0.9572 GB, free: 4.891 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 1.689e-05/0.7561, allocations: 14.19 kB / 0.9572 GB, free: 4.879 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.172e-05/0.7561, allocations: 2.406 kB / 0.9572 GB, free: 4.879 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 5.392e-05/0.7562, allocations: 325 kB / 0.9575 GB, free: 4.555 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001443/0.7563, allocations: 52.03 kB / 0.9576 GB, free: 4.535 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001548/0.7565, allocations: 101.1 kB / 0.9577 GB, free: 4.453 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001556/0.7567, allocations: 87.17 kB / 0.9577 GB, free: 4.395 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.885e-06/0.7567, allocations: 1.156 kB / 0.9577 GB, free: 4.395 MB / 0.7169 GB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0003836/0.7571, allocations: 219.1 kB / 0.9579 GB, free: 4.262 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 2.927e-05/0.7571, allocations: 44.95 kB / 0.958 GB, free: 4.219 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.791e-06/0.7571, allocations: 1.469 kB / 0.958 GB, free: 4.219 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.548e-05/0.7571, allocations: 2.406 kB / 0.958 GB, free: 4.219 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.501e-05/0.7572, allocations: 24.73 kB / 0.958 GB, free: 4.207 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.703e-06/0.7572, allocations: 3 kB / 0.958 GB, free: 4.207 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002163/0.7575, allocations: 52.02 kB / 0.9581 GB, free: 4.188 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.248e-05/0.7575, allocations: 14.44 kB / 0.9581 GB, free: 4.18 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 ($PRE.triSam1.y,triSam1.y,$PRE.triSam.y,triSam.y,$whenCondition3,$PRE.booPul.y,booPul.y,$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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 7.355e-05/0.7576, allocations: 119.1 kB / 0.9582 GB, free: 4.062 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.342e-05/0.7576, allocations: 7.016 kB / 0.9582 GB, free: 4.059 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002725/0.7579, allocations: 139.2 kB / 0.9583 GB, free: 3.977 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.186e-06/0.7579, allocations: 0 / 0.9583 GB, free: 3.977 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.137e-06/0.7579, allocations: 0 / 0.9583 GB, free: 3.977 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.865e-06/0.7579, allocations: 1.781 kB / 0.9583 GB, free: 3.977 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003453/0.7583, allocations: 394.3 kB / 0.9587 GB, free: 3.605 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.333e-06/0.7583, allocations: 0 / 0.9587 GB, free: 3.605 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.782e-05/0.7583, allocations: 13.61 kB / 0.9587 GB, free: 3.602 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.447e-06/0.7583, allocations: 5.328 kB / 0.9587 GB, free: 3.598 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.115e-06/0.7583, allocations: 0 / 0.9587 GB, free: 3.598 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.252e-06/0.7584, allocations: 1.375 kB / 0.9587 GB, free: 3.598 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.813e-06/0.7584, allocations: 0 / 0.9587 GB, free: 3.598 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002604/0.7586, allocations: 227 kB / 0.9589 GB, free: 3.422 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 1.929e-05/0.7587, allocations: 82.36 kB / 0.959 GB, free: 3.324 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.724e-05/0.7587, allocations: 9.266 kB / 0.959 GB, free: 3.316 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.337e-05/0.7588, allocations: 13.52 kB / 0.959 GB, free: 3.309 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.69e-05/0.7588, allocations: 11.39 kB / 0.9591 GB, free: 3.301 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.213e-06/0.7588, allocations: 6.188 kB / 0.9591 GB, free: 3.297 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 3.243e-05/0.7589, allocations: 91.58 kB / 0.9592 GB, free: 3.215 MB / 0.7169 GB Notification: Performance of sort global known variables: time 1.1e-07/0.7589, allocations: 0 / 0.9592 GB, free: 3.215 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.0002728/0.7591, allocations: 25.62 kB / 0.9592 GB, free: 3.211 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.000121/0.7593, allocations: 102.4 kB / 0.9593 GB, free: 3.117 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.0003423/0.7596, allocations: 184.9 kB / 0.9595 GB, free: 3 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 2.084e-06/0.7596, allocations: 1.031 kB / 0.9595 GB, free: 3 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 0.0001174/0.7598, allocations: 44.16 kB / 0.9595 GB, free: 2.984 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001866/0.7599, allocations: 19.3 kB / 0.9595 GB, free: 2.973 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003107/0.7603, allocations: 188.8 kB / 0.9597 GB, free: 2.809 MB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001031/0.7604, allocations: 0.6911 MB / 0.9604 GB, free: 2.105 MB / 0.7169 GB Notification: Performance of simCode: alias equations: time 3.095e-05/0.7604, allocations: 15.8 kB / 0.9604 GB, free: 2.094 MB / 0.7169 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.974e-05/0.7604, allocations: 10.47 kB / 0.9604 GB, free: 2.086 MB / 0.7169 GB Notification: Performance of SimCode: time 2.2e-07/0.7604, allocations: 0 / 0.9604 GB, free: 2.086 MB / 0.7169 GB Notification: Performance of Templates: time 0.003463/0.7639, allocations: 1.264 MB / 0.9616 GB, free: 1.441 MB / 0.7169 GB make -j1 -f Buildings_9_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredSampler.makefile (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 & ./Buildings_9_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredSampler -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > 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","../files/Buildings_9_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredSampler.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches