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/Buildings 8.1.4-maint.8.1.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 8.1.4 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo) Running command: translateModel(Buildings.Controls.OBC.CDL.Discrete.Examples.Sampler,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_8_Buildings.Controls.OBC.CDL.Discrete.Examples.Sampler") translateModel(Buildings.Controls.OBC.CDL.Discrete.Examples.Sampler,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_8_Buildings.Controls.OBC.CDL.Discrete.Examples.Sampler") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo): time 1.555/1.555, allocations: 289.9 MB / 297.4 MB, free: 6.359 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001155/0.001155, allocations: 176.9 kB / 366.7 MB, free: 1.656 MB / 298.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.772/1.772, allocations: 205.2 MB / 0.626 GB, free: 7.184 MB / 474.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008776/0.0008777, allocations: 87.25 kB / 0.74 GB, free: 39.56 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 1.694e-05/1.698e-05, allocations: 4 kB / 0.8597 GB, free: 13.07 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6992/0.6992, allocations: 116.3 MB / 0.9733 GB, free: 76.41 MB / 0.6667 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.215/0.9143, allocations: 138.2 MB / 1.108 GB, free: 12.03 MB / 0.7136 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003008/0.9146, allocations: 67.95 kB / 1.108 GB, free: 11.96 MB / 0.7136 GB Notification: Performance of FrontEnd - DAE generated: time 0.003762/0.9184, allocations: 1.08 MB / 1.109 GB, free: 10.9 MB / 0.7136 GB Notification: Performance of FrontEnd: time 1.413e-06/0.9185, allocations: 0 / 1.109 GB, free: 10.9 MB / 0.7136 GB Notification: Performance of Transformations before backend: time 7.694e-06/0.9185, allocations: 4.688 kB / 1.109 GB, free: 10.9 MB / 0.7136 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.0004993/0.919, allocations: 364.6 kB / 1.11 GB, free: 10.5 MB / 0.7136 GB Notification: Performance of prepare preOptimizeDAE: time 4.699e-05/0.919, allocations: 8.031 kB / 1.11 GB, free: 10.49 MB / 0.7136 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.415e-05/0.9191, allocations: 3 kB / 1.11 GB, free: 10.49 MB / 0.7136 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001637/0.9193, allocations: 185.1 kB / 1.11 GB, free: 10.27 MB / 0.7136 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.84e-05/0.9193, allocations: 0.5 kB / 1.11 GB, free: 10.27 MB / 0.7136 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.56e-05/0.9193, allocations: 4.781 kB / 1.11 GB, free: 10.27 MB / 0.7136 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 9.95e-05/0.9194, allocations: 12 kB / 1.11 GB, free: 10.26 MB / 0.7136 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001301/0.9196, allocations: 50.17 kB / 1.11 GB, free: 10.2 MB / 0.7136 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.005e-05/0.9196, allocations: 0.5938 kB / 1.11 GB, free: 10.2 MB / 0.7136 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.143e-05/0.9196, allocations: 0 / 1.11 GB, free: 10.2 MB / 0.7136 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.468e-06/0.9196, allocations: 0.9062 kB / 1.11 GB, free: 10.2 MB / 0.7136 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004578/0.9201, allocations: 262.8 kB / 1.11 GB, free: 9.91 MB / 0.7136 GB Notification: Performance of preOpt comSubExp (simulation): time 8.957e-05/0.9202, allocations: 39.55 kB / 1.11 GB, free: 9.863 MB / 0.7136 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.567e-05/0.9202, allocations: 16.98 kB / 1.11 GB, free: 9.844 MB / 0.7136 GB Notification: Performance of preOpt evalFunc (simulation): time 2.284e-05/0.9203, allocations: 0.5 kB / 1.11 GB, free: 9.844 MB / 0.7136 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001332/0.9204, allocations: 60.53 kB / 1.11 GB, free: 9.773 MB / 0.7136 GB Notification: Performance of pre-optimization done (n=6): time 1.563e-06/0.9204, allocations: 0.9688 kB / 1.11 GB, free: 9.773 MB / 0.7136 GB Notification: Performance of matching and sorting (n=6): time 0.0002199/0.9207, allocations: 65.62 kB / 1.11 GB, free: 9.703 MB / 0.7136 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.755e-05/0.9207, allocations: 60.86 kB / 1.11 GB, free: 9.633 MB / 0.7136 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.055e-05/0.9208, allocations: 96.25 kB / 1.111 GB, free: 9.535 MB / 0.7136 GB Notification: Performance of collectPreVariables (initialization): time 2.269e-05/0.9208, allocations: 25.7 kB / 1.111 GB, free: 9.504 MB / 0.7136 GB Notification: Performance of collectInitialEqns (initialization): time 5.847e-05/0.9209, allocations: 93.58 kB / 1.111 GB, free: 9.41 MB / 0.7136 GB Notification: Performance of collectInitialBindings (initialization): time 2.277e-05/0.9209, allocations: 15.83 kB / 1.111 GB, free: 9.395 MB / 0.7136 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.811e-06/0.9209, allocations: 0 / 1.111 GB, free: 9.395 MB / 0.7136 GB Notification: Performance of setup shared object (initialization): time 0.0001421/0.9211, allocations: 320.3 kB / 1.111 GB, free: 9.074 MB / 0.7136 GB Notification: Performance of preBalanceInitialSystem (initialization): time 3.214e-05/0.9211, allocations: 8 kB / 1.111 GB, free: 9.066 MB / 0.7136 GB Notification: Performance of partitionIndependentBlocks (initialization): time 5.693e-05/0.9212, allocations: 35.03 kB / 1.111 GB, free: 9.023 MB / 0.7136 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001789/0.9214, allocations: 36.12 kB / 1.111 GB, free: 8.992 MB / 0.7136 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.26e-06/0.9214, allocations: 0 / 1.111 GB, free: 8.992 MB / 0.7136 GB Notification: Performance of matching and sorting (n=8) (initialization): time 0.0002069/0.9216, allocations: 84.45 kB / 1.111 GB, free: 8.906 MB / 0.7136 GB Notification: Performance of prepare postOptimizeDAE: time 1.98e-05/0.9216, allocations: 8.875 kB / 1.111 GB, free: 8.898 MB / 0.7136 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.003e-06/0.9217, allocations: 0 / 1.111 GB, free: 8.898 MB / 0.7136 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.921e-05/0.9217, allocations: 4 kB / 1.111 GB, free: 8.895 MB / 0.7136 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001171/0.9218, allocations: 21.39 kB / 1.111 GB, free: 8.875 MB / 0.7136 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.566e-06/0.9218, allocations: 3.984 kB / 1.111 GB, free: 8.871 MB / 0.7136 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.497e-05/0.9219, allocations: 8.719 kB / 1.111 GB, free: 8.863 MB / 0.7136 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.123e-05/0.9219, allocations: 1.938 kB / 1.111 GB, free: 8.863 MB / 0.7136 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 ($PRE.sampler1.firstTrigger,sampler1.firstTrigger,$whenCondition1,sampler1.sampleTrigger,sampler1.y) * Number of discrete 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 8.561e-05/0.922, allocations: 108.9 kB / 1.111 GB, free: 8.75 MB / 0.7136 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.831e-05/0.9221, allocations: 11.89 kB / 1.111 GB, free: 8.738 MB / 0.7136 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001536/0.9222, allocations: 78.34 kB / 1.111 GB, free: 8.652 MB / 0.7136 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.665e-06/0.9222, allocations: 0 / 1.111 GB, free: 8.652 MB / 0.7136 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.518e-06/0.9222, allocations: 0 / 1.111 GB, free: 8.652 MB / 0.7136 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.146e-06/0.9222, allocations: 0 / 1.111 GB, free: 8.652 MB / 0.7136 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002895/0.9225, allocations: 303.2 kB / 1.112 GB, free: 8.312 MB / 0.7136 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.603e-06/0.9226, allocations: 5.594 kB / 1.112 GB, free: 8.309 MB / 0.7136 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.838e-05/0.9226, allocations: 11.98 kB / 1.112 GB, free: 8.297 MB / 0.7136 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.926e-06/0.9226, allocations: 0 / 1.112 GB, free: 8.297 MB / 0.7136 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.44e-05/0.9227, allocations: 6.25 kB / 1.112 GB, free: 8.293 MB / 0.7136 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.743e-06/0.9227, allocations: 7.938 kB / 1.112 GB, free: 8.285 MB / 0.7136 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.304e-06/0.9227, allocations: 0 / 1.112 GB, free: 8.285 MB / 0.7136 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001641/0.9228, allocations: 163.5 kB / 1.112 GB, free: 8.109 MB / 0.7136 GB Notification: Performance of postOpt removeConstants (simulation): time 4.059e-05/0.9229, allocations: 85.02 kB / 1.112 GB, free: 8.008 MB / 0.7136 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.644e-05/0.9229, allocations: 0 / 1.112 GB, free: 8.008 MB / 0.7136 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.92e-05/0.923, allocations: 11.98 kB / 1.112 GB, free: 7.996 MB / 0.7136 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.818e-05/0.9231, allocations: 7.984 kB / 1.112 GB, free: 7.988 MB / 0.7136 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.054e-05/0.9231, allocations: 4 kB / 1.112 GB, free: 7.984 MB / 0.7136 GB Notification: Performance of sorting global known variables: time 4.915e-05/0.9231, allocations: 91.16 kB / 1.112 GB, free: 7.898 MB / 0.7136 GB Notification: Performance of sort global known variables: time 1.2e-07/0.9231, allocations: 0 / 1.112 GB, free: 7.898 MB / 0.7136 GB Notification: Performance of remove unused functions: time 0.0002307/0.9234, allocations: 12 kB / 1.112 GB, free: 7.887 MB / 0.7136 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 () * 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001911/0.9236, allocations: 112.9 kB / 1.112 GB, free: 7.77 MB / 0.7136 GB Notification: Performance of simCode: created initialization part: time 0.0001195/0.9237, allocations: 39.94 kB / 1.112 GB, free: 7.73 MB / 0.7136 GB Notification: Performance of simCode: created event and clocks part: time 2.364e-06/0.9237, allocations: 192 / 1.112 GB, free: 7.73 MB / 0.7136 GB Notification: Performance of simCode: created simulation system equations: time 4.847e-05/0.9238, allocations: 23.94 kB / 1.112 GB, free: 7.707 MB / 0.7136 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001937/0.924, allocations: 15.06 kB / 1.112 GB, free: 7.695 MB / 0.7136 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002858/0.9243, allocations: 74.56 kB / 1.112 GB, free: 7.602 MB / 0.7136 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003224/0.9246, allocations: 0.6867 MB / 1.113 GB, free: 6.891 MB / 0.7136 GB Notification: Performance of simCode: alias equations: time 3.558e-05/0.9246, allocations: 5.438 kB / 1.113 GB, free: 6.883 MB / 0.7136 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.532e-05/0.9247, allocations: 11.44 kB / 1.113 GB, free: 6.871 MB / 0.7136 GB Notification: Performance of SimCode: time 2.51e-07/0.9247, allocations: 4 kB / 1.113 GB, free: 6.867 MB / 0.7136 GB Notification: Performance of Templates: time 0.002905/0.9276, allocations: 0.6341 MB / 1.114 GB, free: 6.27 MB / 0.7136 GB make -j1 -f Buildings_8_Buildings.Controls.OBC.CDL.Discrete.Examples.Sampler.makefile (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 & ./Buildings_8_Buildings.Controls.OBC.CDL.Discrete.Examples.Sampler -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_8_Buildings.Controls.OBC.CDL.Discrete.Examples.Sampler.pipe 2>&1)