Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_8_Buildings.Controls.OBC.CDL.Discrete.Examples.FirstOrderHold.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: translateModel(Buildings.Controls.OBC.CDL.Discrete.Examples.FirstOrderHold,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_8_Buildings.Controls.OBC.CDL.Discrete.Examples.FirstOrderHold") translateModel(Buildings.Controls.OBC.CDL.Discrete.Examples.FirstOrderHold,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_8_Buildings.Controls.OBC.CDL.Discrete.Examples.FirstOrderHold") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo): time 1.598/1.598, allocations: 289.9 MB / 297.4 MB, free: 6.312 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.001114/0.001114, allocations: 184.9 kB / 366.7 MB, free: 1.637 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.789/1.789, allocations: 205.3 MB / 0.626 GB, free: 7.152 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.0008653/0.000865, allocations: 76.47 kB / 0.74 GB, free: 39.55 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 2.07e-05/2.088e-05, allocations: 4 kB / 0.8597 GB, free: 13.04 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7126/0.7126, allocations: 116.3 MB / 0.9733 GB, free: 76.25 MB / 0.6667 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.2002/0.913, allocations: 138.3 MB / 1.108 GB, free: 11.88 MB / 0.7136 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002334/0.9132, allocations: 71.95 kB / 1.108 GB, free: 11.81 MB / 0.7136 GB Notification: Performance of FrontEnd - DAE generated: time 0.003525/0.9168, allocations: 1.16 MB / 1.11 GB, free: 10.66 MB / 0.7136 GB Notification: Performance of FrontEnd: time 2.014e-06/0.9168, allocations: 1.219 kB / 1.11 GB, free: 10.66 MB / 0.7136 GB Notification: Performance of Transformations before backend: time 6.983e-06/0.9168, allocations: 1.125 kB / 1.11 GB, free: 10.66 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: 11 * Number of variables: 11 Notification: Performance of Generate backend data structure: time 0.0005453/0.9174, allocations: 368.5 kB / 1.11 GB, free: 10.26 MB / 0.7136 GB Notification: Performance of prepare preOptimizeDAE: time 4.722e-05/0.9174, allocations: 12.03 kB / 1.11 GB, free: 10.25 MB / 0.7136 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.019e-05/0.9175, allocations: 1.594 kB / 1.11 GB, free: 10.25 MB / 0.7136 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001497/0.9176, allocations: 182.8 kB / 1.11 GB, free: 10.03 MB / 0.7136 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.755e-05/0.9177, allocations: 4 kB / 1.11 GB, free: 10.03 MB / 0.7136 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.337e-05/0.9177, allocations: 4 kB / 1.11 GB, free: 10.02 MB / 0.7136 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001066/0.9178, allocations: 29.28 kB / 1.11 GB, free: 9.996 MB / 0.7136 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001308/0.918, allocations: 63.09 kB / 1.11 GB, free: 9.93 MB / 0.7136 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.156e-05/0.918, allocations: 0 / 1.11 GB, free: 9.93 MB / 0.7136 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.485e-05/0.918, allocations: 4.438 kB / 1.11 GB, free: 9.93 MB / 0.7136 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.013e-05/0.918, allocations: 4 kB / 1.11 GB, free: 9.926 MB / 0.7136 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005905/0.9186, allocations: 306.7 kB / 1.11 GB, free: 9.594 MB / 0.7136 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001119/0.9187, allocations: 58.58 kB / 1.111 GB, free: 9.527 MB / 0.7136 GB Notification: Performance of preOpt resolveLoops (simulation): time 4.75e-05/0.9188, allocations: 24.86 kB / 1.111 GB, free: 9.5 MB / 0.7136 GB Notification: Performance of preOpt evalFunc (simulation): time 2.334e-05/0.9188, allocations: 3.875 kB / 1.111 GB, free: 9.5 MB / 0.7136 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001305/0.919, allocations: 79.52 kB / 1.111 GB, free: 9.41 MB / 0.7136 GB Notification: Performance of pre-optimization done (n=10): time 3.637e-06/0.919, allocations: 0 / 1.111 GB, free: 9.41 MB / 0.7136 GB Notification: Performance of matching and sorting (n=10): time 0.0002361/0.9192, allocations: 111.6 kB / 1.111 GB, free: 9.301 MB / 0.7136 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.004e-05/0.9193, allocations: 59.34 kB / 1.111 GB, free: 9.23 MB / 0.7136 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.128e-05/0.9193, allocations: 101 kB / 1.111 GB, free: 9.125 MB / 0.7136 GB Notification: Performance of collectPreVariables (initialization): time 2.101e-05/0.9194, allocations: 31.55 kB / 1.111 GB, free: 9.09 MB / 0.7136 GB Notification: Performance of collectInitialEqns (initialization): time 4.943e-05/0.9194, allocations: 84.38 kB / 1.111 GB, free: 9 MB / 0.7136 GB Notification: Performance of collectInitialBindings (initialization): time 2.85e-05/0.9195, allocations: 31.62 kB / 1.111 GB, free: 8.969 MB / 0.7136 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.101e-06/0.9195, allocations: 0 / 1.111 GB, free: 8.969 MB / 0.7136 GB Notification: Performance of setup shared object (initialization): time 0.000109/0.9196, allocations: 319.4 kB / 1.111 GB, free: 8.648 MB / 0.7136 GB Notification: Performance of preBalanceInitialSystem (initialization): time 4.256e-05/0.9196, allocations: 24 kB / 1.111 GB, free: 8.625 MB / 0.7136 GB Notification: Performance of partitionIndependentBlocks (initialization): time 5.878e-05/0.9197, allocations: 45.75 kB / 1.111 GB, free: 8.574 MB / 0.7136 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001623/0.9199, allocations: 39.97 kB / 1.111 GB, free: 8.535 MB / 0.7136 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.284e-06/0.9199, allocations: 0.8125 kB / 1.111 GB, free: 8.535 MB / 0.7136 GB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0002616/0.9202, allocations: 117.5 kB / 1.112 GB, free: 8.418 MB / 0.7136 GB Notification: Performance of prepare postOptimizeDAE: time 1.513e-05/0.9202, allocations: 4.938 kB / 1.112 GB, free: 8.414 MB / 0.7136 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.551e-06/0.9202, allocations: 0 / 1.112 GB, free: 8.414 MB / 0.7136 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.543e-05/0.9202, allocations: 7.984 kB / 1.112 GB, free: 8.406 MB / 0.7136 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001371/0.9204, allocations: 19.98 kB / 1.112 GB, free: 8.387 MB / 0.7136 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.651e-06/0.9204, allocations: 6.906 kB / 1.112 GB, free: 8.383 MB / 0.7136 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.268e-05/0.9204, allocations: 11.91 kB / 1.112 GB, free: 8.371 MB / 0.7136 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.532e-05/0.9205, allocations: 8 kB / 1.112 GB, free: 8.363 MB / 0.7136 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 12 ($PRE.firOrdHol.firstTrigger,firOrdHol.firstTrigger,$whenCondition1,firOrdHol.sampleTrigger,$PRE.firOrdHol.tSample,firOrdHol.tSample,$PRE.firOrdHol.uSample,firOrdHol.uSample,$PRE.firOrdHol.pre_uSample,firOrdHol.pre_uSample,$PRE.firOrdHol.c,firOrdHol.c) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (16): * Single equations (assignments): 16 * 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 9.445e-05/0.9206, allocations: 124 kB / 1.112 GB, free: 8.238 MB / 0.7136 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.265e-05/0.9206, allocations: 4 kB / 1.112 GB, free: 8.234 MB / 0.7136 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000196/0.9208, allocations: 114.1 kB / 1.112 GB, free: 8.117 MB / 0.7136 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.178e-06/0.9208, allocations: 5.969 kB / 1.112 GB, free: 8.113 MB / 0.7136 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.11e-06/0.9208, allocations: 0 / 1.112 GB, free: 8.113 MB / 0.7136 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.139e-06/0.9208, allocations: 3.984 kB / 1.112 GB, free: 8.109 MB / 0.7136 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003503/0.9212, allocations: 347 kB / 1.112 GB, free: 7.727 MB / 0.7136 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.172e-06/0.9212, allocations: 4 kB / 1.112 GB, free: 7.723 MB / 0.7136 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.619e-05/0.9213, allocations: 11.98 kB / 1.112 GB, free: 7.711 MB / 0.7136 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.629e-06/0.9213, allocations: 4 kB / 1.112 GB, free: 7.707 MB / 0.7136 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.004e-05/0.9213, allocations: 0 / 1.112 GB, free: 7.707 MB / 0.7136 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.102e-06/0.9213, allocations: 0 / 1.112 GB, free: 7.707 MB / 0.7136 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.947e-06/0.9213, allocations: 0.5 kB / 1.112 GB, free: 7.707 MB / 0.7136 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002133/0.9215, allocations: 209.1 kB / 1.112 GB, free: 7.488 MB / 0.7136 GB Notification: Performance of postOpt removeConstants (simulation): time 3.924e-05/0.9216, allocations: 89.08 kB / 1.112 GB, free: 7.383 MB / 0.7136 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.043e-05/0.9216, allocations: 4 kB / 1.112 GB, free: 7.379 MB / 0.7136 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000104/0.9217, allocations: 15.8 kB / 1.112 GB, free: 7.367 MB / 0.7136 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.169e-05/0.9218, allocations: 4 kB / 1.113 GB, free: 7.363 MB / 0.7136 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.424e-05/0.9218, allocations: 11.92 kB / 1.113 GB, free: 7.352 MB / 0.7136 GB Notification: Performance of sorting global known variables: time 3.965e-05/0.9219, allocations: 87.22 kB / 1.113 GB, free: 7.266 MB / 0.7136 GB Notification: Performance of sort global known variables: time 1.3e-07/0.9219, allocations: 0 / 1.113 GB, free: 7.266 MB / 0.7136 GB Notification: Performance of remove unused functions: time 0.0002282/0.9221, allocations: 20 kB / 1.113 GB, free: 7.246 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: 7 (firOrdHol.sampleTrigger,$whenCondition1,firOrdHol.firstTrigger,firOrdHol.tSample,firOrdHol.uSample,firOrdHol.pre_uSample,firOrdHol.c) * Number of discrete states: 2 (firOrdHol.uSample,firOrdHol.c) * Top-level inputs: 0 Notification: Strong component statistics for simulation (10): * Single equations (assignments): 5 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 5 * 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.0001811/0.9223, allocations: 119.2 kB / 1.113 GB, free: 7.121 MB / 0.7136 GB Notification: Performance of simCode: created initialization part: time 0.0001596/0.9225, allocations: 70.12 kB / 1.113 GB, free: 7.055 MB / 0.7136 GB Notification: Performance of simCode: created event and clocks part: time 1.723e-06/0.9225, allocations: 0 / 1.113 GB, free: 7.055 MB / 0.7136 GB Notification: Performance of simCode: created simulation system equations: time 5.675e-05/0.9225, allocations: 33.34 kB / 1.113 GB, free: 7.023 MB / 0.7136 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001878/0.9227, allocations: 17.5 kB / 1.113 GB, free: 7.008 MB / 0.7136 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002645/0.923, allocations: 93.27 kB / 1.113 GB, free: 6.902 MB / 0.7136 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003018/0.9233, allocations: 0.6925 MB / 1.114 GB, free: 6.184 MB / 0.7136 GB Notification: Performance of simCode: alias equations: time 3.994e-05/0.9234, allocations: 9.219 kB / 1.114 GB, free: 6.176 MB / 0.7136 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.175e-05/0.9234, allocations: 15.44 kB / 1.114 GB, free: 6.16 MB / 0.7136 GB Notification: Performance of SimCode: time 2.3e-07/0.9234, allocations: 0 / 1.114 GB, free: 6.16 MB / 0.7136 GB Notification: Performance of Templates: time 0.003106/0.9265, allocations: 0.8343 MB / 1.114 GB, free: 5.359 MB / 0.7136 GB make -j1 -f Buildings_8_Buildings.Controls.OBC.CDL.Discrete.Examples.FirstOrderHold.makefile (rm -f Buildings_8_Buildings.Controls.OBC.CDL.Discrete.Examples.FirstOrderHold.pipe ; mkfifo Buildings_8_Buildings.Controls.OBC.CDL.Discrete.Examples.FirstOrderHold.pipe ; head -c 1048576 < Buildings_8_Buildings.Controls.OBC.CDL.Discrete.Examples.FirstOrderHold.pipe >> ../files/Buildings_8_Buildings.Controls.OBC.CDL.Discrete.Examples.FirstOrderHold.sim & ./Buildings_8_Buildings.Controls.OBC.CDL.Discrete.Examples.FirstOrderHold -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_8_Buildings.Controls.OBC.CDL.Discrete.Examples.FirstOrderHold.pipe 2>&1)