Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_8.0.0_Buildings.Controls.OBC.CDL.Integers.Validation.OnCounter.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.0/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.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.0/package.mo) Running command: "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Integers.Validation.OnCounter,fileNamePrefix="Buildings_8_0_0_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_0_0_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 8.0.0/package.mo): time 2.725/2.725, allocations: 287.3 MB / 302.3 MB, free: 8.344 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.00162/0.00162, allocations: 174.2 kB / 370.8 MB, free: 10.86 MB / 298.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.303/2.303, allocations: 205.4 MB / 0.6295 GB, free: 10.61 MB / 458.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001179/0.001179, allocations: 88.62 kB / 0.7428 GB, free: 6.621 MB / 0.5573 GB Notification: Performance of FrontEnd - loaded program: time 0.0005055/0.0005057, allocations: 13.3 kB / 0.8657 GB, free: 140.9 MB / 0.6198 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2257/0.2263, allocations: 115.3 MB / 0.9783 GB, free: 28.28 MB / 0.6198 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Integers.Validation.OnCounter): time 0.0009439/0.2273, allocations: 405.7 kB / 0.9787 GB, free: 27.88 MB / 0.6198 GB Notification: Performance of NFInst.instExpressions: time 0.001659/0.229, allocations: 1.138 MB / 0.9798 GB, free: 26.73 MB / 0.6198 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.508e-05/0.229, allocations: 0 / 0.9798 GB, free: 26.73 MB / 0.6198 GB Notification: Performance of NFTyping.typeComponents: time 2.202e-05/0.2291, allocations: 3.938 kB / 0.9798 GB, free: 26.73 MB / 0.6198 GB Notification: Performance of NFTyping.typeBindings: time 9.1e-05/0.2292, allocations: 15.98 kB / 0.9798 GB, free: 26.71 MB / 0.6198 GB Notification: Performance of NFTyping.typeClassSections: time 0.0008661/0.2301, allocations: 201.1 kB / 0.98 GB, free: 26.52 MB / 0.6198 GB Notification: Performance of NFFlatten.flatten: time 0.000149/0.2302, allocations: 79.91 kB / 0.9801 GB, free: 26.44 MB / 0.6198 GB Notification: Performance of NFFlatten.resolveConnections: time 9.814e-05/0.2303, allocations: 7.984 kB / 0.9801 GB, free: 26.43 MB / 0.6198 GB Notification: Performance of NFEvalConstants.evaluate: time 0.000104/0.2304, allocations: 63.88 kB / 0.9802 GB, free: 26.37 MB / 0.6198 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001124/0.2306, allocations: 47.86 kB / 0.9802 GB, free: 26.32 MB / 0.6198 GB Notification: Performance of NFPackage.collectConstants: time 3.967e-05/0.2306, allocations: 16 kB / 0.9802 GB, free: 26.31 MB / 0.6198 GB Notification: Performance of NFFlatten.collectFunctions: time 8.656e-05/0.2307, allocations: 15.98 kB / 0.9802 GB, free: 26.29 MB / 0.6198 GB Notification: Performance of NFScalarize.scalarize: time 2.551e-05/0.2308, allocations: 11.94 kB / 0.9802 GB, free: 26.28 MB / 0.6198 GB Notification: Performance of NFVerifyModel.verify: time 5.758e-05/0.2308, allocations: 41.64 kB / 0.9803 GB, free: 26.23 MB / 0.6198 GB Notification: Performance of NFConvertDAE.convert: time 0.00018/0.231, allocations: 112 kB / 0.9804 GB, free: 26.12 MB / 0.6198 GB Notification: Performance of FrontEnd - DAE generated: time 2.955e-06/0.231, allocations: 0 / 0.9804 GB, free: 26.12 MB / 0.6198 GB Notification: Performance of FrontEnd: time 1.894e-06/0.231, allocations: 0 / 0.9804 GB, free: 26.12 MB / 0.6198 GB Notification: Performance of Transformations before backend: time 5.59e-06/0.2311, allocations: 0 / 0.9804 GB, free: 26.12 MB / 0.6198 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.0004784/0.2315, allocations: 414.6 kB / 0.9808 GB, free: 25.66 MB / 0.6198 GB Notification: Performance of prepare preOptimizeDAE: time 4.716e-05/0.2316, allocations: 12.02 kB / 0.9808 GB, free: 25.65 MB / 0.6198 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.127e-05/0.2317, allocations: 38.56 kB / 0.9808 GB, free: 25.6 MB / 0.6198 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.125e-05/0.2317, allocations: 11.95 kB / 0.9808 GB, free: 25.59 MB / 0.6198 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001001/0.2318, allocations: 171 kB / 0.981 GB, free: 25.38 MB / 0.6198 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.998e-05/0.2319, allocations: 4 kB / 0.981 GB, free: 25.38 MB / 0.6198 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.464e-05/0.2319, allocations: 11.94 kB / 0.981 GB, free: 25.37 MB / 0.6198 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001362/0.2321, allocations: 61.61 kB / 0.9811 GB, free: 25.3 MB / 0.6198 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.508e-06/0.2321, allocations: 0 / 0.9811 GB, free: 25.3 MB / 0.6198 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.237e-05/0.2321, allocations: 0 / 0.9811 GB, free: 25.3 MB / 0.6198 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.621e-06/0.2321, allocations: 0 / 0.9811 GB, free: 25.3 MB / 0.6198 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.276e-05/0.2322, allocations: 15.98 kB / 0.9811 GB, free: 25.29 MB / 0.6198 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005636/0.2328, allocations: 364.7 kB / 0.9814 GB, free: 24.88 MB / 0.6198 GB Notification: Performance of preOpt comSubExp (simulation): time 9.953e-05/0.2329, allocations: 38.5 kB / 0.9815 GB, free: 24.83 MB / 0.6198 GB Notification: Performance of preOpt evalFunc (simulation): time 6.212e-06/0.2329, allocations: 0 / 0.9815 GB, free: 24.83 MB / 0.6198 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002128/0.2331, allocations: 95.36 kB / 0.9816 GB, free: 24.73 MB / 0.6198 GB Notification: Performance of pre-optimization done (n=9): time 3.206e-06/0.2331, allocations: 3.984 kB / 0.9816 GB, free: 24.72 MB / 0.6198 GB Notification: Performance of matching and sorting (n=9): time 0.0003556/0.2335, allocations: 125.5 kB / 0.9817 GB, free: 24.59 MB / 0.6198 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.959e-05/0.2336, allocations: 51.41 kB / 0.9817 GB, free: 24.53 MB / 0.6198 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001067/0.2337, allocations: 129.7 kB / 0.9819 GB, free: 24.39 MB / 0.6198 GB Notification: Performance of collectPreVariables (initialization): time 4.005e-05/0.2337, allocations: 33.7 kB / 0.9819 GB, free: 24.36 MB / 0.6198 GB Notification: Performance of collectInitialEqns (initialization): time 6.352e-05/0.2338, allocations: 88.38 kB / 0.982 GB, free: 24.26 MB / 0.6198 GB Notification: Performance of collectInitialBindings (initialization): time 2.154e-05/0.2338, allocations: 19.8 kB / 0.982 GB, free: 24.24 MB / 0.6198 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.933e-05/0.2339, allocations: 4.375 kB / 0.982 GB, free: 24.24 MB / 0.6198 GB Notification: Performance of setup shared object (initialization): time 5.956e-05/0.2339, allocations: 322.8 kB / 0.9823 GB, free: 23.91 MB / 0.6198 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002023/0.2342, allocations: 63.97 kB / 0.9824 GB, free: 23.85 MB / 0.6198 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002242/0.2344, allocations: 106 kB / 0.9825 GB, free: 23.73 MB / 0.6198 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002138/0.2346, allocations: 123.3 kB / 0.9826 GB, free: 23.59 MB / 0.6198 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.975e-06/0.2346, allocations: 0 / 0.9826 GB, free: 23.59 MB / 0.6198 GB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0006309/0.2353, allocations: 284.7 kB / 0.9829 GB, free: 23.3 MB / 0.6198 GB Notification: Performance of prepare postOptimizeDAE: time 5.486e-05/0.2353, allocations: 67.39 kB / 0.9829 GB, free: 23.22 MB / 0.6198 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.682e-06/0.2354, allocations: 4 kB / 0.9829 GB, free: 23.21 MB / 0.6198 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.889e-05/0.2354, allocations: 4 kB / 0.9829 GB, free: 23.21 MB / 0.6198 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.474e-05/0.2355, allocations: 4 kB / 0.9829 GB, free: 23.21 MB / 0.6198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.677e-06/0.2355, allocations: 4.109 kB / 0.9829 GB, free: 23.2 MB / 0.6198 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006434/0.2361, allocations: 91.77 kB / 0.983 GB, free: 23.11 MB / 0.6198 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.91e-05/0.2362, allocations: 12 kB / 0.983 GB, free: 23.1 MB / 0.6198 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 ($PRE.onCounter.y,onCounter.y,$whenCondition5,$whenCondition6,$whenCondition3,$whenCondition4,$whenCondition2,$PRE.reset.y,reset.y,$whenCondition1,$PRE.booPul.y,booPul.y) * 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001354/0.2363, allocations: 135.4 kB / 0.9832 GB, free: 22.96 MB / 0.6198 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.424e-05/0.2364, allocations: 7.906 kB / 0.9832 GB, free: 22.95 MB / 0.6198 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.41e-05/0.2364, allocations: 4.375 kB / 0.9832 GB, free: 22.95 MB / 0.6198 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.388e-06/0.2364, allocations: 0 / 0.9832 GB, free: 22.95 MB / 0.6198 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.342e-06/0.2365, allocations: 4 kB / 0.9832 GB, free: 22.95 MB / 0.6198 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.019e-06/0.2365, allocations: 3.953 kB / 0.9832 GB, free: 22.95 MB / 0.6198 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003932/0.2369, allocations: 358.5 kB / 0.9835 GB, free: 22.54 MB / 0.6198 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.328e-06/0.2369, allocations: 4 kB / 0.9835 GB, free: 22.54 MB / 0.6198 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.556e-05/0.2369, allocations: 0 / 0.9835 GB, free: 22.54 MB / 0.6198 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.578e-06/0.2369, allocations: 0 / 0.9835 GB, free: 22.54 MB / 0.6198 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.295e-05/0.2369, allocations: 0 / 0.9835 GB, free: 22.54 MB / 0.6198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.84e-06/0.237, allocations: 7.953 kB / 0.9835 GB, free: 22.53 MB / 0.6198 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.765e-06/0.237, allocations: 0 / 0.9835 GB, free: 22.53 MB / 0.6198 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000227/0.2372, allocations: 203.4 kB / 0.9837 GB, free: 22.31 MB / 0.6198 GB Notification: Performance of postOpt removeConstants (simulation): time 2.761e-05/0.2373, allocations: 77.11 kB / 0.9838 GB, free: 22.22 MB / 0.6198 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.534e-05/0.2373, allocations: 4 kB / 0.9838 GB, free: 22.21 MB / 0.6198 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.804e-05/0.2374, allocations: 0 / 0.9838 GB, free: 22.21 MB / 0.6198 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.918e-05/0.2374, allocations: 19.88 kB / 0.9838 GB, free: 22.2 MB / 0.6198 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.85e-05/0.2374, allocations: 4.188 kB / 0.9838 GB, free: 22.19 MB / 0.6198 GB Notification: Performance of sorting global known variables: time 4.761e-05/0.2375, allocations: 95.75 kB / 0.9839 GB, free: 22.1 MB / 0.6198 GB Notification: Performance of sort global known variables: time 3.61e-07/0.2375, allocations: 3.938 kB / 0.9839 GB, free: 22.09 MB / 0.6198 GB Notification: Performance of remove unused functions: time 0.0004036/0.2379, allocations: 32 kB / 0.984 GB, free: 22.06 MB / 0.6198 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 (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.0004976/0.2384, allocations: 0.7335 MB / 0.9847 GB, free: 21.3 MB / 0.6198 GB Notification: Performance of simCode: created initialization part: time 0.0004677/0.2389, allocations: 250.7 kB / 0.9849 GB, free: 21.03 MB / 0.6198 GB Notification: Performance of simCode: created event and clocks part: time 2.695e-06/0.2389, allocations: 0 / 0.9849 GB, free: 21.03 MB / 0.6198 GB Notification: Performance of simCode: created simulation system equations: time 8.269e-05/0.239, allocations: 40.22 kB / 0.985 GB, free: 20.99 MB / 0.6198 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000313/0.2394, allocations: 25.83 kB / 0.985 GB, free: 20.97 MB / 0.6198 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008581/0.2402, allocations: 1.325 MB / 0.9863 GB, free: 19.57 MB / 0.6198 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001491/0.2404, allocations: 0.6926 MB / 0.987 GB, free: 18.86 MB / 0.6198 GB Notification: Performance of simCode: alias equations: time 4.4e-05/0.2405, allocations: 4.672 kB / 0.987 GB, free: 18.85 MB / 0.6198 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.211e-05/0.2405, allocations: 23.42 kB / 0.987 GB, free: 18.83 MB / 0.6198 GB Notification: Performance of SimCode: time 1.603e-06/0.2405, allocations: 0 / 0.987 GB, free: 18.83 MB / 0.6198 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02477/0.2653, allocations: 2.672 MB / 0.9896 GB, free: 16.31 MB / 0.6198 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002668/0.2656, allocations: 189.4 kB / 0.9898 GB, free: 16.07 MB / 0.6198 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.471/2.736, allocations: 0 / 0.9898 GB, free: 16.07 MB / 0.6198 GB (rm -f Buildings_8.0.0_Buildings.Controls.OBC.CDL.Integers.Validation.OnCounter.pipe ; mkfifo Buildings_8.0.0_Buildings.Controls.OBC.CDL.Integers.Validation.OnCounter.pipe ; head -c 1048576 < Buildings_8.0.0_Buildings.Controls.OBC.CDL.Integers.Validation.OnCounter.pipe >> ../files/Buildings_8.0.0_Buildings.Controls.OBC.CDL.Integers.Validation.OnCounter.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_Buildings_8_0_0_Buildings_Controls_OBC_CDL_Integers_Validation_OnCounter_fmu --startTime=0 --stopTime=2 --timeout=50 --tolerance=1e-06 Buildings_8_0_0_Buildings_Controls_OBC_CDL_Integers_Validation_OnCounter.fmu > Buildings_8.0.0_Buildings.Controls.OBC.CDL.Integers.Validation.OnCounter.pipe 2>&1)