Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredSampler.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+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/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/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 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Using package Buildings with version 7.0.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo) Running command: translateModel(Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredSampler,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredSampler") translateModel(Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredSampler,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredSampler") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo): time 1.376/1.376, allocations: 251.5 MB / 267.4 MB, free: 11.04 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.0009546/0.0009547, allocations: 180.4 kB / 326.5 MB, free: 2.668 MB / 250.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.977/1.977, allocations: 205 MB / 0.5766 GB, free: 20.97 MB / 426.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.000836/0.000836, allocations: 97.47 kB / 0.6804 GB, free: 14.71 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 0.0003653/0.0003653, allocations: 11.47 kB / 0.7938 GB, free: 136.4 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2879/0.2883, allocations: 105.4 MB / 0.8967 GB, free: 68.16 MB / 0.6042 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredSampler): time 0.001923/0.2904, allocations: 1.199 MB / 0.8979 GB, free: 66.95 MB / 0.6042 GB Notification: Performance of NFInst.instExpressions: time 0.0005667/0.291, allocations: 241.7 kB / 0.8981 GB, free: 66.71 MB / 0.6042 GB Notification: Performance of NFInst.updateImplicitVariability: time 8.027e-05/0.2911, allocations: 4 kB / 0.8982 GB, free: 66.7 MB / 0.6042 GB Notification: Performance of NFTyping.typeComponents: time 4.444e-05/0.2911, allocations: 0 / 0.8982 GB, free: 66.7 MB / 0.6042 GB Notification: Performance of NFTyping.typeBindings: time 9.747e-05/0.2912, allocations: 11.86 kB / 0.8982 GB, free: 66.69 MB / 0.6042 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002139/0.2915, allocations: 23.97 kB / 0.8982 GB, free: 66.67 MB / 0.6042 GB Notification: Performance of NFFlatten.flatten: time 9.835e-05/0.2916, allocations: 63.78 kB / 0.8982 GB, free: 66.61 MB / 0.6042 GB Notification: Performance of NFFlatten.resolveConnections: time 0.000161/0.2917, allocations: 24.45 kB / 0.8983 GB, free: 66.58 MB / 0.6042 GB Notification: Performance of NFEvalConstants.evaluate: time 8.176e-05/0.2918, allocations: 15.94 kB / 0.8983 GB, free: 66.56 MB / 0.6042 GB Notification: Performance of NFSimplifyModel.simplify: time 5.233e-05/0.2919, allocations: 27.84 kB / 0.8983 GB, free: 66.54 MB / 0.6042 GB Notification: Performance of NFPackage.collectConstants: time 2.205e-05/0.2919, allocations: 0 / 0.8983 GB, free: 66.54 MB / 0.6042 GB Notification: Performance of NFFlatten.collectFunctions: time 1.311e-05/0.2919, allocations: 4 kB / 0.8983 GB, free: 66.53 MB / 0.6042 GB Notification: Performance of NFScalarize.scalarize: time 2.523e-05/0.292, allocations: 11.92 kB / 0.8983 GB, free: 66.52 MB / 0.6042 GB Notification: Performance of NFVerifyModel.verify: time 5.102e-05/0.292, allocations: 27.8 kB / 0.8984 GB, free: 66.49 MB / 0.6042 GB Notification: Performance of NFConvertDAE.convert: time 9.697e-05/0.2921, allocations: 51.83 kB / 0.8984 GB, free: 66.44 MB / 0.6042 GB Notification: Performance of FrontEnd - DAE generated: time 5.22e-06/0.2921, allocations: 0 / 0.8984 GB, free: 66.44 MB / 0.6042 GB Notification: Performance of FrontEnd: time 2.084e-06/0.2921, allocations: 0 / 0.8984 GB, free: 66.44 MB / 0.6042 GB Notification: Performance of Transformations before backend: time 6.412e-06/0.2922, allocations: 0 / 0.8984 GB, free: 66.44 MB / 0.6042 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.0006958/0.2929, allocations: 385 kB / 0.8988 GB, free: 66.02 MB / 0.6042 GB Notification: Performance of prepare preOptimizeDAE: time 5.199e-05/0.2929, allocations: 12.03 kB / 0.8988 GB, free: 66.01 MB / 0.6042 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.989e-05/0.293, allocations: 12.78 kB / 0.8988 GB, free: 66 MB / 0.6042 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001171/0.2931, allocations: 172.2 kB / 0.899 GB, free: 65.79 MB / 0.6042 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.219e-05/0.2931, allocations: 4.375 kB / 0.899 GB, free: 65.79 MB / 0.6042 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.776e-05/0.2932, allocations: 8.375 kB / 0.899 GB, free: 65.78 MB / 0.6042 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00022/0.2934, allocations: 86.14 kB / 0.8991 GB, free: 65.69 MB / 0.6042 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.249e-05/0.2934, allocations: 3.938 kB / 0.8991 GB, free: 65.68 MB / 0.6042 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.457e-05/0.2934, allocations: 4 kB / 0.8991 GB, free: 65.68 MB / 0.6042 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.541e-06/0.2934, allocations: 0 / 0.8991 GB, free: 65.68 MB / 0.6042 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001878/0.2936, allocations: 63.89 kB / 0.8991 GB, free: 65.62 MB / 0.6042 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005069/0.2942, allocations: 312.7 kB / 0.8994 GB, free: 65.26 MB / 0.6042 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001815/0.2943, allocations: 78.53 kB / 0.8995 GB, free: 65.18 MB / 0.6042 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.751e-05/0.2945, allocations: 40.89 kB / 0.8995 GB, free: 65.13 MB / 0.6042 GB Notification: Performance of preOpt evalFunc (simulation): time 3.117e-05/0.2945, allocations: 4 kB / 0.8995 GB, free: 65.13 MB / 0.6042 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000235/0.2947, allocations: 87.38 kB / 0.8996 GB, free: 65.03 MB / 0.6042 GB Notification: Performance of pre-optimization done (n=8): time 1.634e-06/0.2947, allocations: 0 / 0.8996 GB, free: 65.03 MB / 0.6042 GB Notification: Performance of matching and sorting (n=8): time 0.0004218/0.2952, allocations: 153.5 kB / 0.8998 GB, free: 64.88 MB / 0.6042 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.104e-05/0.2952, allocations: 55.41 kB / 0.8998 GB, free: 64.81 MB / 0.6042 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.608e-05/0.2953, allocations: 121.8 kB / 0.8999 GB, free: 64.68 MB / 0.6042 GB Notification: Performance of collectPreVariables (initialization): time 1.41e-05/0.2953, allocations: 33.7 kB / 0.9 GB, free: 64.64 MB / 0.6042 GB Notification: Performance of collectInitialEqns (initialization): time 3.9e-05/0.2954, allocations: 91.98 kB / 0.9001 GB, free: 64.55 MB / 0.6042 GB Notification: Performance of collectInitialBindings (initialization): time 2.256e-05/0.2954, allocations: 27.64 kB / 0.9001 GB, free: 64.52 MB / 0.6042 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.538e-05/0.2954, allocations: 18.09 kB / 0.9001 GB, free: 64.5 MB / 0.6042 GB Notification: Performance of setup shared object (initialization): time 5.415e-05/0.2955, allocations: 322.8 kB / 0.9004 GB, free: 64.17 MB / 0.6042 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.944e-05/0.2956, allocations: 40.03 kB / 0.9004 GB, free: 64.13 MB / 0.6042 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001089/0.2957, allocations: 68.27 kB / 0.9005 GB, free: 64.05 MB / 0.6042 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001946/0.2959, allocations: 108.1 kB / 0.9006 GB, free: 63.93 MB / 0.6042 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.375e-06/0.2959, allocations: 0 / 0.9006 GB, free: 63.93 MB / 0.6042 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0002471/0.2962, allocations: 133.5 kB / 0.9007 GB, free: 63.79 MB / 0.6042 GB Notification: Performance of prepare postOptimizeDAE: time 1.583e-05/0.2962, allocations: 8.031 kB / 0.9007 GB, free: 63.79 MB / 0.6042 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.873e-06/0.2962, allocations: 0 / 0.9007 GB, free: 63.79 MB / 0.6042 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.685e-05/0.2962, allocations: 4 kB / 0.9008 GB, free: 63.78 MB / 0.6042 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001112/0.2964, allocations: 15.98 kB / 0.9008 GB, free: 63.77 MB / 0.6042 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.313e-06/0.2964, allocations: 4 kB / 0.9008 GB, free: 63.76 MB / 0.6042 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.691e-05/0.2965, allocations: 19.98 kB / 0.9008 GB, free: 63.74 MB / 0.6042 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.385e-06/0.2965, allocations: 7.938 kB / 0.9008 GB, free: 63.73 MB / 0.6042 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 5 * Number of states: 0 () * Number of discrete variables: 9 (triSam1.y,$PRE.triSam1.y,triSam.y,$PRE.triSam.y,$whenCondition1,booPul.pulseStart,$PRE.booPul.pulseStart,booPul.y,$whenCondition2) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (11): * Single equations (assignments): 11 * 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 7.746e-05/0.2966, allocations: 128.3 kB / 0.9009 GB, free: 63.6 MB / 0.6042 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.274e-05/0.2966, allocations: 7.906 kB / 0.9009 GB, free: 63.59 MB / 0.6042 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002936/0.2969, allocations: 122 kB / 0.901 GB, free: 63.47 MB / 0.6042 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.196e-06/0.2969, allocations: 4 kB / 0.901 GB, free: 63.46 MB / 0.6042 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.132e-06/0.2969, allocations: 0 / 0.901 GB, free: 63.46 MB / 0.6042 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.15e-06/0.2969, allocations: 0 / 0.901 GB, free: 63.46 MB / 0.6042 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004394/0.2974, allocations: 414.3 kB / 0.9014 GB, free: 63 MB / 0.6042 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.343e-06/0.2974, allocations: 0 / 0.9014 GB, free: 63 MB / 0.6042 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.674e-05/0.2974, allocations: 11.98 kB / 0.9015 GB, free: 62.99 MB / 0.6042 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.864e-06/0.2974, allocations: 0 / 0.9015 GB, free: 62.99 MB / 0.6042 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.268e-06/0.2975, allocations: 4 kB / 0.9015 GB, free: 62.99 MB / 0.6042 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.214e-06/0.2975, allocations: 4.406 kB / 0.9015 GB, free: 62.98 MB / 0.6042 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.92e-07/0.2975, allocations: 0 / 0.9015 GB, free: 62.98 MB / 0.6042 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000248/0.2977, allocations: 227.3 kB / 0.9017 GB, free: 62.75 MB / 0.6042 GB Notification: Performance of postOpt removeConstants (simulation): time 2.655e-05/0.2978, allocations: 89 kB / 0.9018 GB, free: 62.64 MB / 0.6042 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.747e-05/0.2978, allocations: 4 kB / 0.9018 GB, free: 62.64 MB / 0.6042 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001035/0.2979, allocations: 19.92 kB / 0.9018 GB, free: 62.62 MB / 0.6042 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.833e-05/0.2979, allocations: 7.984 kB / 0.9018 GB, free: 62.61 MB / 0.6042 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.36e-06/0.298, allocations: 4 kB / 0.9018 GB, free: 62.61 MB / 0.6042 GB Notification: Performance of sorting global known variables: time 3.472e-05/0.298, allocations: 91.27 kB / 0.9019 GB, free: 62.52 MB / 0.6042 GB Notification: Performance of sort global known variables: time 1.21e-07/0.298, allocations: 3.938 kB / 0.9019 GB, free: 62.51 MB / 0.6042 GB Notification: Performance of remove unused functions: time 0.0002161/0.2982, allocations: 16 kB / 0.9019 GB, free: 62.5 MB / 0.6042 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 6 (booPul.y,$whenCondition2,$whenCondition1,booPul.pulseStart,triSam.y,triSam1.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (8): * Single equations (assignments): 5 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 3 * 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.0001041/0.2983, allocations: 100.7 kB / 0.902 GB, free: 62.39 MB / 0.6042 GB Notification: Performance of simCode: created initialization part: time 0.0002547/0.2986, allocations: 91.86 kB / 0.9021 GB, free: 62.3 MB / 0.6042 GB Notification: Performance of simCode: created event and clocks part: time 2.595e-06/0.2986, allocations: 7.938 kB / 0.9021 GB, free: 62.29 MB / 0.6042 GB Notification: Performance of simCode: created simulation system equations: time 0.0001064/0.2987, allocations: 44.17 kB / 0.9021 GB, free: 62.25 MB / 0.6042 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002698/0.299, allocations: 15.98 kB / 0.9022 GB, free: 62.23 MB / 0.6042 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003769/0.2994, allocations: 206.2 kB / 0.9023 GB, free: 62 MB / 0.6042 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001484/0.2995, allocations: 0.6926 MB / 0.903 GB, free: 61.28 MB / 0.6042 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.392e-05/0.2996, allocations: 11.44 kB / 0.903 GB, free: 61.27 MB / 0.6042 GB Notification: Performance of SimCode: time 3.51e-07/0.2996, allocations: 0 / 0.903 GB, free: 61.27 MB / 0.6042 GB Notification: Performance of Templates: time 0.002241/0.3018, allocations: 1.014 MB / 0.904 GB, free: 60.26 MB / 0.6042 GB make -j1 -f Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredSampler.makefile (rm -f Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredSampler.pipe ; mkfifo Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredSampler.pipe ; head -c 1048576 < Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredSampler.pipe >> ../files/Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredSampler.sim & ./Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredSampler -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredSampler.pipe 2>&1)