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.394/1.394, allocations: 252 MB / 268 MB, free: 10.85 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.000988/0.000988, allocations: 175.6 kB / 327.6 MB, free: 2.074 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.747/1.747, allocations: 205.4 MB / 0.5786 GB, free: 20.14 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.001026/0.001027, allocations: 89.47 kB / 0.6832 GB, free: 12.76 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 0.0003939/0.0003942, allocations: 12.14 kB / 0.7976 GB, free: 135.1 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2486/0.249, allocations: 106.3 MB / 0.9015 GB, free: 63.47 MB / 0.6042 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredSampler): time 0.001888/0.251, allocations: 1.191 MB / 0.9026 GB, free: 62.27 MB / 0.6042 GB Notification: Performance of NFInst.instExpressions: time 0.0005748/0.2516, allocations: 236.1 kB / 0.9028 GB, free: 62.03 MB / 0.6042 GB Notification: Performance of NFInst.updateImplicitVariability: time 7.598e-05/0.2517, allocations: 3.938 kB / 0.9029 GB, free: 62.03 MB / 0.6042 GB Notification: Performance of NFTyping.typeComponents: time 2.817e-05/0.2517, allocations: 3.938 kB / 0.9029 GB, free: 62.02 MB / 0.6042 GB Notification: Performance of NFTyping.typeBindings: time 0.0001041/0.2519, allocations: 7.922 kB / 0.9029 GB, free: 62.02 MB / 0.6042 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002187/0.2521, allocations: 23.98 kB / 0.9029 GB, free: 61.99 MB / 0.6042 GB Notification: Performance of NFFlatten.flatten: time 0.0001068/0.2522, allocations: 63.83 kB / 0.9029 GB, free: 61.93 MB / 0.6042 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001476/0.2524, allocations: 20.19 kB / 0.903 GB, free: 61.91 MB / 0.6042 GB Notification: Performance of NFEvalConstants.evaluate: time 8.758e-05/0.2525, allocations: 27.8 kB / 0.903 GB, free: 61.88 MB / 0.6042 GB Notification: Performance of NFSimplifyModel.simplify: time 6.053e-05/0.2525, allocations: 27.89 kB / 0.903 GB, free: 61.85 MB / 0.6042 GB Notification: Performance of NFPackage.collectConstants: time 2.369e-05/0.2526, allocations: 0 / 0.903 GB, free: 61.85 MB / 0.6042 GB Notification: Performance of NFFlatten.collectFunctions: time 1.532e-05/0.2526, allocations: 8 kB / 0.903 GB, free: 61.84 MB / 0.6042 GB Notification: Performance of NFScalarize.scalarize: time 2.734e-05/0.2526, allocations: 11.94 kB / 0.903 GB, free: 61.83 MB / 0.6042 GB Notification: Performance of NFVerifyModel.verify: time 5.728e-05/0.2527, allocations: 45.56 kB / 0.9031 GB, free: 61.78 MB / 0.6042 GB Notification: Performance of NFConvertDAE.convert: time 9.095e-05/0.2528, allocations: 43.89 kB / 0.9031 GB, free: 61.74 MB / 0.6042 GB Notification: Performance of FrontEnd - DAE generated: time 4.268e-06/0.2528, allocations: 0 / 0.9031 GB, free: 61.74 MB / 0.6042 GB Notification: Performance of FrontEnd: time 1.784e-06/0.2528, allocations: 0 / 0.9031 GB, free: 61.74 MB / 0.6042 GB Notification: Performance of Transformations before backend: time 1.156e-05/0.2528, allocations: 0 / 0.9031 GB, free: 61.74 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.0006214/0.2534, allocations: 383.6 kB / 0.9035 GB, free: 61.32 MB / 0.6042 GB Notification: Performance of prepare preOptimizeDAE: time 4.286e-05/0.2535, allocations: 11.97 kB / 0.9035 GB, free: 61.3 MB / 0.6042 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.895e-05/0.2535, allocations: 12.83 kB / 0.9035 GB, free: 61.29 MB / 0.6042 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001095/0.2537, allocations: 184.2 kB / 0.9037 GB, free: 61.07 MB / 0.6042 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.078e-05/0.2537, allocations: 4.375 kB / 0.9037 GB, free: 61.07 MB / 0.6042 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.858e-05/0.2537, allocations: 8.375 kB / 0.9037 GB, free: 61.06 MB / 0.6042 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002129/0.2539, allocations: 78.16 kB / 0.9038 GB, free: 60.98 MB / 0.6042 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.053e-05/0.254, allocations: 7.938 kB / 0.9038 GB, free: 60.97 MB / 0.6042 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.255e-05/0.254, allocations: 4 kB / 0.9038 GB, free: 60.97 MB / 0.6042 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.531e-06/0.254, allocations: 0 / 0.9038 GB, free: 60.97 MB / 0.6042 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002015/0.2542, allocations: 59.94 kB / 0.9038 GB, free: 60.91 MB / 0.6042 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004934/0.2547, allocations: 316.6 kB / 0.9041 GB, free: 60.55 MB / 0.6042 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001768/0.2549, allocations: 62.55 kB / 0.9042 GB, free: 60.48 MB / 0.6042 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001004/0.255, allocations: 44.97 kB / 0.9042 GB, free: 60.43 MB / 0.6042 GB Notification: Performance of preOpt evalFunc (simulation): time 2.623e-05/0.255, allocations: 0 / 0.9042 GB, free: 60.43 MB / 0.6042 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002375/0.2553, allocations: 91.36 kB / 0.9043 GB, free: 60.33 MB / 0.6042 GB Notification: Performance of pre-optimization done (n=8): time 2.405e-06/0.2553, allocations: 0 / 0.9043 GB, free: 60.33 MB / 0.6042 GB Notification: Performance of matching and sorting (n=8): time 0.0004405/0.2557, allocations: 161.5 kB / 0.9045 GB, free: 60.17 MB / 0.6042 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.797e-05/0.2558, allocations: 55.41 kB / 0.9045 GB, free: 60.1 MB / 0.6042 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.076e-05/0.2559, allocations: 117.9 kB / 0.9047 GB, free: 59.98 MB / 0.6042 GB Notification: Performance of collectPreVariables (initialization): time 1.331e-05/0.2559, allocations: 37.62 kB / 0.9047 GB, free: 59.93 MB / 0.6042 GB Notification: Performance of collectInitialEqns (initialization): time 4.454e-05/0.2559, allocations: 95.94 kB / 0.9048 GB, free: 59.84 MB / 0.6042 GB Notification: Performance of collectInitialBindings (initialization): time 2.399e-05/0.256, allocations: 19.72 kB / 0.9048 GB, free: 59.82 MB / 0.6042 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.58e-06/0.256, allocations: 0 / 0.9048 GB, free: 59.82 MB / 0.6042 GB Notification: Performance of setup shared object (initialization): time 6.528e-05/0.2561, allocations: 326.8 kB / 0.9051 GB, free: 59.49 MB / 0.6042 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.912e-05/0.2562, allocations: 35.97 kB / 0.9051 GB, free: 59.45 MB / 0.6042 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001076/0.2563, allocations: 68.2 kB / 0.9052 GB, free: 59.37 MB / 0.6042 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002039/0.2565, allocations: 104.2 kB / 0.9053 GB, free: 59.25 MB / 0.6042 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.034e-06/0.2565, allocations: 0 / 0.9053 GB, free: 59.25 MB / 0.6042 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0002591/0.2568, allocations: 129.5 kB / 0.9054 GB, free: 59.12 MB / 0.6042 GB Notification: Performance of prepare postOptimizeDAE: time 1.797e-05/0.2568, allocations: 4 kB / 0.9054 GB, free: 59.12 MB / 0.6042 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.785e-06/0.2568, allocations: 4.047 kB / 0.9054 GB, free: 59.11 MB / 0.6042 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.793e-05/0.2568, allocations: 3.984 kB / 0.9054 GB, free: 59.11 MB / 0.6042 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001156/0.257, allocations: 32.05 kB / 0.9055 GB, free: 59.08 MB / 0.6042 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.504e-06/0.257, allocations: 0 / 0.9055 GB, free: 59.08 MB / 0.6042 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.859e-05/0.2571, allocations: 23.91 kB / 0.9055 GB, free: 59.05 MB / 0.6042 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.044e-05/0.2571, allocations: 7.938 kB / 0.9055 GB, free: 59.05 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 ($PRE.triSam1.y,triSam1.y,$PRE.triSam.y,triSam.y,$whenCondition1,$whenCondition2,booPul.y,$PRE.booPul.pulseStart,booPul.pulseStart) * 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 8.484e-05/0.2572, allocations: 113.8 kB / 0.9056 GB, free: 58.93 MB / 0.6042 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.56e-05/0.2572, allocations: 7.906 kB / 0.9056 GB, free: 58.92 MB / 0.6042 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002897/0.2575, allocations: 137.9 kB / 0.9058 GB, free: 58.78 MB / 0.6042 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.426e-06/0.2575, allocations: 4 kB / 0.9058 GB, free: 58.77 MB / 0.6042 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.298e-06/0.2575, allocations: 0 / 0.9058 GB, free: 58.77 MB / 0.6042 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.33e-06/0.2575, allocations: 3.984 kB / 0.9058 GB, free: 58.77 MB / 0.6042 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004803/0.258, allocations: 398.8 kB / 0.9061 GB, free: 58.32 MB / 0.6042 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.703e-06/0.258, allocations: 0 / 0.9061 GB, free: 58.32 MB / 0.6042 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.221e-05/0.2581, allocations: 16 kB / 0.9062 GB, free: 58.31 MB / 0.6042 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.635e-06/0.2581, allocations: 0 / 0.9062 GB, free: 58.31 MB / 0.6042 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.098e-05/0.2581, allocations: 7.984 kB / 0.9062 GB, free: 58.3 MB / 0.6042 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.745e-06/0.2581, allocations: 4.016 kB / 0.9062 GB, free: 58.3 MB / 0.6042 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.806e-06/0.2581, allocations: 3.984 kB / 0.9062 GB, free: 58.29 MB / 0.6042 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002895/0.2584, allocations: 223.3 kB / 0.9064 GB, free: 58.06 MB / 0.6042 GB Notification: Performance of postOpt removeConstants (simulation): time 2.964e-05/0.2585, allocations: 89.02 kB / 0.9065 GB, free: 57.95 MB / 0.6042 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.89e-05/0.2585, allocations: 0 / 0.9065 GB, free: 57.95 MB / 0.6042 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001088/0.2586, allocations: 27.86 kB / 0.9065 GB, free: 57.93 MB / 0.6042 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.264e-05/0.2587, allocations: 8.359 kB / 0.9065 GB, free: 57.92 MB / 0.6042 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.091e-06/0.2587, allocations: 0 / 0.9065 GB, free: 57.92 MB / 0.6042 GB Notification: Performance of sorting global known variables: time 4.142e-05/0.2587, allocations: 103.2 kB / 0.9066 GB, free: 57.82 MB / 0.6042 GB Notification: Performance of sort global known variables: time 1.2e-07/0.2588, allocations: 4 kB / 0.9066 GB, free: 57.81 MB / 0.6042 GB Notification: Performance of remove unused functions: time 0.00022/0.259, allocations: 8 kB / 0.9066 GB, free: 57.8 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.000112/0.2591, allocations: 99.25 kB / 0.9067 GB, free: 57.7 MB / 0.6042 GB Notification: Performance of simCode: created initialization part: time 0.0002751/0.2594, allocations: 95.88 kB / 0.9068 GB, free: 57.61 MB / 0.6042 GB Notification: Performance of simCode: created event and clocks part: time 2.224e-06/0.2594, allocations: 0 / 0.9068 GB, free: 57.61 MB / 0.6042 GB Notification: Performance of simCode: created simulation system equations: time 0.0001184/0.2595, allocations: 47.91 kB / 0.9068 GB, free: 57.56 MB / 0.6042 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002845/0.2598, allocations: 5.828 kB / 0.9069 GB, free: 57.55 MB / 0.6042 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004469/0.2603, allocations: 225.2 kB / 0.9071 GB, free: 57.3 MB / 0.6042 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001635/0.2604, allocations: 0.6926 MB / 0.9077 GB, free: 56.58 MB / 0.6042 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.753e-05/0.2605, allocations: 11.44 kB / 0.9078 GB, free: 56.57 MB / 0.6042 GB Notification: Performance of SimCode: time 2.81e-07/0.2605, allocations: 0 / 0.9078 GB, free: 56.57 MB / 0.6042 GB Notification: Performance of Templates: time 0.002553/0.2631, allocations: 1.003 MB / 0.9087 GB, free: 55.57 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)