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.UnitDelay.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.UnitDelay,fileNamePrefix="Buildings_maint_7_0_x_Buildings_Controls_OBC_CDL_Discrete_Examples_UnitDelay",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Discrete.Examples.UnitDelay,fileNamePrefix="Buildings_maint_7_0_x_Buildings_Controls_OBC_CDL_Discrete_Examples_UnitDelay",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.455/1.455, 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.001052/0.001052, allocations: 173 kB / 316.3 MB, free: 3.324 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.471/1.471, allocations: 205.3 MB / 0.5671 GB, free: 15.93 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.0008139/0.0008138, allocations: 94.5 kB / 0.6714 GB, free: 5.039 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 1.886e-05/1.886e-05, allocations: 4 kB / 0.7815 GB, free: 102.6 MB / 0.5417 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2142/0.2143, allocations: 106.3 MB / 0.8853 GB, free: 12.21 MB / 0.5573 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.7855/0.9998, allocations: 131.8 MB / 1.014 GB, free: 5.883 MB / 0.6355 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002368/1, allocations: 71.94 kB / 1.014 GB, free: 5.84 MB / 0.6355 GB Notification: Performance of FrontEnd - DAE generated: time 0.002607/1.003, allocations: 0.8616 MB / 1.015 GB, free: 5.066 MB / 0.6355 GB Notification: Performance of FrontEnd: time 1.633e-06/1.003, allocations: 0 / 1.015 GB, free: 5.066 MB / 0.6355 GB Notification: Performance of Transformations before backend: time 1.267e-05/1.003, allocations: 8 kB / 1.015 GB, free: 5.059 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: 7 * Number of variables: 7 Notification: Performance of Generate backend data structure: time 0.0005479/1.003, allocations: 351.3 kB / 1.015 GB, free: 4.676 MB / 0.6355 GB Notification: Performance of prepare preOptimizeDAE: time 6.262e-05/1.003, allocations: 12.03 kB / 1.015 GB, free: 4.664 MB / 0.6355 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.565e-05/1.003, allocations: 3.906 kB / 1.015 GB, free: 4.66 MB / 0.6355 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001745/1.004, allocations: 175 kB / 1.016 GB, free: 4.449 MB / 0.6355 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.203e-05/1.004, allocations: 0 / 1.016 GB, free: 4.449 MB / 0.6355 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.101e-05/1.004, allocations: 11.94 kB / 1.016 GB, free: 4.438 MB / 0.6355 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 9.435e-05/1.004, allocations: 15.62 kB / 1.016 GB, free: 4.43 MB / 0.6355 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001109/1.004, allocations: 53.53 kB / 1.016 GB, free: 4.375 MB / 0.6355 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.264e-05/1.004, allocations: 0 / 1.016 GB, free: 4.375 MB / 0.6355 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.396e-05/1.004, allocations: 3.938 kB / 1.016 GB, free: 4.371 MB / 0.6355 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.402e-06/1.004, allocations: 0 / 1.016 GB, free: 4.371 MB / 0.6355 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004609/1.004, allocations: 256 kB / 1.016 GB, free: 4.098 MB / 0.6355 GB Notification: Performance of preOpt comSubExp (simulation): time 9.05e-05/1.005, allocations: 42.31 kB / 1.016 GB, free: 4.055 MB / 0.6355 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.409e-05/1.005, allocations: 16.73 kB / 1.016 GB, free: 4.039 MB / 0.6355 GB Notification: Performance of preOpt evalFunc (simulation): time 2.338e-05/1.005, allocations: 0 / 1.016 GB, free: 4.039 MB / 0.6355 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001328/1.005, allocations: 62.94 kB / 1.016 GB, free: 3.973 MB / 0.6355 GB Notification: Performance of pre-optimization done (n=6): time 2.805e-06/1.005, allocations: 0 / 1.016 GB, free: 3.973 MB / 0.6355 GB Notification: Performance of matching and sorting (n=6): time 0.0001906/1.005, allocations: 67.98 kB / 1.016 GB, free: 3.91 MB / 0.6355 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.63e-05/1.005, allocations: 59.16 kB / 1.016 GB, free: 3.844 MB / 0.6355 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.395e-05/1.005, allocations: 96.92 kB / 1.016 GB, free: 3.746 MB / 0.6355 GB Notification: Performance of collectPreVariables (initialization): time 1.99e-05/1.005, allocations: 25.7 kB / 1.016 GB, free: 3.715 MB / 0.6355 GB Notification: Performance of collectInitialEqns (initialization): time 4.432e-05/1.005, allocations: 84.14 kB / 1.016 GB, free: 3.629 MB / 0.6355 GB Notification: Performance of collectInitialBindings (initialization): time 2.076e-05/1.005, allocations: 15.69 kB / 1.016 GB, free: 3.617 MB / 0.6355 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.699e-06/1.005, allocations: 0 / 1.016 GB, free: 3.617 MB / 0.6355 GB Notification: Performance of setup shared object (initialization): time 0.0001147/1.005, allocations: 322.6 kB / 1.017 GB, free: 3.297 MB / 0.6355 GB Notification: Performance of preBalanceInitialSystem (initialization): time 2.659e-05/1.005, allocations: 11.94 kB / 1.017 GB, free: 3.289 MB / 0.6355 GB Notification: Performance of partitionIndependentBlocks (initialization): time 4.577e-05/1.005, allocations: 43.98 kB / 1.017 GB, free: 3.234 MB / 0.6355 GB Notification: Performance of analyzeInitialSystem (initialization): time 3.612e-05/1.005, allocations: 15.8 kB / 1.017 GB, free: 3.223 MB / 0.6355 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.803e-06/1.006, allocations: 0 / 1.017 GB, free: 3.223 MB / 0.6355 GB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0001274/1.006, allocations: 84.66 kB / 1.017 GB, free: 3.145 MB / 0.6355 GB Notification: Performance of prepare postOptimizeDAE: time 2.041e-05/1.006, allocations: 4 kB / 1.017 GB, free: 3.141 MB / 0.6355 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.052e-06/1.006, allocations: 0 / 1.017 GB, free: 3.141 MB / 0.6355 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.535e-05/1.006, allocations: 4 kB / 1.017 GB, free: 3.137 MB / 0.6355 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001155/1.006, allocations: 19.92 kB / 1.017 GB, free: 3.117 MB / 0.6355 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.542e-06/1.006, allocations: 0 / 1.017 GB, free: 3.117 MB / 0.6355 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.491e-05/1.006, allocations: 15.92 kB / 1.017 GB, free: 3.102 MB / 0.6355 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.076e-05/1.006, allocations: 9.031 kB / 1.017 GB, free: 3.094 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: 6 ($PRE.unitDelay1.y,unitDelay1.y,$PRE.unitDelay1.firstTrigger,unitDelay1.firstTrigger,$whenCondition1,unitDelay1.sampleTrigger) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (9): * Single equations (assignments): 9 * 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 8.798e-05/1.006, allocations: 111.6 kB / 1.017 GB, free: 2.98 MB / 0.6355 GB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0001051/1.006, allocations: 72.91 kB / 1.017 GB, free: 2.914 MB / 0.6355 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.696e-06/1.006, allocations: 0 / 1.017 GB, free: 2.914 MB / 0.6355 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001435/1.006, allocations: 77.11 kB / 1.017 GB, free: 2.844 MB / 0.6355 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.248e-06/1.006, allocations: 0 / 1.017 GB, free: 2.844 MB / 0.6355 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.621e-06/1.006, allocations: 4.125 kB / 1.017 GB, free: 2.84 MB / 0.6355 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.999e-06/1.006, allocations: 3.953 kB / 1.017 GB, free: 2.836 MB / 0.6355 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002617/1.007, allocations: 306.4 kB / 1.017 GB, free: 2.508 MB / 0.6355 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.903e-06/1.007, allocations: 4 kB / 1.017 GB, free: 2.504 MB / 0.6355 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.345e-05/1.007, allocations: 15.86 kB / 1.017 GB, free: 2.492 MB / 0.6355 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.826e-06/1.007, allocations: 0 / 1.017 GB, free: 2.492 MB / 0.6355 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.035e-06/1.007, allocations: 0 / 1.017 GB, free: 2.492 MB / 0.6355 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.302e-06/1.007, allocations: 0 / 1.017 GB, free: 2.492 MB / 0.6355 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.849e-06/1.007, allocations: 3.953 kB / 1.017 GB, free: 2.488 MB / 0.6355 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001382/1.007, allocations: 163.2 kB / 1.018 GB, free: 2.324 MB / 0.6355 GB Notification: Performance of postOpt removeConstants (simulation): time 3.801e-05/1.007, allocations: 85 kB / 1.018 GB, free: 2.223 MB / 0.6355 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.886e-05/1.007, allocations: 0 / 1.018 GB, free: 2.223 MB / 0.6355 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001015/1.007, allocations: 11.98 kB / 1.018 GB, free: 2.211 MB / 0.6355 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.543e-05/1.007, allocations: 4 kB / 1.018 GB, free: 2.207 MB / 0.6355 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.875e-06/1.007, allocations: 3.953 kB / 1.018 GB, free: 2.203 MB / 0.6355 GB Notification: Performance of sorting global known variables: time 4.172e-05/1.007, allocations: 87.88 kB / 1.018 GB, free: 2.121 MB / 0.6355 GB Notification: Performance of sort global known variables: time 1.7e-07/1.007, allocations: 3.938 kB / 1.018 GB, free: 2.117 MB / 0.6355 GB Notification: Performance of remove unused functions: time 0.0002312/1.007, allocations: 15.98 kB / 1.018 GB, free: 2.102 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: 4 (unitDelay1.sampleTrigger,$whenCondition1,unitDelay1.y,unitDelay1.firstTrigger) * Number of discrete states: 1 (unitDelay1.u) * Top-level inputs: 0 Notification: Strong component statistics for simulation (6): * Single equations (assignments): 4 * 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.0004512/1.008, allocations: 0.6891 MB / 1.018 GB, free: 1.398 MB / 0.6355 GB Notification: Performance of simCode: created initialization part: time 0.0001165/1.008, allocations: 39.38 kB / 1.018 GB, free: 1.371 MB / 0.6355 GB Notification: Performance of simCode: created event and clocks part: time 1.703e-06/1.008, allocations: 320 / 1.018 GB, free: 1.371 MB / 0.6355 GB Notification: Performance of simCode: created simulation system equations: time 4.209e-05/1.008, allocations: 23.92 kB / 1.018 GB, free: 1.352 MB / 0.6355 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001921/1.008, allocations: 5.406 kB / 1.018 GB, free: 1.348 MB / 0.6355 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003875/1.009, allocations: 112.5 kB / 1.019 GB, free: 1.207 MB / 0.6355 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000302/1.009, allocations: 0.6884 MB / 1.019 GB, free: 0.4922 MB / 0.6355 GB Notification: Performance of simCode: alias equations: time 3.461e-05/1.009, allocations: 8.172 kB / 1.019 GB, free: 496 kB / 0.6355 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.898e-05/1.009, allocations: 11.38 kB / 1.019 GB, free: 492 kB / 0.6355 GB Notification: Performance of SimCode: time 1.934e-06/1.009, allocations: 4 kB / 1.019 GB, free: 488 kB / 0.6355 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01843/1.027, allocations: 1.046 MB / 1.02 GB, free: 15.44 MB / 0.6511 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001937/1.028, allocations: 154.2 kB / 1.02 GB, free: 15.25 MB / 0.6511 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.483/2.511, allocations: 0 / 1.02 GB, free: 15.25 MB / 0.6511 GB (rm -f Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.UnitDelay.pipe ; mkfifo Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.UnitDelay.pipe ; head -c 1048576 < Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.UnitDelay.pipe >> ../files/Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.UnitDelay.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_Buildings_maint_7_0_x_Buildings_Controls_OBC_CDL_Discrete_Examples_UnitDelay_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Buildings_maint_7_0_x_Buildings_Controls_OBC_CDL_Discrete_Examples_UnitDelay.fmu > Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.UnitDelay.pipe 2>&1)