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.551/1.551, allocations: 252 MB / 267 MB, free: 10.93 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.0009211/0.0009212, allocations: 183.5 kB / 326.6 MB, free: 2.188 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.913/1.913, allocations: 205.4 MB / 0.5777 GB, free: 20.52 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.0008059/0.0008058, allocations: 103.4 kB / 0.6823 GB, free: 13.31 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 0.0004278/0.0004282, allocations: 10.94 kB / 0.7965 GB, free: 135 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2124/0.2129, allocations: 106.3 MB / 0.9003 GB, free: 64.15 MB / 0.6042 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Integers.Validation.OnCounter): time 0.001282/0.2142, allocations: 1.099 MB / 0.9014 GB, free: 63.04 MB / 0.6042 GB Notification: Performance of NFInst.instExpressions: time 0.0003589/0.2146, allocations: 213.5 kB / 0.9016 GB, free: 62.83 MB / 0.6042 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.154e-05/0.2146, allocations: 0 / 0.9016 GB, free: 62.83 MB / 0.6042 GB Notification: Performance of NFTyping.typeComponents: time 1.525e-05/0.2146, allocations: 3.984 kB / 0.9016 GB, free: 62.82 MB / 0.6042 GB Notification: Performance of NFTyping.typeBindings: time 7.438e-05/0.2147, allocations: 11.94 kB / 0.9016 GB, free: 62.81 MB / 0.6042 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001627/0.2149, allocations: 23.91 kB / 0.9016 GB, free: 62.79 MB / 0.6042 GB Notification: Performance of NFFlatten.flatten: time 7.344e-05/0.215, allocations: 59.84 kB / 0.9017 GB, free: 62.73 MB / 0.6042 GB Notification: Performance of NFFlatten.resolveConnections: time 8.023e-05/0.2151, allocations: 11.98 kB / 0.9017 GB, free: 62.72 MB / 0.6042 GB Notification: Performance of NFEvalConstants.evaluate: time 4.442e-05/0.2151, allocations: 15.92 kB / 0.9017 GB, free: 62.7 MB / 0.6042 GB Notification: Performance of NFSimplifyModel.simplify: time 5.373e-05/0.2152, allocations: 27.84 kB / 0.9017 GB, free: 62.68 MB / 0.6042 GB Notification: Performance of NFPackage.collectConstants: time 1.692e-05/0.2152, allocations: 0 / 0.9017 GB, free: 62.68 MB / 0.6042 GB Notification: Performance of NFFlatten.collectFunctions: time 1.4e-05/0.2152, allocations: 4 kB / 0.9017 GB, free: 62.67 MB / 0.6042 GB Notification: Performance of NFScalarize.scalarize: time 1.453e-05/0.2152, allocations: 4 kB / 0.9018 GB, free: 62.67 MB / 0.6042 GB Notification: Performance of NFVerifyModel.verify: time 3.32e-05/0.2153, allocations: 41.64 kB / 0.9018 GB, free: 62.62 MB / 0.6042 GB Notification: Performance of NFConvertDAE.convert: time 6.707e-05/0.2153, allocations: 43.83 kB / 0.9018 GB, free: 62.58 MB / 0.6042 GB Notification: Performance of FrontEnd - DAE generated: time 4.178e-06/0.2154, allocations: 4 kB / 0.9018 GB, free: 62.57 MB / 0.6042 GB Notification: Performance of FrontEnd: time 1.222e-06/0.2154, allocations: 0 / 0.9018 GB, free: 62.57 MB / 0.6042 GB Notification: Performance of Transformations before backend: time 3.898e-06/0.2154, allocations: 0 / 0.9018 GB, free: 62.57 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: 7 * Number of variables: 7 Notification: Performance of Generate backend data structure: time 0.0004554/0.2158, allocations: 367.5 kB / 0.9022 GB, free: 62.17 MB / 0.6042 GB Notification: Performance of prepare preOptimizeDAE: time 3.855e-05/0.2159, allocations: 8.031 kB / 0.9022 GB, free: 62.16 MB / 0.6042 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.233e-05/0.2159, allocations: 34.56 kB / 0.9022 GB, free: 62.12 MB / 0.6042 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.788e-05/0.216, allocations: 15.84 kB / 0.9022 GB, free: 62.1 MB / 0.6042 GB Notification: Performance of preOpt evaluateParameters (simulation): time 9.022e-05/0.2161, allocations: 171 kB / 0.9024 GB, free: 61.89 MB / 0.6042 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.459e-05/0.2161, allocations: 7.938 kB / 0.9024 GB, free: 61.89 MB / 0.6042 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.158e-05/0.2161, allocations: 4 kB / 0.9024 GB, free: 61.88 MB / 0.6042 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001031/0.2162, allocations: 57.61 kB / 0.9025 GB, free: 61.82 MB / 0.6042 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.251e-06/0.2162, allocations: 0 / 0.9025 GB, free: 61.82 MB / 0.6042 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.768e-06/0.2162, allocations: 0 / 0.9025 GB, free: 61.82 MB / 0.6042 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.304e-06/0.2162, allocations: 0 / 0.9025 GB, free: 61.82 MB / 0.6042 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.523e-05/0.2163, allocations: 23.98 kB / 0.9025 GB, free: 61.8 MB / 0.6042 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003308/0.2166, allocations: 288.7 kB / 0.9028 GB, free: 61.46 MB / 0.6042 GB Notification: Performance of preOpt comSubExp (simulation): time 8.358e-05/0.2167, allocations: 50.5 kB / 0.9028 GB, free: 61.41 MB / 0.6042 GB Notification: Performance of preOpt resolveLoops (simulation): time 3e-05/0.2168, allocations: 20.97 kB / 0.9028 GB, free: 61.38 MB / 0.6042 GB Notification: Performance of preOpt evalFunc (simulation): time 8.666e-06/0.2168, allocations: 4 kB / 0.9028 GB, free: 61.38 MB / 0.6042 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001526/0.2169, allocations: 79.38 kB / 0.9029 GB, free: 61.29 MB / 0.6042 GB Notification: Performance of pre-optimization done (n=9): time 1.543e-06/0.217, allocations: 0 / 0.9029 GB, free: 61.29 MB / 0.6042 GB Notification: Performance of matching and sorting (n=9): time 0.0002193/0.2172, allocations: 113.5 kB / 0.903 GB, free: 61.17 MB / 0.6042 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.065e-05/0.2172, allocations: 51.41 kB / 0.9031 GB, free: 61.11 MB / 0.6042 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.921e-05/0.2173, allocations: 113.8 kB / 0.9032 GB, free: 60.99 MB / 0.6042 GB Notification: Performance of collectPreVariables (initialization): time 1.132e-05/0.2173, allocations: 33.7 kB / 0.9032 GB, free: 60.95 MB / 0.6042 GB Notification: Performance of collectInitialEqns (initialization): time 2.983e-05/0.2173, allocations: 91.98 kB / 0.9033 GB, free: 60.86 MB / 0.6042 GB Notification: Performance of collectInitialBindings (initialization): time 1.627e-05/0.2174, allocations: 16.5 kB / 0.9033 GB, free: 60.84 MB / 0.6042 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.07e-06/0.2174, allocations: 11.94 kB / 0.9033 GB, free: 60.83 MB / 0.6042 GB Notification: Performance of setup shared object (initialization): time 4.903e-05/0.2174, allocations: 322.8 kB / 0.9036 GB, free: 60.5 MB / 0.6042 GB Notification: Performance of preBalanceInitialSystem (initialization): time 2.889e-05/0.2175, allocations: 12 kB / 0.9036 GB, free: 60.49 MB / 0.6042 GB Notification: Performance of partitionIndependentBlocks (initialization): time 4.665e-05/0.2175, allocations: 56.16 kB / 0.9037 GB, free: 60.42 MB / 0.6042 GB Notification: Performance of analyzeInitialSystem (initialization): time 3.444e-05/0.2175, allocations: 20 kB / 0.9037 GB, free: 60.4 MB / 0.6042 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.743e-06/0.2176, allocations: 4 kB / 0.9037 GB, free: 60.4 MB / 0.6042 GB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0001118/0.2177, allocations: 101.5 kB / 0.9038 GB, free: 60.29 MB / 0.6042 GB Notification: Performance of prepare postOptimizeDAE: time 1.247e-05/0.2177, allocations: 7.938 kB / 0.9038 GB, free: 60.29 MB / 0.6042 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.882e-06/0.2177, allocations: 8 kB / 0.9038 GB, free: 60.28 MB / 0.6042 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.163e-05/0.2177, allocations: 3.953 kB / 0.9038 GB, free: 60.27 MB / 0.6042 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.927e-05/0.2178, allocations: 11.98 kB / 0.9039 GB, free: 60.26 MB / 0.6042 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.312e-06/0.2178, allocations: 0 / 0.9039 GB, free: 60.26 MB / 0.6042 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.305e-05/0.2179, allocations: 20.08 kB / 0.9039 GB, free: 60.24 MB / 0.6042 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.047e-06/0.2179, allocations: 8 kB / 0.9039 GB, free: 60.23 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: 12 ($PRE.onCounter.y,onCounter.y,$whenCondition4,$whenCondition3,$whenCondition1,booPul.y,$PRE.booPul.pulseStart,booPul.pulseStart,$whenCondition2,reset.y,$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 6.367e-05/0.218, allocations: 119.9 kB / 0.904 GB, free: 60.11 MB / 0.6042 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.309e-05/0.218, allocations: 11.89 kB / 0.904 GB, free: 60.1 MB / 0.6042 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.589e-05/0.218, allocations: 8.375 kB / 0.904 GB, free: 60.09 MB / 0.6042 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.866e-06/0.218, allocations: 4 kB / 0.904 GB, free: 60.09 MB / 0.6042 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.787e-06/0.218, allocations: 3.953 kB / 0.904 GB, free: 60.08 MB / 0.6042 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.516e-06/0.2181, allocations: 3.984 kB / 0.904 GB, free: 60.08 MB / 0.6042 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003596/0.2184, allocations: 386.5 kB / 0.9044 GB, free: 59.64 MB / 0.6042 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.412e-06/0.2184, allocations: 0 / 0.9044 GB, free: 59.64 MB / 0.6042 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.014e-05/0.2184, allocations: 4 kB / 0.9044 GB, free: 59.64 MB / 0.6042 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.335e-06/0.2185, allocations: 7.891 kB / 0.9044 GB, free: 59.63 MB / 0.6042 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.486e-06/0.2185, allocations: 0 / 0.9044 GB, free: 59.63 MB / 0.6042 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.223e-06/0.2185, allocations: 4 kB / 0.9044 GB, free: 59.63 MB / 0.6042 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.51e-07/0.2185, allocations: 0 / 0.9044 GB, free: 59.63 MB / 0.6042 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001194/0.2186, allocations: 183.5 kB / 0.9046 GB, free: 59.43 MB / 0.6042 GB Notification: Performance of postOpt removeConstants (simulation): time 1.999e-05/0.2186, allocations: 81.02 kB / 0.9047 GB, free: 59.34 MB / 0.6042 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.706e-05/0.2187, allocations: 15.94 kB / 0.9047 GB, free: 59.32 MB / 0.6042 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001072/0.2188, allocations: 11.98 kB / 0.9047 GB, free: 59.31 MB / 0.6042 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.711e-05/0.2188, allocations: 11.98 kB / 0.9047 GB, free: 59.3 MB / 0.6042 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.354e-05/0.2188, allocations: 4 kB / 0.9047 GB, free: 59.29 MB / 0.6042 GB Notification: Performance of sorting global known variables: time 3.031e-05/0.2189, allocations: 99.39 kB / 0.9048 GB, free: 59.2 MB / 0.6042 GB Notification: Performance of sort global known variables: time 1.1e-07/0.2189, allocations: 0 / 0.9048 GB, free: 59.2 MB / 0.6042 GB Notification: Performance of remove unused functions: time 0.0002139/0.2191, allocations: 15.94 kB / 0.9048 GB, free: 59.18 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: 9 (booPul.y,reset.y,$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.000298/0.2194, allocations: 0.7301 MB / 0.9055 GB, free: 58.43 MB / 0.6042 GB Notification: Performance of simCode: created initialization part: time 0.0001136/0.2195, allocations: 55.91 kB / 0.9056 GB, free: 58.37 MB / 0.6042 GB Notification: Performance of simCode: created event and clocks part: time 1.673e-06/0.2195, allocations: 0 / 0.9056 GB, free: 58.37 MB / 0.6042 GB Notification: Performance of simCode: created simulation system equations: time 5.006e-05/0.2196, allocations: 31.94 kB / 0.9056 GB, free: 58.34 MB / 0.6042 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002704/0.2199, allocations: 19.94 kB / 0.9056 GB, free: 58.32 MB / 0.6042 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006759/0.2206, allocations: 0.5334 MB / 0.9061 GB, free: 57.72 MB / 0.6042 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001076/0.2207, allocations: 0.6887 MB / 0.9068 GB, free: 57.01 MB / 0.6042 GB Notification: Performance of simCode: alias equations: time 2.991e-05/0.2207, allocations: 8.656 kB / 0.9068 GB, free: 57 MB / 0.6042 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.094e-05/0.2208, allocations: 19.44 kB / 0.9068 GB, free: 56.98 MB / 0.6042 GB Notification: Performance of SimCode: time 2.6e-07/0.2208, allocations: 0 / 0.9068 GB, free: 56.98 MB / 0.6042 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0117/0.2325, allocations: 1.796 MB / 0.9086 GB, free: 55.34 MB / 0.6042 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001475/0.2327, allocations: 202.1 kB / 0.9088 GB, free: 55.11 MB / 0.6042 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.528/1.761, allocations: 4 kB / 0.9088 GB, free: 55.1 MB / 0.6042 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)