Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredSampler.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.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 7.0.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo) Running command: "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredSampler,fileNamePrefix="Buildings_maint_7_0_x_Buildings_Controls_OBC_CDL_Discrete_Examples_TriggeredSampler",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredSampler,fileNamePrefix="Buildings_maint_7_0_x_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/Buildings 7.0.3-maint.7.0.x/package.mo): time 1.482/1.482, allocations: 249.5 MB / 257 MB, free: 6.914 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001026/0.001026, allocations: 188.8 kB / 316.3 MB, free: 3.246 MB / 250.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.436/1.436, allocations: 205.3 MB / 0.5671 GB, free: 15.89 MB / 426.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008487/0.0008486, allocations: 87.83 kB / 0.6714 GB, free: 5.012 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 2.175e-05/2.177e-05, allocations: 4 kB / 0.7815 GB, free: 102.6 MB / 0.5417 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.231/0.231, allocations: 106.3 MB / 0.8853 GB, free: 12.16 MB / 0.5573 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.7465/0.9776, allocations: 132.1 MB / 1.014 GB, free: 5.512 MB / 0.6355 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002161/0.9779, allocations: 76.94 kB / 1.014 GB, free: 5.469 MB / 0.6355 GB Notification: Performance of FrontEnd - DAE generated: time 0.002995/0.9809, allocations: 1.116 MB / 1.016 GB, free: 4.473 MB / 0.6355 GB Notification: Performance of FrontEnd: time 1.413e-06/0.9809, allocations: 4 kB / 1.016 GB, free: 4.469 MB / 0.6355 GB Notification: Performance of Transformations before backend: time 8.166e-06/0.9809, allocations: 0 / 1.016 GB, free: 4.469 MB / 0.6355 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 11 * Number of variables: 11 Notification: Performance of Generate backend data structure: time 0.0005057/0.9814, allocations: 374 kB / 1.016 GB, free: 4.062 MB / 0.6355 GB Notification: Performance of prepare preOptimizeDAE: time 5.056e-05/0.9815, allocations: 8.031 kB / 1.016 GB, free: 4.055 MB / 0.6355 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.654e-05/0.9815, allocations: 7.906 kB / 1.016 GB, free: 4.047 MB / 0.6355 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001628/0.9817, allocations: 175 kB / 1.016 GB, free: 3.836 MB / 0.6355 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.952e-05/0.9817, allocations: 7.625 kB / 1.016 GB, free: 3.832 MB / 0.6355 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.006e-05/0.9818, allocations: 4 kB / 1.016 GB, free: 3.828 MB / 0.6355 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001011/0.9819, allocations: 27.17 kB / 1.016 GB, free: 3.809 MB / 0.6355 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001101/0.982, allocations: 55.73 kB / 1.016 GB, free: 3.758 MB / 0.6355 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.899e-05/0.982, allocations: 0 / 1.016 GB, free: 3.758 MB / 0.6355 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.244e-05/0.982, allocations: 0 / 1.016 GB, free: 3.758 MB / 0.6355 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.624e-06/0.982, allocations: 4 kB / 1.016 GB, free: 3.754 MB / 0.6355 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004782/0.9825, allocations: 282.6 kB / 1.016 GB, free: 3.457 MB / 0.6355 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001106/0.9826, allocations: 53.39 kB / 1.016 GB, free: 3.406 MB / 0.6355 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.592e-05/0.9827, allocations: 19.8 kB / 1.016 GB, free: 3.391 MB / 0.6355 GB Notification: Performance of preOpt evalFunc (simulation): time 2.597e-05/0.9827, allocations: 0 / 1.016 GB, free: 3.391 MB / 0.6355 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001432/0.9829, allocations: 70.77 kB / 1.017 GB, free: 3.316 MB / 0.6355 GB Notification: Performance of pre-optimization done (n=8): time 1.222e-06/0.9829, allocations: 0 / 1.017 GB, free: 3.316 MB / 0.6355 GB Notification: Performance of matching and sorting (n=8): time 0.0002057/0.9831, allocations: 79.72 kB / 1.017 GB, free: 3.246 MB / 0.6355 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.252e-05/0.9831, allocations: 55.41 kB / 1.017 GB, free: 3.18 MB / 0.6355 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.799e-05/0.9833, allocations: 116.2 kB / 1.017 GB, free: 3.062 MB / 0.6355 GB Notification: Performance of collectPreVariables (initialization): time 2.065e-05/0.9833, allocations: 25.7 kB / 1.017 GB, free: 3.031 MB / 0.6355 GB Notification: Performance of collectInitialEqns (initialization): time 5.836e-05/0.9833, allocations: 95.25 kB / 1.017 GB, free: 2.941 MB / 0.6355 GB Notification: Performance of collectInitialBindings (initialization): time 2.593e-05/0.9834, allocations: 19.64 kB / 1.017 GB, free: 2.922 MB / 0.6355 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.879e-06/0.9834, allocations: 4.375 kB / 1.017 GB, free: 2.918 MB / 0.6355 GB Notification: Performance of setup shared object (initialization): time 0.0001292/0.9835, allocations: 322.4 kB / 1.017 GB, free: 2.598 MB / 0.6355 GB Notification: Performance of preBalanceInitialSystem (initialization): time 3.533e-05/0.9836, allocations: 18.45 kB / 1.017 GB, free: 2.59 MB / 0.6355 GB Notification: Performance of partitionIndependentBlocks (initialization): time 5.396e-05/0.9836, allocations: 43.23 kB / 1.017 GB, free: 2.539 MB / 0.6355 GB Notification: Performance of analyzeInitialSystem (initialization): time 4.306e-05/0.9837, allocations: 26.61 kB / 1.017 GB, free: 2.52 MB / 0.6355 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.007e-06/0.9837, allocations: 4 kB / 1.017 GB, free: 2.516 MB / 0.6355 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0001327/0.9838, allocations: 83.09 kB / 1.017 GB, free: 2.438 MB / 0.6355 GB Notification: Performance of prepare postOptimizeDAE: time 1.93e-05/0.9839, allocations: 8 kB / 1.017 GB, free: 2.43 MB / 0.6355 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.831e-06/0.9839, allocations: 0 / 1.017 GB, free: 2.43 MB / 0.6355 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.234e-05/0.9839, allocations: 0 / 1.017 GB, free: 2.43 MB / 0.6355 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001138/0.984, allocations: 21.36 kB / 1.017 GB, free: 2.41 MB / 0.6355 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.231e-06/0.984, allocations: 0.9062 kB / 1.017 GB, free: 2.41 MB / 0.6355 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.831e-05/0.9841, allocations: 20.03 kB / 1.017 GB, free: 2.391 MB / 0.6355 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.45e-05/0.9841, allocations: 18.92 kB / 1.017 GB, free: 2.375 MB / 0.6355 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 5 * Number of states: 0 () * Number of discrete variables: 9 ($PRE.triSam1.y,triSam1.y,$PRE.triSam.y,triSam.y,$whenCondition1,$whenCondition2,booPul.y,$PRE.booPul.pulseStart,booPul.pulseStart) * 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 7.721e-05/0.9842, allocations: 111.6 kB / 1.018 GB, free: 2.262 MB / 0.6355 GB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0001089/0.9843, allocations: 82.34 kB / 1.018 GB, free: 2.188 MB / 0.6355 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.216e-06/0.9844, allocations: 0 / 1.018 GB, free: 2.188 MB / 0.6355 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001664/0.9845, allocations: 99.12 kB / 1.018 GB, free: 2.098 MB / 0.6355 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.225e-06/0.9845, allocations: 3.938 kB / 1.018 GB, free: 2.094 MB / 0.6355 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.362e-06/0.9845, allocations: 3.953 kB / 1.018 GB, free: 2.09 MB / 0.6355 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.236e-06/0.9846, allocations: 0 / 1.018 GB, free: 2.09 MB / 0.6355 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003503/0.9849, allocations: 342.1 kB / 1.018 GB, free: 1.734 MB / 0.6355 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.196e-06/0.9849, allocations: 3.938 kB / 1.018 GB, free: 1.734 MB / 0.6355 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.603e-05/0.985, allocations: 12 kB / 1.018 GB, free: 1.723 MB / 0.6355 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.335e-06/0.985, allocations: 0 / 1.018 GB, free: 1.723 MB / 0.6355 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.009e-05/0.985, allocations: 3.984 kB / 1.018 GB, free: 1.719 MB / 0.6355 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.778e-06/0.985, allocations: 7.953 kB / 1.018 GB, free: 1.711 MB / 0.6355 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.555e-06/0.985, allocations: 0 / 1.018 GB, free: 1.711 MB / 0.6355 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001597/0.9852, allocations: 183.4 kB / 1.018 GB, free: 1.531 MB / 0.6355 GB Notification: Performance of postOpt removeConstants (simulation): time 4.317e-05/0.9853, allocations: 77.11 kB / 1.018 GB, free: 1.438 MB / 0.6355 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.876e-05/0.9853, allocations: 3.984 kB / 1.018 GB, free: 1.434 MB / 0.6355 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001137/0.9854, allocations: 19.98 kB / 1.018 GB, free: 1.414 MB / 0.6355 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.622e-05/0.9855, allocations: 14.81 kB / 1.018 GB, free: 1.402 MB / 0.6355 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.099e-06/0.9855, allocations: 0 / 1.018 GB, free: 1.402 MB / 0.6355 GB Notification: Performance of sorting global known variables: time 4.459e-05/0.9855, allocations: 86.77 kB / 1.018 GB, free: 1.32 MB / 0.6355 GB Notification: Performance of sort global known variables: time 1.6e-07/0.9855, allocations: 3.938 kB / 1.018 GB, free: 1.316 MB / 0.6355 GB Notification: Performance of remove unused functions: time 0.0002158/0.9857, allocations: 12 kB / 1.018 GB, free: 1.305 MB / 0.6355 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 (booPul.y,$whenCondition2,$whenCondition1,booPul.pulseStart,triSam.y,triSam1.y) * Number of discrete 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.0004662/0.9862, allocations: 0.719 MB / 1.019 GB, free: 0.5781 MB / 0.6355 GB Notification: Performance of simCode: created initialization part: time 0.0001263/0.9864, allocations: 53.11 kB / 1.019 GB, free: 0.5391 MB / 0.6355 GB Notification: Performance of simCode: created event and clocks part: time 1.653e-06/0.9864, allocations: 4 kB / 1.019 GB, free: 0.5352 MB / 0.6355 GB Notification: Performance of simCode: created simulation system equations: time 5.121e-05/0.9864, allocations: 22.25 kB / 1.019 GB, free: 0.5195 MB / 0.6355 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000212/0.9866, allocations: 8.203 kB / 1.019 GB, free: 0.5117 MB / 0.6355 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00044/0.9871, allocations: 140.3 kB / 1.019 GB, free: 356 kB / 0.6355 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002913/0.9874, allocations: 0.6924 MB / 1.02 GB, free: 15.63 MB / 0.6511 GB Notification: Performance of simCode: alias equations: time 3.613e-05/0.9874, allocations: 11.94 kB / 1.02 GB, free: 15.62 MB / 0.6511 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.559e-05/0.9875, allocations: 17.56 kB / 1.02 GB, free: 15.61 MB / 0.6511 GB Notification: Performance of SimCode: time 3.51e-07/0.9875, allocations: 4 kB / 1.02 GB, free: 15.61 MB / 0.6511 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02091/1.008, allocations: 1.375 MB / 1.021 GB, free: 14.26 MB / 0.6511 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000276/1.009, allocations: 176.3 kB / 1.022 GB, free: 14.05 MB / 0.6511 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.505/2.514, allocations: 0 / 1.022 GB, free: 14.05 MB / 0.6511 GB (rm -f Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredSampler.pipe ; mkfifo Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredSampler.pipe ; head -c 1048576 < Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredSampler.pipe >> ../files/Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredSampler.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_Buildings_maint_7_0_x_Buildings_Controls_OBC_CDL_Discrete_Examples_TriggeredSampler_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Buildings_maint_7_0_x_Buildings_Controls_OBC_CDL_Discrete_Examples_TriggeredSampler.fmu > Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredSampler.pipe 2>&1)