Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_maint.8.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredSampler.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.1-maint.8.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 8.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.1-maint.8.0.x/package.mo) Running command: "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredSampler,fileNamePrefix="Buildings_maint_8_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_8_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 8.0.1-maint.8.0.x/package.mo): time 2.828/2.828, allocations: 285.6 MB / 293.1 MB, free: 10.2 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.001792/0.001792, allocations: 176.9 kB / 361.4 MB, free: 6.812 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.55/1.55, allocations: 205.2 MB / 0.62 GB, free: 11.63 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.0009136/0.0009139, allocations: 91.66 kB / 0.733 GB, free: 44.14 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 2.452e-05/2.454e-05, allocations: 4 kB / 0.8518 GB, free: 2.621 MB / 0.5886 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6206/0.6207, allocations: 115.3 MB / 0.9645 GB, free: 78.66 MB / 0.6667 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.1799/0.8007, allocations: 137.7 MB / 1.099 GB, free: 1.992 MB / 0.698 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001964/0.8009, allocations: 80.06 kB / 1.099 GB, free: 1.918 MB / 0.698 GB Notification: Performance of FrontEnd - DAE generated: time 0.006511/0.8075, allocations: 2.254 MB / 1.101 GB, free: 15.72 MB / 0.7136 GB Notification: Performance of FrontEnd: time 1.222e-06/0.8075, allocations: 0.625 kB / 1.101 GB, free: 15.72 MB / 0.7136 GB Notification: Performance of Transformations before backend: time 5.58e-06/0.8075, allocations: 0 / 1.101 GB, free: 15.72 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: 10 * Number of variables: 10 Notification: Performance of Generate backend data structure: time 0.0004705/0.808, allocations: 398.2 kB / 1.102 GB, free: 15.29 MB / 0.7136 GB Notification: Performance of prepare preOptimizeDAE: time 4.121e-05/0.808, allocations: 8.031 kB / 1.102 GB, free: 15.28 MB / 0.7136 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.819e-05/0.8081, allocations: 13.66 kB / 1.102 GB, free: 15.27 MB / 0.7136 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001237/0.8082, allocations: 175 kB / 1.102 GB, free: 15.05 MB / 0.7136 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.537e-05/0.8082, allocations: 0.5 kB / 1.102 GB, free: 15.05 MB / 0.7136 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.409e-05/0.8083, allocations: 8.656 kB / 1.102 GB, free: 15.05 MB / 0.7136 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 8.312e-05/0.8084, allocations: 23.94 kB / 1.102 GB, free: 15.02 MB / 0.7136 GB Notification: Performance of preOpt clockPartitioning (simulation): time 9.75e-05/0.8085, allocations: 59.14 kB / 1.102 GB, free: 14.96 MB / 0.7136 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.366e-06/0.8085, allocations: 3.375 kB / 1.102 GB, free: 14.96 MB / 0.7136 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.016e-05/0.8085, allocations: 0 / 1.102 GB, free: 14.96 MB / 0.7136 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.021e-05/0.8085, allocations: 1.969 kB / 1.102 GB, free: 14.96 MB / 0.7136 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004647/0.809, allocations: 325.8 kB / 1.102 GB, free: 14.61 MB / 0.7136 GB Notification: Performance of preOpt comSubExp (simulation): time 8.972e-05/0.8091, allocations: 46.58 kB / 1.102 GB, free: 14.55 MB / 0.7136 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.235e-05/0.8091, allocations: 16.98 kB / 1.102 GB, free: 14.53 MB / 0.7136 GB Notification: Performance of preOpt evalFunc (simulation): time 2.066e-05/0.8092, allocations: 6.625 kB / 1.102 GB, free: 14.53 MB / 0.7136 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001188/0.8093, allocations: 71.38 kB / 1.102 GB, free: 14.45 MB / 0.7136 GB Notification: Performance of pre-optimization done (n=8): time 1.422e-06/0.8093, allocations: 0 / 1.102 GB, free: 14.45 MB / 0.7136 GB Notification: Performance of matching and sorting (n=8): time 0.0002025/0.8095, allocations: 89.62 kB / 1.102 GB, free: 14.35 MB / 0.7136 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.038e-05/0.8095, allocations: 59.41 kB / 1.102 GB, free: 14.28 MB / 0.7136 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.291e-05/0.8096, allocations: 107.1 kB / 1.103 GB, free: 14.17 MB / 0.7136 GB Notification: Performance of collectPreVariables (initialization): time 3.397e-05/0.8097, allocations: 29.7 kB / 1.103 GB, free: 14.14 MB / 0.7136 GB Notification: Performance of collectInitialEqns (initialization): time 6.015e-05/0.8097, allocations: 104 kB / 1.103 GB, free: 14.03 MB / 0.7136 GB Notification: Performance of collectInitialBindings (initialization): time 1.838e-05/0.8097, allocations: 11.8 kB / 1.103 GB, free: 14.02 MB / 0.7136 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.399e-05/0.8098, allocations: 8 kB / 1.103 GB, free: 14.01 MB / 0.7136 GB Notification: Performance of setup shared object (initialization): time 0.0001077/0.8099, allocations: 318.8 kB / 1.103 GB, free: 13.69 MB / 0.7136 GB Notification: Performance of preBalanceInitialSystem (initialization): time 7.927e-05/0.81, allocations: 36 kB / 1.103 GB, free: 13.66 MB / 0.7136 GB Notification: Performance of partitionIndependentBlocks (initialization): time 9.517e-05/0.8101, allocations: 77.14 kB / 1.103 GB, free: 13.56 MB / 0.7136 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001853/0.8103, allocations: 46.97 kB / 1.103 GB, free: 13.52 MB / 0.7136 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.164e-06/0.8103, allocations: 0 / 1.103 GB, free: 13.52 MB / 0.7136 GB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0003599/0.8106, allocations: 157.4 kB / 1.103 GB, free: 13.36 MB / 0.7136 GB Notification: Performance of prepare postOptimizeDAE: time 3.461e-05/0.8107, allocations: 38.48 kB / 1.103 GB, free: 13.32 MB / 0.7136 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.683e-06/0.8107, allocations: 4 kB / 1.103 GB, free: 13.31 MB / 0.7136 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.202e-05/0.8107, allocations: 0 / 1.103 GB, free: 13.31 MB / 0.7136 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001107/0.8108, allocations: 15.98 kB / 1.103 GB, free: 13.3 MB / 0.7136 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.33e-06/0.8108, allocations: 7.938 kB / 1.103 GB, free: 13.29 MB / 0.7136 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002183/0.8111, allocations: 52.02 kB / 1.103 GB, free: 13.24 MB / 0.7136 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.125e-05/0.8111, allocations: 8 kB / 1.103 GB, free: 13.23 MB / 0.7136 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 () * 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 8.558e-05/0.8112, allocations: 118.4 kB / 1.104 GB, free: 13.11 MB / 0.7136 GB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0001193/0.8113, allocations: 81.67 kB / 1.104 GB, free: 13.02 MB / 0.7136 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.304e-05/0.8113, allocations: 15.84 kB / 1.104 GB, free: 13.01 MB / 0.7136 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001734/0.8115, allocations: 90.3 kB / 1.104 GB, free: 12.91 MB / 0.7136 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.809e-06/0.8115, allocations: 0 / 1.104 GB, free: 12.91 MB / 0.7136 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.921e-06/0.8115, allocations: 6.844 kB / 1.104 GB, free: 12.91 MB / 0.7136 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.819e-06/0.8116, allocations: 3.953 kB / 1.104 GB, free: 12.9 MB / 0.7136 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002915/0.8119, allocations: 322.2 kB / 1.104 GB, free: 12.55 MB / 0.7136 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.096e-06/0.8119, allocations: 0 / 1.104 GB, free: 12.55 MB / 0.7136 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.675e-05/0.8119, allocations: 19.92 kB / 1.104 GB, free: 12.53 MB / 0.7136 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.254e-06/0.812, allocations: 0 / 1.104 GB, free: 12.53 MB / 0.7136 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.107e-05/0.812, allocations: 4 kB / 1.104 GB, free: 12.52 MB / 0.7136 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.583e-06/0.812, allocations: 0 / 1.104 GB, free: 12.52 MB / 0.7136 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.619e-06/0.812, allocations: 3.953 kB / 1.104 GB, free: 12.52 MB / 0.7136 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001769/0.8122, allocations: 183.4 kB / 1.104 GB, free: 12.32 MB / 0.7136 GB Notification: Performance of postOpt removeConstants (simulation): time 5.421e-05/0.8122, allocations: 90.14 kB / 1.104 GB, free: 12.22 MB / 0.7136 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.588e-05/0.8123, allocations: 0 / 1.104 GB, free: 12.22 MB / 0.7136 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.39e-05/0.8124, allocations: 15.98 kB / 1.104 GB, free: 12.2 MB / 0.7136 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.14e-05/0.8124, allocations: 3.984 kB / 1.104 GB, free: 12.2 MB / 0.7136 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.817e-06/0.8124, allocations: 7.953 kB / 1.104 GB, free: 12.19 MB / 0.7136 GB Notification: Performance of sorting global known variables: time 4.385e-05/0.8125, allocations: 87.28 kB / 1.104 GB, free: 12.11 MB / 0.7136 GB Notification: Performance of sort global known variables: time 1.51e-07/0.8125, allocations: 0 / 1.104 GB, free: 12.11 MB / 0.7136 GB Notification: Performance of remove unused functions: time 0.0002678/0.8128, allocations: 27.98 kB / 1.104 GB, free: 12.08 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 ($whenCondition3,$whenCondition1,$whenCondition2,booPul.y,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.0005034/0.8133, allocations: 0.7355 MB / 1.105 GB, free: 11.32 MB / 0.7136 GB Notification: Performance of simCode: created initialization part: time 0.0002114/0.8135, allocations: 139.3 kB / 1.105 GB, free: 11.17 MB / 0.7136 GB Notification: Performance of simCode: created event and clocks part: time 1.823e-06/0.8135, allocations: 0 / 1.105 GB, free: 11.17 MB / 0.7136 GB Notification: Performance of simCode: created simulation system equations: time 5.222e-05/0.8136, allocations: 31.92 kB / 1.105 GB, free: 11.14 MB / 0.7136 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002067/0.8138, allocations: 15.98 kB / 1.105 GB, free: 11.12 MB / 0.7136 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004258/0.8142, allocations: 145.8 kB / 1.106 GB, free: 10.95 MB / 0.7136 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002869/0.8145, allocations: 0.6937 MB / 1.106 GB, free: 10.23 MB / 0.7136 GB Notification: Performance of simCode: alias equations: time 3.188e-05/0.8145, allocations: 4 kB / 1.106 GB, free: 10.22 MB / 0.7136 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.091e-05/0.8146, allocations: 23.42 kB / 1.106 GB, free: 10.2 MB / 0.7136 GB Notification: Performance of SimCode: time 2.71e-07/0.8146, allocations: 0 / 1.106 GB, free: 10.2 MB / 0.7136 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01853/0.8331, allocations: 1.829 MB / 1.108 GB, free: 8.453 MB / 0.7136 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003056/0.8335, allocations: 158.2 kB / 1.108 GB, free: 8.266 MB / 0.7136 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.679/2.513, allocations: 0 / 1.108 GB, free: 8.266 MB / 0.7136 GB (rm -f Buildings_maint.8.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredSampler.pipe ; mkfifo Buildings_maint.8.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredSampler.pipe ; head -c 1048576 < Buildings_maint.8.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredSampler.pipe >> ../files/Buildings_maint.8.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredSampler.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_Buildings_maint_8_0_x_Buildings_Controls_OBC_CDL_Discrete_Examples_TriggeredSampler_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Buildings_maint_8_0_x_Buildings_Controls_OBC_CDL_Discrete_Examples_TriggeredSampler.fmu > Buildings_maint.8.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredSampler.pipe 2>&1)