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.001002/0.001002, allocations: 86.33 kB / 15.06 MB, free: 1.09 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001189/0.001188, allocations: 168.7 kB / 15.95 MB, free: 204 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.432/1.432, allocations: 205.4 MB / 222.1 MB, free: 5.645 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.633/1.633, allocations: 292.7 MB / 0.5499 GB, free: 14.53 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.0007456/0.0007456, allocations: 19.44 kB / 0.6738 GB, free: 26.23 MB / 0.5294 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2949/0.2956, allocations: 116.3 MB / 0.7874 GB, free: 11.82 MB / 0.6075 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Integers.Validation.OnCounter): time 0.0009235/0.2966, allocations: 413.6 kB / 0.7878 GB, free: 11.42 MB / 0.6075 GB Notification: Performance of NFInst.instExpressions: time 0.001558/0.2982, allocations: 1.181 MB / 0.789 GB, free: 10.23 MB / 0.6075 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.03e-05/0.2982, allocations: 0 / 0.789 GB, free: 10.23 MB / 0.6075 GB Notification: Performance of NFTyping.typeComponents: time 1.867e-05/0.2983, allocations: 0 / 0.789 GB, free: 10.23 MB / 0.6075 GB Notification: Performance of NFTyping.typeBindings: time 6.799e-05/0.2983, allocations: 11.91 kB / 0.789 GB, free: 10.21 MB / 0.6075 GB Notification: Performance of NFTyping.typeClassSections: time 0.000613/0.299, allocations: 194.3 kB / 0.7892 GB, free: 10.03 MB / 0.6075 GB Notification: Performance of NFFlatten.flatten: time 0.0001658/0.2991, allocations: 135.7 kB / 0.7893 GB, free: 9.898 MB / 0.6075 GB Notification: Performance of NFFlatten.resolveConnections: time 9.582e-05/0.2992, allocations: 11.98 kB / 0.7893 GB, free: 9.887 MB / 0.6075 GB Notification: Performance of NFEvalConstants.evaluate: time 9.569e-05/0.2993, allocations: 59.88 kB / 0.7894 GB, free: 9.828 MB / 0.6075 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001063/0.2995, allocations: 51.86 kB / 0.7894 GB, free: 9.777 MB / 0.6075 GB Notification: Performance of NFPackage.collectConstants: time 2.914e-05/0.2995, allocations: 8 kB / 0.7894 GB, free: 9.77 MB / 0.6075 GB Notification: Performance of NFFlatten.collectFunctions: time 7.347e-05/0.2996, allocations: 31.92 kB / 0.7894 GB, free: 9.738 MB / 0.6075 GB Notification: Performance of NFScalarize.scalarize: time 2.065e-05/0.2996, allocations: 7.938 kB / 0.7895 GB, free: 9.73 MB / 0.6075 GB Notification: Performance of NFVerifyModel.verify: time 5.469e-05/0.2997, allocations: 41.7 kB / 0.7895 GB, free: 9.684 MB / 0.6075 GB Notification: Performance of NFConvertDAE.convert: time 0.0001474/0.2998, allocations: 112 kB / 0.7896 GB, free: 9.574 MB / 0.6075 GB Notification: Performance of FrontEnd - DAE generated: time 6.132e-06/0.2998, allocations: 0 / 0.7896 GB, free: 9.574 MB / 0.6075 GB Notification: Performance of FrontEnd: time 1.694e-06/0.2998, allocations: 0 / 0.7896 GB, free: 9.574 MB / 0.6075 GB Notification: Performance of Transformations before backend: time 4.128e-06/0.2998, allocations: 0 / 0.7896 GB, free: 9.574 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.0004845/0.3003, allocations: 410.6 kB / 0.79 GB, free: 9.113 MB / 0.6075 GB Notification: Performance of prepare preOptimizeDAE: time 4.4e-05/0.3004, allocations: 12.03 kB / 0.79 GB, free: 9.102 MB / 0.6075 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.294e-05/0.3004, allocations: 34.56 kB / 0.79 GB, free: 9.059 MB / 0.6075 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.852e-05/0.3005, allocations: 8 kB / 0.79 GB, free: 9.051 MB / 0.6075 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001403/0.3006, allocations: 174.9 kB / 0.7902 GB, free: 8.84 MB / 0.6075 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.114e-05/0.3007, allocations: 16 kB / 0.7902 GB, free: 8.824 MB / 0.6075 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.292e-05/0.3007, allocations: 8 kB / 0.7902 GB, free: 8.816 MB / 0.6075 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001534/0.3009, allocations: 49.67 kB / 0.7903 GB, free: 8.762 MB / 0.6075 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.708e-06/0.3009, allocations: 4 kB / 0.7903 GB, free: 8.758 MB / 0.6075 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.149e-05/0.3009, allocations: 0 / 0.7903 GB, free: 8.758 MB / 0.6075 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.45e-06/0.3009, allocations: 0 / 0.7903 GB, free: 8.758 MB / 0.6075 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.051e-05/0.301, allocations: 15.98 kB / 0.7903 GB, free: 8.742 MB / 0.6075 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005826/0.3016, allocations: 360.6 kB / 0.7906 GB, free: 8.34 MB / 0.6075 GB Notification: Performance of preOpt comSubExp (simulation): time 8.593e-05/0.3017, allocations: 34.56 kB / 0.7907 GB, free: 8.297 MB / 0.6075 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.446e-05/0.3017, allocations: 20.84 kB / 0.7907 GB, free: 8.273 MB / 0.6075 GB Notification: Performance of preOpt evalFunc (simulation): time 9.978e-06/0.3017, allocations: 0 / 0.7907 GB, free: 8.273 MB / 0.6075 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002247/0.3019, allocations: 103.3 kB / 0.7908 GB, free: 8.16 MB / 0.6075 GB Notification: Performance of pre-optimization done (n=9): time 1.143e-06/0.302, allocations: 3.938 kB / 0.7908 GB, free: 8.156 MB / 0.6075 GB Notification: Performance of matching and sorting (n=9): time 0.000307/0.3023, allocations: 121.6 kB / 0.7909 GB, free: 8.031 MB / 0.6075 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.048e-05/0.3023, allocations: 59.36 kB / 0.791 GB, free: 7.961 MB / 0.6075 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001141/0.3024, allocations: 125.7 kB / 0.7911 GB, free: 7.828 MB / 0.6075 GB Notification: Performance of collectPreVariables (initialization): time 4.06e-05/0.3025, allocations: 37.64 kB / 0.7911 GB, free: 7.785 MB / 0.6075 GB Notification: Performance of collectInitialEqns (initialization): time 8.031e-05/0.3026, allocations: 92.38 kB / 0.7912 GB, free: 7.688 MB / 0.6075 GB Notification: Performance of collectInitialBindings (initialization): time 2.228e-05/0.3026, allocations: 11.8 kB / 0.7912 GB, free: 7.676 MB / 0.6075 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.06e-05/0.3026, allocations: 8 kB / 0.7912 GB, free: 7.668 MB / 0.6075 GB Notification: Performance of setup shared object (initialization): time 0.0001502/0.3028, allocations: 322.8 kB / 0.7915 GB, free: 7.344 MB / 0.6075 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001361/0.3029, allocations: 63.95 kB / 0.7916 GB, free: 7.281 MB / 0.6075 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001622/0.3031, allocations: 102 kB / 0.7917 GB, free: 7.16 MB / 0.6075 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001652/0.3033, allocations: 127.3 kB / 0.7918 GB, free: 7.023 MB / 0.6075 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.124e-06/0.3033, allocations: 0 / 0.7918 GB, free: 7.023 MB / 0.6075 GB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0004267/0.3037, allocations: 276.8 kB / 0.7921 GB, free: 6.734 MB / 0.6075 GB Notification: Performance of prepare postOptimizeDAE: time 6.304e-05/0.3038, allocations: 67.39 kB / 0.7922 GB, free: 6.656 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.129e-06/0.3038, allocations: 0 / 0.7922 GB, free: 6.656 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.88e-05/0.3038, allocations: 4 kB / 0.7922 GB, free: 6.652 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.537e-05/0.3039, allocations: 4 kB / 0.7922 GB, free: 6.648 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.298e-05/0.3039, allocations: 20.03 kB / 0.7922 GB, free: 6.629 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000355/0.3043, allocations: 79.78 kB / 0.7923 GB, free: 6.551 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.383e-05/0.3043, allocations: 15.98 kB / 0.7923 GB, free: 6.535 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 ($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.0001146/0.3044, allocations: 120.3 kB / 0.7924 GB, free: 6.41 MB / 0.6075 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.443e-05/0.3045, allocations: 7.906 kB / 0.7924 GB, free: 6.402 MB / 0.6075 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.631e-05/0.3045, allocations: 12.38 kB / 0.7924 GB, free: 6.391 MB / 0.6075 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.054e-06/0.3045, allocations: 0 / 0.7924 GB, free: 6.391 MB / 0.6075 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.594e-06/0.3045, allocations: 4 kB / 0.7924 GB, free: 6.387 MB / 0.6075 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.115e-06/0.3045, allocations: 7.938 kB / 0.7924 GB, free: 6.379 MB / 0.6075 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003378/0.3049, allocations: 358.9 kB / 0.7928 GB, free: 5.973 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.433e-06/0.3049, allocations: 0 / 0.7928 GB, free: 5.973 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.119e-05/0.3049, allocations: 3.938 kB / 0.7928 GB, free: 5.969 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.447e-06/0.3049, allocations: 4 kB / 0.7928 GB, free: 5.965 MB / 0.6075 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.151e-05/0.3049, allocations: 4.078 kB / 0.7928 GB, free: 5.961 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.583e-06/0.3049, allocations: 3.938 kB / 0.7928 GB, free: 5.957 MB / 0.6075 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.017e-06/0.3049, allocations: 3.953 kB / 0.7928 GB, free: 5.953 MB / 0.6075 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001861/0.3051, allocations: 199.4 kB / 0.793 GB, free: 5.742 MB / 0.6075 GB Notification: Performance of postOpt removeConstants (simulation): time 5.142e-05/0.3052, allocations: 81.11 kB / 0.793 GB, free: 5.645 MB / 0.6075 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.204e-05/0.3052, allocations: 4 kB / 0.793 GB, free: 5.641 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.34e-05/0.3053, allocations: 7.922 kB / 0.7931 GB, free: 5.633 MB / 0.6075 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.664e-05/0.3053, allocations: 7.953 kB / 0.7931 GB, free: 5.625 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.863e-05/0.3054, allocations: 7.984 kB / 0.7931 GB, free: 5.617 MB / 0.6075 GB Notification: Performance of sorting global known variables: time 5.317e-05/0.3054, allocations: 87.28 kB / 0.7932 GB, free: 5.531 MB / 0.6075 GB Notification: Performance of sort global known variables: time 1.11e-07/0.3054, allocations: 0 / 0.7932 GB, free: 5.531 MB / 0.6075 GB Notification: Performance of remove unused functions: time 0.0002738/0.3057, allocations: 35.98 kB / 0.7932 GB, free: 5.496 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 (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.0004796/0.3062, allocations: 0.7397 MB / 0.7939 GB, free: 4.73 MB / 0.6075 GB Notification: Performance of simCode: created initialization part: time 0.0004049/0.3066, allocations: 254.6 kB / 0.7942 GB, free: 4.457 MB / 0.6075 GB Notification: Performance of simCode: created event and clocks part: time 2.424e-06/0.3066, allocations: 0 / 0.7942 GB, free: 4.457 MB / 0.6075 GB Notification: Performance of simCode: created simulation system equations: time 5.944e-05/0.3067, allocations: 32.3 kB / 0.7942 GB, free: 4.426 MB / 0.6075 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003047/0.307, allocations: 25.92 kB / 0.7942 GB, free: 4.406 MB / 0.6075 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00116/0.3082, allocations: 0.7477 MB / 0.7949 GB, free: 3.586 MB / 0.6075 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000244/0.3084, allocations: 0.6926 MB / 0.7956 GB, free: 2.867 MB / 0.6075 GB Notification: Performance of simCode: alias equations: time 2.705e-05/0.3085, allocations: 4.672 kB / 0.7956 GB, free: 2.863 MB / 0.6075 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.108e-05/0.3085, allocations: 19.44 kB / 0.7956 GB, free: 2.844 MB / 0.6075 GB Notification: Performance of SimCode: time 1.443e-06/0.3085, allocations: 0 / 0.7956 GB, free: 2.844 MB / 0.6075 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0132/0.3217, allocations: 2.704 MB / 0.7983 GB, free: 304 kB / 0.6075 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001806/0.3219, allocations: 196.3 kB / 0.7985 GB, free: 52 kB / 0.6075 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.724/2.046, allocations: 3.938 kB / 0.7985 GB, free: 48 kB / 0.6075 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/linux/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) Environment - environmentSimulation: