Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Integers.Validation.OnCounter.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: "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Integers.Validation.OnCounter,fileNamePrefix="Buildings_maint_7_0_x_Buildings_Controls_OBC_CDL_Integers_Validation_OnCounter",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Integers.Validation.OnCounter,fileNamePrefix="Buildings_maint_7_0_x_Buildings_Controls_OBC_CDL_Integers_Validation_OnCounter",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo): time 1.438/1.438, allocations: 251.9 MB / 266.9 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.001417/0.001417, allocations: 178.2 kB / 326.5 MB, free: 2.25 MB / 250.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.022/2.022, allocations: 205.4 MB / 0.5775 GB, free: 20.23 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.0008716/0.0008715, allocations: 90.36 kB / 0.6821 GB, free: 12.89 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 0.0003402/0.0003403, allocations: 12.81 kB / 0.7963 GB, free: 135.1 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2138/0.2142, allocations: 106.3 MB / 0.9002 GB, free: 63.83 MB / 0.6042 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.1586/0.3728, allocations: 131.5 MB / 1.029 GB, free: 12.13 MB / 0.6823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000239/0.3731, allocations: 71.95 kB / 1.029 GB, free: 12.06 MB / 0.6823 GB Notification: Performance of FrontEnd - DAE generated: time 0.002459/0.3756, allocations: 0.9267 MB / 1.03 GB, free: 11.13 MB / 0.6823 GB Notification: Performance of FrontEnd: time 1.764e-06/0.3756, allocations: 4 kB / 1.03 GB, free: 11.12 MB / 0.6823 GB Notification: Performance of Transformations before backend: time 7.564e-06/0.3756, allocations: 4 kB / 1.03 GB, free: 11.12 MB / 0.6823 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.0004613/0.3761, allocations: 372.8 kB / 1.03 GB, free: 10.71 MB / 0.6823 GB Notification: Performance of prepare preOptimizeDAE: time 4.366e-05/0.3761, allocations: 12.02 kB / 1.03 GB, free: 10.7 MB / 0.6823 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.905e-05/0.3762, allocations: 34.56 kB / 1.03 GB, free: 10.66 MB / 0.6823 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.003e-05/0.3762, allocations: 11.91 kB / 1.03 GB, free: 10.64 MB / 0.6823 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001269/0.3764, allocations: 167 kB / 1.03 GB, free: 10.44 MB / 0.6823 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.402e-05/0.3764, allocations: 4 kB / 1.03 GB, free: 10.44 MB / 0.6823 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.401e-05/0.3764, allocations: 7.984 kB / 1.03 GB, free: 10.43 MB / 0.6823 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001179/0.3765, allocations: 53.62 kB / 1.03 GB, free: 10.37 MB / 0.6823 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.283e-06/0.3765, allocations: 0 / 1.03 GB, free: 10.37 MB / 0.6823 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.06e-05/0.3766, allocations: 0 / 1.03 GB, free: 10.37 MB / 0.6823 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.258e-06/0.3766, allocations: 4 kB / 1.03 GB, free: 10.37 MB / 0.6823 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.768e-05/0.3766, allocations: 19.98 kB / 1.03 GB, free: 10.35 MB / 0.6823 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004367/0.3771, allocations: 304.8 kB / 1.031 GB, free: 10 MB / 0.6823 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001034/0.3772, allocations: 50.5 kB / 1.031 GB, free: 9.941 MB / 0.6823 GB Notification: Performance of preOpt evalFunc (simulation): time 8.816e-06/0.3772, allocations: 4 kB / 1.031 GB, free: 9.938 MB / 0.6823 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001684/0.3774, allocations: 83.41 kB / 1.031 GB, free: 9.844 MB / 0.6823 GB Notification: Performance of pre-optimization done (n=9): time 1.573e-06/0.3774, allocations: 3.938 kB / 1.031 GB, free: 9.84 MB / 0.6823 GB Notification: Performance of matching and sorting (n=9): time 0.0002447/0.3776, allocations: 105.6 kB / 1.031 GB, free: 9.73 MB / 0.6823 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.082e-05/0.3777, allocations: 51.41 kB / 1.031 GB, free: 9.668 MB / 0.6823 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.594e-05/0.3778, allocations: 116.8 kB / 1.031 GB, free: 9.547 MB / 0.6823 GB Notification: Performance of collectPreVariables (initialization): time 2.125e-05/0.3778, allocations: 33.64 kB / 1.031 GB, free: 9.508 MB / 0.6823 GB Notification: Performance of collectInitialEqns (initialization): time 4.822e-05/0.3779, allocations: 91.94 kB / 1.031 GB, free: 9.414 MB / 0.6823 GB Notification: Performance of collectInitialBindings (initialization): time 2.16e-05/0.3779, allocations: 19.8 kB / 1.031 GB, free: 9.395 MB / 0.6823 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.34e-06/0.3779, allocations: 8 kB / 1.031 GB, free: 9.387 MB / 0.6823 GB Notification: Performance of setup shared object (initialization): time 9.901e-05/0.378, allocations: 310.8 kB / 1.031 GB, free: 9.074 MB / 0.6823 GB Notification: Performance of preBalanceInitialSystem (initialization): time 3.704e-05/0.3781, allocations: 23.98 kB / 1.031 GB, free: 9.051 MB / 0.6823 GB Notification: Performance of partitionIndependentBlocks (initialization): time 5.672e-05/0.3781, allocations: 48.28 kB / 1.031 GB, free: 8.988 MB / 0.6823 GB Notification: Performance of analyzeInitialSystem (initialization): time 3.907e-05/0.3782, allocations: 20 kB / 1.031 GB, free: 8.969 MB / 0.6823 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.814e-06/0.3782, allocations: 0 / 1.031 GB, free: 8.969 MB / 0.6823 GB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0001344/0.3783, allocations: 101.5 kB / 1.032 GB, free: 8.863 MB / 0.6823 GB Notification: Performance of prepare postOptimizeDAE: time 1.624e-05/0.3783, allocations: 8 kB / 1.032 GB, free: 8.855 MB / 0.6823 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.339e-06/0.3783, allocations: 0 / 1.032 GB, free: 8.855 MB / 0.6823 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.194e-05/0.3784, allocations: 0 / 1.032 GB, free: 8.855 MB / 0.6823 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.707e-05/0.3784, allocations: 8 kB / 1.032 GB, free: 8.848 MB / 0.6823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.183e-06/0.3784, allocations: 3.938 kB / 1.032 GB, free: 8.844 MB / 0.6823 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001061/0.3785, allocations: 27.97 kB / 1.032 GB, free: 8.816 MB / 0.6823 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.005e-05/0.3786, allocations: 7.984 kB / 1.032 GB, free: 8.809 MB / 0.6823 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 5 * Number of states: 0 () * Number of discrete variables: 12 ($PRE.onCounter.y,onCounter.y,$whenCondition4,$whenCondition3,$whenCondition1,booPul.y,$PRE.booPul.pulseStart,booPul.pulseStart,$whenCondition2,onCounter.reset,$PRE.reset.pulseStart,reset.pulseStart) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (12): * Single equations (assignments): 12 * 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 9.304e-05/0.3787, allocations: 118.5 kB / 1.032 GB, free: 8.684 MB / 0.6823 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.481e-05/0.3787, allocations: 11.98 kB / 1.032 GB, free: 8.672 MB / 0.6823 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.944e-05/0.3787, allocations: 13.12 kB / 1.032 GB, free: 8.66 MB / 0.6823 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.543e-06/0.3787, allocations: 0 / 1.032 GB, free: 8.66 MB / 0.6823 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.559e-06/0.3787, allocations: 0 / 1.032 GB, free: 8.66 MB / 0.6823 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.418e-06/0.3787, allocations: 0 / 1.032 GB, free: 8.66 MB / 0.6823 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004747/0.3792, allocations: 390.4 kB / 1.032 GB, free: 8.223 MB / 0.6823 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.296e-06/0.3792, allocations: 7.984 kB / 1.032 GB, free: 8.215 MB / 0.6823 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.282e-05/0.3793, allocations: 3.938 kB / 1.032 GB, free: 8.211 MB / 0.6823 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.864e-06/0.3793, allocations: 3.938 kB / 1.032 GB, free: 8.207 MB / 0.6823 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.887e-06/0.3793, allocations: 0 / 1.032 GB, free: 8.207 MB / 0.6823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.515e-06/0.3793, allocations: 8 kB / 1.032 GB, free: 8.199 MB / 0.6823 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.204e-06/0.3793, allocations: 3.953 kB / 1.032 GB, free: 8.195 MB / 0.6823 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001659/0.3795, allocations: 184 kB / 1.032 GB, free: 8 MB / 0.6823 GB Notification: Performance of postOpt removeConstants (simulation): time 4.045e-05/0.3795, allocations: 85.02 kB / 1.032 GB, free: 7.898 MB / 0.6823 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.886e-05/0.3795, allocations: 4 kB / 1.032 GB, free: 7.895 MB / 0.6823 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001071/0.3797, allocations: 11.98 kB / 1.032 GB, free: 7.883 MB / 0.6823 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.422e-05/0.3797, allocations: 23.92 kB / 1.032 GB, free: 7.859 MB / 0.6823 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.044e-05/0.3797, allocations: 4 kB / 1.032 GB, free: 7.855 MB / 0.6823 GB Notification: Performance of sorting global known variables: time 5.676e-05/0.3798, allocations: 91.28 kB / 1.033 GB, free: 7.766 MB / 0.6823 GB Notification: Performance of sort global known variables: time 1.3e-07/0.3798, allocations: 0 / 1.033 GB, free: 7.766 MB / 0.6823 GB Notification: Performance of remove unused functions: time 0.0002197/0.38, allocations: 15.98 kB / 1.033 GB, free: 7.75 MB / 0.6823 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 9 (booPul.y,onCounter.reset,$whenCondition4,$whenCondition3,$whenCondition2,$whenCondition1,onCounter.y,booPul.pulseStart,reset.pulseStart) * Number of discrete states: 1 (onCounter.y) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (9): * Single equations (assignments): 6 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 3 * 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.0004289/0.3805, allocations: 0.7245 MB / 1.033 GB, free: 6.996 MB / 0.6823 GB Notification: Performance of simCode: created initialization part: time 0.0001196/0.3806, allocations: 55.95 kB / 1.033 GB, free: 6.941 MB / 0.6823 GB Notification: Performance of simCode: created event and clocks part: time 1.853e-06/0.3806, allocations: 3.938 kB / 1.033 GB, free: 6.938 MB / 0.6823 GB Notification: Performance of simCode: created simulation system equations: time 5.64e-05/0.3807, allocations: 31.98 kB / 1.033 GB, free: 6.906 MB / 0.6823 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002035/0.3809, allocations: 11.98 kB / 1.033 GB, free: 6.895 MB / 0.6823 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001036/0.3819, allocations: 1.128 MB / 1.034 GB, free: 5.695 MB / 0.6823 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002852/0.3822, allocations: 0.6887 MB / 1.035 GB, free: 4.98 MB / 0.6823 GB Notification: Performance of simCode: alias equations: time 3.435e-05/0.3822, allocations: 12.59 kB / 1.035 GB, free: 4.969 MB / 0.6823 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.883e-05/0.3823, allocations: 19.44 kB / 1.035 GB, free: 4.949 MB / 0.6823 GB Notification: Performance of SimCode: time 7.31e-07/0.3823, allocations: 4 kB / 1.035 GB, free: 4.945 MB / 0.6823 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01185/0.3942, allocations: 1.773 MB / 1.037 GB, free: 3.328 MB / 0.6823 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001748/0.3944, allocations: 193.8 kB / 1.037 GB, free: 3.09 MB / 0.6823 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.483/1.877, allocations: 0 / 1.037 GB, free: 3.09 MB / 0.6823 GB (rm -f Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Integers.Validation.OnCounter.pipe ; mkfifo Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Integers.Validation.OnCounter.pipe ; head -c 1048576 < Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Integers.Validation.OnCounter.pipe >> ../files/Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Integers.Validation.OnCounter.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_Buildings_maint_7_0_x_Buildings_Controls_OBC_CDL_Integers_Validation_OnCounter_fmu --startTime=0 --stopTime=2 --timeout=50 --tolerance=1e-06 Buildings_maint_7_0_x_Buildings_Controls_OBC_CDL_Integers_Validation_OnCounter.fmu > Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Integers.Validation.OnCounter.pipe 2>&1)