Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_8_Buildings.Controls.OBC.CDL.Discrete.Examples.ZeroOrderHold.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.ZeroOrderHold,fileNamePrefix="Buildings_8_Buildings_Controls_OBC_CDL_Discrete_Examples_ZeroOrderHold",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Discrete.Examples.ZeroOrderHold,fileNamePrefix="Buildings_8_Buildings_Controls_OBC_CDL_Discrete_Examples_ZeroOrderHold",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.0007888/0.0007888, allocations: 99.86 kB / 15.05 MB, free: 1.105 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.0008463/0.0008463, allocations: 177.3 kB / 15.95 MB, free: 216 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.043/2.043, allocations: 205.4 MB / 222.1 MB, free: 5.664 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.737/1.737, allocations: 292.6 MB / 0.5497 GB, free: 14.63 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.0006191/0.0006192, allocations: 14.94 kB / 0.6737 GB, free: 26.23 MB / 0.5294 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2785/0.2791, allocations: 116.3 MB / 0.7872 GB, free: 11.89 MB / 0.6075 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Examples.ZeroOrderHold): time 0.0007127/0.2799, allocations: 409.5 kB / 0.7876 GB, free: 11.49 MB / 0.6075 GB Notification: Performance of NFInst.instExpressions: time 0.0009508/0.2808, allocations: 1.041 MB / 0.7886 GB, free: 10.44 MB / 0.6075 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.854e-05/0.2809, allocations: 0 / 0.7886 GB, free: 10.44 MB / 0.6075 GB Notification: Performance of NFTyping.typeComponents: time 1.094e-05/0.2809, allocations: 0 / 0.7886 GB, free: 10.44 MB / 0.6075 GB Notification: Performance of NFTyping.typeBindings: time 5.186e-05/0.281, allocations: 3.984 kB / 0.7887 GB, free: 10.43 MB / 0.6075 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001849/0.2812, allocations: 39.83 kB / 0.7887 GB, free: 10.39 MB / 0.6075 GB Notification: Performance of NFFlatten.flatten: time 5.458e-05/0.2812, allocations: 31.91 kB / 0.7887 GB, free: 10.36 MB / 0.6075 GB Notification: Performance of NFFlatten.resolveConnections: time 7.132e-05/0.2813, allocations: 8 kB / 0.7887 GB, free: 10.36 MB / 0.6075 GB Notification: Performance of NFEvalConstants.evaluate: time 5.463e-05/0.2814, allocations: 19.92 kB / 0.7887 GB, free: 10.34 MB / 0.6075 GB Notification: Performance of NFSimplifyModel.simplify: time 4.496e-05/0.2814, allocations: 27.89 kB / 0.7888 GB, free: 10.31 MB / 0.6075 GB Notification: Performance of NFPackage.collectConstants: time 1.076e-05/0.2814, allocations: 0 / 0.7888 GB, free: 10.31 MB / 0.6075 GB Notification: Performance of NFFlatten.collectFunctions: time 4.932e-05/0.2815, allocations: 11.98 kB / 0.7888 GB, free: 10.3 MB / 0.6075 GB Notification: Performance of NFScalarize.scalarize: time 1.512e-05/0.2815, allocations: 11.94 kB / 0.7888 GB, free: 10.29 MB / 0.6075 GB Notification: Performance of NFVerifyModel.verify: time 2.583e-05/0.2815, allocations: 29.7 kB / 0.7888 GB, free: 10.25 MB / 0.6075 GB Notification: Performance of NFConvertDAE.convert: time 7.94e-05/0.2816, allocations: 39.91 kB / 0.7889 GB, free: 10.21 MB / 0.6075 GB Notification: Performance of FrontEnd - DAE generated: time 1.914e-06/0.2816, allocations: 4 kB / 0.7889 GB, free: 10.21 MB / 0.6075 GB Notification: Performance of FrontEnd: time 1.263e-06/0.2816, allocations: 0 / 0.7889 GB, free: 10.21 MB / 0.6075 GB Notification: Performance of Transformations before backend: time 2.826e-06/0.2816, allocations: 0 / 0.7889 GB, free: 10.21 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: 8 * Number of variables: 8 Notification: Performance of Generate backend data structure: time 0.0004402/0.2821, allocations: 363.5 kB / 0.7892 GB, free: 9.805 MB / 0.6075 GB Notification: Performance of prepare preOptimizeDAE: time 3.289e-05/0.2821, allocations: 12.03 kB / 0.7892 GB, free: 9.793 MB / 0.6075 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.268e-05/0.2822, allocations: 42.55 kB / 0.7893 GB, free: 9.742 MB / 0.6075 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.421e-05/0.2822, allocations: 7.906 kB / 0.7893 GB, free: 9.734 MB / 0.6075 GB Notification: Performance of preOpt evaluateParameters (simulation): time 8.334e-05/0.2823, allocations: 167 kB / 0.7894 GB, free: 9.531 MB / 0.6075 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.042e-05/0.2823, allocations: 7.938 kB / 0.7894 GB, free: 9.523 MB / 0.6075 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.081e-05/0.2823, allocations: 4 kB / 0.7894 GB, free: 9.52 MB / 0.6075 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001842/0.2825, allocations: 69.66 kB / 0.7895 GB, free: 9.445 MB / 0.6075 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.08e-05/0.2825, allocations: 0 / 0.7895 GB, free: 9.445 MB / 0.6075 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.313e-05/0.2825, allocations: 0 / 0.7895 GB, free: 9.445 MB / 0.6075 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.282e-06/0.2826, allocations: 8 kB / 0.7895 GB, free: 9.438 MB / 0.6075 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000258/0.2828, allocations: 47.95 kB / 0.7896 GB, free: 9.391 MB / 0.6075 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004177/0.2833, allocations: 288.8 kB / 0.7898 GB, free: 9.059 MB / 0.6075 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001527/0.2834, allocations: 62.48 kB / 0.7899 GB, free: 8.988 MB / 0.6075 GB Notification: Performance of preOpt evalFunc (simulation): time 1.815e-05/0.2835, allocations: 0 / 0.7899 GB, free: 8.988 MB / 0.6075 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002026/0.2837, allocations: 83.5 kB / 0.79 GB, free: 8.895 MB / 0.6075 GB Notification: Performance of pre-optimization done (n=7): time 1.202e-06/0.2837, allocations: 0 / 0.79 GB, free: 8.895 MB / 0.6075 GB Notification: Performance of matching and sorting (n=7): time 0.0004838/0.2842, allocations: 141.5 kB / 0.7901 GB, free: 8.75 MB / 0.6075 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.309e-05/0.2842, allocations: 55.41 kB / 0.7902 GB, free: 8.684 MB / 0.6075 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.834e-05/0.2843, allocations: 109.8 kB / 0.7903 GB, free: 8.566 MB / 0.6075 GB Notification: Performance of collectPreVariables (initialization): time 2.037e-05/0.2844, allocations: 33.64 kB / 0.7903 GB, free: 8.527 MB / 0.6075 GB Notification: Performance of collectInitialEqns (initialization): time 4.175e-05/0.2844, allocations: 80.14 kB / 0.7904 GB, free: 8.445 MB / 0.6075 GB Notification: Performance of collectInitialBindings (initialization): time 2.382e-05/0.2844, allocations: 31.7 kB / 0.7904 GB, free: 8.414 MB / 0.6075 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.508e-06/0.2844, allocations: 0 / 0.7904 GB, free: 8.414 MB / 0.6075 GB Notification: Performance of setup shared object (initialization): time 0.0001042/0.2846, allocations: 318.8 kB / 0.7907 GB, free: 8.094 MB / 0.6075 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001009/0.2847, allocations: 35.97 kB / 0.7907 GB, free: 8.059 MB / 0.6075 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001143/0.2848, allocations: 64.28 kB / 0.7908 GB, free: 7.98 MB / 0.6075 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001062/0.2849, allocations: 39.92 kB / 0.7908 GB, free: 7.941 MB / 0.6075 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.745e-06/0.2849, allocations: 4 kB / 0.7908 GB, free: 7.938 MB / 0.6075 GB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0002581/0.2852, allocations: 121.6 kB / 0.791 GB, free: 7.812 MB / 0.6075 GB Notification: Performance of prepare postOptimizeDAE: time 1.427e-05/0.2852, allocations: 4 kB / 0.791 GB, free: 7.809 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.692e-06/0.2852, allocations: 4 kB / 0.791 GB, free: 7.805 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.208e-05/0.2852, allocations: 0 / 0.791 GB, free: 7.805 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001071/0.2853, allocations: 23.92 kB / 0.791 GB, free: 7.781 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.73e-06/0.2854, allocations: 0.5625 kB / 0.791 GB, free: 7.781 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.847e-05/0.2854, allocations: 19.95 kB / 0.791 GB, free: 7.762 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.802e-05/0.2855, allocations: 12 kB / 0.791 GB, free: 7.75 MB / 0.6075 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 5 * Number of states: 0 () * Number of discrete variables: 6 ($PRE.zerOrdHol.firstTrigger,zerOrdHol.firstTrigger,$whenCondition1,zerOrdHol.sampleTrigger,$PRE.zerOrdHol.ySample,zerOrdHol.ySample) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (10): * Single equations (assignments): 10 * 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 0.0001265/0.2856, allocations: 124.6 kB / 0.7911 GB, free: 7.621 MB / 0.6075 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.799e-05/0.2856, allocations: 4 kB / 0.7911 GB, free: 7.617 MB / 0.6075 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002899/0.2859, allocations: 125.9 kB / 0.7913 GB, free: 7.488 MB / 0.6075 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.338e-06/0.2859, allocations: 4 kB / 0.7913 GB, free: 7.484 MB / 0.6075 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.348e-06/0.286, allocations: 0 / 0.7913 GB, free: 7.484 MB / 0.6075 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.046e-06/0.286, allocations: 0 / 0.7913 GB, free: 7.484 MB / 0.6075 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004259/0.2864, allocations: 370.4 kB / 0.7916 GB, free: 7.066 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.463e-06/0.2864, allocations: 3.938 kB / 0.7916 GB, free: 7.062 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.274e-05/0.2865, allocations: 15.98 kB / 0.7916 GB, free: 7.047 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.325e-06/0.2865, allocations: 0 / 0.7916 GB, free: 7.047 MB / 0.6075 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.617e-06/0.2865, allocations: 0 / 0.7916 GB, free: 7.047 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.546e-06/0.2865, allocations: 4 kB / 0.7916 GB, free: 7.043 MB / 0.6075 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.132e-06/0.2865, allocations: 0 / 0.7916 GB, free: 7.043 MB / 0.6075 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003261/0.2868, allocations: 211.5 kB / 0.7919 GB, free: 6.82 MB / 0.6075 GB Notification: Performance of postOpt removeConstants (simulation): time 3.888e-05/0.2869, allocations: 84.95 kB / 0.7919 GB, free: 6.719 MB / 0.6075 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.939e-05/0.2869, allocations: 4 kB / 0.7919 GB, free: 6.715 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.9e-05/0.287, allocations: 19.98 kB / 0.792 GB, free: 6.695 MB / 0.6075 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.062e-05/0.2871, allocations: 3.984 kB / 0.792 GB, free: 6.691 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.341e-05/0.2871, allocations: 7.938 kB / 0.792 GB, free: 6.684 MB / 0.6075 GB Notification: Performance of sorting global known variables: time 5.188e-05/0.2871, allocations: 79.47 kB / 0.792 GB, free: 6.605 MB / 0.6075 GB Notification: Performance of sort global known variables: time 2.926e-06/0.2872, allocations: 0 / 0.792 GB, free: 6.605 MB / 0.6075 GB Notification: Performance of remove unused functions: time 0.0002383/0.2874, allocations: 27.83 kB / 0.7921 GB, free: 6.578 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: 4 (zerOrdHol.sampleTrigger,$whenCondition1,zerOrdHol.ySample,zerOrdHol.firstTrigger) * Number of discrete states: 1 (zerOrdHol.ySample) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (7): * Single equations (assignments): 5 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * 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.0006853/0.2881, allocations: 0.7398 MB / 0.7928 GB, free: 5.812 MB / 0.6075 GB Notification: Performance of simCode: created initialization part: time 0.0002647/0.2884, allocations: 83.89 kB / 0.7929 GB, free: 5.73 MB / 0.6075 GB Notification: Performance of simCode: created event and clocks part: time 2.134e-06/0.2884, allocations: 0 / 0.7929 GB, free: 5.73 MB / 0.6075 GB Notification: Performance of simCode: created simulation system equations: time 0.000115/0.2885, allocations: 39.91 kB / 0.7929 GB, free: 5.691 MB / 0.6075 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002058/0.2887, allocations: 8 kB / 0.7929 GB, free: 5.684 MB / 0.6075 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008176/0.2895, allocations: 0.9579 MB / 0.7939 GB, free: 4.652 MB / 0.6075 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002396/0.2898, allocations: 0.6848 MB / 0.7945 GB, free: 3.941 MB / 0.6075 GB Notification: Performance of simCode: alias equations: time 3.554e-05/0.2899, allocations: 8.172 kB / 0.7945 GB, free: 3.934 MB / 0.6075 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.699e-05/0.2899, allocations: 15.44 kB / 0.7945 GB, free: 3.918 MB / 0.6075 GB Notification: Performance of SimCode: time 3.3e-07/0.2899, allocations: 0 / 0.7945 GB, free: 3.918 MB / 0.6075 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.4685/0.7584, allocations: 1.517 MB / 0.796 GB, free: 2.539 MB / 0.6075 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000187/0.7587, allocations: 189.2 kB / 0.7962 GB, free: 2.297 MB / 0.6075 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.68/2.439, allocations: 0 / 0.7962 GB, free: 2.297 MB / 0.6075 GB (rm -f Buildings_8_Buildings.Controls.OBC.CDL.Discrete.Examples.ZeroOrderHold.pipe ; mkfifo Buildings_8_Buildings.Controls.OBC.CDL.Discrete.Examples.ZeroOrderHold.pipe ; head -c 1048576 < Buildings_8_Buildings.Controls.OBC.CDL.Discrete.Examples.ZeroOrderHold.pipe >> ../files/Buildings_8_Buildings.Controls.OBC.CDL.Discrete.Examples.ZeroOrderHold.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_Buildings_8_Buildings_Controls_OBC_CDL_Discrete_Examples_ZeroOrderHold_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Buildings_8_Buildings_Controls_OBC_CDL_Discrete_Examples_ZeroOrderHold.fmu > Buildings_8_Buildings.Controls.OBC.CDL.Discrete.Examples.ZeroOrderHold.pipe 2>&1) Environment - environmentSimulation: