Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Examples.FirstOrderHold.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package Buildings with version 10.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/package.mo) Running command: translateModel(Buildings.Controls.OBC.CDL.Discrete.Examples.FirstOrderHold,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_latest_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_latest_Buildings.Controls.OBC.CDL.Discrete.Examples.FirstOrderHold") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/package.mo): time 2.491/2.491, allocations: 391.2 MB / 407 MB, free: 10.85 MB / 314.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001466/0.001466, allocations: 195.4 kB / 499.1 MB, free: 4.629 MB / 394.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.519/1.519, allocations: 222.9 MB / 0.7948 GB, free: 15.71 MB / 0.5573 GB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001512/0.001512, allocations: 106.8 kB / 0.9329 GB, free: 7.066 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 0.00109/0.001091, allocations: 51.42 kB / 1.081 GB, free: 218.4 MB / 0.823 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.311/0.3121, allocations: 140.6 MB / 1.218 GB, free: 117.2 MB / 0.823 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Examples.FirstOrderHold): time 0.001894/0.314, allocations: 0.7418 MB / 1.219 GB, free: 116.5 MB / 0.823 GB Notification: Performance of NFInst.instExpressions: time 0.001124/0.3152, allocations: 1.063 MB / 1.22 GB, free: 115.4 MB / 0.823 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.085e-05/0.3152, allocations: 4 kB / 1.22 GB, free: 115.4 MB / 0.823 GB Notification: Performance of NFTyping.typeComponents: time 3.318e-05/0.3153, allocations: 3.938 kB / 1.22 GB, free: 115.4 MB / 0.823 GB Notification: Performance of NFTyping.typeBindings: time 6.099e-05/0.3153, allocations: 0 / 1.22 GB, free: 115.4 MB / 0.823 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002469/0.3156, allocations: 43.89 kB / 1.22 GB, free: 115.3 MB / 0.823 GB Notification: Performance of NFFlatten.flatten: time 8.28e-05/0.3157, allocations: 75.72 kB / 1.22 GB, free: 115.3 MB / 0.823 GB Notification: Performance of NFFlatten.resolveConnections: time 9.99e-05/0.3158, allocations: 7.984 kB / 1.22 GB, free: 115.2 MB / 0.823 GB Notification: Performance of NFEvalConstants.evaluate: time 6.312e-05/0.3159, allocations: 31.92 kB / 1.22 GB, free: 115.2 MB / 0.823 GB Notification: Performance of NFSimplifyModel.simplify: time 5.37e-05/0.3159, allocations: 27.91 kB / 1.22 GB, free: 115.2 MB / 0.823 GB Notification: Performance of NFPackage.collectConstants: time 1.627e-05/0.3159, allocations: 4 kB / 1.22 GB, free: 115.2 MB / 0.823 GB Notification: Performance of NFFlatten.collectFunctions: time 6.066e-05/0.316, allocations: 15.98 kB / 1.22 GB, free: 115.2 MB / 0.823 GB Notification: Performance of NFScalarize.scalarize: time 2.085e-05/0.316, allocations: 19.91 kB / 1.22 GB, free: 115.2 MB / 0.823 GB Notification: Performance of NFVerifyModel.verify: time 4.033e-05/0.3161, allocations: 23.86 kB / 1.22 GB, free: 115.1 MB / 0.823 GB Notification: Performance of NFConvertDAE.convert: time 0.000121/0.3162, allocations: 67.81 kB / 1.22 GB, free: 115.1 MB / 0.823 GB Notification: Performance of FrontEnd - DAE generated: time 4.018e-06/0.3162, allocations: 0 / 1.22 GB, free: 115.1 MB / 0.823 GB Notification: Performance of FrontEnd: time 8.52e-07/0.3162, allocations: 0 / 1.22 GB, free: 115.1 MB / 0.823 GB Notification: Performance of Transformations before backend: time 4.469e-06/0.3162, allocations: 0 / 1.22 GB, free: 115.1 MB / 0.823 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.0005747/0.3168, allocations: 385.4 kB / 1.221 GB, free: 114.6 MB / 0.823 GB Notification: Performance of prepare preOptimizeDAE: time 4.553e-05/0.3169, allocations: 19.97 kB / 1.221 GB, free: 114.6 MB / 0.823 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.961e-05/0.3169, allocations: 0.9375 kB / 1.221 GB, free: 114.6 MB / 0.823 GB Notification: Performance of preOpt evaluateParameters (simulation): time 9.336e-05/0.317, allocations: 176.2 kB / 1.221 GB, free: 114.4 MB / 0.823 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.149e-05/0.317, allocations: 8.375 kB / 1.221 GB, free: 114.4 MB / 0.823 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.972e-05/0.317, allocations: 4.375 kB / 1.221 GB, free: 114.4 MB / 0.823 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001992/0.3173, allocations: 82.14 kB / 1.221 GB, free: 114.3 MB / 0.823 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.799e-06/0.3173, allocations: 4.188 kB / 1.221 GB, free: 114.3 MB / 0.823 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.489e-05/0.3173, allocations: 11.94 kB / 1.221 GB, free: 114.3 MB / 0.823 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.067e-06/0.3173, allocations: 0 / 1.221 GB, free: 114.3 MB / 0.823 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001807/0.3175, allocations: 47.95 kB / 1.221 GB, free: 114.2 MB / 0.823 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004381/0.3179, allocations: 312.7 kB / 1.221 GB, free: 113.9 MB / 0.823 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001634/0.3181, allocations: 86.48 kB / 1.221 GB, free: 113.8 MB / 0.823 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000102/0.3182, allocations: 44.83 kB / 1.221 GB, free: 113.8 MB / 0.823 GB Notification: Performance of preOpt evalFunc (simulation): time 2.466e-05/0.3183, allocations: 0 / 1.221 GB, free: 113.8 MB / 0.823 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002012/0.3185, allocations: 95.48 kB / 1.221 GB, free: 113.6 MB / 0.823 GB Notification: Performance of pre-optimization done (n=10): time 1.313e-06/0.3185, allocations: 4 kB / 1.221 GB, free: 113.6 MB / 0.823 GB Notification: Performance of matching and sorting (n=10): time 0.0004273/0.3189, allocations: 173.7 kB / 1.222 GB, free: 113.5 MB / 0.823 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.765e-05/0.319, allocations: 59.41 kB / 1.222 GB, free: 113.4 MB / 0.823 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.85e-05/0.319, allocations: 109.8 kB / 1.222 GB, free: 113.3 MB / 0.823 GB Notification: Performance of collectPreVariables (initialization): time 1.398e-05/0.319, allocations: 29.7 kB / 1.222 GB, free: 113.2 MB / 0.823 GB Notification: Performance of collectInitialEqns (initialization): time 3.165e-05/0.3191, allocations: 88.36 kB / 1.222 GB, free: 113.1 MB / 0.823 GB Notification: Performance of collectInitialBindings (initialization): time 2.281e-05/0.3191, allocations: 31.66 kB / 1.222 GB, free: 113.1 MB / 0.823 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.444e-05/0.3192, allocations: 29.7 kB / 1.222 GB, free: 113.1 MB / 0.823 GB Notification: Performance of setup shared object (initialization): time 5.468e-05/0.3192, allocations: 322.8 kB / 1.222 GB, free: 112.8 MB / 0.823 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001044/0.3193, allocations: 31.98 kB / 1.222 GB, free: 112.7 MB / 0.823 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001724/0.3195, allocations: 66.58 kB / 1.222 GB, free: 112.7 MB / 0.823 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000211/0.3197, allocations: 110.3 kB / 1.222 GB, free: 112.5 MB / 0.823 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.224e-06/0.3197, allocations: 0 / 1.222 GB, free: 112.5 MB / 0.823 GB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0002636/0.32, allocations: 137.5 kB / 1.223 GB, free: 112.4 MB / 0.823 GB Notification: Performance of prepare postOptimizeDAE: time 1.382e-05/0.32, allocations: 8 kB / 1.223 GB, free: 112.4 MB / 0.823 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.989e-06/0.32, allocations: 64 / 1.223 GB, free: 112.4 MB / 0.823 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.646e-05/0.3201, allocations: 4 kB / 1.223 GB, free: 112.4 MB / 0.823 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001199/0.3202, allocations: 19.98 kB / 1.223 GB, free: 112.4 MB / 0.823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.514e-06/0.3202, allocations: 7.938 kB / 1.223 GB, free: 112.4 MB / 0.823 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.534e-05/0.3203, allocations: 15.89 kB / 1.223 GB, free: 112.3 MB / 0.823 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.072e-05/0.3203, allocations: 4 kB / 1.223 GB, free: 112.3 MB / 0.823 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 (firOrdHol.firstTrigger,$PRE.firOrdHol.firstTrigger,firOrdHol.sampleTrigger,$whenCondition1,firOrdHol.c,$PRE.firOrdHol.c,firOrdHol.pre_uSample,$PRE.firOrdHol.pre_uSample,firOrdHol.uSample,$PRE.firOrdHol.uSample,firOrdHol.tSample,$PRE.firOrdHol.tSample) * Number of discrete states: 0 () * Number of clocked 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 7.051e-05/0.3204, allocations: 123.2 kB / 1.223 GB, free: 112.2 MB / 0.823 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.262e-05/0.3204, allocations: 7.938 kB / 1.223 GB, free: 112.2 MB / 0.823 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002962/0.3207, allocations: 149.8 kB / 1.223 GB, free: 112.1 MB / 0.823 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.034e-06/0.3207, allocations: 4 kB / 1.223 GB, free: 112 MB / 0.823 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.37e-06/0.3207, allocations: 0 / 1.223 GB, free: 112 MB / 0.823 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.246e-06/0.3207, allocations: 0 / 1.223 GB, free: 112 MB / 0.823 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000402/0.3211, allocations: 410.3 kB / 1.223 GB, free: 111.6 MB / 0.823 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.463e-06/0.3211, allocations: 0 / 1.223 GB, free: 111.6 MB / 0.823 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.879e-05/0.3212, allocations: 12 kB / 1.223 GB, free: 111.6 MB / 0.823 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.375e-06/0.3212, allocations: 4 kB / 1.223 GB, free: 111.6 MB / 0.823 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.307e-05/0.3212, allocations: 8.266 kB / 1.223 GB, free: 111.6 MB / 0.823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.254e-06/0.3212, allocations: 0 / 1.223 GB, free: 111.6 MB / 0.823 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.032e-06/0.3212, allocations: 3.938 kB / 1.223 GB, free: 111.6 MB / 0.823 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000505/0.3217, allocations: 0.8253 MB / 1.224 GB, free: 110.7 MB / 0.823 GB Notification: Performance of postOpt removeConstants (simulation): time 2.19e-05/0.3218, allocations: 85.02 kB / 1.224 GB, free: 110.6 MB / 0.823 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.965e-05/0.3218, allocations: 7.938 kB / 1.224 GB, free: 110.6 MB / 0.823 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.555e-05/0.3219, allocations: 11.98 kB / 1.224 GB, free: 110.6 MB / 0.823 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.407e-05/0.3219, allocations: 3.984 kB / 1.224 GB, free: 110.6 MB / 0.823 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.436e-06/0.322, allocations: 4 kB / 1.224 GB, free: 110.6 MB / 0.823 GB Notification: Performance of sorting global known variables: time 2.629e-05/0.322, allocations: 91.52 kB / 1.224 GB, free: 110.5 MB / 0.823 GB Notification: Performance of sort global known variables: time 1.2e-07/0.322, allocations: 4 kB / 1.224 GB, free: 110.5 MB / 0.823 GB Notification: Performance of remove unused functions: time 0.000319/0.3223, allocations: 24 kB / 1.224 GB, free: 110.4 MB / 0.823 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) * Number of clocked states: 0 () * 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001465/0.3225, allocations: 105 kB / 1.224 GB, free: 110.3 MB / 0.823 GB Notification: Performance of simCode: created initialization part: time 0.0002592/0.3227, allocations: 99.88 kB / 1.225 GB, free: 110.2 MB / 0.823 GB Notification: Performance of simCode: created event and clocks part: time 2.414e-06/0.3228, allocations: 0 / 1.225 GB, free: 110.2 MB / 0.823 GB Notification: Performance of simCode: created simulation system equations: time 0.0001178/0.3229, allocations: 47.97 kB / 1.225 GB, free: 110.2 MB / 0.823 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002449/0.3231, allocations: 17.08 kB / 1.225 GB, free: 110.2 MB / 0.823 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004238/0.3236, allocations: 294.7 kB / 1.225 GB, free: 109.8 MB / 0.823 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001211/0.3237, allocations: 0.6887 MB / 1.226 GB, free: 109.1 MB / 0.823 GB Notification: Performance of simCode: alias equations: time 3.36e-05/0.3237, allocations: 8.438 kB / 1.226 GB, free: 109.1 MB / 0.823 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.469e-05/0.3238, allocations: 15.42 kB / 1.226 GB, free: 109.1 MB / 0.823 GB Notification: Performance of SimCode: time 1.9e-07/0.3238, allocations: 0 / 1.226 GB, free: 109.1 MB / 0.823 GB Notification: Performance of Templates: time 0.003011/0.3268, allocations: 0.9619 MB / 1.226 GB, free: 108.1 MB / 0.823 GB make -j1 -f Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Examples.FirstOrderHold.makefile (rm -f Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Examples.FirstOrderHold.pipe ; mkfifo Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Examples.FirstOrderHold.pipe ; head -c 1048576 < Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Examples.FirstOrderHold.pipe >> ../files/Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Examples.FirstOrderHold.sim & ./Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Examples.FirstOrderHold -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Examples.FirstOrderHold.pipe 2>&1)