Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_8_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 8.1.4-maint.8.1.x/package.mo", uses=false) Using package Buildings with version 8.1.4 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.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: "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Discrete.Examples.FirstOrderHold,fileNamePrefix="Buildings_8_Buildings_Controls_OBC_CDL_Discrete_Examples_FirstOrderHold",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Discrete.Examples.FirstOrderHold,fileNamePrefix="Buildings_8_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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001201/0.001201, allocations: 109.4 kB / 15.69 MB, free: 128 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001254/0.001254, allocations: 187.3 kB / 16.62 MB, free: 6.582 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.583/1.583, allocations: 205.1 MB / 222.5 MB, free: 4.504 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo): time 1.922/1.922, allocations: 292.3 MB / 0.549 GB, free: 12.75 MB / 462.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.001647/0.001647, allocations: 68.08 kB / 0.6718 GB, free: 26.18 MB / 0.5294 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3096/0.3113, allocations: 114.6 MB / 0.7836 GB, free: 13.21 MB / 0.6075 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Examples.FirstOrderHold): time 0.002528/0.3139, allocations: 0.6853 MB / 0.7843 GB, free: 12.52 MB / 0.6075 GB Notification: Performance of NFInst.instExpressions: time 0.001646/0.3155, allocations: 1.074 MB / 0.7854 GB, free: 11.43 MB / 0.6075 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.557e-05/0.3156, allocations: 0 / 0.7854 GB, free: 11.43 MB / 0.6075 GB Notification: Performance of NFTyping.typeComponents: time 3.368e-05/0.3156, allocations: 3.938 kB / 0.7854 GB, free: 11.43 MB / 0.6075 GB Notification: Performance of NFTyping.typeBindings: time 7.944e-05/0.3157, allocations: 7.875 kB / 0.7854 GB, free: 11.42 MB / 0.6075 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003145/0.3161, allocations: 47.88 kB / 0.7854 GB, free: 11.38 MB / 0.6075 GB Notification: Performance of NFFlatten.flatten: time 0.0001183/0.3162, allocations: 63.84 kB / 0.7855 GB, free: 11.31 MB / 0.6075 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001301/0.3163, allocations: 15.98 kB / 0.7855 GB, free: 11.3 MB / 0.6075 GB Notification: Performance of NFEvalConstants.evaluate: time 9.568e-05/0.3164, allocations: 27.91 kB / 0.7855 GB, free: 11.27 MB / 0.6075 GB Notification: Performance of NFSimplifyModel.simplify: time 7.362e-05/0.3165, allocations: 39.84 kB / 0.7856 GB, free: 11.23 MB / 0.6075 GB Notification: Performance of NFPackage.collectConstants: time 2.078e-05/0.3166, allocations: 4 kB / 0.7856 GB, free: 11.23 MB / 0.6075 GB Notification: Performance of NFFlatten.collectFunctions: time 9.207e-05/0.3166, allocations: 19.98 kB / 0.7856 GB, free: 11.21 MB / 0.6075 GB Notification: Performance of NFScalarize.scalarize: time 2.608e-05/0.3167, allocations: 15.98 kB / 0.7856 GB, free: 11.19 MB / 0.6075 GB Notification: Performance of NFVerifyModel.verify: time 5.13e-05/0.3167, allocations: 31.84 kB / 0.7856 GB, free: 11.16 MB / 0.6075 GB Notification: Performance of NFConvertDAE.convert: time 0.0001628/0.3169, allocations: 75.75 kB / 0.7857 GB, free: 11.09 MB / 0.6075 GB Notification: Performance of FrontEnd - DAE generated: time 4.198e-06/0.3169, allocations: 0 / 0.7857 GB, free: 11.09 MB / 0.6075 GB Notification: Performance of FrontEnd: time 1.302e-06/0.3169, allocations: 0 / 0.7857 GB, free: 11.09 MB / 0.6075 GB Notification: Performance of Transformations before backend: time 1.159e-05/0.3169, allocations: 0 / 0.7857 GB, free: 11.09 MB / 0.6075 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.0007318/0.3177, allocations: 383.6 kB / 0.7861 GB, free: 10.66 MB / 0.6075 GB Notification: Performance of prepare preOptimizeDAE: time 4.715e-05/0.3177, allocations: 11.97 kB / 0.7861 GB, free: 10.65 MB / 0.6075 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.49e-05/0.3178, allocations: 46.73 kB / 0.7861 GB, free: 10.59 MB / 0.6075 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.646e-05/0.3178, allocations: 4.938 kB / 0.7861 GB, free: 10.59 MB / 0.6075 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000153/0.318, allocations: 168.2 kB / 0.7863 GB, free: 10.39 MB / 0.6075 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.06e-05/0.318, allocations: 8.375 kB / 0.7863 GB, free: 10.38 MB / 0.6075 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.594e-05/0.318, allocations: 4.375 kB / 0.7863 GB, free: 10.38 MB / 0.6075 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002263/0.3183, allocations: 86.14 kB / 0.7864 GB, free: 10.29 MB / 0.6075 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.126e-05/0.3183, allocations: 7.938 kB / 0.7864 GB, free: 10.28 MB / 0.6075 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.14e-05/0.3183, allocations: 0 / 0.7864 GB, free: 10.28 MB / 0.6075 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.63e-06/0.3183, allocations: 0 / 0.7864 GB, free: 10.28 MB / 0.6075 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002061/0.3185, allocations: 55.89 kB / 0.7864 GB, free: 10.22 MB / 0.6075 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005451/0.3191, allocations: 308.8 kB / 0.7867 GB, free: 9.871 MB / 0.6075 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002044/0.3193, allocations: 82.53 kB / 0.7868 GB, free: 9.781 MB / 0.6075 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001174/0.3194, allocations: 40.84 kB / 0.7869 GB, free: 9.738 MB / 0.6075 GB Notification: Performance of preOpt evalFunc (simulation): time 2.511e-05/0.3195, allocations: 4.125 kB / 0.7869 GB, free: 9.734 MB / 0.6075 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002781/0.3198, allocations: 91.3 kB / 0.7869 GB, free: 9.633 MB / 0.6075 GB Notification: Performance of pre-optimization done (n=10): time 1.573e-06/0.3198, allocations: 0 / 0.7869 GB, free: 9.633 MB / 0.6075 GB Notification: Performance of matching and sorting (n=10): time 0.000503/0.3203, allocations: 181.4 kB / 0.7871 GB, free: 9.449 MB / 0.6075 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.129e-05/0.3203, allocations: 59.39 kB / 0.7872 GB, free: 9.379 MB / 0.6075 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001081/0.3205, allocations: 109.8 kB / 0.7873 GB, free: 9.262 MB / 0.6075 GB Notification: Performance of collectPreVariables (initialization): time 2.357e-05/0.3205, allocations: 29.7 kB / 0.7873 GB, free: 9.227 MB / 0.6075 GB Notification: Performance of collectInitialEqns (initialization): time 5.53e-05/0.3206, allocations: 92.27 kB / 0.7874 GB, free: 9.133 MB / 0.6075 GB Notification: Performance of collectInitialBindings (initialization): time 2.822e-05/0.3206, allocations: 24.72 kB / 0.7874 GB, free: 9.109 MB / 0.6075 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.326e-05/0.3207, allocations: 37.7 kB / 0.7875 GB, free: 9.066 MB / 0.6075 GB Notification: Performance of setup shared object (initialization): time 0.0001341/0.3208, allocations: 322.8 kB / 0.7878 GB, free: 8.742 MB / 0.6075 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001262/0.3209, allocations: 35.98 kB / 0.7878 GB, free: 8.707 MB / 0.6075 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001307/0.3211, allocations: 65.56 kB / 0.7879 GB, free: 8.637 MB / 0.6075 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002265/0.3213, allocations: 102.6 kB / 0.788 GB, free: 8.527 MB / 0.6075 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.255e-06/0.3213, allocations: 4 kB / 0.788 GB, free: 8.523 MB / 0.6075 GB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0002919/0.3216, allocations: 141.5 kB / 0.7881 GB, free: 8.379 MB / 0.6075 GB Notification: Performance of prepare postOptimizeDAE: time 1.505e-05/0.3216, allocations: 4 kB / 0.7881 GB, free: 8.375 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.939e-06/0.3216, allocations: 0 / 0.7881 GB, free: 8.375 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.574e-05/0.3217, allocations: 8.062 kB / 0.7881 GB, free: 8.367 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001249/0.3218, allocations: 19.92 kB / 0.7881 GB, free: 8.348 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.645e-06/0.3218, allocations: 4 kB / 0.7881 GB, free: 8.344 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.093e-05/0.3219, allocations: 19.83 kB / 0.7881 GB, free: 8.324 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.268e-05/0.3219, allocations: 4 kB / 0.7882 GB, free: 8.32 MB / 0.6075 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 9.33e-05/0.322, allocations: 117.8 kB / 0.7883 GB, free: 8.195 MB / 0.6075 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.534e-05/0.322, allocations: 7.906 kB / 0.7883 GB, free: 8.188 MB / 0.6075 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003348/0.3224, allocations: 150.3 kB / 0.7884 GB, free: 8.035 MB / 0.6075 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.408e-06/0.3224, allocations: 0 / 0.7884 GB, free: 8.035 MB / 0.6075 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.009e-06/0.3224, allocations: 4.281 kB / 0.7884 GB, free: 8.031 MB / 0.6075 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.937e-06/0.3224, allocations: 3.938 kB / 0.7884 GB, free: 8.027 MB / 0.6075 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005122/0.3229, allocations: 422.3 kB / 0.7888 GB, free: 7.559 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.923e-06/0.3229, allocations: 0 / 0.7888 GB, free: 7.559 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.492e-05/0.323, allocations: 8 kB / 0.7888 GB, free: 7.551 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.799e-06/0.323, allocations: 7.984 kB / 0.7888 GB, free: 7.543 MB / 0.6075 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.196e-05/0.3231, allocations: 0 / 0.7888 GB, free: 7.543 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.433e-06/0.3231, allocations: 0 / 0.7888 GB, free: 7.543 MB / 0.6075 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.935e-06/0.3231, allocations: 3.984 kB / 0.7888 GB, free: 7.539 MB / 0.6075 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003663/0.3234, allocations: 239.3 kB / 0.7891 GB, free: 7.289 MB / 0.6075 GB Notification: Performance of postOpt removeConstants (simulation): time 4.669e-05/0.3235, allocations: 88.94 kB / 0.7892 GB, free: 7.184 MB / 0.6075 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.027e-05/0.3235, allocations: 4 kB / 0.7892 GB, free: 7.18 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001017/0.3236, allocations: 15.98 kB / 0.7892 GB, free: 7.164 MB / 0.6075 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.604e-05/0.3237, allocations: 7.938 kB / 0.7892 GB, free: 7.156 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.017e-06/0.3237, allocations: 3.984 kB / 0.7892 GB, free: 7.152 MB / 0.6075 GB Notification: Performance of sorting global known variables: time 4.212e-05/0.3238, allocations: 87.28 kB / 0.7893 GB, free: 7.066 MB / 0.6075 GB Notification: Performance of sort global known variables: time 1.5e-07/0.3238, allocations: 0 / 0.7893 GB, free: 7.066 MB / 0.6075 GB Notification: Performance of remove unused functions: time 0.0002443/0.324, allocations: 16 kB / 0.7893 GB, free: 7.051 MB / 0.6075 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.0006689/0.3247, allocations: 0.7671 MB / 0.79 GB, free: 6.258 MB / 0.6075 GB Notification: Performance of simCode: created initialization part: time 0.0003097/0.325, allocations: 104.1 kB / 0.7901 GB, free: 6.156 MB / 0.6075 GB Notification: Performance of simCode: created event and clocks part: time 2.716e-06/0.325, allocations: 3.938 kB / 0.7901 GB, free: 6.152 MB / 0.6075 GB Notification: Performance of simCode: created simulation system equations: time 0.0001305/0.3252, allocations: 48.09 kB / 0.7902 GB, free: 6.105 MB / 0.6075 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002704/0.3254, allocations: 18.58 kB / 0.7902 GB, free: 6.09 MB / 0.6075 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001782/0.3272, allocations: 1.494 MB / 0.7917 GB, free: 4.504 MB / 0.6075 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003362/0.3276, allocations: 0.6885 MB / 0.7923 GB, free: 3.789 MB / 0.6075 GB Notification: Performance of simCode: alias equations: time 4.071e-05/0.3276, allocations: 4.438 kB / 0.7923 GB, free: 3.785 MB / 0.6075 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.548e-05/0.3277, allocations: 23.42 kB / 0.7924 GB, free: 3.762 MB / 0.6075 GB Notification: Performance of SimCode: time 1.162e-06/0.3277, allocations: 3.938 kB / 0.7924 GB, free: 3.758 MB / 0.6075 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02119/0.3489, allocations: 2.033 MB / 0.7943 GB, free: 1.816 MB / 0.6075 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.5/7.849, allocations: 2.578 kB / 0.7944 GB, free: 1.816 MB / 0.6075 GB (rm -f Buildings_8_Buildings.Controls.OBC.CDL.Discrete.Examples.FirstOrderHold.pipe ; mkfifo Buildings_8_Buildings.Controls.OBC.CDL.Discrete.Examples.FirstOrderHold.pipe ; head -c 1048576 < Buildings_8_Buildings.Controls.OBC.CDL.Discrete.Examples.FirstOrderHold.pipe >> ../files/Buildings_8_Buildings.Controls.OBC.CDL.Discrete.Examples.FirstOrderHold.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_Buildings_8_Buildings_Controls_OBC_CDL_Discrete_Examples_FirstOrderHold_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Buildings_8_Buildings_Controls_OBC_CDL_Discrete_Examples_FirstOrderHold.fmu > Buildings_8_Buildings.Controls.OBC.CDL.Discrete.Examples.FirstOrderHold.pipe 2>&1)