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.376/1.376, allocations: 252 MB / 267.3 MB, free: 10.84 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.0009717/0.0009716, allocations: 174.6 kB / 327 MB, free: 2.098 MB / 250.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.983/1.983, allocations: 205.4 MB / 0.578 GB, free: 20.08 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.000816/0.0008159, allocations: 98.22 kB / 0.6826 GB, free: 12.72 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 0.0003928/0.0003928, allocations: 8.844 kB / 0.7971 GB, free: 134.7 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2665/0.2669, allocations: 106.4 MB / 0.9009 GB, free: 63.24 MB / 0.6042 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Examples.FirstOrderHold): time 0.0021/0.269, allocations: 1.124 MB / 0.902 GB, free: 62.11 MB / 0.6042 GB Notification: Performance of NFInst.instExpressions: time 0.0006161/0.2697, allocations: 236.1 kB / 0.9023 GB, free: 61.87 MB / 0.6042 GB Notification: Performance of NFInst.updateImplicitVariability: time 8.273e-05/0.2698, allocations: 0 / 0.9023 GB, free: 61.87 MB / 0.6042 GB Notification: Performance of NFTyping.typeComponents: time 3.091e-05/0.2698, allocations: 7.938 kB / 0.9023 GB, free: 61.86 MB / 0.6042 GB Notification: Performance of NFTyping.typeBindings: time 9.95e-05/0.27, allocations: 11.92 kB / 0.9023 GB, free: 61.85 MB / 0.6042 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002575/0.2702, allocations: 23.98 kB / 0.9023 GB, free: 61.83 MB / 0.6042 GB Notification: Performance of NFFlatten.flatten: time 0.0001093/0.2703, allocations: 59.84 kB / 0.9024 GB, free: 61.77 MB / 0.6042 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001165/0.2705, allocations: 15.97 kB / 0.9024 GB, free: 61.75 MB / 0.6042 GB Notification: Performance of NFEvalConstants.evaluate: time 9.184e-05/0.2706, allocations: 19.92 kB / 0.9024 GB, free: 61.73 MB / 0.6042 GB Notification: Performance of NFSimplifyModel.simplify: time 6.768e-05/0.2706, allocations: 31.84 kB / 0.9024 GB, free: 61.7 MB / 0.6042 GB Notification: Performance of NFPackage.collectConstants: time 2.102e-05/0.2707, allocations: 4 kB / 0.9024 GB, free: 61.7 MB / 0.6042 GB Notification: Performance of NFFlatten.collectFunctions: time 1.476e-05/0.2707, allocations: 4 kB / 0.9024 GB, free: 61.7 MB / 0.6042 GB Notification: Performance of NFScalarize.scalarize: time 2.921e-05/0.2707, allocations: 15.97 kB / 0.9024 GB, free: 61.68 MB / 0.6042 GB Notification: Performance of NFVerifyModel.verify: time 7.059e-05/0.2708, allocations: 53.56 kB / 0.9025 GB, free: 61.62 MB / 0.6042 GB Notification: Performance of NFConvertDAE.convert: time 0.0001126/0.2709, allocations: 51.83 kB / 0.9025 GB, free: 61.57 MB / 0.6042 GB Notification: Performance of FrontEnd - DAE generated: time 5.13e-06/0.2709, allocations: 0 / 0.9025 GB, free: 61.57 MB / 0.6042 GB Notification: Performance of FrontEnd: time 3.126e-06/0.271, allocations: 0 / 0.9025 GB, free: 61.57 MB / 0.6042 GB Notification: Performance of Transformations before backend: time 4.929e-06/0.271, allocations: 3.938 kB / 0.9025 GB, free: 61.57 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.0005147/0.2715, allocations: 379.7 kB / 0.9029 GB, free: 61.14 MB / 0.6042 GB Notification: Performance of prepare preOptimizeDAE: time 4.527e-05/0.2715, allocations: 8.031 kB / 0.9029 GB, free: 61.14 MB / 0.6042 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.754e-05/0.2716, allocations: 38.73 kB / 0.9029 GB, free: 61.09 MB / 0.6042 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.038e-05/0.2716, allocations: 4.844 kB / 0.903 GB, free: 61.09 MB / 0.6042 GB Notification: Performance of preOpt evaluateParameters (simulation): time 9.417e-05/0.2717, allocations: 172.3 kB / 0.9031 GB, free: 60.88 MB / 0.6042 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.28e-05/0.2717, allocations: 4.375 kB / 0.9031 GB, free: 60.88 MB / 0.6042 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.083e-05/0.2718, allocations: 4.375 kB / 0.9031 GB, free: 60.87 MB / 0.6042 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002288/0.272, allocations: 90.2 kB / 0.9032 GB, free: 60.78 MB / 0.6042 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.111e-05/0.272, allocations: 7.875 kB / 0.9032 GB, free: 60.77 MB / 0.6042 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.202e-05/0.2721, allocations: 8 kB / 0.9032 GB, free: 60.76 MB / 0.6042 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.175e-06/0.2721, allocations: 0 / 0.9032 GB, free: 60.76 MB / 0.6042 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001994/0.2723, allocations: 63.95 kB / 0.9033 GB, free: 60.7 MB / 0.6042 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005/0.2728, allocations: 316.6 kB / 0.9036 GB, free: 60.34 MB / 0.6042 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001933/0.273, allocations: 86.55 kB / 0.9037 GB, free: 60.25 MB / 0.6042 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001177/0.2731, allocations: 48.83 kB / 0.9037 GB, free: 60.2 MB / 0.6042 GB Notification: Performance of preOpt evalFunc (simulation): time 2.721e-05/0.2732, allocations: 0 / 0.9037 GB, free: 60.2 MB / 0.6042 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000245/0.2734, allocations: 103.5 kB / 0.9038 GB, free: 60.08 MB / 0.6042 GB Notification: Performance of pre-optimization done (n=10): time 3.697e-06/0.2734, allocations: 4.109 kB / 0.9038 GB, free: 60.08 MB / 0.6042 GB Notification: Performance of matching and sorting (n=10): time 0.0004976/0.2739, allocations: 185.5 kB / 0.904 GB, free: 59.89 MB / 0.6042 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.77e-05/0.274, allocations: 63.41 kB / 0.9041 GB, free: 59.82 MB / 0.6042 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.582e-05/0.2741, allocations: 109.8 kB / 0.9042 GB, free: 59.7 MB / 0.6042 GB Notification: Performance of collectPreVariables (initialization): time 1.545e-05/0.2741, allocations: 29.7 kB / 0.9042 GB, free: 59.66 MB / 0.6042 GB Notification: Performance of collectInitialEqns (initialization): time 3.386e-05/0.2741, allocations: 84.38 kB / 0.9043 GB, free: 59.57 MB / 0.6042 GB Notification: Performance of collectInitialBindings (initialization): time 2.688e-05/0.2742, allocations: 35.62 kB / 0.9043 GB, free: 59.54 MB / 0.6042 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.41e-06/0.2742, allocations: 0 / 0.9043 GB, free: 59.54 MB / 0.6042 GB Notification: Performance of setup shared object (initialization): time 7.497e-05/0.2742, allocations: 322.8 kB / 0.9046 GB, free: 59.21 MB / 0.6042 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001132/0.2744, allocations: 43.97 kB / 0.9047 GB, free: 59.17 MB / 0.6042 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001221/0.2745, allocations: 71.39 kB / 0.9047 GB, free: 59.09 MB / 0.6042 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002246/0.2747, allocations: 115.3 kB / 0.9048 GB, free: 58.96 MB / 0.6042 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.625e-06/0.2747, allocations: 0 / 0.9048 GB, free: 58.96 MB / 0.6042 GB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0002937/0.275, allocations: 157.4 kB / 0.905 GB, free: 58.8 MB / 0.6042 GB Notification: Performance of prepare postOptimizeDAE: time 1.683e-05/0.2751, allocations: 8 kB / 0.905 GB, free: 58.8 MB / 0.6042 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.701e-06/0.2751, allocations: 0 / 0.905 GB, free: 58.8 MB / 0.6042 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.586e-05/0.2751, allocations: 0 / 0.905 GB, free: 58.8 MB / 0.6042 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001167/0.2752, allocations: 28.34 kB / 0.905 GB, free: 58.77 MB / 0.6042 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.711e-06/0.2752, allocations: 0 / 0.905 GB, free: 58.77 MB / 0.6042 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.884e-05/0.2753, allocations: 16.09 kB / 0.905 GB, free: 58.75 MB / 0.6042 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.227e-06/0.2753, allocations: 4 kB / 0.905 GB, free: 58.75 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 7.929e-05/0.2754, allocations: 137.6 kB / 0.9052 GB, free: 58.61 MB / 0.6042 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.399e-05/0.2754, allocations: 3.906 kB / 0.9052 GB, free: 58.6 MB / 0.6042 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003453/0.2758, allocations: 157.9 kB / 0.9053 GB, free: 58.44 MB / 0.6042 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.998e-06/0.2758, allocations: 4 kB / 0.9053 GB, free: 58.44 MB / 0.6042 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.925e-06/0.2758, allocations: 0 / 0.9053 GB, free: 58.44 MB / 0.6042 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.825e-06/0.2758, allocations: 0 / 0.9053 GB, free: 58.44 MB / 0.6042 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004615/0.2763, allocations: 418.4 kB / 0.9057 GB, free: 57.97 MB / 0.6042 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.405e-06/0.2763, allocations: 0 / 0.9057 GB, free: 57.97 MB / 0.6042 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.772e-05/0.2764, allocations: 11.98 kB / 0.9057 GB, free: 57.96 MB / 0.6042 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.604e-06/0.2764, allocations: 0 / 0.9057 GB, free: 57.96 MB / 0.6042 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.203e-05/0.2764, allocations: 4 kB / 0.9057 GB, free: 57.96 MB / 0.6042 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.192e-06/0.2764, allocations: 0 / 0.9057 GB, free: 57.96 MB / 0.6042 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.182e-06/0.2764, allocations: 0 / 0.9057 GB, free: 57.96 MB / 0.6042 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003096/0.2767, allocations: 255.3 kB / 0.906 GB, free: 57.69 MB / 0.6042 GB Notification: Performance of postOpt removeConstants (simulation): time 2.971e-05/0.2768, allocations: 81.02 kB / 0.9061 GB, free: 57.59 MB / 0.6042 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.077e-05/0.2768, allocations: 4.25 kB / 0.9061 GB, free: 57.59 MB / 0.6042 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001015/0.2769, allocations: 23.98 kB / 0.9061 GB, free: 57.57 MB / 0.6042 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.086e-05/0.277, allocations: 15.86 kB / 0.9061 GB, free: 57.55 MB / 0.6042 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.786e-06/0.277, allocations: 0 / 0.9061 GB, free: 57.55 MB / 0.6042 GB Notification: Performance of sorting global known variables: time 4.073e-05/0.277, allocations: 87.27 kB / 0.9062 GB, free: 57.46 MB / 0.6042 GB Notification: Performance of sort global known variables: time 1.3e-07/0.277, allocations: 4 kB / 0.9062 GB, free: 57.46 MB / 0.6042 GB Notification: Performance of remove unused functions: time 0.0002167/0.2772, allocations: 12 kB / 0.9062 GB, free: 57.45 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 (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.0005332/0.2778, allocations: 0.7829 MB / 0.907 GB, free: 56.64 MB / 0.6042 GB Notification: Performance of simCode: created initialization part: time 0.0002836/0.2781, allocations: 107.8 kB / 0.9071 GB, free: 56.54 MB / 0.6042 GB Notification: Performance of simCode: created event and clocks part: time 2.455e-06/0.2781, allocations: 4 kB / 0.9071 GB, free: 56.53 MB / 0.6042 GB Notification: Performance of simCode: created simulation system equations: time 0.0001193/0.2782, allocations: 55.91 kB / 0.9071 GB, free: 56.48 MB / 0.6042 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002465/0.2785, allocations: 16.86 kB / 0.9071 GB, free: 56.46 MB / 0.6042 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001465/0.28, allocations: 1.536 MB / 0.9086 GB, free: 54.83 MB / 0.6042 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001445/0.2801, allocations: 0.6848 MB / 0.9093 GB, free: 54.12 MB / 0.6042 GB Notification: Performance of simCode: alias equations: time 4.024e-05/0.2802, allocations: 8.422 kB / 0.9093 GB, free: 54.11 MB / 0.6042 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.973e-05/0.2802, allocations: 19.38 kB / 0.9093 GB, free: 54.09 MB / 0.6042 GB Notification: Performance of SimCode: time 4.41e-07/0.2802, allocations: 0 / 0.9093 GB, free: 54.09 MB / 0.6042 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01188/0.2921, allocations: 1.609 MB / 0.9109 GB, free: 52.65 MB / 0.6042 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001699/0.2923, allocations: 226.2 kB / 0.9111 GB, free: 52.39 MB / 0.6042 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.71/2.002, allocations: 0 / 0.9111 GB, free: 52.39 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)