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.837/1.837, allocations: 289.7 MB / 302.2 MB, free: 2.125 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.00116/0.001159, allocations: 177.9 kB / 371.6 MB, free: 3.383 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.643/1.643, allocations: 205.1 MB / 0.6309 GB, free: 11.77 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.0008988/0.0008988, allocations: 92.89 kB / 0.745 GB, free: 54.49 MB / 0.5573 GB Notification: Performance of FrontEnd - loaded program: time 3.448e-05/3.45e-05, allocations: 4 kB / 0.8663 GB, free: 14.97 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2438/0.2438, allocations: 116.3 MB / 0.9799 GB, free: 10.5 MB / 0.7136 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.7364/0.9803, allocations: 138.9 MB / 1.116 GB, free: 44.92 MB / 0.7448 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002782/0.9806, allocations: 71.27 kB / 1.116 GB, free: 44.89 MB / 0.7448 GB Notification: Performance of FrontEnd - DAE generated: time 0.006439/0.9871, allocations: 2.486 MB / 1.118 GB, free: 43.44 MB / 0.7448 GB Notification: Performance of FrontEnd: time 1.463e-06/0.9871, allocations: 0.5 kB / 1.118 GB, free: 43.44 MB / 0.7448 GB Notification: Performance of Transformations before backend: time 7.604e-06/0.9872, allocations: 4 kB / 1.118 GB, free: 43.44 MB / 0.7448 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.000364/0.9875, allocations: 370.4 kB / 1.118 GB, free: 43.06 MB / 0.7448 GB Notification: Performance of prepare preOptimizeDAE: time 4.876e-05/0.9876, allocations: 12.03 kB / 1.118 GB, free: 43.05 MB / 0.7448 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.503e-05/0.9876, allocations: 34.97 kB / 1.118 GB, free: 43.01 MB / 0.7448 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.384e-05/0.9877, allocations: 13.83 kB / 1.118 GB, free: 43 MB / 0.7448 GB Notification: Performance of preOpt evaluateParameters (simulation): time 7.506e-05/0.9878, allocations: 167 kB / 1.119 GB, free: 42.8 MB / 0.7448 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.482e-05/0.9878, allocations: 15.08 kB / 1.119 GB, free: 42.79 MB / 0.7448 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.734e-05/0.9878, allocations: 4.562 kB / 1.119 GB, free: 42.79 MB / 0.7448 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001104/0.9879, allocations: 48.91 kB / 1.119 GB, free: 42.74 MB / 0.7448 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.013e-06/0.9879, allocations: 0 / 1.119 GB, free: 42.74 MB / 0.7448 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.588e-06/0.988, allocations: 3.938 kB / 1.119 GB, free: 42.74 MB / 0.7448 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.913e-06/0.988, allocations: 11.38 kB / 1.119 GB, free: 42.74 MB / 0.7448 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.089e-05/0.988, allocations: 15.94 kB / 1.119 GB, free: 42.73 MB / 0.7448 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004709/0.9885, allocations: 316.5 kB / 1.119 GB, free: 42.42 MB / 0.7448 GB Notification: Performance of preOpt comSubExp (simulation): time 8.611e-05/0.9886, allocations: 49.34 kB / 1.119 GB, free: 42.38 MB / 0.7448 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.099e-05/0.9886, allocations: 20.55 kB / 1.119 GB, free: 42.36 MB / 0.7448 GB Notification: Performance of preOpt evalFunc (simulation): time 2.254e-05/0.9887, allocations: 0 / 1.119 GB, free: 42.36 MB / 0.7448 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 9.837e-05/0.9888, allocations: 69.55 kB / 1.119 GB, free: 42.29 MB / 0.7448 GB Notification: Performance of pre-optimization done (n=7): time 1.453e-06/0.9888, allocations: 0 / 1.119 GB, free: 42.29 MB / 0.7448 GB Notification: Performance of matching and sorting (n=7): time 0.0001606/0.9889, allocations: 77.44 kB / 1.119 GB, free: 42.23 MB / 0.7448 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.067e-05/0.989, allocations: 59.36 kB / 1.119 GB, free: 42.16 MB / 0.7448 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.551e-05/0.9891, allocations: 114.1 kB / 1.119 GB, free: 42.05 MB / 0.7448 GB Notification: Performance of collectPreVariables (initialization): time 1.138e-05/0.9891, allocations: 25.7 kB / 1.119 GB, free: 42.02 MB / 0.7448 GB Notification: Performance of collectInitialEqns (initialization): time 3.885e-05/0.9891, allocations: 95.48 kB / 1.12 GB, free: 41.93 MB / 0.7448 GB Notification: Performance of collectInitialBindings (initialization): time 1.669e-05/0.9891, allocations: 20.2 kB / 1.12 GB, free: 41.91 MB / 0.7448 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.603e-06/0.9892, allocations: 3.938 kB / 1.12 GB, free: 41.91 MB / 0.7448 GB Notification: Performance of setup shared object (initialization): time 4.627e-05/0.9892, allocations: 314.1 kB / 1.12 GB, free: 41.6 MB / 0.7448 GB Notification: Performance of preBalanceInitialSystem (initialization): time 3.748e-05/0.9893, allocations: 19.69 kB / 1.12 GB, free: 41.59 MB / 0.7448 GB Notification: Performance of partitionIndependentBlocks (initialization): time 5.139e-05/0.9893, allocations: 65.58 kB / 1.12 GB, free: 41.51 MB / 0.7448 GB Notification: Performance of analyzeInitialSystem (initialization): time 4.962e-05/0.9894, allocations: 18.95 kB / 1.12 GB, free: 41.5 MB / 0.7448 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.004e-06/0.9894, allocations: 0.6562 kB / 1.12 GB, free: 41.5 MB / 0.7448 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0001467/0.9895, allocations: 111.6 kB / 1.12 GB, free: 41.41 MB / 0.7448 GB Notification: Performance of prepare postOptimizeDAE: time 1.352e-05/0.9896, allocations: 8 kB / 1.12 GB, free: 41.4 MB / 0.7448 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.489e-06/0.9896, allocations: 0 / 1.12 GB, free: 41.4 MB / 0.7448 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.219e-05/0.9896, allocations: 4 kB / 1.12 GB, free: 41.4 MB / 0.7448 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001303/0.9897, allocations: 23.16 kB / 1.12 GB, free: 41.38 MB / 0.7448 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.148e-05/0.9897, allocations: 7.422 kB / 1.12 GB, free: 41.38 MB / 0.7448 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.013e-05/0.9898, allocations: 22.28 kB / 1.12 GB, free: 41.36 MB / 0.7448 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.38e-05/0.9899, allocations: 4.875 kB / 1.12 GB, free: 41.36 MB / 0.7448 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 5.432e-05/0.9899, allocations: 117.8 kB / 1.12 GB, free: 41.24 MB / 0.7448 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.223e-05/0.9899, allocations: 4 kB / 1.12 GB, free: 41.24 MB / 0.7448 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.897e-05/0.99, allocations: 12.5 kB / 1.12 GB, free: 41.23 MB / 0.7448 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.513e-06/0.99, allocations: 0 / 1.12 GB, free: 41.23 MB / 0.7448 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.328e-06/0.99, allocations: 4 kB / 1.12 GB, free: 41.23 MB / 0.7448 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.995e-06/0.99, allocations: 0 / 1.12 GB, free: 41.23 MB / 0.7448 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002398/0.9902, allocations: 357.7 kB / 1.121 GB, free: 40.88 MB / 0.7448 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.545e-06/0.9903, allocations: 0.6875 kB / 1.121 GB, free: 40.88 MB / 0.7448 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.343e-05/0.9903, allocations: 12.22 kB / 1.121 GB, free: 40.87 MB / 0.7448 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.304e-06/0.9903, allocations: 0 / 1.121 GB, free: 40.87 MB / 0.7448 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.998e-06/0.9904, allocations: 4.562 kB / 1.121 GB, free: 40.86 MB / 0.7448 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.563e-06/0.9904, allocations: 0 / 1.121 GB, free: 40.86 MB / 0.7448 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.125e-06/0.9904, allocations: 4.578 kB / 1.121 GB, free: 40.86 MB / 0.7448 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001197/0.9905, allocations: 178.2 kB / 1.121 GB, free: 40.69 MB / 0.7448 GB Notification: Performance of postOpt removeConstants (simulation): time 2.095e-05/0.9905, allocations: 81.11 kB / 1.121 GB, free: 40.59 MB / 0.7448 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.586e-05/0.9905, allocations: 0 / 1.121 GB, free: 40.59 MB / 0.7448 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.887e-05/0.9906, allocations: 15.8 kB / 1.121 GB, free: 40.59 MB / 0.7448 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.803e-05/0.9907, allocations: 8.141 kB / 1.121 GB, free: 40.58 MB / 0.7448 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.803e-06/0.9907, allocations: 4 kB / 1.121 GB, free: 40.58 MB / 0.7448 GB Notification: Performance of sorting global known variables: time 3.361e-05/0.9907, allocations: 88.38 kB / 1.121 GB, free: 40.5 MB / 0.7448 GB Notification: Performance of sort global known variables: time 1.5e-07/0.9907, allocations: 7.938 kB / 1.121 GB, free: 40.49 MB / 0.7448 GB Notification: Performance of remove unused functions: time 0.0002351/0.991, allocations: 23.88 kB / 1.121 GB, free: 40.47 MB / 0.7448 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.0003238/0.9913, allocations: 0.724 MB / 1.122 GB, free: 39.75 MB / 0.7448 GB Notification: Performance of simCode: created initialization part: time 0.0001175/0.9914, allocations: 55.77 kB / 1.122 GB, free: 39.71 MB / 0.7448 GB Notification: Performance of simCode: created event and clocks part: time 2.053e-06/0.9915, allocations: 4.062 kB / 1.122 GB, free: 39.7 MB / 0.7448 GB Notification: Performance of simCode: created simulation system equations: time 4.203e-05/0.9915, allocations: 24.5 kB / 1.122 GB, free: 39.69 MB / 0.7448 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000175/0.9917, allocations: 5.781 kB / 1.122 GB, free: 39.68 MB / 0.7448 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000393/0.9921, allocations: 152.6 kB / 1.122 GB, free: 39.52 MB / 0.7448 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001187/0.9922, allocations: 0.6948 MB / 1.123 GB, free: 38.81 MB / 0.7448 GB Notification: Performance of simCode: alias equations: time 3.374e-05/0.9923, allocations: 8 kB / 1.123 GB, free: 38.8 MB / 0.7448 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.466e-05/0.9923, allocations: 22.25 kB / 1.123 GB, free: 38.8 MB / 0.7448 GB Notification: Performance of SimCode: time 3.11e-07/0.9923, allocations: 0 / 1.123 GB, free: 38.8 MB / 0.7448 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01179/1.004, allocations: 1.791 MB / 1.124 GB, free: 37.83 MB / 0.7448 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000165/1.004, allocations: 171.7 kB / 1.125 GB, free: 37.61 MB / 0.7448 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.605/2.609, allocations: 1.062 kB / 1.125 GB, free: 37.61 MB / 0.7448 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)