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/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.FirstOrderHold,fileNamePrefix="Buildings_maint_7_0_x_Buildings_Controls_OBC_CDL_Discrete_Examples_FirstOrderHold",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Discrete.Examples.FirstOrderHold,fileNamePrefix="Buildings_maint_7_0_x_Buildings_Controls_OBC_CDL_Discrete_Examples_FirstOrderHold",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.454/1.454, allocations: 251.9 MB / 266.9 MB, free: 11.06 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.001235/0.001236, allocations: 179.6 kB / 326.5 MB, free: 2.246 MB / 250.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.03/2.03, allocations: 205.4 MB / 0.5775 GB, free: 20.22 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.001088/0.001088, allocations: 94.14 kB / 0.6821 GB, free: 12.9 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 0.0004122/0.0004122, allocations: 7.875 kB / 0.7963 GB, free: 135.1 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2582/0.2587, allocations: 106.3 MB / 0.9002 GB, free: 63.86 MB / 0.6042 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Examples.FirstOrderHold): time 0.001381/0.2601, allocations: 1.111 MB / 0.9012 GB, free: 62.74 MB / 0.6042 GB Notification: Performance of NFInst.instExpressions: time 0.000445/0.2606, allocations: 230.4 kB / 0.9015 GB, free: 62.51 MB / 0.6042 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.14e-05/0.2606, allocations: 0 / 0.9015 GB, free: 62.51 MB / 0.6042 GB Notification: Performance of NFTyping.typeComponents: time 1.672e-05/0.2606, allocations: 7.922 kB / 0.9015 GB, free: 62.5 MB / 0.6042 GB Notification: Performance of NFTyping.typeBindings: time 6.948e-05/0.2607, allocations: 7.984 kB / 0.9015 GB, free: 62.5 MB / 0.6042 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001749/0.2609, allocations: 23.97 kB / 0.9015 GB, free: 62.47 MB / 0.6042 GB Notification: Performance of NFFlatten.flatten: time 7.337e-05/0.261, allocations: 39.89 kB / 0.9015 GB, free: 62.43 MB / 0.6042 GB Notification: Performance of NFFlatten.resolveConnections: time 9.53e-05/0.2611, allocations: 8 kB / 0.9015 GB, free: 62.43 MB / 0.6042 GB Notification: Performance of NFEvalConstants.evaluate: time 7.467e-05/0.2612, allocations: 19.98 kB / 0.9016 GB, free: 62.41 MB / 0.6042 GB Notification: Performance of NFSimplifyModel.simplify: time 6.022e-05/0.2612, allocations: 35.77 kB / 0.9016 GB, free: 62.37 MB / 0.6042 GB Notification: Performance of NFPackage.collectConstants: time 1.961e-05/0.2613, allocations: 4 kB / 0.9016 GB, free: 62.37 MB / 0.6042 GB Notification: Performance of NFFlatten.collectFunctions: time 1.513e-05/0.2613, allocations: 4 kB / 0.9016 GB, free: 62.36 MB / 0.6042 GB Notification: Performance of NFScalarize.scalarize: time 1.665e-05/0.2613, allocations: 11.92 kB / 0.9016 GB, free: 62.35 MB / 0.6042 GB Notification: Performance of NFVerifyModel.verify: time 3.688e-05/0.2613, allocations: 41.64 kB / 0.9017 GB, free: 62.3 MB / 0.6042 GB Notification: Performance of NFConvertDAE.convert: time 8.06e-05/0.2614, allocations: 39.89 kB / 0.9017 GB, free: 62.27 MB / 0.6042 GB Notification: Performance of FrontEnd - DAE generated: time 3.747e-06/0.2614, allocations: 0 / 0.9017 GB, free: 62.27 MB / 0.6042 GB Notification: Performance of FrontEnd: time 1.923e-06/0.2614, allocations: 0 / 0.9017 GB, free: 62.27 MB / 0.6042 GB Notification: Performance of Transformations before backend: time 5.67e-06/0.2615, allocations: 0 / 0.9017 GB, free: 62.27 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: 11 * Number of variables: 11 Notification: Performance of Generate backend data structure: time 0.000559/0.262, allocations: 379.5 kB / 0.9021 GB, free: 61.85 MB / 0.6042 GB Notification: Performance of prepare preOptimizeDAE: time 4.45e-05/0.2621, allocations: 8.031 kB / 0.9021 GB, free: 61.84 MB / 0.6042 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.857e-05/0.2621, allocations: 34.56 kB / 0.9021 GB, free: 61.8 MB / 0.6042 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.172e-05/0.2622, allocations: 7.906 kB / 0.9021 GB, free: 61.79 MB / 0.6042 GB Notification: Performance of preOpt evaluateParameters (simulation): time 9.753e-05/0.2623, allocations: 171 kB / 0.9023 GB, free: 61.58 MB / 0.6042 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.48e-05/0.2623, allocations: 8 kB / 0.9023 GB, free: 61.57 MB / 0.6042 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.863e-05/0.2623, allocations: 8 kB / 0.9023 GB, free: 61.57 MB / 0.6042 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002195/0.2625, allocations: 93.52 kB / 0.9024 GB, free: 61.47 MB / 0.6042 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.397e-06/0.2626, allocations: 0 / 0.9024 GB, free: 61.47 MB / 0.6042 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.258e-05/0.2626, allocations: 0 / 0.9024 GB, free: 61.47 MB / 0.6042 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.101e-06/0.2626, allocations: 4 kB / 0.9024 GB, free: 61.46 MB / 0.6042 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001989/0.2628, allocations: 63.95 kB / 0.9024 GB, free: 61.4 MB / 0.6042 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004554/0.2633, allocations: 312.7 kB / 0.9027 GB, free: 61.05 MB / 0.6042 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001712/0.2634, allocations: 90.47 kB / 0.9028 GB, free: 60.95 MB / 0.6042 GB Notification: Performance of preOpt evalFunc (simulation): time 1.99e-05/0.2635, allocations: 0 / 0.9028 GB, free: 60.95 MB / 0.6042 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002089/0.2637, allocations: 99.36 kB / 0.9029 GB, free: 60.84 MB / 0.6042 GB Notification: Performance of pre-optimization done (n=10): time 1.673e-06/0.2637, allocations: 0 / 0.9029 GB, free: 60.84 MB / 0.6042 GB Notification: Performance of matching and sorting (n=10): time 0.0004325/0.2641, allocations: 185.6 kB / 0.9031 GB, free: 60.65 MB / 0.6042 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.128e-05/0.2642, allocations: 63.73 kB / 0.9032 GB, free: 60.58 MB / 0.6042 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.889e-05/0.2643, allocations: 109.8 kB / 0.9033 GB, free: 60.46 MB / 0.6042 GB Notification: Performance of collectPreVariables (initialization): time 1.772e-05/0.2643, allocations: 29.7 kB / 0.9033 GB, free: 60.43 MB / 0.6042 GB Notification: Performance of collectInitialEqns (initialization): time 4.521e-05/0.2643, allocations: 92.27 kB / 0.9034 GB, free: 60.33 MB / 0.6042 GB Notification: Performance of collectInitialBindings (initialization): time 2.572e-05/0.2644, allocations: 31.58 kB / 0.9034 GB, free: 60.3 MB / 0.6042 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.072e-06/0.2644, allocations: 4 kB / 0.9034 GB, free: 60.29 MB / 0.6042 GB Notification: Performance of setup shared object (initialization): time 6.988e-05/0.2645, allocations: 318.8 kB / 0.9037 GB, free: 59.97 MB / 0.6042 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001081/0.2646, allocations: 39.98 kB / 0.9038 GB, free: 59.93 MB / 0.6042 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001194/0.2647, allocations: 72.59 kB / 0.9038 GB, free: 59.85 MB / 0.6042 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001179/0.2648, allocations: 51.98 kB / 0.9039 GB, free: 59.8 MB / 0.6042 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.793e-06/0.2648, allocations: 0 / 0.9039 GB, free: 59.8 MB / 0.6042 GB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0002645/0.2651, allocations: 149.7 kB / 0.904 GB, free: 59.65 MB / 0.6042 GB Notification: Performance of prepare postOptimizeDAE: time 1.523e-05/0.2651, allocations: 8 kB / 0.904 GB, free: 59.64 MB / 0.6042 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.492e-06/0.2652, allocations: 256 / 0.904 GB, free: 59.64 MB / 0.6042 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.682e-05/0.2652, allocations: 4 kB / 0.904 GB, free: 59.64 MB / 0.6042 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001248/0.2653, allocations: 27.92 kB / 0.9041 GB, free: 59.61 MB / 0.6042 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.806e-06/0.2653, allocations: 4 kB / 0.9041 GB, free: 59.61 MB / 0.6042 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.764e-05/0.2654, allocations: 23.83 kB / 0.9041 GB, free: 59.58 MB / 0.6042 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.066e-06/0.2654, allocations: 4 kB / 0.9041 GB, free: 59.58 MB / 0.6042 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 ($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 () * 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 8.836e-05/0.2655, allocations: 129.7 kB / 0.9042 GB, free: 59.44 MB / 0.6042 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.345e-05/0.2655, allocations: 7.906 kB / 0.9042 GB, free: 59.43 MB / 0.6042 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003182/0.2659, allocations: 146 kB / 0.9044 GB, free: 59.29 MB / 0.6042 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.274e-06/0.2659, allocations: 4 kB / 0.9044 GB, free: 59.28 MB / 0.6042 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.47e-06/0.2659, allocations: 4 kB / 0.9044 GB, free: 59.28 MB / 0.6042 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.408e-06/0.2659, allocations: 3.938 kB / 0.9044 GB, free: 59.27 MB / 0.6042 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004296/0.2663, allocations: 418.4 kB / 0.9048 GB, free: 58.81 MB / 0.6042 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.432e-06/0.2663, allocations: 0 / 0.9048 GB, free: 58.81 MB / 0.6042 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.251e-05/0.2664, allocations: 15.98 kB / 0.9048 GB, free: 58.79 MB / 0.6042 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.254e-06/0.2664, allocations: 0 / 0.9048 GB, free: 58.79 MB / 0.6042 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.016e-05/0.2664, allocations: 4 kB / 0.9048 GB, free: 58.79 MB / 0.6042 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.152e-06/0.2664, allocations: 0 / 0.9048 GB, free: 58.79 MB / 0.6042 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.743e-06/0.2664, allocations: 3.953 kB / 0.9048 GB, free: 58.79 MB / 0.6042 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002924/0.2667, allocations: 251.5 kB / 0.905 GB, free: 58.52 MB / 0.6042 GB Notification: Performance of postOpt removeConstants (simulation): time 2.121e-05/0.2668, allocations: 81.09 kB / 0.9051 GB, free: 58.43 MB / 0.6042 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.075e-05/0.2668, allocations: 4 kB / 0.9051 GB, free: 58.42 MB / 0.6042 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.69e-05/0.2669, allocations: 15.98 kB / 0.9051 GB, free: 58.41 MB / 0.6042 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.547e-05/0.267, allocations: 3.953 kB / 0.9051 GB, free: 58.4 MB / 0.6042 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.696e-06/0.267, allocations: 7.984 kB / 0.9051 GB, free: 58.39 MB / 0.6042 GB Notification: Performance of sorting global known variables: time 2.351e-05/0.267, allocations: 87.28 kB / 0.9052 GB, free: 58.31 MB / 0.6042 GB Notification: Performance of sort global known variables: time 4.11e-07/0.267, allocations: 0 / 0.9052 GB, free: 58.31 MB / 0.6042 GB Notification: Performance of remove unused functions: time 0.0002362/0.2672, allocations: 23.91 kB / 0.9052 GB, free: 58.29 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: 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 (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.000489/0.2677, allocations: 0.771 MB / 0.906 GB, free: 57.49 MB / 0.6042 GB Notification: Performance of simCode: created initialization part: time 0.0002593/0.268, allocations: 115.9 kB / 0.9061 GB, free: 57.38 MB / 0.6042 GB Notification: Performance of simCode: created event and clocks part: time 1.813e-06/0.268, allocations: 0 / 0.9061 GB, free: 57.38 MB / 0.6042 GB Notification: Performance of simCode: created simulation system equations: time 0.0001189/0.2681, allocations: 55.95 kB / 0.9062 GB, free: 57.32 MB / 0.6042 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001814/0.2683, allocations: 6.25 kB / 0.9062 GB, free: 57.32 MB / 0.6042 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005856/0.2689, allocations: 0.8412 MB / 0.907 GB, free: 56.41 MB / 0.6042 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001127/0.2691, allocations: 0.6926 MB / 0.9077 GB, free: 55.69 MB / 0.6042 GB Notification: Performance of simCode: alias equations: time 3.356e-05/0.2691, allocations: 4.812 kB / 0.9077 GB, free: 55.69 MB / 0.6042 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.313e-05/0.2691, allocations: 19.42 kB / 0.9077 GB, free: 55.67 MB / 0.6042 GB Notification: Performance of SimCode: time 2e-07/0.2691, allocations: 0 / 0.9077 GB, free: 55.67 MB / 0.6042 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0116/0.2807, allocations: 1.608 MB / 0.9093 GB, free: 54.23 MB / 0.6042 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001528/0.281, allocations: 205.9 kB / 0.9095 GB, free: 53.98 MB / 0.6042 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.437/1.718, allocations: 1.719 kB / 0.9095 GB, free: 53.98 MB / 0.6042 GB (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 & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_Buildings_maint_7_0_x_Buildings_Controls_OBC_CDL_Discrete_Examples_FirstOrderHold_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Buildings_maint_7_0_x_Buildings_Controls_OBC_CDL_Discrete_Examples_FirstOrderHold.fmu > Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.FirstOrderHold.pipe 2>&1)