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.001051/0.001051, allocations: 111.3 kB / 15.23 MB, free: 0.6406 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.001134/0.001134, allocations: 195.3 kB / 16.14 MB, free: 6.707 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.138/1.138, allocations: 205.1 MB / 222 MB, free: 4.973 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.542/1.542, allocations: 292.3 MB / 0.5484 GB, free: 13.64 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.001468/0.001468, allocations: 65.88 kB / 0.6709 GB, free: 26.22 MB / 0.5294 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2765/0.278, allocations: 114.6 MB / 0.7828 GB, free: 13.88 MB / 0.6075 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Examples.FirstOrderHold): time 0.00208/0.2801, allocations: 0.7504 MB / 0.7835 GB, free: 13.13 MB / 0.6075 GB Notification: Performance of NFInst.instExpressions: time 0.001471/0.2816, allocations: 1.072 MB / 0.7846 GB, free: 12.04 MB / 0.6075 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.094e-05/0.2817, allocations: 4 kB / 0.7846 GB, free: 12.04 MB / 0.6075 GB Notification: Performance of NFTyping.typeComponents: time 4.512e-05/0.2817, allocations: 0 / 0.7846 GB, free: 12.04 MB / 0.6075 GB Notification: Performance of NFTyping.typeBindings: time 6.684e-05/0.2818, allocations: 3.938 kB / 0.7846 GB, free: 12.04 MB / 0.6075 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002729/0.2821, allocations: 43.89 kB / 0.7846 GB, free: 11.99 MB / 0.6075 GB Notification: Performance of NFFlatten.flatten: time 0.0001047/0.2822, allocations: 63.84 kB / 0.7847 GB, free: 11.93 MB / 0.6075 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001332/0.2823, allocations: 7.984 kB / 0.7847 GB, free: 11.92 MB / 0.6075 GB Notification: Performance of NFEvalConstants.evaluate: time 8.899e-05/0.2824, allocations: 39.84 kB / 0.7847 GB, free: 11.88 MB / 0.6075 GB Notification: Performance of NFSimplifyModel.simplify: time 6.499e-05/0.2825, allocations: 23.91 kB / 0.7848 GB, free: 11.86 MB / 0.6075 GB Notification: Performance of NFPackage.collectConstants: time 2.259e-05/0.2825, allocations: 4 kB / 0.7848 GB, free: 11.86 MB / 0.6075 GB Notification: Performance of NFFlatten.collectFunctions: time 7.631e-05/0.2826, allocations: 15.98 kB / 0.7848 GB, free: 11.84 MB / 0.6075 GB Notification: Performance of NFScalarize.scalarize: time 4.242e-05/0.2827, allocations: 19.91 kB / 0.7848 GB, free: 11.82 MB / 0.6075 GB Notification: Performance of NFVerifyModel.verify: time 5.189e-05/0.2827, allocations: 27.86 kB / 0.7848 GB, free: 11.79 MB / 0.6075 GB Notification: Performance of NFConvertDAE.convert: time 0.0001576/0.2829, allocations: 67.81 kB / 0.7849 GB, free: 11.73 MB / 0.6075 GB Notification: Performance of FrontEnd - DAE generated: time 4.539e-06/0.2829, allocations: 0 / 0.7849 GB, free: 11.73 MB / 0.6075 GB Notification: Performance of FrontEnd: time 9.12e-07/0.2829, allocations: 3.938 kB / 0.7849 GB, free: 11.72 MB / 0.6075 GB Notification: Performance of Transformations before backend: time 6.763e-06/0.2829, allocations: 0 / 0.7849 GB, free: 11.72 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.0007776/0.2837, allocations: 387.6 kB / 0.7853 GB, free: 11.29 MB / 0.6075 GB Notification: Performance of prepare preOptimizeDAE: time 5.219e-05/0.2838, allocations: 8.031 kB / 0.7853 GB, free: 11.29 MB / 0.6075 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.706e-05/0.2838, allocations: 38.75 kB / 0.7853 GB, free: 11.24 MB / 0.6075 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.372e-05/0.2839, allocations: 4.938 kB / 0.7853 GB, free: 11.23 MB / 0.6075 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001717/0.2841, allocations: 168.2 kB / 0.7855 GB, free: 11.03 MB / 0.6075 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.065e-05/0.2841, allocations: 12.3 kB / 0.7855 GB, free: 11.02 MB / 0.6075 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.855e-05/0.2841, allocations: 8.375 kB / 0.7855 GB, free: 11.01 MB / 0.6075 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000255/0.2844, allocations: 82.16 kB / 0.7856 GB, free: 10.93 MB / 0.6075 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.073e-05/0.2844, allocations: 7.938 kB / 0.7856 GB, free: 10.92 MB / 0.6075 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.991e-05/0.2844, allocations: 3.984 kB / 0.7856 GB, free: 10.91 MB / 0.6075 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.39e-06/0.2845, allocations: 0 / 0.7856 GB, free: 10.91 MB / 0.6075 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002162/0.2847, allocations: 55.89 kB / 0.7856 GB, free: 10.86 MB / 0.6075 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005992/0.2853, allocations: 308.8 kB / 0.7859 GB, free: 10.51 MB / 0.6075 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002235/0.2855, allocations: 82.47 kB / 0.786 GB, free: 10.42 MB / 0.6075 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001303/0.2857, allocations: 44.83 kB / 0.7861 GB, free: 10.37 MB / 0.6075 GB Notification: Performance of preOpt evalFunc (simulation): time 2.622e-05/0.2857, allocations: 3.984 kB / 0.7861 GB, free: 10.37 MB / 0.6075 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002598/0.286, allocations: 99.39 kB / 0.7862 GB, free: 10.26 MB / 0.6075 GB Notification: Performance of pre-optimization done (n=10): time 1.343e-06/0.286, allocations: 0 / 0.7862 GB, free: 10.26 MB / 0.6075 GB Notification: Performance of matching and sorting (n=10): time 0.0005538/0.2865, allocations: 165.6 kB / 0.7863 GB, free: 10.09 MB / 0.6075 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.599e-05/0.2866, allocations: 59.39 kB / 0.7864 GB, free: 10.02 MB / 0.6075 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001317/0.2867, allocations: 109.8 kB / 0.7865 GB, free: 9.902 MB / 0.6075 GB Notification: Performance of collectPreVariables (initialization): time 2.052e-05/0.2868, allocations: 25.7 kB / 0.7865 GB, free: 9.871 MB / 0.6075 GB Notification: Performance of collectInitialEqns (initialization): time 5.288e-05/0.2868, allocations: 96.28 kB / 0.7866 GB, free: 9.77 MB / 0.6075 GB Notification: Performance of collectInitialBindings (initialization): time 4.225e-05/0.2869, allocations: 27.64 kB / 0.7866 GB, free: 9.742 MB / 0.6075 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.951e-05/0.2869, allocations: 26.09 kB / 0.7866 GB, free: 9.711 MB / 0.6075 GB Notification: Performance of setup shared object (initialization): time 0.000143/0.2871, allocations: 326.8 kB / 0.787 GB, free: 9.383 MB / 0.6075 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001248/0.2872, allocations: 35.97 kB / 0.787 GB, free: 9.348 MB / 0.6075 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001366/0.2874, allocations: 62.59 kB / 0.7871 GB, free: 9.277 MB / 0.6075 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002447/0.2876, allocations: 110.4 kB / 0.7872 GB, free: 9.16 MB / 0.6075 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.204e-06/0.2876, allocations: 0 / 0.7872 GB, free: 9.16 MB / 0.6075 GB Notification: Performance of matching and sorting (n=16) (initialization): time 0.000424/0.2881, allocations: 141.7 kB / 0.7873 GB, free: 9.016 MB / 0.6075 GB Notification: Performance of prepare postOptimizeDAE: time 1.787e-05/0.2881, allocations: 8.062 kB / 0.7873 GB, free: 9.008 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.921e-06/0.2881, allocations: 0 / 0.7873 GB, free: 9.008 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.026e-05/0.2881, allocations: 8 kB / 0.7873 GB, free: 9 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001283/0.2883, allocations: 15.98 kB / 0.7873 GB, free: 8.984 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.028e-05/0.2883, allocations: 7.984 kB / 0.7873 GB, free: 8.977 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.718e-05/0.2884, allocations: 11.94 kB / 0.7873 GB, free: 8.965 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.251e-05/0.2884, allocations: 4 kB / 0.7873 GB, free: 8.961 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 0.0001085/0.2885, allocations: 126.4 kB / 0.7875 GB, free: 8.828 MB / 0.6075 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.602e-05/0.2885, allocations: 15.84 kB / 0.7875 GB, free: 8.812 MB / 0.6075 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003655/0.2889, allocations: 145.9 kB / 0.7876 GB, free: 8.664 MB / 0.6075 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.385e-06/0.2889, allocations: 0 / 0.7876 GB, free: 8.664 MB / 0.6075 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.552e-06/0.2889, allocations: 0 / 0.7876 GB, free: 8.664 MB / 0.6075 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.36e-06/0.2889, allocations: 0 / 0.7876 GB, free: 8.664 MB / 0.6075 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00057/0.2895, allocations: 418.4 kB / 0.788 GB, free: 8.199 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.473e-06/0.2895, allocations: 0 / 0.788 GB, free: 8.199 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.091e-05/0.2896, allocations: 11.98 kB / 0.788 GB, free: 8.188 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.024e-06/0.2896, allocations: 0 / 0.788 GB, free: 8.188 MB / 0.6075 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.457e-05/0.2896, allocations: 0 / 0.788 GB, free: 8.188 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.345e-06/0.2896, allocations: 0 / 0.788 GB, free: 8.188 MB / 0.6075 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.022e-06/0.2896, allocations: 0 / 0.788 GB, free: 8.188 MB / 0.6075 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004086/0.2901, allocations: 247.5 kB / 0.7883 GB, free: 7.93 MB / 0.6075 GB Notification: Performance of postOpt removeConstants (simulation): time 6.942e-05/0.2901, allocations: 85.05 kB / 0.7883 GB, free: 7.828 MB / 0.6075 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.781e-05/0.2902, allocations: 7.938 kB / 0.7884 GB, free: 7.82 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001116/0.2903, allocations: 11.98 kB / 0.7884 GB, free: 7.809 MB / 0.6075 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.839e-05/0.2904, allocations: 15.86 kB / 0.7884 GB, free: 7.793 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.676e-06/0.2904, allocations: 0 / 0.7884 GB, free: 7.793 MB / 0.6075 GB Notification: Performance of sorting global known variables: time 5.521e-05/0.2904, allocations: 91.27 kB / 0.7885 GB, free: 7.703 MB / 0.6075 GB Notification: Performance of sort global known variables: time 1.3e-07/0.2904, allocations: 0 / 0.7885 GB, free: 7.703 MB / 0.6075 GB Notification: Performance of remove unused functions: time 0.0002639/0.2907, allocations: 16 kB / 0.7885 GB, free: 7.688 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.0009468/0.2917, allocations: 0.771 MB / 0.7892 GB, free: 6.891 MB / 0.6075 GB Notification: Performance of simCode: created initialization part: time 0.0003159/0.292, allocations: 99.88 kB / 0.7893 GB, free: 6.793 MB / 0.6075 GB Notification: Performance of simCode: created event and clocks part: time 2.595e-06/0.292, allocations: 0 / 0.7893 GB, free: 6.793 MB / 0.6075 GB Notification: Performance of simCode: created simulation system equations: time 0.0001449/0.2921, allocations: 51.91 kB / 0.7894 GB, free: 6.742 MB / 0.6075 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002915/0.2924, allocations: 11.94 kB / 0.7894 GB, free: 6.73 MB / 0.6075 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001884/0.2943, allocations: 1.497 MB / 0.7909 GB, free: 5.145 MB / 0.6075 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00032/0.2947, allocations: 0.6848 MB / 0.7915 GB, free: 4.434 MB / 0.6075 GB Notification: Performance of simCode: alias equations: time 4.516e-05/0.2947, allocations: 12.42 kB / 0.7915 GB, free: 4.422 MB / 0.6075 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.737e-05/0.2948, allocations: 15.44 kB / 0.7915 GB, free: 4.406 MB / 0.6075 GB Notification: Performance of SimCode: time 2.31e-07/0.2948, allocations: 288 / 0.7915 GB, free: 4.406 MB / 0.6075 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01252/0.3073, allocations: 1.827 MB / 0.7933 GB, free: 2.688 MB / 0.6075 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002243/0.3076, allocations: 207.1 kB / 0.7935 GB, free: 2.434 MB / 0.6075 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.85/2.158, allocations: 0 / 0.7935 GB, free: 2.434 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)