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.368/1.368, allocations: 252 MB / 267 MB, free: 10.96 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.001051/0.001051, allocations: 182.8 kB / 326.6 MB, free: 2.211 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.641/1.641, allocations: 205.4 MB / 0.5777 GB, free: 20.54 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.0007598/0.0007595, allocations: 86.14 kB / 0.6822 GB, free: 13.34 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 0.0003576/0.0003577, allocations: 10.84 kB / 0.7965 GB, free: 134.9 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2476/0.248, allocations: 106.3 MB / 0.9003 GB, free: 64.18 MB / 0.6042 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Examples.UnitDelay): time 0.001601/0.2496, allocations: 1.097 MB / 0.9014 GB, free: 63.07 MB / 0.6042 GB Notification: Performance of NFInst.instExpressions: time 0.000452/0.2501, allocations: 224.3 kB / 0.9016 GB, free: 62.85 MB / 0.6042 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.55e-05/0.2502, allocations: 0 / 0.9016 GB, free: 62.85 MB / 0.6042 GB Notification: Performance of NFTyping.typeComponents: time 1.824e-05/0.2502, allocations: 0 / 0.9016 GB, free: 62.85 MB / 0.6042 GB Notification: Performance of NFTyping.typeBindings: time 7.001e-05/0.2503, allocations: 11.94 kB / 0.9016 GB, free: 62.84 MB / 0.6042 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001877/0.2505, allocations: 15.98 kB / 0.9016 GB, free: 62.82 MB / 0.6042 GB Notification: Performance of NFFlatten.flatten: time 8.198e-05/0.2505, allocations: 43.84 kB / 0.9017 GB, free: 62.78 MB / 0.6042 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001045/0.2507, allocations: 15.97 kB / 0.9017 GB, free: 62.77 MB / 0.6042 GB Notification: Performance of NFEvalConstants.evaluate: time 6.154e-05/0.2507, allocations: 7.938 kB / 0.9017 GB, free: 62.76 MB / 0.6042 GB Notification: Performance of NFSimplifyModel.simplify: time 4.959e-05/0.2508, allocations: 27.84 kB / 0.9017 GB, free: 62.73 MB / 0.6042 GB Notification: Performance of NFPackage.collectConstants: time 1.623e-05/0.2508, allocations: 0 / 0.9017 GB, free: 62.73 MB / 0.6042 GB Notification: Performance of NFFlatten.collectFunctions: time 1.236e-05/0.2508, allocations: 4 kB / 0.9017 GB, free: 62.73 MB / 0.6042 GB Notification: Performance of NFScalarize.scalarize: time 1.367e-05/0.2508, allocations: 8 kB / 0.9017 GB, free: 62.72 MB / 0.6042 GB Notification: Performance of NFVerifyModel.verify: time 3.312e-05/0.2509, allocations: 33.64 kB / 0.9018 GB, free: 62.68 MB / 0.6042 GB Notification: Performance of NFConvertDAE.convert: time 7.347e-05/0.251, allocations: 35.91 kB / 0.9018 GB, free: 62.64 MB / 0.6042 GB Notification: Performance of FrontEnd - DAE generated: time 9.338e-06/0.251, allocations: 0 / 0.9018 GB, free: 62.64 MB / 0.6042 GB Notification: Performance of FrontEnd: time 2.245e-06/0.251, allocations: 0 / 0.9018 GB, free: 62.64 MB / 0.6042 GB Notification: Performance of Transformations before backend: time 6.262e-06/0.251, allocations: 0 / 0.9018 GB, free: 62.64 MB / 0.6042 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.0005045/0.2515, allocations: 367.5 kB / 0.9021 GB, free: 62.24 MB / 0.6042 GB Notification: Performance of prepare preOptimizeDAE: time 4.183e-05/0.2516, allocations: 8.031 kB / 0.9022 GB, free: 62.23 MB / 0.6042 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.234e-05/0.2516, allocations: 38.56 kB / 0.9022 GB, free: 62.18 MB / 0.6042 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.892e-05/0.2516, allocations: 3.938 kB / 0.9022 GB, free: 62.18 MB / 0.6042 GB Notification: Performance of preOpt evaluateParameters (simulation): time 8.843e-05/0.2517, allocations: 167 kB / 0.9024 GB, free: 61.98 MB / 0.6042 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.21e-05/0.2518, allocations: 0 / 0.9024 GB, free: 61.98 MB / 0.6042 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.13e-05/0.2518, allocations: 7.984 kB / 0.9024 GB, free: 61.97 MB / 0.6042 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001938/0.252, allocations: 69.67 kB / 0.9024 GB, free: 61.89 MB / 0.6042 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.306e-06/0.252, allocations: 0 / 0.9024 GB, free: 61.89 MB / 0.6042 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.203e-05/0.252, allocations: 0 / 0.9024 GB, free: 61.89 MB / 0.6042 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.559e-06/0.252, allocations: 3.938 kB / 0.9024 GB, free: 61.89 MB / 0.6042 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001848/0.2522, allocations: 51.95 kB / 0.9025 GB, free: 61.84 MB / 0.6042 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003957/0.2526, allocations: 288.7 kB / 0.9028 GB, free: 61.51 MB / 0.6042 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001627/0.2528, allocations: 62.48 kB / 0.9028 GB, free: 61.44 MB / 0.6042 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001017/0.2529, allocations: 36.97 kB / 0.9028 GB, free: 61.4 MB / 0.6042 GB Notification: Performance of preOpt evalFunc (simulation): time 2.759e-05/0.2529, allocations: 0 / 0.9028 GB, free: 61.4 MB / 0.6042 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002345/0.2532, allocations: 79.38 kB / 0.9029 GB, free: 61.31 MB / 0.6042 GB Notification: Performance of pre-optimization done (n=6): time 1.443e-06/0.2532, allocations: 0 / 0.9029 GB, free: 61.31 MB / 0.6042 GB Notification: Performance of matching and sorting (n=6): time 0.0004207/0.2536, allocations: 137.5 kB / 0.9031 GB, free: 61.17 MB / 0.6042 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.453e-05/0.2537, allocations: 59.3 kB / 0.9031 GB, free: 61.1 MB / 0.6042 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.888e-05/0.2537, allocations: 117.8 kB / 0.9032 GB, free: 60.97 MB / 0.6042 GB Notification: Performance of collectPreVariables (initialization): time 1.225e-05/0.2538, allocations: 29.7 kB / 0.9033 GB, free: 60.94 MB / 0.6042 GB Notification: Performance of collectInitialEqns (initialization): time 3.889e-05/0.2538, allocations: 84.14 kB / 0.9033 GB, free: 60.85 MB / 0.6042 GB Notification: Performance of collectInitialBindings (initialization): time 1.929e-05/0.2538, allocations: 11.81 kB / 0.9033 GB, free: 60.84 MB / 0.6042 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.382e-06/0.2539, allocations: 4 kB / 0.9033 GB, free: 60.84 MB / 0.6042 GB Notification: Performance of setup shared object (initialization): time 7.037e-05/0.2539, allocations: 314.8 kB / 0.9036 GB, free: 60.52 MB / 0.6042 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.912e-05/0.254, allocations: 27.98 kB / 0.9037 GB, free: 60.49 MB / 0.6042 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001038/0.2541, allocations: 68.2 kB / 0.9037 GB, free: 60.41 MB / 0.6042 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001041/0.2543, allocations: 39.97 kB / 0.9038 GB, free: 60.37 MB / 0.6042 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.004e-06/0.2543, allocations: 0 / 0.9038 GB, free: 60.37 MB / 0.6042 GB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0002383/0.2545, allocations: 117.7 kB / 0.9039 GB, free: 60.25 MB / 0.6042 GB Notification: Performance of prepare postOptimizeDAE: time 1.984e-05/0.2545, allocations: 8 kB / 0.9039 GB, free: 60.24 MB / 0.6042 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.19e-06/0.2546, allocations: 0 / 0.9039 GB, free: 60.24 MB / 0.6042 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.272e-05/0.2546, allocations: 0 / 0.9039 GB, free: 60.24 MB / 0.6042 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.949e-05/0.2547, allocations: 23.92 kB / 0.9039 GB, free: 60.22 MB / 0.6042 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.616e-06/0.2547, allocations: 0 / 0.9039 GB, free: 60.22 MB / 0.6042 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.597e-05/0.2548, allocations: 19.84 kB / 0.9039 GB, free: 60.2 MB / 0.6042 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.959e-06/0.2548, allocations: 8 kB / 0.9039 GB, free: 60.19 MB / 0.6042 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 () * Number of clocked 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 6.809e-05/0.2549, allocations: 120.1 kB / 0.9041 GB, free: 60.07 MB / 0.6042 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.929e-06/0.2549, allocations: 192 / 0.9041 GB, free: 60.07 MB / 0.6042 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002618/0.2551, allocations: 110 kB / 0.9042 GB, free: 59.95 MB / 0.6042 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.495e-06/0.2552, allocations: 7.938 kB / 0.9042 GB, free: 59.95 MB / 0.6042 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.07e-06/0.2552, allocations: 0 / 0.9042 GB, free: 59.95 MB / 0.6042 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.747e-06/0.2552, allocations: 0 / 0.9042 GB, free: 59.95 MB / 0.6042 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003728/0.2556, allocations: 366.4 kB / 0.9045 GB, free: 59.53 MB / 0.6042 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.262e-06/0.2556, allocations: 0 / 0.9045 GB, free: 59.53 MB / 0.6042 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.748e-05/0.2556, allocations: 15.98 kB / 0.9045 GB, free: 59.52 MB / 0.6042 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.056e-06/0.2556, allocations: 0 / 0.9045 GB, free: 59.52 MB / 0.6042 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.316e-06/0.2557, allocations: 3.938 kB / 0.9045 GB, free: 59.51 MB / 0.6042 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.373e-06/0.2557, allocations: 4 kB / 0.9045 GB, free: 59.51 MB / 0.6042 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.154e-06/0.2557, allocations: 4.266 kB / 0.9046 GB, free: 59.5 MB / 0.6042 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002408/0.2559, allocations: 199.9 kB / 0.9047 GB, free: 59.29 MB / 0.6042 GB Notification: Performance of postOpt removeConstants (simulation): time 2.228e-05/0.2559, allocations: 85 kB / 0.9048 GB, free: 59.19 MB / 0.6042 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.927e-05/0.256, allocations: 8.062 kB / 0.9048 GB, free: 59.18 MB / 0.6042 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001212/0.2561, allocations: 11.98 kB / 0.9048 GB, free: 59.17 MB / 0.6042 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.26e-05/0.2561, allocations: 11.94 kB / 0.9049 GB, free: 59.16 MB / 0.6042 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.795e-06/0.2562, allocations: 8 kB / 0.9049 GB, free: 59.15 MB / 0.6042 GB Notification: Performance of sorting global known variables: time 2.84e-05/0.2562, allocations: 83.27 kB / 0.9049 GB, free: 59.07 MB / 0.6042 GB Notification: Performance of sort global known variables: time 1e-07/0.2562, allocations: 0 / 0.9049 GB, free: 59.07 MB / 0.6042 GB Notification: Performance of remove unused functions: time 0.0002059/0.2564, allocations: 12 kB / 0.905 GB, free: 59.06 MB / 0.6042 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) * Number of clocked states: 0 () * 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.0004718/0.2569, allocations: 0.7319 MB / 0.9057 GB, free: 58.3 MB / 0.6042 GB Notification: Performance of simCode: created initialization part: time 0.0002465/0.2572, allocations: 79.89 kB / 0.9057 GB, free: 58.22 MB / 0.6042 GB Notification: Performance of simCode: created event and clocks part: time 3.356e-06/0.2572, allocations: 0 / 0.9057 GB, free: 58.22 MB / 0.6042 GB Notification: Performance of simCode: created simulation system equations: time 0.0001097/0.2573, allocations: 39.98 kB / 0.9058 GB, free: 58.18 MB / 0.6042 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002623/0.2576, allocations: 7.984 kB / 0.9058 GB, free: 58.18 MB / 0.6042 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009084/0.2585, allocations: 0.5143 MB / 0.9063 GB, free: 57.6 MB / 0.6042 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001475/0.2586, allocations: 0.6809 MB / 0.907 GB, free: 56.89 MB / 0.6042 GB Notification: Performance of simCode: alias equations: time 3.489e-05/0.2587, allocations: 8.172 kB / 0.907 GB, free: 56.88 MB / 0.6042 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.271e-05/0.2587, allocations: 19.44 kB / 0.907 GB, free: 56.86 MB / 0.6042 GB Notification: Performance of SimCode: time 2.41e-07/0.2587, allocations: 0 / 0.907 GB, free: 56.86 MB / 0.6042 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01154/0.2703, allocations: 1.358 MB / 0.9083 GB, free: 55.66 MB / 0.6042 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000154/0.2705, allocations: 210 kB / 0.9085 GB, free: 55.41 MB / 0.6042 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.757/2.028, allocations: 2.391 kB / 0.9085 GB, free: 55.41 MB / 0.6042 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)