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.00113/0.00113, allocations: 108 kB / 15.61 MB, free: 152 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.001597/0.001597, allocations: 196.4 kB / 16.53 MB, free: 6.664 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.299/1.299, allocations: 205.1 MB / 222.4 MB, free: 4.602 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.751/1.751, allocations: 292.3 MB / 0.5489 GB, free: 12.85 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.001437/0.001437, allocations: 70.78 kB / 0.6716 GB, free: 26.23 MB / 0.5294 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2099/0.2114, allocations: 114.5 MB / 0.7835 GB, free: 13.39 MB / 0.6075 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Integers.Validation.OnCounter): time 0.001935/0.2134, allocations: 0.6898 MB / 0.7842 GB, free: 12.69 MB / 0.6075 GB Notification: Performance of NFInst.instExpressions: time 0.001429/0.2148, allocations: 1.195 MB / 0.7853 GB, free: 11.48 MB / 0.6075 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.348e-05/0.2149, allocations: 3.938 kB / 0.7853 GB, free: 11.48 MB / 0.6075 GB Notification: Performance of NFTyping.typeComponents: time 2.485e-05/0.2149, allocations: 3.938 kB / 0.7853 GB, free: 11.47 MB / 0.6075 GB Notification: Performance of NFTyping.typeBindings: time 6.418e-05/0.215, allocations: 15.86 kB / 0.7853 GB, free: 11.46 MB / 0.6075 GB Notification: Performance of NFTyping.typeClassSections: time 0.0006042/0.2156, allocations: 221.6 kB / 0.7856 GB, free: 11.25 MB / 0.6075 GB Notification: Performance of NFFlatten.flatten: time 0.0001995/0.2158, allocations: 183.8 kB / 0.7857 GB, free: 11.07 MB / 0.6075 GB Notification: Performance of NFFlatten.resolveConnections: time 8.505e-05/0.2159, allocations: 15.98 kB / 0.7857 GB, free: 11.05 MB / 0.6075 GB Notification: Performance of NFEvalConstants.evaluate: time 8.778e-05/0.216, allocations: 71.83 kB / 0.7858 GB, free: 10.98 MB / 0.6075 GB Notification: Performance of NFSimplifyModel.simplify: time 8.964e-05/0.2161, allocations: 51.8 kB / 0.7859 GB, free: 10.93 MB / 0.6075 GB Notification: Performance of NFPackage.collectConstants: time 3.086e-05/0.2161, allocations: 16 kB / 0.7859 GB, free: 10.91 MB / 0.6075 GB Notification: Performance of NFFlatten.collectFunctions: time 7.689e-05/0.2162, allocations: 35.98 kB / 0.7859 GB, free: 10.88 MB / 0.6075 GB Notification: Performance of NFScalarize.scalarize: time 2.099e-05/0.2162, allocations: 8 kB / 0.7859 GB, free: 10.87 MB / 0.6075 GB Notification: Performance of NFVerifyModel.verify: time 9.885e-05/0.2163, allocations: 63.81 kB / 0.786 GB, free: 10.81 MB / 0.6075 GB Notification: Performance of NFConvertDAE.convert: time 0.0001907/0.2165, allocations: 159.9 kB / 0.7861 GB, free: 10.65 MB / 0.6075 GB Notification: Performance of FrontEnd - DAE generated: time 3.326e-06/0.2165, allocations: 0 / 0.7861 GB, free: 10.65 MB / 0.6075 GB Notification: Performance of FrontEnd: time 1.453e-06/0.2165, allocations: 0 / 0.7861 GB, free: 10.65 MB / 0.6075 GB Notification: Performance of Transformations before backend: time 8.566e-06/0.2166, allocations: 0 / 0.7861 GB, free: 10.65 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.0004846/0.217, allocations: 438.7 kB / 0.7866 GB, free: 10.16 MB / 0.6075 GB Notification: Performance of prepare preOptimizeDAE: time 3.332e-05/0.2171, allocations: 8.031 kB / 0.7866 GB, free: 10.15 MB / 0.6075 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.91e-05/0.2171, allocations: 30.75 kB / 0.7866 GB, free: 10.11 MB / 0.6075 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.095e-05/0.2172, allocations: 16.84 kB / 0.7866 GB, free: 10.1 MB / 0.6075 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001056/0.2173, allocations: 172.3 kB / 0.7868 GB, free: 9.891 MB / 0.6075 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.029e-05/0.2173, allocations: 12.31 kB / 0.7868 GB, free: 9.879 MB / 0.6075 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.07e-05/0.2173, allocations: 8.375 kB / 0.7868 GB, free: 9.871 MB / 0.6075 GB Notification: Performance of preOpt clockPartitioning (simulation): time 9.956e-05/0.2175, allocations: 54.23 kB / 0.7868 GB, free: 9.812 MB / 0.6075 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.815e-06/0.2175, allocations: 3.938 kB / 0.7868 GB, free: 9.809 MB / 0.6075 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.886e-06/0.2175, allocations: 0 / 0.7868 GB, free: 9.809 MB / 0.6075 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.797e-06/0.2175, allocations: 0 / 0.7868 GB, free: 9.809 MB / 0.6075 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.612e-05/0.2175, allocations: 15.98 kB / 0.7869 GB, free: 9.793 MB / 0.6075 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004695/0.218, allocations: 360.6 kB / 0.7872 GB, free: 9.391 MB / 0.6075 GB Notification: Performance of preOpt comSubExp (simulation): time 7.898e-05/0.2181, allocations: 42.5 kB / 0.7872 GB, free: 9.34 MB / 0.6075 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.896e-05/0.2181, allocations: 13.92 kB / 0.7873 GB, free: 9.324 MB / 0.6075 GB Notification: Performance of preOpt evalFunc (simulation): time 9.227e-06/0.2181, allocations: 4 kB / 0.7873 GB, free: 9.32 MB / 0.6075 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001793/0.2183, allocations: 95.44 kB / 0.7874 GB, free: 9.215 MB / 0.6075 GB Notification: Performance of pre-optimization done (n=9): time 3.596e-06/0.2183, allocations: 0 / 0.7874 GB, free: 9.215 MB / 0.6075 GB Notification: Performance of matching and sorting (n=9): time 0.0002603/0.2186, allocations: 129.5 kB / 0.7875 GB, free: 9.082 MB / 0.6075 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.713e-05/0.2187, allocations: 63.33 kB / 0.7875 GB, free: 9.008 MB / 0.6075 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.486e-05/0.2187, allocations: 117.8 kB / 0.7876 GB, free: 8.883 MB / 0.6075 GB Notification: Performance of collectPreVariables (initialization): time 3.333e-05/0.2188, allocations: 33.7 kB / 0.7877 GB, free: 8.844 MB / 0.6075 GB Notification: Performance of collectInitialEqns (initialization): time 5.753e-05/0.2188, allocations: 92.28 kB / 0.7878 GB, free: 8.746 MB / 0.6075 GB Notification: Performance of collectInitialBindings (initialization): time 1.769e-05/0.2189, allocations: 15.8 kB / 0.7878 GB, free: 8.73 MB / 0.6075 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.031e-05/0.219, allocations: 57.69 kB / 0.7878 GB, free: 8.668 MB / 0.6075 GB Notification: Performance of setup shared object (initialization): time 9.902e-05/0.2191, allocations: 326.8 kB / 0.7882 GB, free: 8.34 MB / 0.6075 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000128/0.2192, allocations: 59.97 kB / 0.7882 GB, free: 8.281 MB / 0.6075 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001488/0.2194, allocations: 102 kB / 0.7883 GB, free: 8.16 MB / 0.6075 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002047/0.2196, allocations: 189.3 kB / 0.7885 GB, free: 7.941 MB / 0.6075 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.174e-06/0.2196, allocations: 0 / 0.7885 GB, free: 7.941 MB / 0.6075 GB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0004214/0.22, allocations: 276.8 kB / 0.7887 GB, free: 7.652 MB / 0.6075 GB Notification: Performance of prepare postOptimizeDAE: time 5.161e-05/0.2201, allocations: 75.48 kB / 0.7888 GB, free: 7.566 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.29e-06/0.2201, allocations: 4.094 kB / 0.7888 GB, free: 7.562 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.507e-05/0.2201, allocations: 7.984 kB / 0.7888 GB, free: 7.555 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.729e-05/0.2201, allocations: 4 kB / 0.7888 GB, free: 7.551 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.219e-06/0.2202, allocations: 3.938 kB / 0.7888 GB, free: 7.547 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003656/0.2205, allocations: 59.86 kB / 0.7889 GB, free: 7.488 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.79e-05/0.2206, allocations: 12 kB / 0.7889 GB, free: 7.477 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 9.635e-05/0.2207, allocations: 132.2 kB / 0.789 GB, free: 7.34 MB / 0.6075 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.961e-05/0.2207, allocations: 7.906 kB / 0.789 GB, free: 7.332 MB / 0.6075 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.585e-05/0.2207, allocations: 12.38 kB / 0.7891 GB, free: 7.32 MB / 0.6075 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.073e-06/0.2207, allocations: 0 / 0.7891 GB, free: 7.32 MB / 0.6075 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.637e-06/0.2207, allocations: 0 / 0.7891 GB, free: 7.32 MB / 0.6075 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.725e-06/0.2207, allocations: 0 / 0.7891 GB, free: 7.32 MB / 0.6075 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002959/0.221, allocations: 362.8 kB / 0.7894 GB, free: 6.91 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.434e-06/0.2211, allocations: 8 kB / 0.7894 GB, free: 6.902 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.034e-05/0.2211, allocations: 3.938 kB / 0.7894 GB, free: 6.898 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.116e-06/0.2211, allocations: 4 kB / 0.7894 GB, free: 6.895 MB / 0.6075 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.969e-06/0.2211, allocations: 4.094 kB / 0.7894 GB, free: 6.891 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.804e-06/0.2211, allocations: 3.938 kB / 0.7894 GB, free: 6.887 MB / 0.6075 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.31e-07/0.2211, allocations: 0 / 0.7894 GB, free: 6.887 MB / 0.6075 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001751/0.2213, allocations: 203.3 kB / 0.7896 GB, free: 6.672 MB / 0.6075 GB Notification: Performance of postOpt removeConstants (simulation): time 3.868e-05/0.2213, allocations: 81.02 kB / 0.7897 GB, free: 6.574 MB / 0.6075 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.955e-05/0.2214, allocations: 8 kB / 0.7897 GB, free: 6.566 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.328e-05/0.2214, allocations: 4 kB / 0.7897 GB, free: 6.562 MB / 0.6075 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.369e-05/0.2215, allocations: 3.984 kB / 0.7897 GB, free: 6.559 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.437e-05/0.2215, allocations: 11.94 kB / 0.7897 GB, free: 6.547 MB / 0.6075 GB Notification: Performance of sorting global known variables: time 4.466e-05/0.2215, allocations: 91.27 kB / 0.7898 GB, free: 6.457 MB / 0.6075 GB Notification: Performance of sort global known variables: time 1.1e-07/0.2215, allocations: 0 / 0.7898 GB, free: 6.457 MB / 0.6075 GB Notification: Performance of remove unused functions: time 0.0002732/0.2218, 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.0004774/0.2223, allocations: 0.7378 MB / 0.7906 GB, free: 5.664 MB / 0.6075 GB Notification: Performance of simCode: created initialization part: time 0.0003703/0.2227, allocations: 262.6 kB / 0.7908 GB, free: 5.383 MB / 0.6075 GB Notification: Performance of simCode: created event and clocks part: time 4.318e-06/0.2227, allocations: 0 / 0.7908 GB, free: 5.383 MB / 0.6075 GB Notification: Performance of simCode: created simulation system equations: time 6.077e-05/0.2228, allocations: 35.88 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.0003115/0.2231, allocations: 28.55 kB / 0.7909 GB, free: 5.32 MB / 0.6075 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002077/0.2252, allocations: 1.848 MB / 0.7927 GB, free: 3.34 MB / 0.6075 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002659/0.2254, allocations: 0.6885 MB / 0.7933 GB, free: 2.625 MB / 0.6075 GB Notification: Performance of simCode: alias equations: time 3.221e-05/0.2255, allocations: 12.67 kB / 0.7934 GB, free: 2.613 MB / 0.6075 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.453e-05/0.2255, allocations: 23.42 kB / 0.7934 GB, free: 2.59 MB / 0.6075 GB Notification: Performance of SimCode: time 2.3e-07/0.2255, allocations: 0 / 0.7934 GB, free: 2.59 MB / 0.6075 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01937/0.2449, allocations: 2.982 MB / 0.7963 GB, free: 15.71 MB / 0.6231 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.406/7.651, allocations: 13.11 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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_Buildings_8_Buildings_Controls_OBC_CDL_Integers_Validation_OnCounter_fmu --startTime=0 --stopTime=2 --timeout=50 --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)