Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_8_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredSampler.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.Discrete.Examples.TriggeredSampler,fileNamePrefix="Buildings_8_Buildings_Controls_OBC_CDL_Discrete_Examples_TriggeredSampler",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredSampler,fileNamePrefix="Buildings_8_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.1.4-maint.8.1.x/package.mo): time 1.659/1.659, allocations: 292.6 MB / 307.5 MB, free: 5.227 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.001107/0.001107, allocations: 184 kB / 377.1 MB, free: 1.539 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.805/1.805, allocations: 205.4 MB / 0.6366 GB, free: 8.645 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.001273/0.001273, allocations: 88.88 kB / 0.7509 GB, free: 62.95 MB / 0.5573 GB Notification: Performance of FrontEnd - loaded program: time 0.0003534/0.0003536, allocations: 8 kB / 0.8749 GB, free: 11.12 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2934/0.2938, allocations: 116.3 MB / 0.9884 GB, free: 6.66 MB / 0.7136 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.8364/1.13, allocations: 139.4 MB / 1.125 GB, free: 35.35 MB / 0.7292 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000337/1.131, allocations: 76.48 kB / 1.125 GB, free: 35.29 MB / 0.7292 GB Notification: Performance of FrontEnd - DAE generated: time 0.006811/1.137, allocations: 2.271 MB / 1.127 GB, free: 33.64 MB / 0.7292 GB Notification: Performance of FrontEnd: time 2.815e-06/1.138, allocations: 0 / 1.127 GB, free: 33.64 MB / 0.7292 GB Notification: Performance of Transformations before backend: time 9.518e-06/1.138, allocations: 0.5625 kB / 1.127 GB, free: 33.64 MB / 0.7292 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.0005178/1.138, allocations: 420.3 kB / 1.127 GB, free: 33.2 MB / 0.7292 GB Notification: Performance of prepare preOptimizeDAE: time 5.342e-05/1.138, allocations: 16.02 kB / 1.127 GB, free: 33.18 MB / 0.7292 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.117e-05/1.138, allocations: 39.86 kB / 1.127 GB, free: 33.13 MB / 0.7292 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.966e-05/1.138, allocations: 10.53 kB / 1.127 GB, free: 33.12 MB / 0.7292 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001133/1.138, allocations: 170.5 kB / 1.128 GB, free: 32.92 MB / 0.7292 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.773e-05/1.138, allocations: 4.562 kB / 1.128 GB, free: 32.92 MB / 0.7292 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.796e-05/1.138, allocations: 15.44 kB / 1.128 GB, free: 32.91 MB / 0.7292 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002037/1.139, allocations: 80.56 kB / 1.128 GB, free: 32.84 MB / 0.7292 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.217e-05/1.139, allocations: 3.938 kB / 1.128 GB, free: 32.83 MB / 0.7292 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.298e-05/1.139, allocations: 4.562 kB / 1.128 GB, free: 32.83 MB / 0.7292 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.897e-06/1.139, allocations: 0 / 1.128 GB, free: 32.83 MB / 0.7292 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001759/1.139, allocations: 54.45 kB / 1.128 GB, free: 32.79 MB / 0.7292 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000486/1.139, allocations: 349 kB / 1.128 GB, free: 32.45 MB / 0.7292 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001599/1.14, allocations: 66.2 kB / 1.128 GB, free: 32.38 MB / 0.7292 GB Notification: Performance of preOpt evalFunc (simulation): time 2.35e-05/1.14, allocations: 4 kB / 1.128 GB, free: 32.38 MB / 0.7292 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002464/1.14, allocations: 98.23 kB / 1.128 GB, free: 32.29 MB / 0.7292 GB Notification: Performance of pre-optimization done (n=8): time 1.383e-06/1.14, allocations: 0 / 1.128 GB, free: 32.29 MB / 0.7292 GB Notification: Performance of matching and sorting (n=8): time 0.000418/1.14, allocations: 165.9 kB / 1.128 GB, free: 32.14 MB / 0.7292 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.574e-05/1.14, allocations: 62.73 kB / 1.128 GB, free: 32.07 MB / 0.7292 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.001e-05/1.14, allocations: 105 kB / 1.128 GB, free: 31.96 MB / 0.7292 GB Notification: Performance of collectPreVariables (initialization): time 2.717e-05/1.14, allocations: 33.7 kB / 1.129 GB, free: 31.92 MB / 0.7292 GB Notification: Performance of collectInitialEqns (initialization): time 5.626e-05/1.14, allocations: 100.3 kB / 1.129 GB, free: 31.82 MB / 0.7292 GB Notification: Performance of collectInitialBindings (initialization): time 2.05e-05/1.14, allocations: 19.8 kB / 1.129 GB, free: 31.8 MB / 0.7292 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.122e-05/1.141, allocations: 0 / 1.129 GB, free: 31.8 MB / 0.7292 GB Notification: Performance of setup shared object (initialization): time 7.779e-05/1.141, allocations: 322.4 kB / 1.129 GB, free: 31.48 MB / 0.7292 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001403/1.141, allocations: 54.03 kB / 1.129 GB, free: 31.44 MB / 0.7292 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001524/1.141, allocations: 91.88 kB / 1.129 GB, free: 31.34 MB / 0.7292 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001539/1.141, allocations: 92.58 kB / 1.129 GB, free: 31.25 MB / 0.7292 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.504e-06/1.141, allocations: 0 / 1.129 GB, free: 31.25 MB / 0.7292 GB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0003834/1.141, allocations: 219.2 kB / 1.129 GB, free: 31.05 MB / 0.7292 GB Notification: Performance of prepare postOptimizeDAE: time 3.563e-05/1.142, allocations: 45.81 kB / 1.129 GB, free: 31 MB / 0.7292 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.613e-06/1.142, allocations: 4.969 kB / 1.129 GB, free: 31 MB / 0.7292 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.662e-05/1.142, allocations: 4 kB / 1.129 GB, free: 31 MB / 0.7292 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001086/1.142, allocations: 15.95 kB / 1.129 GB, free: 30.98 MB / 0.7292 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.568e-06/1.142, allocations: 4 kB / 1.129 GB, free: 30.98 MB / 0.7292 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002032/1.142, allocations: 54.25 kB / 1.129 GB, free: 30.94 MB / 0.7292 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.467e-05/1.142, allocations: 16.73 kB / 1.13 GB, free: 30.93 MB / 0.7292 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 () * Number of clocked 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.725e-05/1.142, allocations: 117.8 kB / 1.13 GB, free: 30.8 MB / 0.7292 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.286e-05/1.142, allocations: 7.906 kB / 1.13 GB, free: 30.79 MB / 0.7292 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002977/1.142, allocations: 135.1 kB / 1.13 GB, free: 30.68 MB / 0.7292 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.695e-06/1.142, allocations: 0 / 1.13 GB, free: 30.68 MB / 0.7292 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.444e-06/1.142, allocations: 4.5 kB / 1.13 GB, free: 30.68 MB / 0.7292 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.837e-06/1.142, allocations: 1.031 kB / 1.13 GB, free: 30.68 MB / 0.7292 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003656/1.143, allocations: 390.7 kB / 1.13 GB, free: 30.27 MB / 0.7292 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.276e-06/1.143, allocations: 3.969 kB / 1.13 GB, free: 30.27 MB / 0.7292 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.855e-05/1.143, allocations: 8 kB / 1.13 GB, free: 30.26 MB / 0.7292 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.793e-06/1.143, allocations: 0 / 1.13 GB, free: 30.26 MB / 0.7292 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.568e-05/1.143, allocations: 8.062 kB / 1.13 GB, free: 30.25 MB / 0.7292 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.232e-06/1.143, allocations: 0 / 1.13 GB, free: 30.25 MB / 0.7292 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.004e-06/1.143, allocations: 3.953 kB / 1.13 GB, free: 30.25 MB / 0.7292 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002577/1.143, allocations: 229.2 kB / 1.13 GB, free: 30.03 MB / 0.7292 GB Notification: Performance of postOpt removeConstants (simulation): time 2.77e-05/1.143, allocations: 81.02 kB / 1.13 GB, free: 29.93 MB / 0.7292 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.893e-05/1.143, allocations: 0.5 kB / 1.13 GB, free: 29.93 MB / 0.7292 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.718e-05/1.143, allocations: 22.42 kB / 1.13 GB, free: 29.91 MB / 0.7292 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.48e-05/1.143, allocations: 7.469 kB / 1.13 GB, free: 29.91 MB / 0.7292 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.736e-06/1.143, allocations: 4.516 kB / 1.13 GB, free: 29.91 MB / 0.7292 GB Notification: Performance of sorting global known variables: time 3.634e-05/1.143, allocations: 91.42 kB / 1.131 GB, free: 29.82 MB / 0.7292 GB Notification: Performance of sort global known variables: time 1.3e-07/1.143, allocations: 0 / 1.131 GB, free: 29.82 MB / 0.7292 GB Notification: Performance of remove unused functions: time 0.0002588/1.144, allocations: 35.94 kB / 1.131 GB, free: 29.79 MB / 0.7292 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 () * 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.0005161/1.144, allocations: 0.7734 MB / 1.131 GB, free: 29.01 MB / 0.7292 GB Notification: Performance of simCode: created initialization part: time 0.0003427/1.145, allocations: 184.8 kB / 1.132 GB, free: 28.83 MB / 0.7292 GB Notification: Performance of simCode: created event and clocks part: time 2.425e-06/1.145, allocations: 0 / 1.132 GB, free: 28.83 MB / 0.7292 GB Notification: Performance of simCode: created simulation system equations: time 0.0001129/1.145, allocations: 43.88 kB / 1.132 GB, free: 28.8 MB / 0.7292 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002047/1.145, allocations: 20.38 kB / 1.132 GB, free: 28.78 MB / 0.7292 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007709/1.146, allocations: 1.173 MB / 1.133 GB, free: 27.56 MB / 0.7292 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001627/1.146, allocations: 0.6954 MB / 1.133 GB, free: 26.85 MB / 0.7292 GB Notification: Performance of simCode: alias equations: time 3.343e-05/1.146, allocations: 5.031 kB / 1.133 GB, free: 26.85 MB / 0.7292 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.463e-05/1.146, allocations: 19 kB / 1.133 GB, free: 26.84 MB / 0.7292 GB Notification: Performance of SimCode: time 2.4e-07/1.146, allocations: 4 kB / 1.133 GB, free: 26.83 MB / 0.7292 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01298/1.159, allocations: 2.18 MB / 1.136 GB, free: 25.65 MB / 0.7292 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001881/1.159, allocations: 191.3 kB / 1.136 GB, free: 25.41 MB / 0.7292 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.702/2.862, allocations: 7.875 kB / 1.136 GB, free: 25.4 MB / 0.7292 GB (rm -f Buildings_8_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredSampler.pipe ; mkfifo Buildings_8_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredSampler.pipe ; head -c 1048576 < Buildings_8_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredSampler.pipe >> ../files/Buildings_8_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredSampler.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_Buildings_8_Buildings_Controls_OBC_CDL_Discrete_Examples_TriggeredSampler_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Buildings_8_Buildings_Controls_OBC_CDL_Discrete_Examples_TriggeredSampler.fmu > Buildings_8_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredSampler.pipe 2>&1)