Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_8_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTrigger.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Using package Buildings with version 8.1.4 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo) Running command: "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTrigger,fileNamePrefix="Buildings_8_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_8_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/Buildings 8.1.4-maint.8.1.x/package.mo): time 1.719/1.719, allocations: 289.9 MB / 297.4 MB, free: 6.348 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001087/0.001087, allocations: 180.8 kB / 366.7 MB, free: 1.652 MB / 298.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.732/1.732, allocations: 205.2 MB / 0.626 GB, free: 7.18 MB / 474.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0007952/0.000795, allocations: 90.88 kB / 0.74 GB, free: 39.57 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 2.611e-05/2.613e-05, allocations: 8 kB / 0.8598 GB, free: 12.96 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6062/0.6063, allocations: 116.3 MB / 0.9734 GB, free: 76.33 MB / 0.6667 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.1826/0.7889, allocations: 138.2 MB / 1.108 GB, free: 11.97 MB / 0.7136 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002568/0.7893, allocations: 71.95 kB / 1.108 GB, free: 11.9 MB / 0.7136 GB Notification: Performance of FrontEnd - DAE generated: time 0.007252/0.7965, allocations: 2.479 MB / 1.111 GB, free: 9.445 MB / 0.7136 GB Notification: Performance of FrontEnd: time 1.463e-06/0.7966, allocations: 0 / 1.111 GB, free: 9.445 MB / 0.7136 GB Notification: Performance of Transformations before backend: time 8.136e-06/0.7966, allocations: 0 / 1.111 GB, free: 9.445 MB / 0.7136 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.0004883/0.7971, allocations: 372.9 kB / 1.111 GB, free: 9.039 MB / 0.7136 GB Notification: Performance of prepare preOptimizeDAE: time 5.021e-05/0.7971, allocations: 8.031 kB / 1.111 GB, free: 9.031 MB / 0.7136 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.273e-05/0.7972, allocations: 7.906 kB / 1.111 GB, free: 9.023 MB / 0.7136 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001343/0.7973, allocations: 175 kB / 1.111 GB, free: 8.812 MB / 0.7136 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.152e-05/0.7974, allocations: 4.781 kB / 1.111 GB, free: 8.809 MB / 0.7136 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.83e-05/0.7974, allocations: 0 / 1.111 GB, free: 8.809 MB / 0.7136 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 9.155e-05/0.7975, allocations: 27.78 kB / 1.111 GB, free: 8.785 MB / 0.7136 GB Notification: Performance of preOpt clockPartitioning (simulation): time 9.073e-05/0.7976, allocations: 46.28 kB / 1.111 GB, free: 8.734 MB / 0.7136 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.676e-06/0.7976, allocations: 0 / 1.111 GB, free: 8.734 MB / 0.7136 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.552e-05/0.7976, allocations: 4.484 kB / 1.111 GB, free: 8.73 MB / 0.7136 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.911e-06/0.7976, allocations: 4.531 kB / 1.111 GB, free: 8.727 MB / 0.7136 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005521/0.7982, allocations: 287.4 kB / 1.112 GB, free: 8.41 MB / 0.7136 GB Notification: Performance of preOpt comSubExp (simulation): time 9.182e-05/0.7983, allocations: 45.33 kB / 1.112 GB, free: 8.363 MB / 0.7136 GB Notification: Performance of preOpt resolveLoops (simulation): time 4.476e-05/0.7983, allocations: 24.91 kB / 1.112 GB, free: 8.336 MB / 0.7136 GB Notification: Performance of preOpt evalFunc (simulation): time 2.978e-05/0.7984, allocations: 4 kB / 1.112 GB, free: 8.332 MB / 0.7136 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000123/0.7985, allocations: 59.41 kB / 1.112 GB, free: 8.262 MB / 0.7136 GB Notification: Performance of pre-optimization done (n=7): time 1.452e-06/0.7985, allocations: 0 / 1.112 GB, free: 8.262 MB / 0.7136 GB Notification: Performance of matching and sorting (n=7): time 0.0002075/0.7987, allocations: 81.33 kB / 1.112 GB, free: 8.18 MB / 0.7136 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.963e-05/0.7988, allocations: 55.41 kB / 1.112 GB, free: 8.113 MB / 0.7136 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.745e-05/0.7989, allocations: 106.7 kB / 1.112 GB, free: 8.004 MB / 0.7136 GB Notification: Performance of collectPreVariables (initialization): time 2.52e-05/0.7989, allocations: 29.7 kB / 1.112 GB, free: 7.969 MB / 0.7136 GB Notification: Performance of collectInitialEqns (initialization): time 6.26e-05/0.799, allocations: 96.03 kB / 1.112 GB, free: 7.871 MB / 0.7136 GB Notification: Performance of collectInitialBindings (initialization): time 2.301e-05/0.799, allocations: 15.75 kB / 1.112 GB, free: 7.855 MB / 0.7136 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.813e-06/0.799, allocations: 0 / 1.112 GB, free: 7.855 MB / 0.7136 GB Notification: Performance of setup shared object (initialization): time 0.0001576/0.7992, allocations: 318.8 kB / 1.113 GB, free: 7.535 MB / 0.7136 GB Notification: Performance of preBalanceInitialSystem (initialization): time 3.697e-05/0.7992, allocations: 21.3 kB / 1.113 GB, free: 7.516 MB / 0.7136 GB Notification: Performance of partitionIndependentBlocks (initialization): time 7.667e-05/0.7993, allocations: 55.3 kB / 1.113 GB, free: 7.441 MB / 0.7136 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002752/0.7996, allocations: 46.52 kB / 1.113 GB, free: 7.398 MB / 0.7136 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.083e-06/0.7996, allocations: 0 / 1.113 GB, free: 7.398 MB / 0.7136 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.000341/0.8, allocations: 117.2 kB / 1.113 GB, free: 7.281 MB / 0.7136 GB Notification: Performance of prepare postOptimizeDAE: time 2.13e-05/0.8, allocations: 9.406 kB / 1.113 GB, free: 7.273 MB / 0.7136 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.31e-06/0.8, allocations: 0 / 1.113 GB, free: 7.273 MB / 0.7136 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.628e-05/0.8, allocations: 4 kB / 1.113 GB, free: 7.27 MB / 0.7136 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001369/0.8002, allocations: 20.14 kB / 1.113 GB, free: 7.25 MB / 0.7136 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.665e-06/0.8002, allocations: 8 kB / 1.113 GB, free: 7.242 MB / 0.7136 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.855e-05/0.8003, allocations: 15.89 kB / 1.113 GB, free: 7.227 MB / 0.7136 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.128e-05/0.8003, allocations: 8 kB / 1.113 GB, free: 7.219 MB / 0.7136 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 ($PRE.triggeredSampler1.y,triggeredSampler1.y,$PRE.triggeredSampler.y,triggeredSampler.y,$whenCondition1,samTri.y,$whenCondition2,samTri1.y) * Number of discrete 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 9.872e-05/0.8004, allocations: 112.9 kB / 1.113 GB, free: 7.102 MB / 0.7136 GB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0001268/0.8006, allocations: 76.17 kB / 1.113 GB, free: 7.023 MB / 0.7136 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.397e-05/0.8006, allocations: 11.89 kB / 1.113 GB, free: 7.012 MB / 0.7136 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.192e-05/0.8006, allocations: 4.625 kB / 1.113 GB, free: 7.008 MB / 0.7136 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.538e-06/0.8006, allocations: 11.94 kB / 1.113 GB, free: 6.996 MB / 0.7136 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.719e-06/0.8006, allocations: 0 / 1.113 GB, free: 6.996 MB / 0.7136 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.226e-06/0.8007, allocations: 0 / 1.113 GB, free: 6.996 MB / 0.7136 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003333/0.801, allocations: 319 kB / 1.113 GB, free: 6.641 MB / 0.7136 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.323e-06/0.801, allocations: 0 / 1.113 GB, free: 6.641 MB / 0.7136 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.644e-05/0.8011, allocations: 11.98 kB / 1.113 GB, free: 6.629 MB / 0.7136 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.558e-06/0.8011, allocations: 4 kB / 1.113 GB, free: 6.625 MB / 0.7136 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.998e-06/0.8011, allocations: 0 / 1.113 GB, free: 6.625 MB / 0.7136 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.104e-06/0.8011, allocations: 5.438 kB / 1.113 GB, free: 6.621 MB / 0.7136 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.33e-06/0.8011, allocations: 3.953 kB / 1.113 GB, free: 6.617 MB / 0.7136 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001684/0.8013, allocations: 175.4 kB / 1.114 GB, free: 6.43 MB / 0.7136 GB Notification: Performance of postOpt removeConstants (simulation): time 4.724e-05/0.8014, allocations: 81.09 kB / 1.114 GB, free: 6.332 MB / 0.7136 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.61e-05/0.8014, allocations: 0 / 1.114 GB, free: 6.332 MB / 0.7136 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.225e-05/0.8015, allocations: 8 kB / 1.114 GB, free: 6.324 MB / 0.7136 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.665e-05/0.8015, allocations: 17.8 kB / 1.114 GB, free: 6.309 MB / 0.7136 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.168e-06/0.8016, allocations: 7.391 kB / 1.114 GB, free: 6.305 MB / 0.7136 GB Notification: Performance of sorting global known variables: time 5.265e-05/0.8016, allocations: 97.45 kB / 1.114 GB, free: 6.211 MB / 0.7136 GB Notification: Performance of sort global known variables: time 1.71e-07/0.8016, allocations: 0 / 1.114 GB, free: 6.211 MB / 0.7136 GB Notification: Performance of remove unused functions: time 0.0002584/0.8019, allocations: 23.94 kB / 1.114 GB, free: 6.188 MB / 0.7136 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 () * 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 (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.0004802/0.8024, allocations: 0.7124 MB / 1.114 GB, free: 5.449 MB / 0.7136 GB Notification: Performance of simCode: created initialization part: time 0.0001286/0.8025, allocations: 47.92 kB / 1.114 GB, free: 5.402 MB / 0.7136 GB Notification: Performance of simCode: created event and clocks part: time 1.523e-06/0.8025, allocations: 0 / 1.114 GB, free: 5.402 MB / 0.7136 GB Notification: Performance of simCode: created simulation system equations: time 5.15e-05/0.8026, allocations: 29.41 kB / 1.115 GB, free: 5.375 MB / 0.7136 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002029/0.8028, allocations: 10.06 kB / 1.115 GB, free: 5.367 MB / 0.7136 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004195/0.8032, allocations: 132.6 kB / 1.115 GB, free: 5.203 MB / 0.7136 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002558/0.8035, allocations: 0.7006 MB / 1.115 GB, free: 4.477 MB / 0.7136 GB Notification: Performance of simCode: alias equations: time 3.544e-05/0.8035, allocations: 4 kB / 1.115 GB, free: 4.473 MB / 0.7136 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.269e-05/0.8036, allocations: 23.42 kB / 1.115 GB, free: 4.449 MB / 0.7136 GB Notification: Performance of SimCode: time 2.91e-07/0.8036, allocations: 0 / 1.115 GB, free: 4.449 MB / 0.7136 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02147/0.8251, allocations: 1.443 MB / 1.117 GB, free: 3.055 MB / 0.7136 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002638/0.8254, allocations: 157.2 kB / 1.117 GB, free: 2.863 MB / 0.7136 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.695/2.52, allocations: 4 kB / 1.117 GB, free: 2.859 MB / 0.7136 GB (rm -f Buildings_8_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTrigger.pipe ; mkfifo Buildings_8_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTrigger.pipe ; head -c 1048576 < Buildings_8_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTrigger.pipe >> ../files/Buildings_8_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTrigger.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_Buildings_8_Buildings_Controls_OBC_CDL_Logical_Sources_Validation_SampleTrigger_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 Buildings_8_Buildings_Controls_OBC_CDL_Logical_Sources_Validation_SampleTrigger.fmu > Buildings_8_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTrigger.pipe 2>&1)