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.00121/0.00121, allocations: 105.4 kB / 15.7 MB, free: 20 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.001343/0.001343, allocations: 194.7 kB / 16.64 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.541/1.541, allocations: 205.1 MB / 222.5 MB, free: 4.555 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.861/1.861, allocations: 292.3 MB / 0.549 GB, free: 12.76 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.001486/0.001487, allocations: 68.72 kB / 0.6718 GB, free: 26.28 MB / 0.5294 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2591/0.2606, allocations: 114.5 MB / 0.7836 GB, free: 13.26 MB / 0.6075 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Examples.ZeroOrderHold): time 0.00213/0.2628, allocations: 0.693 MB / 0.7843 GB, free: 12.57 MB / 0.6075 GB Notification: Performance of NFInst.instExpressions: time 0.001349/0.2642, allocations: 1.051 MB / 0.7853 GB, free: 11.5 MB / 0.6075 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.49e-05/0.2642, allocations: 0 / 0.7853 GB, free: 11.5 MB / 0.6075 GB Notification: Performance of NFTyping.typeComponents: time 2.871e-05/0.2643, allocations: 3.938 kB / 0.7854 GB, free: 11.5 MB / 0.6075 GB Notification: Performance of NFTyping.typeBindings: time 5.927e-05/0.2643, allocations: 3.938 kB / 0.7854 GB, free: 11.49 MB / 0.6075 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002808/0.2646, allocations: 43.83 kB / 0.7854 GB, free: 11.45 MB / 0.6075 GB Notification: Performance of NFFlatten.flatten: time 0.000101/0.2647, allocations: 51.84 kB / 0.7854 GB, free: 11.4 MB / 0.6075 GB Notification: Performance of NFFlatten.resolveConnections: time 0.000102/0.2648, allocations: 16 kB / 0.7855 GB, free: 11.38 MB / 0.6075 GB Notification: Performance of NFEvalConstants.evaluate: time 7.385e-05/0.2649, allocations: 19.97 kB / 0.7855 GB, free: 11.36 MB / 0.6075 GB Notification: Performance of NFSimplifyModel.simplify: time 5.806e-05/0.265, allocations: 31.84 kB / 0.7855 GB, free: 11.33 MB / 0.6075 GB Notification: Performance of NFPackage.collectConstants: time 1.339e-05/0.265, allocations: 4 kB / 0.7855 GB, free: 11.33 MB / 0.6075 GB Notification: Performance of NFFlatten.collectFunctions: time 6.063e-05/0.2651, allocations: 15.98 kB / 0.7855 GB, free: 11.31 MB / 0.6075 GB Notification: Performance of NFScalarize.scalarize: time 1.711e-05/0.2651, allocations: 8 kB / 0.7855 GB, free: 11.3 MB / 0.6075 GB Notification: Performance of NFVerifyModel.verify: time 3.645e-05/0.2651, allocations: 23.84 kB / 0.7856 GB, free: 11.28 MB / 0.6075 GB Notification: Performance of NFConvertDAE.convert: time 0.0001251/0.2653, allocations: 59.8 kB / 0.7856 GB, free: 11.22 MB / 0.6075 GB Notification: Performance of FrontEnd - DAE generated: time 4.488e-06/0.2653, allocations: 0 / 0.7856 GB, free: 11.22 MB / 0.6075 GB Notification: Performance of FrontEnd: time 1.463e-06/0.2653, allocations: 4 kB / 0.7856 GB, free: 11.22 MB / 0.6075 GB Notification: Performance of Transformations before backend: time 6.132e-06/0.2653, allocations: 0 / 0.7856 GB, free: 11.22 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.0005925/0.2659, allocations: 375.6 kB / 0.786 GB, free: 10.8 MB / 0.6075 GB Notification: Performance of prepare preOptimizeDAE: time 3.837e-05/0.2659, allocations: 8.031 kB / 0.786 GB, free: 10.79 MB / 0.6075 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.366e-05/0.266, allocations: 30.75 kB / 0.786 GB, free: 10.75 MB / 0.6075 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.51e-05/0.266, allocations: 12.84 kB / 0.786 GB, free: 10.74 MB / 0.6075 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001236/0.2661, allocations: 168.3 kB / 0.7862 GB, free: 10.54 MB / 0.6075 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.168e-05/0.2662, allocations: 8.359 kB / 0.7862 GB, free: 10.53 MB / 0.6075 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.663e-05/0.2662, allocations: 4.375 kB / 0.7862 GB, free: 10.53 MB / 0.6075 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001912/0.2664, allocations: 66.11 kB / 0.7863 GB, free: 10.46 MB / 0.6075 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.388e-05/0.2664, allocations: 3.938 kB / 0.7863 GB, free: 10.45 MB / 0.6075 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.195e-05/0.2664, allocations: 7.984 kB / 0.7863 GB, free: 10.45 MB / 0.6075 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.208e-06/0.2664, allocations: 0 / 0.7863 GB, free: 10.45 MB / 0.6075 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001782/0.2666, allocations: 43.95 kB / 0.7863 GB, free: 10.4 MB / 0.6075 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004265/0.267, allocations: 284.7 kB / 0.7866 GB, free: 10.07 MB / 0.6075 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001628/0.2672, allocations: 62.48 kB / 0.7867 GB, free: 10 MB / 0.6075 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.698e-05/0.2673, allocations: 32.95 kB / 0.7867 GB, free: 9.969 MB / 0.6075 GB Notification: Performance of preOpt evalFunc (simulation): time 2.105e-05/0.2674, allocations: 0 / 0.7867 GB, free: 9.969 MB / 0.6075 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002127/0.2676, allocations: 88.44 kB / 0.7868 GB, free: 9.871 MB / 0.6075 GB Notification: Performance of pre-optimization done (n=7): time 1.523e-06/0.2676, allocations: 0 / 0.7868 GB, free: 9.871 MB / 0.6075 GB Notification: Performance of matching and sorting (n=7): time 0.000406/0.268, allocations: 117.6 kB / 0.7869 GB, free: 9.75 MB / 0.6075 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.068e-05/0.268, allocations: 55.34 kB / 0.7869 GB, free: 9.684 MB / 0.6075 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.67e-05/0.2681, allocations: 105.8 kB / 0.787 GB, free: 9.57 MB / 0.6075 GB Notification: Performance of collectPreVariables (initialization): time 1.828e-05/0.2682, allocations: 29.7 kB / 0.7871 GB, free: 9.535 MB / 0.6075 GB Notification: Performance of collectInitialEqns (initialization): time 4.275e-05/0.2682, allocations: 92.05 kB / 0.7871 GB, free: 9.441 MB / 0.6075 GB Notification: Performance of collectInitialBindings (initialization): time 2.02e-05/0.2682, allocations: 19.75 kB / 0.7872 GB, free: 9.422 MB / 0.6075 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.077e-05/0.2683, allocations: 21.7 kB / 0.7872 GB, free: 9.395 MB / 0.6075 GB Notification: Performance of setup shared object (initialization): time 0.0001064/0.2684, allocations: 326.8 kB / 0.7875 GB, free: 9.066 MB / 0.6075 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.775e-05/0.2685, allocations: 19.98 kB / 0.7875 GB, free: 9.047 MB / 0.6075 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001144/0.2686, allocations: 64.27 kB / 0.7876 GB, free: 8.969 MB / 0.6075 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002043/0.2688, allocations: 92.19 kB / 0.7877 GB, free: 8.863 MB / 0.6075 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.605e-06/0.2688, allocations: 0 / 0.7877 GB, free: 8.863 MB / 0.6075 GB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0002637/0.2691, allocations: 121.4 kB / 0.7878 GB, free: 8.738 MB / 0.6075 GB Notification: Performance of prepare postOptimizeDAE: time 1.399e-05/0.2691, allocations: 4 kB / 0.7878 GB, free: 8.734 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.201e-06/0.2691, allocations: 4 kB / 0.7878 GB, free: 8.73 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.216e-05/0.2692, allocations: 0 / 0.7878 GB, free: 8.73 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001073/0.2693, allocations: 15.98 kB / 0.7878 GB, free: 8.715 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.127e-06/0.2693, allocations: 7.938 kB / 0.7878 GB, free: 8.707 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.954e-05/0.2694, allocations: 12.11 kB / 0.7878 GB, free: 8.695 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.247e-05/0.2694, allocations: 8 kB / 0.7878 GB, free: 8.688 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 (zerOrdHol.firstTrigger,$PRE.zerOrdHol.firstTrigger,zerOrdHol.sampleTrigger,$whenCondition1,$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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 8.04e-05/0.2695, allocations: 117.8 kB / 0.7879 GB, free: 8.562 MB / 0.6075 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.201e-05/0.2695, allocations: 3.906 kB / 0.7879 GB, free: 8.559 MB / 0.6075 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002824/0.2698, allocations: 113.9 kB / 0.7881 GB, free: 8.441 MB / 0.6075 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.064e-06/0.2698, allocations: 0 / 0.7881 GB, free: 8.441 MB / 0.6075 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.099e-05/0.2698, allocations: 0 / 0.7881 GB, free: 8.441 MB / 0.6075 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.289e-06/0.2698, allocations: 11.92 kB / 0.7881 GB, free: 8.43 MB / 0.6075 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004235/0.2702, allocations: 358.9 kB / 0.7884 GB, free: 8.023 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.423e-06/0.2703, allocations: 0 / 0.7884 GB, free: 8.023 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.366e-05/0.2703, allocations: 11.98 kB / 0.7884 GB, free: 8.012 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.893e-06/0.2703, allocations: 0 / 0.7884 GB, free: 8.012 MB / 0.6075 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.929e-06/0.2703, allocations: 4 kB / 0.7884 GB, free: 8.008 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.745e-06/0.2704, allocations: 3.938 kB / 0.7884 GB, free: 8.004 MB / 0.6075 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.273e-06/0.2704, allocations: 256 / 0.7884 GB, free: 8.004 MB / 0.6075 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000279/0.2706, allocations: 199.4 kB / 0.7886 GB, free: 7.793 MB / 0.6075 GB Notification: Performance of postOpt removeConstants (simulation): time 4.019e-05/0.2707, allocations: 85.14 kB / 0.7887 GB, free: 7.691 MB / 0.6075 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.061e-05/0.2707, allocations: 8 kB / 0.7887 GB, free: 7.684 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.737e-05/0.2708, allocations: 15.92 kB / 0.7887 GB, free: 7.668 MB / 0.6075 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.785e-05/0.2709, allocations: 7.938 kB / 0.7887 GB, free: 7.66 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.148e-05/0.2709, allocations: 4 kB / 0.7887 GB, free: 7.656 MB / 0.6075 GB Notification: Performance of sorting global known variables: time 3.788e-05/0.2709, allocations: 87.27 kB / 0.7888 GB, free: 7.57 MB / 0.6075 GB Notification: Performance of sort global known variables: time 1.3e-07/0.2709, allocations: 0 / 0.7888 GB, free: 7.57 MB / 0.6075 GB Notification: Performance of remove unused functions: time 0.0002443/0.2712, allocations: 12 kB / 0.7888 GB, free: 7.559 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 (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.0005973/0.2718, allocations: 0.7358 MB / 0.7895 GB, free: 6.797 MB / 0.6075 GB Notification: Performance of simCode: created initialization part: time 0.0002589/0.2721, allocations: 75.86 kB / 0.7896 GB, free: 6.723 MB / 0.6075 GB Notification: Performance of simCode: created event and clocks part: time 3.416e-06/0.2721, allocations: 4 kB / 0.7896 GB, free: 6.719 MB / 0.6075 GB Notification: Performance of simCode: created simulation system equations: time 0.0001087/0.2722, allocations: 31.98 kB / 0.7897 GB, free: 6.688 MB / 0.6075 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002569/0.2724, allocations: 14.58 kB / 0.7897 GB, free: 6.676 MB / 0.6075 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00155/0.274, allocations: 1.41 MB / 0.791 GB, free: 5.168 MB / 0.6075 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002609/0.2743, allocations: 0.6885 MB / 0.7917 GB, free: 4.453 MB / 0.6075 GB Notification: Performance of simCode: alias equations: time 3.72e-05/0.2743, allocations: 4 kB / 0.7917 GB, free: 4.449 MB / 0.6075 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.116e-05/0.2744, allocations: 15.44 kB / 0.7917 GB, free: 4.434 MB / 0.6075 GB Notification: Performance of SimCode: time 2.6e-07/0.2744, allocations: 3.938 kB / 0.7917 GB, free: 4.43 MB / 0.6075 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01849/0.2929, allocations: 1.784 MB / 0.7935 GB, free: 2.73 MB / 0.6075 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.538/7.831, allocations: 7.125 kB / 0.7935 GB, free: 2.727 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/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)