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.334/1.334, allocations: 251.9 MB / 266.9 MB, free: 10.99 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001311/0.001311, allocations: 176.9 kB / 326.5 MB, free: 2.227 MB / 250.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.151/2.151, allocations: 205.4 MB / 0.5775 GB, free: 20.25 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.001154/0.001155, allocations: 93.73 kB / 0.6821 GB, free: 12.86 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 0.0003531/0.0003531, allocations: 12.12 kB / 0.7963 GB, free: 135.2 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2499/0.2502, allocations: 106.3 MB / 0.9002 GB, free: 63.79 MB / 0.6042 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.1653/0.4156, allocations: 131.9 MB / 1.029 GB, free: 11.68 MB / 0.6823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002677/0.4159, allocations: 79.89 kB / 1.029 GB, free: 11.61 MB / 0.6823 GB Notification: Performance of FrontEnd - DAE generated: time 0.00307/0.419, allocations: 1.118 MB / 1.03 GB, free: 10.48 MB / 0.6823 GB Notification: Performance of FrontEnd: time 3.917e-06/0.419, allocations: 0 / 1.03 GB, free: 10.48 MB / 0.6823 GB Notification: Performance of Transformations before backend: time 8.837e-06/0.419, allocations: 4 kB / 1.03 GB, free: 10.48 MB / 0.6823 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.0005214/0.4195, allocations: 391 kB / 1.031 GB, free: 10.05 MB / 0.6823 GB Notification: Performance of prepare preOptimizeDAE: time 4.584e-05/0.4196, allocations: 8.031 kB / 1.031 GB, free: 10.04 MB / 0.6823 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.975e-05/0.4197, allocations: 38.56 kB / 1.031 GB, free: 9.996 MB / 0.6823 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.208e-05/0.4197, allocations: 7.844 kB / 1.031 GB, free: 9.988 MB / 0.6823 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001348/0.4198, allocations: 178.9 kB / 1.031 GB, free: 9.773 MB / 0.6823 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.351e-05/0.4199, allocations: 8 kB / 1.031 GB, free: 9.766 MB / 0.6823 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.374e-05/0.4199, allocations: 8 kB / 1.031 GB, free: 9.758 MB / 0.6823 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002041/0.4201, allocations: 81.64 kB / 1.031 GB, free: 9.672 MB / 0.6823 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.434e-06/0.4201, allocations: 0 / 1.031 GB, free: 9.672 MB / 0.6823 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.062e-05/0.4201, allocations: 0 / 1.031 GB, free: 9.672 MB / 0.6823 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.689e-06/0.4201, allocations: 0 / 1.031 GB, free: 9.672 MB / 0.6823 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002023/0.4203, allocations: 67.89 kB / 1.031 GB, free: 9.605 MB / 0.6823 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005361/0.4209, allocations: 308.7 kB / 1.031 GB, free: 9.254 MB / 0.6823 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001733/0.4211, allocations: 74.55 kB / 1.031 GB, free: 9.172 MB / 0.6823 GB Notification: Performance of preOpt evalFunc (simulation): time 2.432e-05/0.4211, allocations: 0 / 1.031 GB, free: 9.172 MB / 0.6823 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002277/0.4213, allocations: 87.44 kB / 1.031 GB, free: 9.074 MB / 0.6823 GB Notification: Performance of pre-optimization done (n=8): time 3.076e-06/0.4214, allocations: 4.109 kB / 1.031 GB, free: 9.07 MB / 0.6823 GB Notification: Performance of matching and sorting (n=8): time 0.0004441/0.4218, allocations: 157.4 kB / 1.032 GB, free: 8.91 MB / 0.6823 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.16e-05/0.4219, allocations: 67.39 kB / 1.032 GB, free: 8.832 MB / 0.6823 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.656e-05/0.422, allocations: 113 kB / 1.032 GB, free: 8.711 MB / 0.6823 GB Notification: Performance of collectPreVariables (initialization): time 2.169e-05/0.422, allocations: 29.7 kB / 1.032 GB, free: 8.676 MB / 0.6823 GB Notification: Performance of collectInitialEqns (initialization): time 6.556e-05/0.4221, allocations: 92.05 kB / 1.032 GB, free: 8.582 MB / 0.6823 GB Notification: Performance of collectInitialBindings (initialization): time 2.409e-05/0.4221, allocations: 11.81 kB / 1.032 GB, free: 8.57 MB / 0.6823 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.39e-06/0.4221, allocations: 4 kB / 1.032 GB, free: 8.566 MB / 0.6823 GB Notification: Performance of setup shared object (initialization): time 0.0001223/0.4223, allocations: 318.8 kB / 1.032 GB, free: 8.246 MB / 0.6823 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001157/0.4224, allocations: 35.97 kB / 1.032 GB, free: 8.211 MB / 0.6823 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001274/0.4225, allocations: 64.27 kB / 1.032 GB, free: 8.133 MB / 0.6823 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001163/0.4226, allocations: 40.64 kB / 1.032 GB, free: 8.094 MB / 0.6823 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.425e-06/0.4226, allocations: 0 / 1.032 GB, free: 8.094 MB / 0.6823 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0003057/0.423, allocations: 137.5 kB / 1.032 GB, free: 7.953 MB / 0.6823 GB Notification: Performance of prepare postOptimizeDAE: time 1.746e-05/0.423, allocations: 4 kB / 1.032 GB, free: 7.949 MB / 0.6823 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.173e-06/0.423, allocations: 4 kB / 1.032 GB, free: 7.945 MB / 0.6823 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.431e-05/0.423, allocations: 0 / 1.032 GB, free: 7.945 MB / 0.6823 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001292/0.4232, allocations: 19.98 kB / 1.032 GB, free: 7.926 MB / 0.6823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.114e-05/0.4232, allocations: 7.891 kB / 1.032 GB, free: 7.918 MB / 0.6823 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001027/0.4233, allocations: 23.95 kB / 1.032 GB, free: 7.895 MB / 0.6823 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.217e-06/0.4233, allocations: 4 kB / 1.032 GB, free: 7.891 MB / 0.6823 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 () * Number of clocked 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 0.0001087/0.4234, allocations: 120.5 kB / 1.033 GB, free: 7.766 MB / 0.6823 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.725e-05/0.4234, allocations: 11.89 kB / 1.033 GB, free: 7.754 MB / 0.6823 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003244/0.4238, allocations: 126 kB / 1.033 GB, free: 7.629 MB / 0.6823 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.049e-06/0.4238, allocations: 7.938 kB / 1.033 GB, free: 7.621 MB / 0.6823 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.318e-06/0.4238, allocations: 0 / 1.033 GB, free: 7.621 MB / 0.6823 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.149e-05/0.4238, allocations: 7.953 kB / 1.033 GB, free: 7.613 MB / 0.6823 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000539/0.4244, allocations: 402.8 kB / 1.033 GB, free: 7.164 MB / 0.6823 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.903e-06/0.4244, allocations: 0 / 1.033 GB, free: 7.164 MB / 0.6823 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.859e-05/0.4244, allocations: 11.98 kB / 1.033 GB, free: 7.152 MB / 0.6823 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.326e-06/0.4245, allocations: 7.938 kB / 1.033 GB, free: 7.145 MB / 0.6823 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.756e-06/0.4245, allocations: 0 / 1.033 GB, free: 7.145 MB / 0.6823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.31e-06/0.4245, allocations: 3.953 kB / 1.033 GB, free: 7.141 MB / 0.6823 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.61e-07/0.4245, allocations: 3.938 kB / 1.033 GB, free: 7.137 MB / 0.6823 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002905/0.4248, allocations: 223.5 kB / 1.033 GB, free: 6.902 MB / 0.6823 GB Notification: Performance of postOpt removeConstants (simulation): time 3.596e-05/0.4248, allocations: 85.02 kB / 1.033 GB, free: 6.801 MB / 0.6823 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.718e-05/0.4249, allocations: 3.984 kB / 1.033 GB, free: 6.797 MB / 0.6823 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001146/0.425, allocations: 19.98 kB / 1.033 GB, free: 6.777 MB / 0.6823 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.911e-05/0.425, allocations: 15.94 kB / 1.033 GB, free: 6.762 MB / 0.6823 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.071e-06/0.425, allocations: 0 / 1.033 GB, free: 6.762 MB / 0.6823 GB Notification: Performance of sorting global known variables: time 5.124e-05/0.4251, allocations: 95.58 kB / 1.034 GB, free: 6.668 MB / 0.6823 GB Notification: Performance of sort global known variables: time 1e-07/0.4251, allocations: 0 / 1.034 GB, free: 6.668 MB / 0.6823 GB Notification: Performance of remove unused functions: time 0.0002213/0.4253, allocations: 12 kB / 1.034 GB, free: 6.656 MB / 0.6823 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 () * 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.0006419/0.426, allocations: 0.7553 MB / 1.034 GB, free: 5.871 MB / 0.6823 GB Notification: Performance of simCode: created initialization part: time 0.0002906/0.4263, allocations: 91.86 kB / 1.034 GB, free: 5.781 MB / 0.6823 GB Notification: Performance of simCode: created event and clocks part: time 2.885e-06/0.4263, allocations: 0 / 1.034 GB, free: 5.781 MB / 0.6823 GB Notification: Performance of simCode: created simulation system equations: time 0.000125/0.4264, allocations: 44.22 kB / 1.034 GB, free: 5.738 MB / 0.6823 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002288/0.4267, allocations: 19.94 kB / 1.034 GB, free: 5.719 MB / 0.6823 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001353/0.428, allocations: 1.186 MB / 1.036 GB, free: 4.461 MB / 0.6823 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002366/0.4283, allocations: 0.6985 MB / 1.036 GB, free: 3.738 MB / 0.6823 GB Notification: Performance of simCode: alias equations: time 4.117e-05/0.4283, allocations: 7.984 kB / 1.036 GB, free: 3.73 MB / 0.6823 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.015e-05/0.4284, allocations: 19.44 kB / 1.036 GB, free: 3.715 MB / 0.6823 GB Notification: Performance of SimCode: time 2e-07/0.4284, allocations: 3.938 kB / 1.036 GB, free: 3.711 MB / 0.6823 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01256/0.441, allocations: 1.68 MB / 1.038 GB, free: 2.203 MB / 0.6823 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001999/0.4412, allocations: 205.4 kB / 1.038 GB, free: 1.957 MB / 0.6823 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.475/1.916, allocations: 0 / 1.038 GB, free: 1.957 MB / 0.6823 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)