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.001538/0.001538, allocations: 108 kB / 15.61 MB, free: 128 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.002073/0.002074, allocations: 197.8 kB / 16.53 MB, free: 6.668 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.545/1.545, allocations: 205.1 MB / 222.4 MB, free: 4.598 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.86/1.86, allocations: 292.3 MB / 0.5489 GB, free: 12.82 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.001633/0.001633, allocations: 70.12 kB / 0.6716 GB, free: 26.14 MB / 0.5294 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.245/0.2467, allocations: 114.5 MB / 0.7835 GB, free: 13.38 MB / 0.6075 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Integers.Validation.OnCounter): time 0.002246/0.249, allocations: 0.6887 MB / 0.7842 GB, free: 12.69 MB / 0.6075 GB Notification: Performance of NFInst.instExpressions: time 0.001591/0.2506, allocations: 1.199 MB / 0.7853 GB, free: 11.48 MB / 0.6075 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.868e-05/0.2507, allocations: 0 / 0.7853 GB, free: 11.48 MB / 0.6075 GB Notification: Performance of NFTyping.typeComponents: time 3.194e-05/0.2507, allocations: 3.938 kB / 0.7853 GB, free: 11.47 MB / 0.6075 GB Notification: Performance of NFTyping.typeBindings: time 8.169e-05/0.2508, allocations: 15.88 kB / 0.7853 GB, free: 11.46 MB / 0.6075 GB Notification: Performance of NFTyping.typeClassSections: time 0.0007161/0.2515, allocations: 217 kB / 0.7856 GB, free: 11.25 MB / 0.6075 GB Notification: Performance of NFFlatten.flatten: time 0.0002338/0.2518, allocations: 187.8 kB / 0.7857 GB, free: 11.07 MB / 0.6075 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001234/0.2519, allocations: 8 kB / 0.7857 GB, free: 11.06 MB / 0.6075 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001024/0.252, allocations: 67.83 kB / 0.7858 GB, free: 10.99 MB / 0.6075 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001109/0.2521, allocations: 63.84 kB / 0.7859 GB, free: 10.93 MB / 0.6075 GB Notification: Performance of NFPackage.collectConstants: time 3.628e-05/0.2522, allocations: 16 kB / 0.7859 GB, free: 10.91 MB / 0.6075 GB Notification: Performance of NFFlatten.collectFunctions: time 9.234e-05/0.2523, allocations: 27.98 kB / 0.7859 GB, free: 10.89 MB / 0.6075 GB Notification: Performance of NFScalarize.scalarize: time 2.414e-05/0.2523, allocations: 11.94 kB / 0.7859 GB, free: 10.88 MB / 0.6075 GB Notification: Performance of NFVerifyModel.verify: time 0.0001021/0.2524, allocations: 63.81 kB / 0.786 GB, free: 10.81 MB / 0.6075 GB Notification: Performance of NFConvertDAE.convert: time 0.0002239/0.2526, allocations: 155.9 kB / 0.7861 GB, free: 10.66 MB / 0.6075 GB Notification: Performance of FrontEnd - DAE generated: time 5.911e-06/0.2527, allocations: 0 / 0.7861 GB, free: 10.66 MB / 0.6075 GB Notification: Performance of FrontEnd: time 1.373e-06/0.2527, allocations: 0 / 0.7861 GB, free: 10.66 MB / 0.6075 GB Notification: Performance of Transformations before backend: time 5.019e-06/0.2527, allocations: 0 / 0.7861 GB, free: 10.66 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.0005603/0.2532, allocations: 446.7 kB / 0.7866 GB, free: 10.16 MB / 0.6075 GB Notification: Performance of prepare preOptimizeDAE: time 4.15e-05/0.2533, allocations: 8.031 kB / 0.7866 GB, free: 10.15 MB / 0.6075 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.58e-05/0.2533, allocations: 34.75 kB / 0.7866 GB, free: 10.11 MB / 0.6075 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.607e-05/0.2534, allocations: 12.84 kB / 0.7866 GB, free: 10.1 MB / 0.6075 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001204/0.2535, allocations: 168.3 kB / 0.7868 GB, free: 9.895 MB / 0.6075 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.425e-05/0.2536, allocations: 12.31 kB / 0.7868 GB, free: 9.883 MB / 0.6075 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.228e-05/0.2536, allocations: 12.38 kB / 0.7868 GB, free: 9.871 MB / 0.6075 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001106/0.2537, allocations: 50.17 kB / 0.7868 GB, free: 9.816 MB / 0.6075 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.789e-06/0.2537, allocations: 7.938 kB / 0.7868 GB, free: 9.809 MB / 0.6075 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.034e-05/0.2538, allocations: 3.938 kB / 0.7868 GB, free: 9.805 MB / 0.6075 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.669e-06/0.2538, allocations: 4 kB / 0.7869 GB, free: 9.801 MB / 0.6075 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.855e-05/0.2538, allocations: 15.98 kB / 0.7869 GB, free: 9.785 MB / 0.6075 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005603/0.2544, allocations: 356.6 kB / 0.7872 GB, free: 9.387 MB / 0.6075 GB Notification: Performance of preOpt comSubExp (simulation): time 8.322e-05/0.2545, allocations: 38.5 kB / 0.7872 GB, free: 9.34 MB / 0.6075 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.425e-05/0.2545, allocations: 17.92 kB / 0.7873 GB, free: 9.32 MB / 0.6075 GB Notification: Performance of preOpt evalFunc (simulation): time 5.099e-06/0.2545, allocations: 0 / 0.7873 GB, free: 9.32 MB / 0.6075 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002124/0.2547, allocations: 95.44 kB / 0.7874 GB, free: 9.215 MB / 0.6075 GB Notification: Performance of pre-optimization done (n=9): time 1.283e-06/0.2548, allocations: 4 kB / 0.7874 GB, free: 9.211 MB / 0.6075 GB Notification: Performance of matching and sorting (n=9): time 0.0003152/0.2551, allocations: 117.5 kB / 0.7875 GB, free: 9.09 MB / 0.6075 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.474e-05/0.2551, allocations: 59.34 kB / 0.7875 GB, free: 9.02 MB / 0.6075 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001118/0.2552, allocations: 121.8 kB / 0.7876 GB, free: 8.891 MB / 0.6075 GB Notification: Performance of collectPreVariables (initialization): time 3.31e-05/0.2553, allocations: 33.7 kB / 0.7877 GB, free: 8.852 MB / 0.6075 GB Notification: Performance of collectInitialEqns (initialization): time 7.05e-05/0.2554, allocations: 96.28 kB / 0.7878 GB, free: 8.75 MB / 0.6075 GB Notification: Performance of collectInitialBindings (initialization): time 2.135e-05/0.2554, allocations: 23.78 kB / 0.7878 GB, free: 8.727 MB / 0.6075 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001044/0.2555, allocations: 49.69 kB / 0.7878 GB, free: 8.672 MB / 0.6075 GB Notification: Performance of setup shared object (initialization): time 0.00013/0.2556, allocations: 322.8 kB / 0.7881 GB, free: 8.348 MB / 0.6075 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000131/0.2558, allocations: 59.97 kB / 0.7882 GB, free: 8.289 MB / 0.6075 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001685/0.2559, allocations: 110 kB / 0.7883 GB, free: 8.16 MB / 0.6075 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002158/0.2562, allocations: 185.3 kB / 0.7885 GB, free: 7.945 MB / 0.6075 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.145e-06/0.2562, allocations: 0 / 0.7885 GB, free: 7.945 MB / 0.6075 GB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0004526/0.2566, allocations: 284.8 kB / 0.7888 GB, free: 7.648 MB / 0.6075 GB Notification: Performance of prepare postOptimizeDAE: time 6.066e-05/0.2567, allocations: 68.33 kB / 0.7888 GB, free: 7.57 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.472e-06/0.2567, allocations: 0 / 0.7888 GB, free: 7.57 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.621e-05/0.2567, allocations: 4 kB / 0.7888 GB, free: 7.566 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.447e-05/0.2568, allocations: 11.94 kB / 0.7888 GB, free: 7.555 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.789e-06/0.2568, allocations: 7.938 kB / 0.7888 GB, free: 7.547 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003683/0.2572, allocations: 60.39 kB / 0.7889 GB, free: 7.488 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.026e-05/0.2572, allocations: 15.94 kB / 0.7889 GB, free: 7.473 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.0001216/0.2574, allocations: 132.2 kB / 0.789 GB, free: 7.336 MB / 0.6075 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.767e-05/0.2574, allocations: 8 kB / 0.789 GB, free: 7.328 MB / 0.6075 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.48e-05/0.2574, allocations: 12.36 kB / 0.7891 GB, free: 7.316 MB / 0.6075 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.205e-06/0.2575, allocations: 0 / 0.7891 GB, free: 7.316 MB / 0.6075 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.191e-06/0.2575, allocations: 0 / 0.7891 GB, free: 7.316 MB / 0.6075 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.548e-06/0.2575, allocations: 0 / 0.7891 GB, free: 7.316 MB / 0.6075 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003857/0.2579, allocations: 366.4 kB / 0.7894 GB, free: 6.902 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.383e-06/0.2579, allocations: 0 / 0.7894 GB, free: 6.902 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.266e-05/0.2579, allocations: 7.938 kB / 0.7894 GB, free: 6.895 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.887e-06/0.2579, allocations: 4 kB / 0.7894 GB, free: 6.891 MB / 0.6075 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.568e-06/0.2579, allocations: 0 / 0.7894 GB, free: 6.891 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.302e-06/0.2579, allocations: 0 / 0.7894 GB, free: 6.891 MB / 0.6075 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.162e-06/0.2579, allocations: 4 kB / 0.7894 GB, free: 6.887 MB / 0.6075 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002052/0.2581, allocations: 207.3 kB / 0.7896 GB, free: 6.668 MB / 0.6075 GB Notification: Performance of postOpt removeConstants (simulation): time 5.747e-05/0.2582, allocations: 81.02 kB / 0.7897 GB, free: 6.57 MB / 0.6075 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.974e-05/0.2582, allocations: 4 kB / 0.7897 GB, free: 6.566 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.501e-05/0.2583, allocations: 4 kB / 0.7897 GB, free: 6.562 MB / 0.6075 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.691e-05/0.2583, allocations: 7.984 kB / 0.7897 GB, free: 6.555 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.857e-05/0.2584, allocations: 7.938 kB / 0.7897 GB, free: 6.547 MB / 0.6075 GB Notification: Performance of sorting global known variables: time 5.853e-05/0.2584, allocations: 91.27 kB / 0.7898 GB, free: 6.457 MB / 0.6075 GB Notification: Performance of sort global known variables: time 1.11e-07/0.2584, allocations: 0 / 0.7898 GB, free: 6.457 MB / 0.6075 GB Notification: Performance of remove unused functions: time 0.0002857/0.2587, allocations: 32 kB / 0.7898 GB, free: 6.426 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.0006155/0.2593, allocations: 0.7398 MB / 0.7906 GB, free: 5.66 MB / 0.6075 GB Notification: Performance of simCode: created initialization part: time 0.0004087/0.2598, allocations: 262.6 kB / 0.7908 GB, free: 5.379 MB / 0.6075 GB Notification: Performance of simCode: created event and clocks part: time 2.786e-06/0.2598, allocations: 0 / 0.7908 GB, free: 5.379 MB / 0.6075 GB Notification: Performance of simCode: created simulation system equations: time 6.058e-05/0.2598, allocations: 32 kB / 0.7908 GB, free: 5.348 MB / 0.6075 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003246/0.2602, allocations: 24.23 kB / 0.7909 GB, free: 5.324 MB / 0.6075 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00225/0.2624, allocations: 1.852 MB / 0.7927 GB, free: 3.34 MB / 0.6075 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003369/0.2628, allocations: 0.6924 MB / 0.7934 GB, free: 2.621 MB / 0.6075 GB Notification: Performance of simCode: alias equations: time 3.069e-05/0.2628, allocations: 4.672 kB / 0.7934 GB, free: 2.617 MB / 0.6075 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.246e-05/0.2629, allocations: 23.42 kB / 0.7934 GB, free: 2.594 MB / 0.6075 GB Notification: Performance of SimCode: time 2.1e-07/0.2629, allocations: 0 / 0.7934 GB, free: 2.594 MB / 0.6075 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02375/0.2866, allocations: 2.99 MB / 0.7963 GB, free: 15.7 MB / 0.6231 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.096/8.383, allocations: 7.766 kB / 0.7963 GB, free: 15.7 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)