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.UnitDelay.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.UnitDelay,fileNamePrefix="Buildings_maint_8_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_8_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 8.0.1-maint.8.0.x/package.mo): time 2.679/2.679, allocations: 285.6 MB / 293.1 MB, free: 10.15 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.002289/0.002289, allocations: 172.9 kB / 361.4 MB, free: 6.836 MB / 298.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 3.056/3.056, allocations: 205.2 MB / 0.62 GB, free: 11.64 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.0009545/0.0009545, allocations: 93.59 kB / 0.733 GB, free: 44.18 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 3.798e-05/3.797e-05, allocations: 4 kB / 0.8518 GB, free: 2.641 MB / 0.5886 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7197/0.7198, allocations: 115.3 MB / 0.9645 GB, free: 78.95 MB / 0.6667 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.2015/0.9214, allocations: 137.2 MB / 1.098 GB, free: 2.645 MB / 0.698 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002101/0.9217, allocations: 71.95 kB / 1.099 GB, free: 2.574 MB / 0.698 GB Notification: Performance of FrontEnd - DAE generated: time 0.003061/0.9248, allocations: 1.046 MB / 1.1 GB, free: 1.559 MB / 0.698 GB Notification: Performance of FrontEnd: time 2.174e-06/0.9248, allocations: 0.5938 kB / 1.1 GB, free: 1.559 MB / 0.698 GB Notification: Performance of Transformations before backend: time 1.142e-05/0.9248, allocations: 0 / 1.1 GB, free: 1.559 MB / 0.698 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 6 * Number of variables: 6 Notification: Performance of Generate backend data structure: time 0.0004591/0.9253, allocations: 364.4 kB / 1.1 GB, free: 1.16 MB / 0.698 GB Notification: Performance of prepare preOptimizeDAE: time 4.762e-05/0.9254, allocations: 8.031 kB / 1.1 GB, free: 1.152 MB / 0.698 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.73e-05/0.9254, allocations: 5.625 kB / 1.1 GB, free: 1.148 MB / 0.698 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001402/0.9255, allocations: 171.2 kB / 1.1 GB, free: 0.9453 MB / 0.698 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.081e-05/0.9256, allocations: 5.219 kB / 1.1 GB, free: 0.9414 MB / 0.698 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.536e-05/0.9256, allocations: 0 / 1.1 GB, free: 0.9414 MB / 0.698 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 8.076e-05/0.9257, allocations: 12.56 kB / 1.1 GB, free: 0.9297 MB / 0.698 GB Notification: Performance of preOpt clockPartitioning (simulation): time 9.575e-05/0.9258, allocations: 46.19 kB / 1.1 GB, free: 0.8789 MB / 0.698 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.377e-06/0.9258, allocations: 0.5 kB / 1.1 GB, free: 0.8789 MB / 0.698 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.151e-05/0.9258, allocations: 4.531 kB / 1.1 GB, free: 0.875 MB / 0.698 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.308e-06/0.9258, allocations: 0 / 1.1 GB, free: 0.875 MB / 0.698 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004602/0.9263, allocations: 255.5 kB / 1.1 GB, free: 0.5898 MB / 0.698 GB Notification: Performance of preOpt comSubExp (simulation): time 6.259e-05/0.9264, allocations: 35.19 kB / 1.1 GB, free: 0.5469 MB / 0.698 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.826e-05/0.9264, allocations: 14.7 kB / 1.1 GB, free: 0.5312 MB / 0.698 GB Notification: Performance of preOpt evalFunc (simulation): time 2.11e-05/0.9264, allocations: 0 / 1.1 GB, free: 0.5312 MB / 0.698 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 9.577e-05/0.9265, allocations: 56.28 kB / 1.1 GB, free: 476 kB / 0.698 GB Notification: Performance of pre-optimization done (n=5): time 1.162e-06/0.9266, allocations: 0.75 kB / 1.1 GB, free: 476 kB / 0.698 GB Notification: Performance of matching and sorting (n=5): time 0.0001644/0.9267, allocations: 57.62 kB / 1.101 GB, free: 412 kB / 0.698 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.085e-05/0.9268, allocations: 52.09 kB / 1.101 GB, free: 348 kB / 0.698 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.814e-05/0.9268, allocations: 97.66 kB / 1.101 GB, free: 244 kB / 0.698 GB Notification: Performance of collectPreVariables (initialization): time 1.711e-05/0.9269, allocations: 25.7 kB / 1.101 GB, free: 212 kB / 0.698 GB Notification: Performance of collectInitialEqns (initialization): time 5.271e-05/0.9269, allocations: 96.44 kB / 1.101 GB, free: 116 kB / 0.698 GB Notification: Performance of collectInitialBindings (initialization): time 1.668e-05/0.9269, allocations: 13.33 kB / 1.101 GB, free: 104 kB / 0.698 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.03e-06/0.927, allocations: 0 / 1.101 GB, free: 104 kB / 0.698 GB Notification: Performance of setup shared object (initialization): time 0.0001259/0.9271, allocations: 322.8 kB / 1.101 GB, free: 15.78 MB / 0.7136 GB Notification: Performance of preBalanceInitialSystem (initialization): time 2.473e-05/0.9271, allocations: 11.28 kB / 1.101 GB, free: 15.77 MB / 0.7136 GB Notification: Performance of partitionIndependentBlocks (initialization): time 4.439e-05/0.9272, allocations: 41.66 kB / 1.101 GB, free: 15.72 MB / 0.7136 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001399/0.9273, allocations: 20.7 kB / 1.101 GB, free: 15.7 MB / 0.7136 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.774e-06/0.9273, allocations: 0 / 1.101 GB, free: 15.7 MB / 0.7136 GB Notification: Performance of matching and sorting (n=7) (initialization): time 0.0001794/0.9275, allocations: 88.67 kB / 1.101 GB, free: 15.61 MB / 0.7136 GB Notification: Performance of prepare postOptimizeDAE: time 1.737e-05/0.9275, allocations: 4.625 kB / 1.101 GB, free: 15.61 MB / 0.7136 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.633e-06/0.9276, allocations: 1.406 kB / 1.101 GB, free: 15.61 MB / 0.7136 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.493e-05/0.9276, allocations: 4 kB / 1.101 GB, free: 15.6 MB / 0.7136 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001198/0.9277, allocations: 18.98 kB / 1.101 GB, free: 15.59 MB / 0.7136 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.318e-06/0.9277, allocations: 0 / 1.101 GB, free: 15.59 MB / 0.7136 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.979e-05/0.9278, allocations: 15.48 kB / 1.101 GB, free: 15.57 MB / 0.7136 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.738e-06/0.9278, allocations: 0 / 1.101 GB, free: 15.57 MB / 0.7136 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 4 ($PRE.unitDelay1.y,unitDelay1.y,$whenCondition1,unitDelay1.sampleTrigger) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (7): * Single equations (assignments): 7 * 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.0001014/0.9279, allocations: 113.6 kB / 1.101 GB, free: 15.46 MB / 0.7136 GB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 8.376e-05/0.928, allocations: 57.62 kB / 1.101 GB, free: 15.39 MB / 0.7136 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.217e-06/0.928, allocations: 8.031 kB / 1.101 GB, free: 15.39 MB / 0.7136 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001241/0.9282, allocations: 66.09 kB / 1.102 GB, free: 15.32 MB / 0.7136 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.924e-06/0.9282, allocations: 0 / 1.102 GB, free: 15.32 MB / 0.7136 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.094e-06/0.9282, allocations: 6.609 kB / 1.102 GB, free: 15.31 MB / 0.7136 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.827e-06/0.9282, allocations: 0 / 1.102 GB, free: 15.31 MB / 0.7136 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002989/0.9285, allocations: 287.1 kB / 1.102 GB, free: 14.99 MB / 0.7136 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.683e-06/0.9285, allocations: 0 / 1.102 GB, free: 14.99 MB / 0.7136 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.032e-05/0.9286, allocations: 11.98 kB / 1.102 GB, free: 14.98 MB / 0.7136 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.675e-06/0.9286, allocations: 4 kB / 1.102 GB, free: 14.97 MB / 0.7136 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.927e-06/0.9286, allocations: 0 / 1.102 GB, free: 14.97 MB / 0.7136 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.433e-06/0.9286, allocations: 0 / 1.102 GB, free: 14.97 MB / 0.7136 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.09e-06/0.9286, allocations: 4 kB / 1.102 GB, free: 14.97 MB / 0.7136 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001337/0.9288, allocations: 158.3 kB / 1.102 GB, free: 14.8 MB / 0.7136 GB Notification: Performance of postOpt removeConstants (simulation): time 4.389e-05/0.9288, allocations: 81.09 kB / 1.102 GB, free: 14.7 MB / 0.7136 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.815e-05/0.9288, allocations: 0 / 1.102 GB, free: 14.7 MB / 0.7136 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.782e-05/0.9289, allocations: 15.94 kB / 1.102 GB, free: 14.69 MB / 0.7136 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.902e-05/0.929, allocations: 9.484 kB / 1.102 GB, free: 14.68 MB / 0.7136 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.623e-06/0.929, allocations: 7.938 kB / 1.102 GB, free: 14.67 MB / 0.7136 GB Notification: Performance of sorting global known variables: time 3.444e-05/0.929, allocations: 82.25 kB / 1.102 GB, free: 14.59 MB / 0.7136 GB Notification: Performance of sort global known variables: time 1.51e-07/0.929, allocations: 0 / 1.102 GB, free: 14.59 MB / 0.7136 GB Notification: Performance of remove unused functions: time 0.0002315/0.9293, allocations: 15.94 kB / 1.102 GB, free: 14.58 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: 3 (unitDelay1.sampleTrigger,$whenCondition1,unitDelay1.y) * Number of discrete states: 1 (unitDelay1.u) * Top-level inputs: 0 Notification: Strong component statistics for simulation (5): * Single equations (assignments): 4 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * 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.0004419/0.9297, allocations: 0.7043 MB / 1.103 GB, free: 13.85 MB / 0.7136 GB Notification: Performance of simCode: created initialization part: time 9.321e-05/0.9298, allocations: 31.94 kB / 1.103 GB, free: 13.82 MB / 0.7136 GB Notification: Performance of simCode: created event and clocks part: time 2.054e-06/0.9298, allocations: 0 / 1.103 GB, free: 13.82 MB / 0.7136 GB Notification: Performance of simCode: created simulation system equations: time 4.293e-05/0.9299, allocations: 15.98 kB / 1.103 GB, free: 13.8 MB / 0.7136 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001757/0.9301, allocations: 4 kB / 1.103 GB, free: 13.8 MB / 0.7136 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003726/0.9305, allocations: 120.1 kB / 1.103 GB, free: 13.64 MB / 0.7136 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002454/0.9307, allocations: 0.6846 MB / 1.104 GB, free: 12.93 MB / 0.7136 GB Notification: Performance of simCode: alias equations: time 3.003e-05/0.9308, allocations: 10.23 kB / 1.104 GB, free: 12.93 MB / 0.7136 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.561e-05/0.9308, allocations: 18.39 kB / 1.104 GB, free: 12.91 MB / 0.7136 GB Notification: Performance of SimCode: time 2.51e-07/0.9308, allocations: 0 / 1.104 GB, free: 12.91 MB / 0.7136 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01743/0.9482, allocations: 1.101 MB / 1.105 GB, free: 11.86 MB / 0.7136 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000272/0.9486, allocations: 157.6 kB / 1.105 GB, free: 11.67 MB / 0.7136 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.427/2.376, allocations: 0 / 1.105 GB, free: 11.67 MB / 0.7136 GB (rm -f Buildings_maint.8.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.UnitDelay.pipe ; mkfifo Buildings_maint.8.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.UnitDelay.pipe ; head -c 1048576 < Buildings_maint.8.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.UnitDelay.pipe >> ../files/Buildings_maint.8.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.UnitDelay.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_Buildings_maint_8_0_x_Buildings_Controls_OBC_CDL_Discrete_Examples_UnitDelay_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Buildings_maint_8_0_x_Buildings_Controls_OBC_CDL_Discrete_Examples_UnitDelay.fmu > Buildings_maint.8.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.UnitDelay.pipe 2>&1)