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.FirstOrderHold.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/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 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo", uses=false) 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) 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 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(Buildings.Controls.OBC.CDL.Discrete.Examples.FirstOrderHold,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_maint.7.0.x_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_maint.7.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.FirstOrderHold") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.007565/0.007565, allocations: 102.7 kB / 15.73 MB, free: 6.035 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001754/0.001754, allocations: 195.6 kB / 16.67 MB, free: 5.953 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.811/1.811, allocations: 205.1 MB / 222.6 MB, free: 4.25 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo): time 1.646/1.646, allocations: 251.7 MB / 0.5094 GB, free: 3.148 MB / 414.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001485/0.001485, allocations: 75.91 kB / 0.7258 GB, free: 9.051 MB / 0.545 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2896/0.2911, allocations: 104.7 MB / 0.828 GB, free: 244 kB / 0.6387 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Examples.FirstOrderHold): time 0.003678/0.2948, allocations: 1.399 MB / 0.8294 GB, free: 14.83 MB / 0.6544 GB Notification: Performance of NFInst.instExpressions: time 0.0006803/0.2956, allocations: 240.5 kB / 0.8296 GB, free: 14.59 MB / 0.6544 GB Notification: Performance of NFInst.updateImplicitVariability: time 7.973e-05/0.2957, allocations: 7.938 kB / 0.8296 GB, free: 14.59 MB / 0.6544 GB Notification: Performance of NFTyping.typeComponents: time 3.862e-05/0.2957, allocations: 7.938 kB / 0.8296 GB, free: 14.58 MB / 0.6544 GB Notification: Performance of NFTyping.typeBindings: time 8.674e-05/0.2958, allocations: 3.938 kB / 0.8297 GB, free: 14.57 MB / 0.6544 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002646/0.2961, allocations: 27.89 kB / 0.8297 GB, free: 14.55 MB / 0.6544 GB Notification: Performance of NFFlatten.flatten: time 0.0001488/0.2962, allocations: 67.84 kB / 0.8297 GB, free: 14.48 MB / 0.6544 GB Notification: Performance of NFFlatten.resolveConnections: time 0.000157/0.2964, allocations: 7.984 kB / 0.8297 GB, free: 14.47 MB / 0.6544 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001046/0.2965, allocations: 27.92 kB / 0.8298 GB, free: 14.45 MB / 0.6544 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001053/0.2966, allocations: 35.89 kB / 0.8298 GB, free: 14.41 MB / 0.6544 GB Notification: Performance of NFPackage.collectConstants: time 2.249e-05/0.2967, allocations: 4 kB / 0.8298 GB, free: 14.41 MB / 0.6544 GB Notification: Performance of NFFlatten.collectFunctions: time 1.799e-05/0.2967, allocations: 12 kB / 0.8298 GB, free: 14.39 MB / 0.6544 GB Notification: Performance of NFScalarize.scalarize: time 3.096e-05/0.2967, allocations: 11.92 kB / 0.8298 GB, free: 14.38 MB / 0.6544 GB Notification: Performance of NFVerifyModel.verify: time 7.019e-05/0.2968, allocations: 35.86 kB / 0.8299 GB, free: 14.35 MB / 0.6544 GB Notification: Performance of NFConvertDAE.convert: time 0.0001512/0.297, allocations: 63.7 kB / 0.8299 GB, free: 14.29 MB / 0.6544 GB Notification: Performance of FrontEnd - DAE generated: time 8.556e-06/0.297, allocations: 0 / 0.8299 GB, free: 14.29 MB / 0.6544 GB Notification: Performance of FrontEnd: time 1.383e-06/0.297, allocations: 3.938 kB / 0.8299 GB, free: 14.28 MB / 0.6544 GB Notification: Performance of Transformations before backend: time 1.373e-05/0.297, allocations: 4 kB / 0.8299 GB, free: 14.28 MB / 0.6544 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.0008437/0.2979, allocations: 387.2 kB / 0.8303 GB, free: 13.85 MB / 0.6544 GB Notification: Performance of prepare preOptimizeDAE: time 5.559e-05/0.2979, allocations: 12.03 kB / 0.8303 GB, free: 13.84 MB / 0.6544 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.588e-05/0.298, allocations: 8.844 kB / 0.8303 GB, free: 13.83 MB / 0.6544 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002464/0.2982, allocations: 164.4 kB / 0.8305 GB, free: 13.63 MB / 0.6544 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.561e-05/0.2983, allocations: 4.375 kB / 0.8305 GB, free: 13.62 MB / 0.6544 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.198e-05/0.2983, allocations: 8.375 kB / 0.8305 GB, free: 13.62 MB / 0.6544 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002374/0.2985, allocations: 82.14 kB / 0.8306 GB, free: 13.53 MB / 0.6544 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.019e-05/0.2985, allocations: 192 / 0.8306 GB, free: 13.53 MB / 0.6544 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.837e-05/0.2986, allocations: 7.938 kB / 0.8306 GB, free: 13.52 MB / 0.6544 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.21e-06/0.2986, allocations: 0 / 0.8306 GB, free: 13.52 MB / 0.6544 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002126/0.2988, allocations: 55.95 kB / 0.8306 GB, free: 13.47 MB / 0.6544 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005186/0.2993, allocations: 304.8 kB / 0.8309 GB, free: 13.12 MB / 0.6544 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002085/0.2995, allocations: 86.41 kB / 0.831 GB, free: 13.03 MB / 0.6544 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001347/0.2997, allocations: 52.83 kB / 0.8311 GB, free: 12.97 MB / 0.6544 GB Notification: Performance of preOpt evalFunc (simulation): time 2.535e-05/0.2997, allocations: 0 / 0.8311 GB, free: 12.97 MB / 0.6544 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002604/0.3, allocations: 83.38 kB / 0.8311 GB, free: 12.88 MB / 0.6544 GB Notification: Performance of pre-optimization done (n=10): time 6.262e-06/0.3, allocations: 4.094 kB / 0.8311 GB, free: 12.88 MB / 0.6544 GB Notification: Performance of matching and sorting (n=10): time 0.0005755/0.3006, allocations: 177.7 kB / 0.8313 GB, free: 12.7 MB / 0.6544 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.939e-05/0.3007, allocations: 59.39 kB / 0.8314 GB, free: 12.62 MB / 0.6544 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001212/0.3008, allocations: 113.7 kB / 0.8315 GB, free: 12.5 MB / 0.6544 GB Notification: Performance of collectPreVariables (initialization): time 2.946e-05/0.3008, allocations: 33.69 kB / 0.8315 GB, free: 12.46 MB / 0.6544 GB Notification: Performance of collectInitialEqns (initialization): time 6.918e-05/0.3009, allocations: 88.38 kB / 0.8316 GB, free: 12.37 MB / 0.6544 GB Notification: Performance of collectInitialBindings (initialization): time 3.313e-05/0.3009, allocations: 23.7 kB / 0.8316 GB, free: 12.35 MB / 0.6544 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.499e-05/0.301, allocations: 25.72 kB / 0.8316 GB, free: 12.32 MB / 0.6544 GB Notification: Performance of setup shared object (initialization): time 0.0001434/0.3011, allocations: 326.8 kB / 0.832 GB, free: 11.99 MB / 0.6544 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001251/0.3013, allocations: 39.97 kB / 0.832 GB, free: 11.95 MB / 0.6544 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000143/0.3014, allocations: 67.72 kB / 0.8321 GB, free: 11.87 MB / 0.6544 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003252/0.3018, allocations: 111.3 kB / 0.8322 GB, free: 11.75 MB / 0.6544 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.006e-06/0.3018, allocations: 0 / 0.8322 GB, free: 11.75 MB / 0.6544 GB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0003549/0.3021, allocations: 145.4 kB / 0.8323 GB, free: 11.6 MB / 0.6544 GB Notification: Performance of prepare postOptimizeDAE: time 2.268e-05/0.3022, allocations: 7.938 kB / 0.8323 GB, free: 11.59 MB / 0.6544 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.995e-06/0.3022, allocations: 4 kB / 0.8323 GB, free: 11.59 MB / 0.6544 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.969e-05/0.3022, allocations: 0 / 0.8323 GB, free: 11.59 MB / 0.6544 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001413/0.3024, allocations: 28.02 kB / 0.8323 GB, free: 11.56 MB / 0.6544 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.265e-06/0.3024, allocations: 0 / 0.8323 GB, free: 11.56 MB / 0.6544 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.292e-05/0.3025, allocations: 15.98 kB / 0.8324 GB, free: 11.55 MB / 0.6544 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.379e-05/0.3025, allocations: 4 kB / 0.8324 GB, free: 11.54 MB / 0.6544 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 4 * 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 0.0001039/0.3026, allocations: 118.3 kB / 0.8325 GB, free: 11.42 MB / 0.6544 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.869e-05/0.3026, allocations: 7.906 kB / 0.8325 GB, free: 11.41 MB / 0.6544 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004614/0.3031, allocations: 145.9 kB / 0.8326 GB, free: 11.26 MB / 0.6544 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.739e-06/0.3031, allocations: 4 kB / 0.8326 GB, free: 11.26 MB / 0.6544 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.759e-06/0.3031, allocations: 0 / 0.8326 GB, free: 11.26 MB / 0.6544 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.426e-06/0.3031, allocations: 0 / 0.8326 GB, free: 11.26 MB / 0.6544 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005388/0.3037, allocations: 410.3 kB / 0.833 GB, free: 10.8 MB / 0.6544 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.945e-06/0.3037, allocations: 3.984 kB / 0.833 GB, free: 10.8 MB / 0.6544 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.744e-05/0.3037, allocations: 11.94 kB / 0.833 GB, free: 10.79 MB / 0.6544 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.977e-06/0.3038, allocations: 4 kB / 0.833 GB, free: 10.78 MB / 0.6544 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.581e-05/0.3038, allocations: 11.98 kB / 0.833 GB, free: 10.77 MB / 0.6544 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.583e-06/0.3038, allocations: 0 / 0.833 GB, free: 10.77 MB / 0.6544 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.41e-07/0.3038, allocations: 0 / 0.833 GB, free: 10.77 MB / 0.6544 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003471/0.3041, allocations: 231.3 kB / 0.8333 GB, free: 10.53 MB / 0.6544 GB Notification: Performance of postOpt removeConstants (simulation): time 4.655e-05/0.3042, allocations: 85.02 kB / 0.8333 GB, free: 10.43 MB / 0.6544 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.358e-05/0.3042, allocations: 8.266 kB / 0.8334 GB, free: 10.42 MB / 0.6544 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001047/0.3043, allocations: 15.98 kB / 0.8334 GB, free: 10.4 MB / 0.6544 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.024e-05/0.3044, allocations: 4 kB / 0.8334 GB, free: 10.4 MB / 0.6544 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.689e-06/0.3044, allocations: 8.125 kB / 0.8334 GB, free: 10.39 MB / 0.6544 GB Notification: Performance of sorting global known variables: time 4.665e-05/0.3045, allocations: 91.27 kB / 0.8335 GB, free: 10.3 MB / 0.6544 GB Notification: Performance of sort global known variables: time 1.2e-07/0.3045, allocations: 0 / 0.8335 GB, free: 10.3 MB / 0.6544 GB Notification: Performance of remove unused functions: time 0.0002363/0.3047, allocations: 20 kB / 0.8335 GB, free: 10.28 MB / 0.6544 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.0001457/0.3049, allocations: 98.38 kB / 0.8336 GB, free: 10.18 MB / 0.6544 GB Notification: Performance of simCode: created initialization part: time 0.0003256/0.3052, allocations: 111.8 kB / 0.8337 GB, free: 10.07 MB / 0.6544 GB Notification: Performance of simCode: created event and clocks part: time 2.395e-06/0.3052, allocations: 0 / 0.8337 GB, free: 10.07 MB / 0.6544 GB Notification: Performance of simCode: created simulation system equations: time 0.0001358/0.3053, allocations: 43.97 kB / 0.8337 GB, free: 10.03 MB / 0.6544 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002731/0.3056, allocations: 11.98 kB / 0.8337 GB, free: 10.02 MB / 0.6544 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004335/0.3061, allocations: 150.3 kB / 0.8339 GB, free: 9.84 MB / 0.6544 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004343/0.3065, allocations: 0.7002 MB / 0.8346 GB, free: 9.113 MB / 0.6544 GB Notification: Performance of simCode: alias equations: time 3.783e-05/0.3066, allocations: 4.438 kB / 0.8346 GB, free: 9.105 MB / 0.6544 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.465e-05/0.3066, allocations: 11.44 kB / 0.8346 GB, free: 9.098 MB / 0.6544 GB Notification: Performance of SimCode: time 2.41e-07/0.3066, allocations: 0 / 0.8346 GB, free: 9.098 MB / 0.6544 GB Notification: Performance of Templates: time 0.003672/0.3103, allocations: 0.8831 MB / 0.8354 GB, free: 8.223 MB / 0.6544 GB make -j1 -f Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.FirstOrderHold.makefile (rm -f Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.FirstOrderHold.pipe ; mkfifo Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.FirstOrderHold.pipe ; head -c 1048576 < Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.FirstOrderHold.pipe >> ../files/Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.FirstOrderHold.sim & ./Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.FirstOrderHold -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.FirstOrderHold.pipe 2>&1)