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.006731/0.006731, allocations: 102.3 kB / 15.73 MB, free: 5.578 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.001237/0.001237, allocations: 195.4 kB / 16.67 MB, free: 5.52 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.763/1.763, allocations: 205.1 MB / 222.5 MB, free: 12.25 MB / 190.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.455/1.455, allocations: 251.7 MB / 0.5094 GB, free: 428 kB / 430.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.001739/0.001739, allocations: 64.38 kB / 0.7258 GB, free: 4.715 MB / 0.5606 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8797/0.8814, allocations: 104.7 MB / 0.828 GB, free: 2.629 MB / 0.6231 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Examples.FirstOrderHold): time 0.002666/0.8842, allocations: 1.402 MB / 0.8294 GB, free: 1.215 MB / 0.6231 GB Notification: Performance of NFInst.instExpressions: time 0.0005669/0.8848, allocations: 246.3 kB / 0.8296 GB, free: 0.9727 MB / 0.6231 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.503e-05/0.8848, allocations: 0 / 0.8296 GB, free: 0.9727 MB / 0.6231 GB Notification: Performance of NFTyping.typeComponents: time 3.425e-05/0.8849, allocations: 3.938 kB / 0.8296 GB, free: 0.9688 MB / 0.6231 GB Notification: Performance of NFTyping.typeBindings: time 8.371e-05/0.885, allocations: 15.91 kB / 0.8296 GB, free: 0.9531 MB / 0.6231 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002028/0.8852, allocations: 31.91 kB / 0.8297 GB, free: 0.9219 MB / 0.6231 GB Notification: Performance of NFFlatten.flatten: time 0.0001181/0.8853, allocations: 63.83 kB / 0.8297 GB, free: 0.8594 MB / 0.6231 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001179/0.8854, allocations: 16 kB / 0.8297 GB, free: 0.8438 MB / 0.6231 GB Notification: Performance of NFEvalConstants.evaluate: time 7.999e-05/0.8855, allocations: 23.92 kB / 0.8298 GB, free: 0.8203 MB / 0.6231 GB Notification: Performance of NFSimplifyModel.simplify: time 7.309e-05/0.8856, allocations: 31.84 kB / 0.8298 GB, free: 0.7891 MB / 0.6231 GB Notification: Performance of NFPackage.collectConstants: time 2.013e-05/0.8856, allocations: 8 kB / 0.8298 GB, free: 0.7812 MB / 0.6231 GB Notification: Performance of NFFlatten.collectFunctions: time 1.276e-05/0.8856, allocations: 4 kB / 0.8298 GB, free: 0.7773 MB / 0.6231 GB Notification: Performance of NFScalarize.scalarize: time 2.949e-05/0.8857, allocations: 19.97 kB / 0.8298 GB, free: 0.7578 MB / 0.6231 GB Notification: Performance of NFVerifyModel.verify: time 6.124e-05/0.8857, allocations: 31.86 kB / 0.8299 GB, free: 0.7266 MB / 0.6231 GB Notification: Performance of NFConvertDAE.convert: time 0.0001235/0.8859, allocations: 59.77 kB / 0.8299 GB, free: 0.668 MB / 0.6231 GB Notification: Performance of FrontEnd - DAE generated: time 3.606e-06/0.8859, allocations: 3.938 kB / 0.8299 GB, free: 0.6641 MB / 0.6231 GB Notification: Performance of FrontEnd: time 1.804e-06/0.8859, allocations: 0 / 0.8299 GB, free: 0.6641 MB / 0.6231 GB Notification: Performance of Transformations before backend: time 5.57e-06/0.8859, allocations: 0 / 0.8299 GB, free: 0.6641 MB / 0.6231 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.0007048/0.8866, allocations: 382.9 kB / 0.8303 GB, free: 248 kB / 0.6231 GB Notification: Performance of prepare preOptimizeDAE: time 3.792e-05/0.8866, allocations: 8.031 kB / 0.8303 GB, free: 240 kB / 0.6231 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.938e-05/0.8867, allocations: 8.844 kB / 0.8303 GB, free: 232 kB / 0.6231 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002183/0.8869, allocations: 174.6 kB / 0.8305 GB, free: 20 kB / 0.6231 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.482e-05/0.8869, allocations: 8.375 kB / 0.8305 GB, free: 12 kB / 0.6231 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.773e-05/0.887, allocations: 4.375 kB / 0.8305 GB, free: 8 kB / 0.6231 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000259/0.8872, allocations: 86.19 kB / 0.8306 GB, free: 15.91 MB / 0.6387 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.197e-06/0.8873, allocations: 192 / 0.8306 GB, free: 15.91 MB / 0.6387 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.835e-05/0.8873, allocations: 7.938 kB / 0.8306 GB, free: 15.91 MB / 0.6387 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.308e-06/0.8873, allocations: 4 kB / 0.8306 GB, free: 15.9 MB / 0.6387 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002441/0.8875, allocations: 51.89 kB / 0.8306 GB, free: 15.85 MB / 0.6387 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005736/0.8881, allocations: 316.6 kB / 0.8309 GB, free: 15.49 MB / 0.6387 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002008/0.8883, allocations: 82.48 kB / 0.831 GB, free: 15.4 MB / 0.6387 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001214/0.8885, allocations: 40.83 kB / 0.831 GB, free: 15.36 MB / 0.6387 GB Notification: Performance of preOpt evalFunc (simulation): time 2.773e-05/0.8885, allocations: 4 kB / 0.8311 GB, free: 15.36 MB / 0.6387 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002188/0.8887, allocations: 91.48 kB / 0.8311 GB, free: 15.25 MB / 0.6387 GB Notification: Performance of pre-optimization done (n=10): time 1.834e-06/0.8887, allocations: 4 kB / 0.8311 GB, free: 15.25 MB / 0.6387 GB Notification: Performance of matching and sorting (n=10): time 0.0005089/0.8893, allocations: 173.5 kB / 0.8313 GB, free: 15.07 MB / 0.6387 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.743e-05/0.8893, allocations: 55.41 kB / 0.8314 GB, free: 15.01 MB / 0.6387 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.781e-05/0.8894, allocations: 105.8 kB / 0.8315 GB, free: 14.89 MB / 0.6387 GB Notification: Performance of collectPreVariables (initialization): time 2.612e-05/0.8895, allocations: 33.7 kB / 0.8315 GB, free: 14.86 MB / 0.6387 GB Notification: Performance of collectInitialEqns (initialization): time 6.022e-05/0.8895, allocations: 84.36 kB / 0.8316 GB, free: 14.77 MB / 0.6387 GB Notification: Performance of collectInitialBindings (initialization): time 3.522e-05/0.8896, allocations: 35.64 kB / 0.8316 GB, free: 14.73 MB / 0.6387 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.326e-05/0.8896, allocations: 34.08 kB / 0.8316 GB, free: 14.69 MB / 0.6387 GB Notification: Performance of setup shared object (initialization): time 0.0001534/0.8898, allocations: 314.8 kB / 0.8319 GB, free: 14.38 MB / 0.6387 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001157/0.8899, allocations: 35.97 kB / 0.832 GB, free: 14.34 MB / 0.6387 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001388/0.89, allocations: 62.36 kB / 0.832 GB, free: 14.27 MB / 0.6387 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002774/0.8904, allocations: 119.2 kB / 0.8321 GB, free: 14.14 MB / 0.6387 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.595e-06/0.8904, allocations: 0 / 0.8321 GB, free: 14.14 MB / 0.6387 GB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0003/0.8907, allocations: 149.6 kB / 0.8323 GB, free: 13.99 MB / 0.6387 GB Notification: Performance of prepare postOptimizeDAE: time 4.838e-05/0.8907, allocations: 4 kB / 0.8323 GB, free: 13.98 MB / 0.6387 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.382e-06/0.8907, allocations: 3.938 kB / 0.8323 GB, free: 13.98 MB / 0.6387 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.884e-05/0.8908, allocations: 4 kB / 0.8323 GB, free: 13.98 MB / 0.6387 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001196/0.8909, allocations: 19.98 kB / 0.8323 GB, free: 13.96 MB / 0.6387 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.123e-06/0.8909, allocations: 0 / 0.8323 GB, free: 13.96 MB / 0.6387 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.273e-05/0.891, allocations: 7.984 kB / 0.8323 GB, free: 13.95 MB / 0.6387 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.298e-05/0.891, allocations: 8 kB / 0.8323 GB, free: 13.94 MB / 0.6387 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.0001156/0.8911, allocations: 138.7 kB / 0.8325 GB, free: 13.8 MB / 0.6387 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.459e-05/0.8911, allocations: 7.906 kB / 0.8325 GB, free: 13.79 MB / 0.6387 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003439/0.8915, allocations: 142.2 kB / 0.8326 GB, free: 13.64 MB / 0.6387 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.204e-06/0.8915, allocations: 0 / 0.8326 GB, free: 13.64 MB / 0.6387 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.846e-06/0.8915, allocations: 8 kB / 0.8326 GB, free: 13.64 MB / 0.6387 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.931e-06/0.8915, allocations: 3.984 kB / 0.8326 GB, free: 13.63 MB / 0.6387 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005104/0.892, allocations: 414.3 kB / 0.833 GB, free: 13.17 MB / 0.6387 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.533e-06/0.892, allocations: 0 / 0.833 GB, free: 13.17 MB / 0.6387 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.408e-05/0.8921, allocations: 11.98 kB / 0.833 GB, free: 13.16 MB / 0.6387 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.663e-06/0.8921, allocations: 0 / 0.833 GB, free: 13.16 MB / 0.6387 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.136e-05/0.8921, allocations: 0 / 0.833 GB, free: 13.16 MB / 0.6387 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.98e-06/0.8921, allocations: 7.984 kB / 0.833 GB, free: 13.15 MB / 0.6387 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.42e-07/0.8921, allocations: 0 / 0.833 GB, free: 13.15 MB / 0.6387 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003443/0.8925, allocations: 243.5 kB / 0.8333 GB, free: 12.9 MB / 0.6387 GB Notification: Performance of postOpt removeConstants (simulation): time 6.566e-05/0.8926, allocations: 89.05 kB / 0.8334 GB, free: 12.8 MB / 0.6387 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.985e-05/0.8926, allocations: 3.938 kB / 0.8334 GB, free: 12.79 MB / 0.6387 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.709e-05/0.8927, allocations: 7.984 kB / 0.8334 GB, free: 12.79 MB / 0.6387 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.978e-05/0.8928, allocations: 11.98 kB / 0.8334 GB, free: 12.77 MB / 0.6387 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.112e-05/0.8928, allocations: 7.938 kB / 0.8334 GB, free: 12.77 MB / 0.6387 GB Notification: Performance of sorting global known variables: time 4.424e-05/0.8928, allocations: 83.28 kB / 0.8335 GB, free: 12.68 MB / 0.6387 GB Notification: Performance of sort global known variables: time 1.2e-07/0.8928, allocations: 0 / 0.8335 GB, free: 12.68 MB / 0.6387 GB Notification: Performance of remove unused functions: time 0.0002305/0.8931, allocations: 16 kB / 0.8335 GB, free: 12.67 MB / 0.6387 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.0001295/0.8932, allocations: 111.2 kB / 0.8336 GB, free: 12.55 MB / 0.6387 GB Notification: Performance of simCode: created initialization part: time 0.0002935/0.8935, allocations: 95.88 kB / 0.8337 GB, free: 12.46 MB / 0.6387 GB Notification: Performance of simCode: created event and clocks part: time 3.857e-06/0.8935, allocations: 4 kB / 0.8337 GB, free: 12.45 MB / 0.6387 GB Notification: Performance of simCode: created simulation system equations: time 0.0001246/0.8936, allocations: 47.91 kB / 0.8337 GB, free: 12.41 MB / 0.6387 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002536/0.8939, allocations: 12.19 kB / 0.8337 GB, free: 12.39 MB / 0.6387 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003589/0.8943, allocations: 150.2 kB / 0.8339 GB, free: 12.22 MB / 0.6387 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002743/0.8946, allocations: 0.6888 MB / 0.8346 GB, free: 11.5 MB / 0.6387 GB Notification: Performance of simCode: alias equations: time 3.284e-05/0.8946, allocations: 4.438 kB / 0.8346 GB, free: 11.5 MB / 0.6387 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.364e-05/0.8946, allocations: 15.42 kB / 0.8346 GB, free: 11.48 MB / 0.6387 GB Notification: Performance of SimCode: time 2.41e-07/0.8946, allocations: 4 kB / 0.8346 GB, free: 11.48 MB / 0.6387 GB Notification: Performance of Templates: time 0.003465/0.8981, allocations: 0.8967 MB / 0.8355 GB, free: 10.59 MB / 0.6387 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)