Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_8_Buildings.Controls.OBC.CDL.Discrete.Examples.Sampler.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.Sampler,fileNamePrefix="Buildings_8_Buildings_Controls_OBC_CDL_Discrete_Examples_Sampler",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Discrete.Examples.Sampler,fileNamePrefix="Buildings_8_Buildings_Controls_OBC_CDL_Discrete_Examples_Sampler",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.001503/0.001504, allocations: 105.4 kB / 15.7 MB, free: 24 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.001772/0.001772, allocations: 195.6 kB / 16.64 MB, free: 6.453 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.506/1.506, allocations: 205.1 MB / 222.5 MB, free: 4.59 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.704/1.704, allocations: 292.3 MB / 0.549 GB, free: 12.68 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.00157/0.00157, allocations: 76.31 kB / 0.6718 GB, free: 26.13 MB / 0.5294 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2667/0.2682, allocations: 114.5 MB / 0.7836 GB, free: 13.22 MB / 0.6075 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Examples.Sampler): time 0.002156/0.2704, allocations: 0.6814 MB / 0.7843 GB, free: 12.54 MB / 0.6075 GB Notification: Performance of NFInst.instExpressions: time 0.00127/0.2717, allocations: 1.043 MB / 0.7853 GB, free: 11.48 MB / 0.6075 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.193e-05/0.2718, allocations: 0 / 0.7853 GB, free: 11.48 MB / 0.6075 GB Notification: Performance of NFTyping.typeComponents: time 3.756e-05/0.2719, allocations: 7.922 kB / 0.7853 GB, free: 11.47 MB / 0.6075 GB Notification: Performance of NFTyping.typeBindings: time 6.303e-05/0.2719, allocations: 3.938 kB / 0.7853 GB, free: 11.46 MB / 0.6075 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002947/0.2722, allocations: 47.83 kB / 0.7854 GB, free: 11.42 MB / 0.6075 GB Notification: Performance of NFFlatten.flatten: time 0.000107/0.2723, allocations: 43.86 kB / 0.7854 GB, free: 11.38 MB / 0.6075 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001049/0.2725, allocations: 11.98 kB / 0.7854 GB, free: 11.36 MB / 0.6075 GB Notification: Performance of NFEvalConstants.evaluate: time 7.912e-05/0.2725, allocations: 19.97 kB / 0.7855 GB, free: 11.34 MB / 0.6075 GB Notification: Performance of NFSimplifyModel.simplify: time 5.735e-05/0.2726, allocations: 23.86 kB / 0.7855 GB, free: 11.32 MB / 0.6075 GB Notification: Performance of NFPackage.collectConstants: time 1.463e-05/0.2726, allocations: 4 kB / 0.7855 GB, free: 11.32 MB / 0.6075 GB Notification: Performance of NFFlatten.collectFunctions: time 7.116e-05/0.2727, allocations: 23.92 kB / 0.7855 GB, free: 11.29 MB / 0.6075 GB Notification: Performance of NFScalarize.scalarize: time 2.002e-05/0.2727, allocations: 7.984 kB / 0.7855 GB, free: 11.29 MB / 0.6075 GB Notification: Performance of NFVerifyModel.verify: time 4.115e-05/0.2728, allocations: 19.92 kB / 0.7855 GB, free: 11.27 MB / 0.6075 GB Notification: Performance of NFConvertDAE.convert: time 0.0001437/0.2729, allocations: 59.8 kB / 0.7856 GB, free: 11.21 MB / 0.6075 GB Notification: Performance of FrontEnd - DAE generated: time 4.579e-06/0.2729, allocations: 0 / 0.7856 GB, free: 11.21 MB / 0.6075 GB Notification: Performance of FrontEnd: time 2.074e-06/0.2729, allocations: 0 / 0.7856 GB, free: 11.21 MB / 0.6075 GB Notification: Performance of Transformations before backend: time 9.017e-06/0.273, allocations: 0 / 0.7856 GB, free: 11.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: 7 * Number of variables: 7 Notification: Performance of Generate backend data structure: time 0.0006325/0.2736, allocations: 363.7 kB / 0.7859 GB, free: 10.8 MB / 0.6075 GB Notification: Performance of prepare preOptimizeDAE: time 5.197e-05/0.2737, allocations: 12.03 kB / 0.786 GB, free: 10.79 MB / 0.6075 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.046e-05/0.2737, allocations: 34.75 kB / 0.786 GB, free: 10.75 MB / 0.6075 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.257e-05/0.2737, allocations: 4.844 kB / 0.786 GB, free: 10.74 MB / 0.6075 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001148/0.2739, allocations: 176.3 kB / 0.7862 GB, free: 10.53 MB / 0.6075 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.617e-05/0.2739, allocations: 384 / 0.7862 GB, free: 10.53 MB / 0.6075 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.464e-05/0.2739, allocations: 8.312 kB / 0.7862 GB, free: 10.52 MB / 0.6075 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002045/0.2741, allocations: 58.23 kB / 0.7862 GB, free: 10.46 MB / 0.6075 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.678e-05/0.2741, allocations: 7.938 kB / 0.7862 GB, free: 10.45 MB / 0.6075 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.609e-05/0.2742, allocations: 7.984 kB / 0.7862 GB, free: 10.45 MB / 0.6075 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.242e-06/0.2742, allocations: 3.938 kB / 0.7862 GB, free: 10.44 MB / 0.6075 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001899/0.2744, allocations: 39.97 kB / 0.7863 GB, free: 10.4 MB / 0.6075 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004764/0.2749, allocations: 276.7 kB / 0.7865 GB, free: 10.08 MB / 0.6075 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001913/0.2751, allocations: 66.48 kB / 0.7866 GB, free: 10.01 MB / 0.6075 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001013/0.2752, allocations: 28.95 kB / 0.7866 GB, free: 9.977 MB / 0.6075 GB Notification: Performance of preOpt evalFunc (simulation): time 2.238e-05/0.2752, allocations: 0 / 0.7866 GB, free: 9.977 MB / 0.6075 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002406/0.2754, allocations: 71.39 kB / 0.7867 GB, free: 9.895 MB / 0.6075 GB Notification: Performance of pre-optimization done (n=6): time 1.392e-06/0.2755, allocations: 0 / 0.7867 GB, free: 9.895 MB / 0.6075 GB Notification: Performance of matching and sorting (n=6): time 0.0004294/0.2759, allocations: 129.6 kB / 0.7868 GB, free: 9.762 MB / 0.6075 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.182e-05/0.276, allocations: 51.41 kB / 0.7869 GB, free: 9.699 MB / 0.6075 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.29e-05/0.2761, allocations: 109.8 kB / 0.787 GB, free: 9.582 MB / 0.6075 GB Notification: Performance of collectPreVariables (initialization): time 1.661e-05/0.2761, allocations: 25.7 kB / 0.787 GB, free: 9.551 MB / 0.6075 GB Notification: Performance of collectInitialEqns (initialization): time 4.822e-05/0.2761, allocations: 92.05 kB / 0.7871 GB, free: 9.457 MB / 0.6075 GB Notification: Performance of collectInitialBindings (initialization): time 2.344e-05/0.2762, allocations: 13.02 kB / 0.7871 GB, free: 9.445 MB / 0.6075 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.308e-05/0.2762, allocations: 25.72 kB / 0.7871 GB, free: 9.414 MB / 0.6075 GB Notification: Performance of setup shared object (initialization): time 0.0001275/0.2763, allocations: 322.8 kB / 0.7874 GB, free: 9.09 MB / 0.6075 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.833e-05/0.2765, allocations: 23.98 kB / 0.7875 GB, free: 9.066 MB / 0.6075 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001148/0.2766, allocations: 51.41 kB / 0.7875 GB, free: 9.004 MB / 0.6075 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002064/0.2768, allocations: 79.33 kB / 0.7876 GB, free: 8.914 MB / 0.6075 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.887e-06/0.2768, allocations: 4 kB / 0.7876 GB, free: 8.91 MB / 0.6075 GB Notification: Performance of matching and sorting (n=8) (initialization): time 0.0002577/0.2771, allocations: 101.5 kB / 0.7877 GB, free: 8.805 MB / 0.6075 GB Notification: Performance of prepare postOptimizeDAE: time 1.812e-05/0.2771, allocations: 4 kB / 0.7877 GB, free: 8.801 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.514e-06/0.2771, allocations: 8.094 kB / 0.7877 GB, free: 8.793 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.931e-05/0.2771, allocations: 0 / 0.7877 GB, free: 8.793 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001129/0.2772, allocations: 19.92 kB / 0.7877 GB, free: 8.773 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.462e-06/0.2773, allocations: 0 / 0.7877 GB, free: 8.773 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.443e-05/0.2773, allocations: 7.938 kB / 0.7877 GB, free: 8.766 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.333e-05/0.2774, allocations: 4 kB / 0.7877 GB, free: 8.762 MB / 0.6075 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 5 (sampler1.firstTrigger,$PRE.sampler1.firstTrigger,sampler1.sampleTrigger,$whenCondition1,sampler1.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (8): * Single equations (assignments): 8 * 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.0001051/0.2775, allocations: 121.8 kB / 0.7878 GB, free: 8.633 MB / 0.6075 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.344e-05/0.2775, allocations: 3.906 kB / 0.7878 GB, free: 8.629 MB / 0.6075 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002915/0.2778, allocations: 110 kB / 0.788 GB, free: 8.516 MB / 0.6075 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.388e-06/0.2778, allocations: 4.031 kB / 0.788 GB, free: 8.512 MB / 0.6075 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.961e-06/0.2778, allocations: 0 / 0.788 GB, free: 8.512 MB / 0.6075 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.226e-06/0.2778, allocations: 0 / 0.788 GB, free: 8.512 MB / 0.6075 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005069/0.2783, allocations: 354.4 kB / 0.7883 GB, free: 8.109 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.494e-06/0.2783, allocations: 0.625 kB / 0.7883 GB, free: 8.109 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.29e-05/0.2784, allocations: 15.98 kB / 0.7883 GB, free: 8.094 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.726e-06/0.2784, allocations: 4 kB / 0.7883 GB, free: 8.09 MB / 0.6075 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.249e-05/0.2784, allocations: 0 / 0.7883 GB, free: 8.09 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.018e-06/0.2785, allocations: 4 kB / 0.7883 GB, free: 8.086 MB / 0.6075 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.41e-07/0.2785, allocations: 0 / 0.7883 GB, free: 8.086 MB / 0.6075 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003142/0.2788, allocations: 195.3 kB / 0.7885 GB, free: 7.879 MB / 0.6075 GB Notification: Performance of postOpt removeConstants (simulation): time 4.491e-05/0.2788, allocations: 85.05 kB / 0.7886 GB, free: 7.777 MB / 0.6075 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.582e-05/0.2789, allocations: 4 kB / 0.7886 GB, free: 7.773 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001067/0.279, allocations: 7.984 kB / 0.7886 GB, free: 7.766 MB / 0.6075 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.247e-05/0.279, allocations: 7.938 kB / 0.7886 GB, free: 7.758 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.287e-05/0.2791, allocations: 3.938 kB / 0.7886 GB, free: 7.754 MB / 0.6075 GB Notification: Performance of sorting global known variables: time 4.758e-05/0.2791, allocations: 95.2 kB / 0.7887 GB, free: 7.66 MB / 0.6075 GB Notification: Performance of sort global known variables: time 1.41e-07/0.2791, allocations: 0 / 0.7887 GB, free: 7.66 MB / 0.6075 GB Notification: Performance of remove unused functions: time 0.0002406/0.2794, allocations: 8 kB / 0.7887 GB, free: 7.652 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 (sampler1.sampleTrigger,$whenCondition1,sampler1.y,sampler1.firstTrigger) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (6): * Single equations (assignments): 4 * 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.000649/0.28, allocations: 0.7319 MB / 0.7894 GB, free: 6.895 MB / 0.6075 GB Notification: Performance of simCode: created initialization part: time 0.0002642/0.2803, allocations: 67.88 kB / 0.7895 GB, free: 6.828 MB / 0.6075 GB Notification: Performance of simCode: created event and clocks part: time 2.895e-06/0.2803, allocations: 192 / 0.7895 GB, free: 6.828 MB / 0.6075 GB Notification: Performance of simCode: created simulation system equations: time 0.0001083/0.2804, allocations: 31.98 kB / 0.7895 GB, free: 6.797 MB / 0.6075 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002799/0.2807, allocations: 15.92 kB / 0.7895 GB, free: 6.781 MB / 0.6075 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001657/0.2824, allocations: 1.371 MB / 0.7909 GB, free: 5.312 MB / 0.6075 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003062/0.2827, allocations: 0.6807 MB / 0.7915 GB, free: 4.605 MB / 0.6075 GB Notification: Performance of simCode: alias equations: time 4.251e-05/0.2827, allocations: 3.984 kB / 0.7915 GB, free: 4.602 MB / 0.6075 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.252e-05/0.2828, allocations: 15.44 kB / 0.7916 GB, free: 4.586 MB / 0.6075 GB Notification: Performance of SimCode: time 2.1e-07/0.2828, allocations: 0 / 0.7916 GB, free: 4.586 MB / 0.6075 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01712/0.2999, allocations: 1.743 MB / 0.7933 GB, free: 2.926 MB / 0.6075 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.655/7.955, allocations: 2.922 kB / 0.7933 GB, free: 2.926 MB / 0.6075 GB (rm -f Buildings_8_Buildings.Controls.OBC.CDL.Discrete.Examples.Sampler.pipe ; mkfifo Buildings_8_Buildings.Controls.OBC.CDL.Discrete.Examples.Sampler.pipe ; head -c 1048576 < Buildings_8_Buildings.Controls.OBC.CDL.Discrete.Examples.Sampler.pipe >> ../files/Buildings_8_Buildings.Controls.OBC.CDL.Discrete.Examples.Sampler.sim & python3 -m fmpy simulate --output-file Buildings_8_Buildings.Controls.OBC.CDL.Discrete.Examples.Sampler_res.csv --start-time 0 --stop-time 1 --timeout 50 --relative-tolerance 1e-06 Buildings_8_Buildings_Controls_OBC_CDL_Discrete_Examples_Sampler.fmu > Buildings_8_Buildings.Controls.OBC.CDL.Discrete.Examples.Sampler.pipe 2>&1)