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.006453/0.006453, allocations: 103.8 kB / 15.74 MB, free: 6.449 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.00153/0.00153, allocations: 195.8 kB / 16.67 MB, free: 6.355 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.671/1.671, allocations: 205.1 MB / 222.6 MB, free: 4.535 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.684/1.684, allocations: 251.7 MB / 0.5094 GB, free: 3.012 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.001736/0.001736, allocations: 68.47 kB / 0.7258 GB, free: 9.027 MB / 0.545 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2788/0.2806, allocations: 104.7 MB / 0.828 GB, free: 216 kB / 0.6387 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredSampler): time 0.003745/0.2844, allocations: 1.477 MB / 0.8295 GB, free: 14.73 MB / 0.6544 GB Notification: Performance of NFInst.instExpressions: time 0.0008649/0.2853, allocations: 232.2 kB / 0.8297 GB, free: 14.5 MB / 0.6544 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001065/0.2854, allocations: 3.938 kB / 0.8297 GB, free: 14.49 MB / 0.6544 GB Notification: Performance of NFTyping.typeComponents: time 5.649e-05/0.2855, allocations: 7.922 kB / 0.8297 GB, free: 14.48 MB / 0.6544 GB Notification: Performance of NFTyping.typeBindings: time 0.0001478/0.2857, allocations: 11.86 kB / 0.8297 GB, free: 14.47 MB / 0.6544 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003547/0.286, allocations: 35.91 kB / 0.8298 GB, free: 14.44 MB / 0.6544 GB Notification: Performance of NFFlatten.flatten: time 0.0001551/0.2862, allocations: 63.84 kB / 0.8298 GB, free: 14.38 MB / 0.6544 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001922/0.2864, allocations: 20.17 kB / 0.8298 GB, free: 14.35 MB / 0.6544 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001307/0.2865, allocations: 27.92 kB / 0.8299 GB, free: 14.32 MB / 0.6544 GB Notification: Performance of NFSimplifyModel.simplify: time 8.408e-05/0.2866, allocations: 31.83 kB / 0.8299 GB, free: 14.29 MB / 0.6544 GB Notification: Performance of NFPackage.collectConstants: time 3.42e-05/0.2867, allocations: 8 kB / 0.8299 GB, free: 14.29 MB / 0.6544 GB Notification: Performance of NFFlatten.collectFunctions: time 2.009e-05/0.2867, allocations: 4 kB / 0.8299 GB, free: 14.28 MB / 0.6544 GB Notification: Performance of NFScalarize.scalarize: time 3.927e-05/0.2867, allocations: 19.92 kB / 0.8299 GB, free: 14.26 MB / 0.6544 GB Notification: Performance of NFVerifyModel.verify: time 7.445e-05/0.2868, allocations: 27.88 kB / 0.8299 GB, free: 14.23 MB / 0.6544 GB Notification: Performance of NFConvertDAE.convert: time 0.0001969/0.287, allocations: 67.69 kB / 0.83 GB, free: 14.17 MB / 0.6544 GB Notification: Performance of FrontEnd - DAE generated: time 7.404e-06/0.287, allocations: 0 / 0.83 GB, free: 14.17 MB / 0.6544 GB Notification: Performance of FrontEnd: time 3.156e-06/0.287, allocations: 0 / 0.83 GB, free: 14.17 MB / 0.6544 GB Notification: Performance of Transformations before backend: time 2.066e-05/0.2871, allocations: 0 / 0.83 GB, free: 14.17 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.0008588/0.2879, allocations: 395.1 kB / 0.8304 GB, free: 13.73 MB / 0.6544 GB Notification: Performance of prepare preOptimizeDAE: time 5.804e-05/0.288, allocations: 8.031 kB / 0.8304 GB, free: 13.73 MB / 0.6544 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.103e-05/0.2881, allocations: 12.83 kB / 0.8304 GB, free: 13.71 MB / 0.6544 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000202/0.2883, allocations: 180.3 kB / 0.8306 GB, free: 13.5 MB / 0.6544 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.348e-05/0.2883, allocations: 8.375 kB / 0.8306 GB, free: 13.49 MB / 0.6544 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.276e-05/0.2883, allocations: 4.375 kB / 0.8306 GB, free: 13.49 MB / 0.6544 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002562/0.2886, allocations: 74.22 kB / 0.8307 GB, free: 13.41 MB / 0.6544 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.621e-05/0.2886, allocations: 3.938 kB / 0.8307 GB, free: 13.41 MB / 0.6544 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.489e-05/0.2887, allocations: 0 / 0.8307 GB, free: 13.41 MB / 0.6544 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.263e-06/0.2887, allocations: 3.938 kB / 0.8307 GB, free: 13.4 MB / 0.6544 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002122/0.2889, allocations: 55.89 kB / 0.8307 GB, free: 13.35 MB / 0.6544 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006796/0.2896, allocations: 300.8 kB / 0.831 GB, free: 13 MB / 0.6544 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000218/0.2898, allocations: 62.55 kB / 0.8311 GB, free: 12.93 MB / 0.6544 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001254/0.2899, allocations: 36.89 kB / 0.8311 GB, free: 12.89 MB / 0.6544 GB Notification: Performance of preOpt evalFunc (simulation): time 3.452e-05/0.29, allocations: 11.98 kB / 0.8311 GB, free: 12.88 MB / 0.6544 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003672/0.2904, allocations: 87.31 kB / 0.8312 GB, free: 12.79 MB / 0.6544 GB Notification: Performance of pre-optimization done (n=8): time 2.395e-06/0.2904, allocations: 0 / 0.8312 GB, free: 12.79 MB / 0.6544 GB Notification: Performance of matching and sorting (n=8): time 0.0005063/0.2909, allocations: 137.6 kB / 0.8313 GB, free: 12.64 MB / 0.6544 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.652e-05/0.291, allocations: 63.34 kB / 0.8314 GB, free: 12.57 MB / 0.6544 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001234/0.2911, allocations: 117.8 kB / 0.8315 GB, free: 12.45 MB / 0.6544 GB Notification: Performance of collectPreVariables (initialization): time 5.773e-05/0.2912, allocations: 33.81 kB / 0.8315 GB, free: 12.41 MB / 0.6544 GB Notification: Performance of collectInitialEqns (initialization): time 7.599e-05/0.2912, allocations: 95.92 kB / 0.8316 GB, free: 12.31 MB / 0.6544 GB Notification: Performance of collectInitialBindings (initialization): time 3.595e-05/0.2913, allocations: 23.8 kB / 0.8317 GB, free: 12.29 MB / 0.6544 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.743e-05/0.2914, allocations: 25.7 kB / 0.8317 GB, free: 12.25 MB / 0.6544 GB Notification: Performance of setup shared object (initialization): time 0.0001615/0.2915, allocations: 322.8 kB / 0.832 GB, free: 11.93 MB / 0.6544 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001957/0.2917, allocations: 31.97 kB / 0.832 GB, free: 11.9 MB / 0.6544 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001267/0.2919, allocations: 60.27 kB / 0.8321 GB, free: 11.82 MB / 0.6544 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000228/0.2921, allocations: 92.2 kB / 0.8322 GB, free: 11.72 MB / 0.6544 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.913e-06/0.2921, allocations: 7.984 kB / 0.8322 GB, free: 11.71 MB / 0.6544 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0003151/0.2924, allocations: 113.5 kB / 0.8323 GB, free: 11.59 MB / 0.6544 GB Notification: Performance of prepare postOptimizeDAE: time 2.208e-05/0.2925, allocations: 8 kB / 0.8323 GB, free: 11.59 MB / 0.6544 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.018e-05/0.2925, allocations: 0 / 0.8323 GB, free: 11.59 MB / 0.6544 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.322e-05/0.2925, allocations: 8.109 kB / 0.8323 GB, free: 11.58 MB / 0.6544 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001239/0.2927, allocations: 12 kB / 0.8323 GB, free: 11.57 MB / 0.6544 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.83e-05/0.2927, allocations: 11.98 kB / 0.8323 GB, free: 11.55 MB / 0.6544 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001008/0.2928, allocations: 15.98 kB / 0.8323 GB, free: 11.54 MB / 0.6544 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.461e-05/0.2928, allocations: 11.88 kB / 0.8323 GB, free: 11.53 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.0001188/0.2929, allocations: 113.8 kB / 0.8324 GB, free: 11.41 MB / 0.6544 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.996e-05/0.293, allocations: 7.953 kB / 0.8325 GB, free: 11.4 MB / 0.6544 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003244/0.2933, allocations: 126 kB / 0.8326 GB, free: 11.27 MB / 0.6544 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.016e-06/0.2933, allocations: 0 / 0.8326 GB, free: 11.27 MB / 0.6544 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.364e-06/0.2933, allocations: 384 / 0.8326 GB, free: 11.27 MB / 0.6544 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.218e-06/0.2933, allocations: 3.938 kB / 0.8326 GB, free: 11.27 MB / 0.6544 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006741/0.294, allocations: 390.4 kB / 0.833 GB, free: 10.83 MB / 0.6544 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.265e-06/0.294, allocations: 0 / 0.833 GB, free: 10.83 MB / 0.6544 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.245e-05/0.2941, allocations: 19.92 kB / 0.833 GB, free: 10.81 MB / 0.6544 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.076e-06/0.2941, allocations: 0 / 0.833 GB, free: 10.81 MB / 0.6544 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.151e-05/0.2941, allocations: 0 / 0.833 GB, free: 10.81 MB / 0.6544 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.758e-06/0.2941, allocations: 3.938 kB / 0.833 GB, free: 10.8 MB / 0.6544 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.626e-06/0.2941, allocations: 4 kB / 0.833 GB, free: 10.8 MB / 0.6544 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003286/0.2945, allocations: 211.3 kB / 0.8332 GB, free: 10.58 MB / 0.6544 GB Notification: Performance of postOpt removeConstants (simulation): time 8.429e-05/0.2946, allocations: 85.06 kB / 0.8333 GB, free: 10.48 MB / 0.6544 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.952e-05/0.2946, allocations: 4 kB / 0.8333 GB, free: 10.47 MB / 0.6544 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001169/0.2947, allocations: 19.92 kB / 0.8333 GB, free: 10.45 MB / 0.6544 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.096e-05/0.2948, allocations: 7.984 kB / 0.8333 GB, free: 10.45 MB / 0.6544 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.772e-06/0.2948, allocations: 0 / 0.8333 GB, free: 10.45 MB / 0.6544 GB Notification: Performance of sorting global known variables: time 6.949e-05/0.2949, allocations: 91.27 kB / 0.8334 GB, free: 10.36 MB / 0.6544 GB Notification: Performance of sort global known variables: time 1.2e-07/0.2949, allocations: 0 / 0.8334 GB, free: 10.36 MB / 0.6544 GB Notification: Performance of remove unused functions: time 0.0002505/0.2951, allocations: 16 kB / 0.8334 GB, free: 10.34 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.0001636/0.2953, allocations: 103.2 kB / 0.8335 GB, free: 10.23 MB / 0.6544 GB Notification: Performance of simCode: created initialization part: time 0.0003061/0.2956, allocations: 79.81 kB / 0.8336 GB, free: 10.15 MB / 0.6544 GB Notification: Performance of simCode: created event and clocks part: time 2.234e-06/0.2956, allocations: 0 / 0.8336 GB, free: 10.15 MB / 0.6544 GB Notification: Performance of simCode: created simulation system equations: time 0.0001264/0.2958, allocations: 39.97 kB / 0.8336 GB, free: 10.11 MB / 0.6544 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003093/0.2961, allocations: 12.41 kB / 0.8336 GB, free: 10.11 MB / 0.6544 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005036/0.2966, allocations: 178.5 kB / 0.8338 GB, free: 9.902 MB / 0.6544 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003718/0.297, allocations: 0.6961 MB / 0.8345 GB, free: 9.18 MB / 0.6544 GB Notification: Performance of simCode: alias equations: time 4.749e-05/0.297, allocations: 4 kB / 0.8345 GB, free: 9.176 MB / 0.6544 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.062e-05/0.2971, allocations: 11.44 kB / 0.8345 GB, free: 9.164 MB / 0.6544 GB Notification: Performance of SimCode: time 2.91e-07/0.2971, allocations: 0 / 0.8345 GB, free: 9.164 MB / 0.6544 GB Notification: Performance of Templates: time 0.004468/0.3016, allocations: 0.9733 MB / 0.8354 GB, free: 8.199 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)