Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_8_Buildings.Controls.OBC.CDL.Integers.Validation.OnCounter.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 8.1.4-maint.8.1.x/package.mo", uses=false) 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) 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: "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Integers.Validation.OnCounter,fileNamePrefix="Buildings_8_Buildings_Controls_OBC_CDL_Integers_Validation_OnCounter",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Integers.Validation.OnCounter,fileNamePrefix="Buildings_8_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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001198/0.001198, allocations: 105.4 kB / 15.7 MB, free: 24 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001259/0.001259, allocations: 197.2 kB / 16.64 MB, free: 6.453 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.445/1.445, allocations: 205.1 MB / 222.5 MB, free: 4.59 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo): time 1.739/1.739, allocations: 292.3 MB / 0.549 GB, free: 12.75 MB / 462.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.001466/0.001466, allocations: 69.56 kB / 0.6718 GB, free: 26.09 MB / 0.5294 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2348/0.2363, allocations: 114.5 MB / 0.7836 GB, free: 13.24 MB / 0.6075 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Integers.Validation.OnCounter): time 0.002576/0.2389, allocations: 0.6895 MB / 0.7843 GB, free: 12.55 MB / 0.6075 GB Notification: Performance of NFInst.instExpressions: time 0.001627/0.2405, allocations: 1.195 MB / 0.7855 GB, free: 11.34 MB / 0.6075 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.745e-05/0.2406, allocations: 0 / 0.7855 GB, free: 11.34 MB / 0.6075 GB Notification: Performance of NFTyping.typeComponents: time 3.424e-05/0.2407, allocations: 7.922 kB / 0.7855 GB, free: 11.33 MB / 0.6075 GB Notification: Performance of NFTyping.typeBindings: time 7.03e-05/0.2407, allocations: 7.875 kB / 0.7855 GB, free: 11.32 MB / 0.6075 GB Notification: Performance of NFTyping.typeClassSections: time 0.000691/0.2414, allocations: 224 kB / 0.7857 GB, free: 11.11 MB / 0.6075 GB Notification: Performance of NFFlatten.flatten: time 0.0002791/0.2417, allocations: 191.8 kB / 0.7859 GB, free: 10.92 MB / 0.6075 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001026/0.2418, allocations: 4 kB / 0.7859 GB, free: 10.92 MB / 0.6075 GB Notification: Performance of NFEvalConstants.evaluate: time 0.000114/0.2419, allocations: 79.81 kB / 0.786 GB, free: 10.84 MB / 0.6075 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001484/0.2421, allocations: 63.78 kB / 0.786 GB, free: 10.78 MB / 0.6075 GB Notification: Performance of NFPackage.collectConstants: time 3.36e-05/0.2421, allocations: 16 kB / 0.7861 GB, free: 10.76 MB / 0.6075 GB Notification: Performance of NFFlatten.collectFunctions: time 8.627e-05/0.2422, allocations: 31.92 kB / 0.7861 GB, free: 10.73 MB / 0.6075 GB Notification: Performance of NFScalarize.scalarize: time 2.759e-05/0.2423, allocations: 11.98 kB / 0.7861 GB, free: 10.72 MB / 0.6075 GB Notification: Performance of NFVerifyModel.verify: time 0.0001038/0.2424, allocations: 59.83 kB / 0.7862 GB, free: 10.66 MB / 0.6075 GB Notification: Performance of NFConvertDAE.convert: time 0.0002331/0.2426, allocations: 163.8 kB / 0.7863 GB, free: 10.5 MB / 0.6075 GB Notification: Performance of FrontEnd - DAE generated: time 4.468e-06/0.2426, allocations: 4 kB / 0.7863 GB, free: 10.5 MB / 0.6075 GB Notification: Performance of FrontEnd: time 2.084e-06/0.2426, allocations: 0 / 0.7863 GB, free: 10.5 MB / 0.6075 GB Notification: Performance of Transformations before backend: time 5.45e-06/0.2427, allocations: 0 / 0.7863 GB, free: 10.5 MB / 0.6075 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 5 * Number of variables: 5 Notification: Performance of Generate backend data structure: time 0.0005711/0.2432, allocations: 438.7 kB / 0.7867 GB, free: 10 MB / 0.6075 GB Notification: Performance of prepare preOptimizeDAE: time 4.967e-05/0.2433, allocations: 8.031 kB / 0.7867 GB, free: 9.996 MB / 0.6075 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.658e-05/0.2433, allocations: 38.73 kB / 0.7868 GB, free: 9.949 MB / 0.6075 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.638e-05/0.2434, allocations: 12.84 kB / 0.7868 GB, free: 9.938 MB / 0.6075 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001322/0.2435, allocations: 164.3 kB / 0.7869 GB, free: 9.738 MB / 0.6075 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.839e-05/0.2436, allocations: 12.38 kB / 0.787 GB, free: 9.727 MB / 0.6075 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.678e-05/0.2436, allocations: 8.375 kB / 0.787 GB, free: 9.719 MB / 0.6075 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001138/0.2437, allocations: 54.23 kB / 0.787 GB, free: 9.66 MB / 0.6075 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.155e-06/0.2437, allocations: 7.938 kB / 0.787 GB, free: 9.652 MB / 0.6075 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.448e-06/0.2437, allocations: 0 / 0.787 GB, free: 9.652 MB / 0.6075 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.13e-06/0.2438, allocations: 0 / 0.787 GB, free: 9.652 MB / 0.6075 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.081e-05/0.2438, allocations: 15.98 kB / 0.787 GB, free: 9.637 MB / 0.6075 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000508/0.2443, allocations: 360.5 kB / 0.7874 GB, free: 9.234 MB / 0.6075 GB Notification: Performance of preOpt comSubExp (simulation): time 8.344e-05/0.2444, allocations: 38.56 kB / 0.7874 GB, free: 9.188 MB / 0.6075 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.348e-05/0.2444, allocations: 26 kB / 0.7874 GB, free: 9.16 MB / 0.6075 GB Notification: Performance of preOpt evalFunc (simulation): time 7.635e-06/0.2445, allocations: 0 / 0.7874 GB, free: 9.16 MB / 0.6075 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001778/0.2446, allocations: 87.3 kB / 0.7875 GB, free: 9.062 MB / 0.6075 GB Notification: Performance of pre-optimization done (n=9): time 1.183e-06/0.2447, allocations: 0 / 0.7875 GB, free: 9.062 MB / 0.6075 GB Notification: Performance of matching and sorting (n=9): time 0.0002653/0.2449, allocations: 125.5 kB / 0.7876 GB, free: 8.934 MB / 0.6075 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.26e-05/0.245, allocations: 59.39 kB / 0.7877 GB, free: 8.863 MB / 0.6075 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001052/0.2451, allocations: 117.8 kB / 0.7878 GB, free: 8.738 MB / 0.6075 GB Notification: Performance of collectPreVariables (initialization): time 3.256e-05/0.2451, allocations: 38.02 kB / 0.7879 GB, free: 8.695 MB / 0.6075 GB Notification: Performance of collectInitialEqns (initialization): time 6.824e-05/0.2452, allocations: 96.27 kB / 0.7879 GB, free: 8.594 MB / 0.6075 GB Notification: Performance of collectInitialBindings (initialization): time 2.881e-05/0.2453, allocations: 15.81 kB / 0.788 GB, free: 8.578 MB / 0.6075 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.416e-05/0.2454, allocations: 53.69 kB / 0.788 GB, free: 8.52 MB / 0.6075 GB Notification: Performance of setup shared object (initialization): time 0.0001307/0.2455, allocations: 326.7 kB / 0.7883 GB, free: 8.191 MB / 0.6075 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001303/0.2456, allocations: 59.97 kB / 0.7884 GB, free: 8.133 MB / 0.6075 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001638/0.2458, allocations: 110 kB / 0.7885 GB, free: 8.004 MB / 0.6075 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002363/0.246, allocations: 197.2 kB / 0.7887 GB, free: 7.777 MB / 0.6075 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.224e-06/0.2461, allocations: 0 / 0.7887 GB, free: 7.777 MB / 0.6075 GB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0004368/0.2465, allocations: 276.8 kB / 0.7889 GB, free: 7.488 MB / 0.6075 GB Notification: Performance of prepare postOptimizeDAE: time 6.53e-05/0.2466, allocations: 67.39 kB / 0.789 GB, free: 7.41 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.3e-06/0.2466, allocations: 0 / 0.789 GB, free: 7.41 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.4e-05/0.2466, allocations: 4 kB / 0.789 GB, free: 7.406 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.223e-05/0.2467, allocations: 7.938 kB / 0.789 GB, free: 7.398 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.02e-05/0.2467, allocations: 7.984 kB / 0.789 GB, free: 7.391 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003235/0.247, allocations: 56.03 kB / 0.7891 GB, free: 7.336 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.138e-05/0.247, allocations: 12 kB / 0.7891 GB, free: 7.324 MB / 0.6075 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 7 * Number of states: 0 () * Number of discrete variables: 12 (onCounter.y,$PRE.onCounter.y,$whenCondition5,$whenCondition6,$whenCondition3,$whenCondition4,reset.y,$PRE.reset.y,$whenCondition2,booPul.y,$PRE.booPul.y,$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (12): * Single equations (assignments): 10 * Array equations: 0 * Algorithm blocks: 2 * 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.0001152/0.2472, allocations: 132.2 kB / 0.7892 GB, free: 7.188 MB / 0.6075 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.507e-05/0.2472, allocations: 7.906 kB / 0.7892 GB, free: 7.18 MB / 0.6075 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.452e-05/0.2472, allocations: 8.375 kB / 0.7892 GB, free: 7.172 MB / 0.6075 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.984e-06/0.2472, allocations: 4 kB / 0.7892 GB, free: 7.168 MB / 0.6075 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.067e-06/0.2472, allocations: 96 / 0.7892 GB, free: 7.168 MB / 0.6075 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.68e-06/0.2472, allocations: 3.984 kB / 0.7892 GB, free: 7.164 MB / 0.6075 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003139/0.2476, allocations: 362.4 kB / 0.7896 GB, free: 6.754 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.343e-06/0.2476, allocations: 0 / 0.7896 GB, free: 6.754 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.084e-05/0.2476, allocations: 4 kB / 0.7896 GB, free: 6.75 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.583e-06/0.2476, allocations: 0 / 0.7896 GB, free: 6.75 MB / 0.6075 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.295e-06/0.2476, allocations: 0 / 0.7896 GB, free: 6.75 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.453e-06/0.2476, allocations: 0 / 0.7896 GB, free: 6.75 MB / 0.6075 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.304e-06/0.2476, allocations: 4 kB / 0.7896 GB, free: 6.746 MB / 0.6075 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001843/0.2478, allocations: 207.3 kB / 0.7898 GB, free: 6.527 MB / 0.6075 GB Notification: Performance of postOpt removeConstants (simulation): time 4.864e-05/0.2479, allocations: 81.02 kB / 0.7899 GB, free: 6.43 MB / 0.6075 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.066e-05/0.2479, allocations: 12.12 kB / 0.7899 GB, free: 6.418 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.208e-05/0.2479, allocations: 4 kB / 0.7899 GB, free: 6.414 MB / 0.6075 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.893e-05/0.248, allocations: 11.92 kB / 0.7899 GB, free: 6.402 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.525e-05/0.248, allocations: 7.938 kB / 0.7899 GB, free: 6.395 MB / 0.6075 GB Notification: Performance of sorting global known variables: time 5.116e-05/0.2481, allocations: 95.27 kB / 0.79 GB, free: 6.301 MB / 0.6075 GB Notification: Performance of sort global known variables: time 1.1e-07/0.2481, allocations: 0 / 0.79 GB, free: 6.301 MB / 0.6075 GB Notification: Performance of remove unused functions: time 0.0002821/0.2484, allocations: 32 kB / 0.79 GB, free: 6.27 MB / 0.6075 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 ($whenCondition5,$whenCondition6,$whenCondition3,$whenCondition4,$whenCondition2,$whenCondition1,onCounter.y,booPul.y,reset.y) * 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 (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.0004992/0.2489, allocations: 0.7414 MB / 0.7907 GB, free: 5.508 MB / 0.6075 GB Notification: Performance of simCode: created initialization part: time 0.0003503/0.2492, allocations: 254.6 kB / 0.791 GB, free: 5.234 MB / 0.6075 GB Notification: Performance of simCode: created event and clocks part: time 4.488e-06/0.2492, allocations: 4.312 kB / 0.791 GB, free: 5.23 MB / 0.6075 GB Notification: Performance of simCode: created simulation system equations: time 5.761e-05/0.2493, allocations: 35.92 kB / 0.791 GB, free: 5.195 MB / 0.6075 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003107/0.2496, allocations: 19.92 kB / 0.791 GB, free: 5.176 MB / 0.6075 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00198/0.2516, allocations: 1.859 MB / 0.7929 GB, free: 3.184 MB / 0.6075 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000253/0.2519, allocations: 0.6885 MB / 0.7935 GB, free: 2.469 MB / 0.6075 GB Notification: Performance of simCode: alias equations: time 3.105e-05/0.2519, allocations: 8.938 kB / 0.7935 GB, free: 2.461 MB / 0.6075 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.568e-05/0.252, allocations: 23.44 kB / 0.7936 GB, free: 2.438 MB / 0.6075 GB Notification: Performance of SimCode: time 3.4e-07/0.252, allocations: 0 / 0.7936 GB, free: 2.438 MB / 0.6075 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0196/0.2716, allocations: 2.999 MB / 0.7965 GB, free: 15.55 MB / 0.6231 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.529/7.801, allocations: 9.047 kB / 0.7965 GB, free: 15.54 MB / 0.6231 GB (rm -f Buildings_8_Buildings.Controls.OBC.CDL.Integers.Validation.OnCounter.pipe ; mkfifo Buildings_8_Buildings.Controls.OBC.CDL.Integers.Validation.OnCounter.pipe ; head -c 1048576 < Buildings_8_Buildings.Controls.OBC.CDL.Integers.Validation.OnCounter.pipe >> ../files/Buildings_8_Buildings.Controls.OBC.CDL.Integers.Validation.OnCounter.sim & python3 -m fmpy simulate --output-file Buildings_8_Buildings.Controls.OBC.CDL.Integers.Validation.OnCounter_res.csv --start-time 0 --stop-time 2 --timeout 50 --relative-tolerance 1e-06 Buildings_8_Buildings_Controls_OBC_CDL_Integers_Validation_OnCounter.fmu > Buildings_8_Buildings.Controls.OBC.CDL.Integers.Validation.OnCounter.pipe 2>&1)