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/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 7.0.3-maint.7.0.x/package.mo", uses=false) 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) 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: 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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00689/0.006891, allocations: 102.6 kB / 15.73 MB, free: 6.492 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.001458/0.001458, allocations: 195 kB / 16.68 MB, free: 6.375 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.732/1.732, allocations: 205.1 MB / 222.6 MB, free: 4.523 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo): time 1.722/1.722, allocations: 251.7 MB / 0.5094 GB, free: 3.09 MB / 414.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.00164/0.00164, allocations: 67.91 kB / 0.7258 GB, free: 9.066 MB / 0.545 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2911/0.2927, allocations: 104.7 MB / 0.828 GB, free: 252 kB / 0.6387 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredSampler): time 0.003548/0.2963, allocations: 1.469 MB / 0.8295 GB, free: 14.77 MB / 0.6544 GB Notification: Performance of NFInst.instExpressions: time 0.000633/0.297, allocations: 232.2 kB / 0.8297 GB, free: 14.54 MB / 0.6544 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.898e-05/0.2971, allocations: 3.938 kB / 0.8297 GB, free: 14.54 MB / 0.6544 GB Notification: Performance of NFTyping.typeComponents: time 4.452e-05/0.2972, allocations: 7.875 kB / 0.8297 GB, free: 14.53 MB / 0.6544 GB Notification: Performance of NFTyping.typeBindings: time 0.0001121/0.2973, allocations: 15.92 kB / 0.8297 GB, free: 14.51 MB / 0.6544 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002182/0.2975, allocations: 23.91 kB / 0.8297 GB, free: 14.49 MB / 0.6544 GB Notification: Performance of NFFlatten.flatten: time 0.0001225/0.2976, allocations: 63.83 kB / 0.8298 GB, free: 14.43 MB / 0.6544 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001511/0.2978, allocations: 28.17 kB / 0.8298 GB, free: 14.39 MB / 0.6544 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001044/0.2979, allocations: 23.92 kB / 0.8299 GB, free: 14.37 MB / 0.6544 GB Notification: Performance of NFSimplifyModel.simplify: time 6.247e-05/0.298, allocations: 27.86 kB / 0.8299 GB, free: 14.34 MB / 0.6544 GB Notification: Performance of NFPackage.collectConstants: time 2.38e-05/0.298, allocations: 4 kB / 0.8299 GB, free: 14.34 MB / 0.6544 GB Notification: Performance of NFFlatten.collectFunctions: time 1.653e-05/0.298, allocations: 8 kB / 0.8299 GB, free: 14.33 MB / 0.6544 GB Notification: Performance of NFScalarize.scalarize: time 3.198e-05/0.2981, allocations: 19.86 kB / 0.8299 GB, free: 14.31 MB / 0.6544 GB Notification: Performance of NFVerifyModel.verify: time 6.505e-05/0.2981, allocations: 31.84 kB / 0.8299 GB, free: 14.28 MB / 0.6544 GB Notification: Performance of NFConvertDAE.convert: time 0.0001369/0.2983, allocations: 67.72 kB / 0.83 GB, free: 14.21 MB / 0.6544 GB Notification: Performance of FrontEnd - DAE generated: time 4.448e-06/0.2983, allocations: 0 / 0.83 GB, free: 14.21 MB / 0.6544 GB Notification: Performance of FrontEnd: time 2.224e-06/0.2983, allocations: 8 kB / 0.83 GB, free: 14.21 MB / 0.6544 GB Notification: Performance of Transformations before backend: time 8.516e-06/0.2983, allocations: 0 / 0.83 GB, free: 14.21 MB / 0.6544 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.000647/0.299, allocations: 383.2 kB / 0.8304 GB, free: 13.79 MB / 0.6544 GB Notification: Performance of prepare preOptimizeDAE: time 4.763e-05/0.299, allocations: 12.03 kB / 0.8304 GB, free: 13.77 MB / 0.6544 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.981e-05/0.2991, allocations: 8.875 kB / 0.8304 GB, free: 13.77 MB / 0.6544 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002163/0.2993, allocations: 172.2 kB / 0.8306 GB, free: 13.56 MB / 0.6544 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.722e-05/0.2994, allocations: 8.312 kB / 0.8306 GB, free: 13.55 MB / 0.6544 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.356e-05/0.2994, allocations: 12.31 kB / 0.8306 GB, free: 13.54 MB / 0.6544 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000233/0.2996, allocations: 74.22 kB / 0.8307 GB, free: 13.46 MB / 0.6544 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.149e-05/0.2996, allocations: 3.938 kB / 0.8307 GB, free: 13.46 MB / 0.6544 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.604e-05/0.2997, allocations: 3.984 kB / 0.8307 GB, free: 13.45 MB / 0.6544 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.104e-05/0.2997, allocations: 4 kB / 0.8307 GB, free: 13.45 MB / 0.6544 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001897/0.2999, allocations: 51.95 kB / 0.8307 GB, free: 13.4 MB / 0.6544 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005324/0.3004, allocations: 312.6 kB / 0.831 GB, free: 13.04 MB / 0.6544 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001899/0.3006, allocations: 62.55 kB / 0.8311 GB, free: 12.97 MB / 0.6544 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.84e-05/0.3007, allocations: 32.97 kB / 0.8311 GB, free: 12.94 MB / 0.6544 GB Notification: Performance of preOpt evalFunc (simulation): time 2.928e-05/0.3008, allocations: 3.984 kB / 0.8311 GB, free: 12.93 MB / 0.6544 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000285/0.3011, allocations: 83.36 kB / 0.8312 GB, free: 12.84 MB / 0.6544 GB Notification: Performance of pre-optimization done (n=8): time 2.445e-06/0.3011, allocations: 4 kB / 0.8312 GB, free: 12.84 MB / 0.6544 GB Notification: Performance of matching and sorting (n=8): time 0.0004462/0.3015, allocations: 137.5 kB / 0.8313 GB, free: 12.7 MB / 0.6544 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.257e-05/0.3016, allocations: 59.39 kB / 0.8314 GB, free: 12.62 MB / 0.6544 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.707e-05/0.3017, allocations: 121.8 kB / 0.8315 GB, free: 12.5 MB / 0.6544 GB Notification: Performance of collectPreVariables (initialization): time 1.811e-05/0.3017, allocations: 25.81 kB / 0.8315 GB, free: 12.46 MB / 0.6544 GB Notification: Performance of collectInitialEqns (initialization): time 6.36e-05/0.3018, allocations: 103.8 kB / 0.8316 GB, free: 12.36 MB / 0.6544 GB Notification: Performance of collectInitialBindings (initialization): time 2.748e-05/0.3018, allocations: 23.73 kB / 0.8316 GB, free: 12.34 MB / 0.6544 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.144e-05/0.3019, allocations: 21.72 kB / 0.8317 GB, free: 12.31 MB / 0.6544 GB Notification: Performance of setup shared object (initialization): time 0.0001308/0.302, allocations: 326.8 kB / 0.832 GB, free: 11.98 MB / 0.6544 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.874e-05/0.3021, allocations: 23.98 kB / 0.832 GB, free: 11.96 MB / 0.6544 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001297/0.3023, allocations: 64.27 kB / 0.8321 GB, free: 11.88 MB / 0.6544 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002005/0.3025, allocations: 96.12 kB / 0.8322 GB, free: 11.77 MB / 0.6544 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.865e-06/0.3025, allocations: 4 kB / 0.8322 GB, free: 11.77 MB / 0.6544 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0002632/0.3027, allocations: 117.5 kB / 0.8323 GB, free: 11.64 MB / 0.6544 GB Notification: Performance of prepare postOptimizeDAE: time 2.139e-05/0.3028, allocations: 4 kB / 0.8323 GB, free: 11.64 MB / 0.6544 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.883e-06/0.3028, allocations: 0 / 0.8323 GB, free: 11.64 MB / 0.6544 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.691e-05/0.3028, allocations: 4 kB / 0.8323 GB, free: 11.64 MB / 0.6544 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001146/0.3029, allocations: 19.92 kB / 0.8323 GB, free: 11.62 MB / 0.6544 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.265e-06/0.3029, allocations: 0 / 0.8323 GB, free: 11.62 MB / 0.6544 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.668e-05/0.303, allocations: 20.11 kB / 0.8323 GB, free: 11.6 MB / 0.6544 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.503e-05/0.3031, allocations: 8.312 kB / 0.8323 GB, free: 11.59 MB / 0.6544 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 0.0001013/0.3032, allocations: 117.8 kB / 0.8324 GB, free: 11.46 MB / 0.6544 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.611e-05/0.3032, allocations: 7.906 kB / 0.8324 GB, free: 11.46 MB / 0.6544 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003193/0.3035, allocations: 122 kB / 0.8326 GB, free: 11.33 MB / 0.6544 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.677e-06/0.3035, allocations: 3.938 kB / 0.8326 GB, free: 11.33 MB / 0.6544 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.342e-06/0.3035, allocations: 4 kB / 0.8326 GB, free: 11.32 MB / 0.6544 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.883e-06/0.3036, allocations: 4 kB / 0.8326 GB, free: 11.32 MB / 0.6544 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005217/0.3041, allocations: 398.2 kB / 0.8329 GB, free: 10.88 MB / 0.6544 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.524e-06/0.3041, allocations: 0 / 0.8329 GB, free: 10.88 MB / 0.6544 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.819e-05/0.3042, allocations: 7.984 kB / 0.833 GB, free: 10.87 MB / 0.6544 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.522e-06/0.3042, allocations: 4 kB / 0.833 GB, free: 10.86 MB / 0.6544 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.332e-05/0.3042, allocations: 8 kB / 0.833 GB, free: 10.86 MB / 0.6544 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.616e-06/0.3042, allocations: 7.938 kB / 0.833 GB, free: 10.85 MB / 0.6544 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.895e-06/0.3042, allocations: 0 / 0.833 GB, free: 10.85 MB / 0.6544 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002947/0.3045, allocations: 207.4 kB / 0.8332 GB, free: 10.63 MB / 0.6544 GB Notification: Performance of postOpt removeConstants (simulation): time 4.979e-05/0.3046, allocations: 85 kB / 0.8333 GB, free: 10.53 MB / 0.6544 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.835e-05/0.3046, allocations: 4 kB / 0.8333 GB, free: 10.52 MB / 0.6544 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001028/0.3047, allocations: 19.92 kB / 0.8333 GB, free: 10.5 MB / 0.6544 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.65e-05/0.3048, allocations: 11.92 kB / 0.8333 GB, free: 10.49 MB / 0.6544 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.114e-06/0.3048, allocations: 0 / 0.8333 GB, free: 10.49 MB / 0.6544 GB Notification: Performance of sorting global known variables: time 7.427e-05/0.3049, allocations: 99.27 kB / 0.8334 GB, free: 10.39 MB / 0.6544 GB Notification: Performance of sort global known variables: time 1.51e-07/0.3049, allocations: 0 / 0.8334 GB, free: 10.39 MB / 0.6544 GB Notification: Performance of remove unused functions: time 0.0002513/0.3051, allocations: 12 kB / 0.8334 GB, free: 10.38 MB / 0.6544 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.0001742/0.3053, allocations: 95.25 kB / 0.8335 GB, free: 10.28 MB / 0.6544 GB Notification: Performance of simCode: created initialization part: time 0.0002808/0.3056, allocations: 83.88 kB / 0.8336 GB, free: 10.2 MB / 0.6544 GB Notification: Performance of simCode: created event and clocks part: time 1.924e-06/0.3056, allocations: 0 / 0.8336 GB, free: 10.2 MB / 0.6544 GB Notification: Performance of simCode: created simulation system equations: time 0.000111/0.3057, allocations: 35.98 kB / 0.8336 GB, free: 10.16 MB / 0.6544 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002985/0.306, allocations: 11.98 kB / 0.8336 GB, free: 10.15 MB / 0.6544 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004974/0.3065, allocations: 166.9 kB / 0.8338 GB, free: 9.961 MB / 0.6544 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003128/0.3069, allocations: 0.6985 MB / 0.8345 GB, free: 9.238 MB / 0.6544 GB Notification: Performance of simCode: alias equations: time 4.418e-05/0.3069, allocations: 8.266 kB / 0.8345 GB, free: 9.23 MB / 0.6544 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.917e-05/0.307, allocations: 15.44 kB / 0.8345 GB, free: 9.215 MB / 0.6544 GB Notification: Performance of SimCode: time 2.21e-07/0.307, allocations: 0 / 0.8345 GB, free: 9.215 MB / 0.6544 GB Notification: Performance of Templates: time 0.003828/0.3108, allocations: 0.9574 MB / 0.8354 GB, free: 8.266 MB / 0.6544 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)