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.497/1.497, allocations: 251.9 MB / 266.9 MB, free: 11.02 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.001266/0.001266, allocations: 184.7 kB / 326.5 MB, free: 2.234 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.776/1.776, allocations: 205.4 MB / 0.5775 GB, free: 20.28 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.001081/0.001081, allocations: 90.36 kB / 0.6821 GB, free: 12.88 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 0.0003965/0.0003966, allocations: 9.438 kB / 0.7963 GB, free: 135.1 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3003/0.3007, allocations: 106.3 MB / 0.9002 GB, free: 63.79 MB / 0.6042 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Integers.Validation.OnCounter): time 0.001796/0.3026, allocations: 1.095 MB / 0.9012 GB, free: 62.68 MB / 0.6042 GB Notification: Performance of NFInst.instExpressions: time 0.0005389/0.3032, allocations: 222.4 kB / 0.9014 GB, free: 62.46 MB / 0.6042 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.988e-05/0.3033, allocations: 0 / 0.9014 GB, free: 62.46 MB / 0.6042 GB Notification: Performance of NFTyping.typeComponents: time 2.196e-05/0.3033, allocations: 0 / 0.9014 GB, free: 62.46 MB / 0.6042 GB Notification: Performance of NFTyping.typeBindings: time 0.0001031/0.3034, allocations: 15.91 kB / 0.9015 GB, free: 62.44 MB / 0.6042 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002021/0.3036, allocations: 15.92 kB / 0.9015 GB, free: 62.43 MB / 0.6042 GB Notification: Performance of NFFlatten.flatten: time 9.815e-05/0.3037, allocations: 39.95 kB / 0.9015 GB, free: 62.39 MB / 0.6042 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001193/0.3039, allocations: 8 kB / 0.9015 GB, free: 62.38 MB / 0.6042 GB Notification: Performance of NFEvalConstants.evaluate: time 7.647e-05/0.3039, allocations: 23.91 kB / 0.9015 GB, free: 62.36 MB / 0.6042 GB Notification: Performance of NFSimplifyModel.simplify: time 8.097e-05/0.304, allocations: 23.91 kB / 0.9016 GB, free: 62.33 MB / 0.6042 GB Notification: Performance of NFPackage.collectConstants: time 2.313e-05/0.3041, allocations: 0 / 0.9016 GB, free: 62.33 MB / 0.6042 GB Notification: Performance of NFFlatten.collectFunctions: time 1.575e-05/0.3041, allocations: 4 kB / 0.9016 GB, free: 62.33 MB / 0.6042 GB Notification: Performance of NFScalarize.scalarize: time 2.028e-05/0.3041, allocations: 7.938 kB / 0.9016 GB, free: 62.32 MB / 0.6042 GB Notification: Performance of NFVerifyModel.verify: time 4.291e-05/0.3042, allocations: 37.64 kB / 0.9016 GB, free: 62.28 MB / 0.6042 GB Notification: Performance of NFConvertDAE.convert: time 8.67e-05/0.3042, allocations: 39.89 kB / 0.9016 GB, free: 62.24 MB / 0.6042 GB Notification: Performance of FrontEnd - DAE generated: time 2.935e-06/0.3043, allocations: 0 / 0.9016 GB, free: 62.24 MB / 0.6042 GB Notification: Performance of FrontEnd: time 1.693e-06/0.3043, allocations: 0 / 0.9016 GB, free: 62.24 MB / 0.6042 GB Notification: Performance of Transformations before backend: time 6.462e-06/0.3043, allocations: 0 / 0.9016 GB, free: 62.24 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.000604/0.3049, allocations: 376.7 kB / 0.902 GB, free: 61.82 MB / 0.6042 GB Notification: Performance of prepare preOptimizeDAE: time 5.279e-05/0.3049, allocations: 8.031 kB / 0.902 GB, free: 61.82 MB / 0.6042 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.918e-05/0.305, allocations: 30.56 kB / 0.902 GB, free: 61.78 MB / 0.6042 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.953e-05/0.305, allocations: 15.84 kB / 0.9021 GB, free: 61.76 MB / 0.6042 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001358/0.3052, allocations: 171 kB / 0.9022 GB, free: 61.55 MB / 0.6042 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.175e-05/0.3052, allocations: 12 kB / 0.9022 GB, free: 61.54 MB / 0.6042 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.706e-05/0.3052, allocations: 4 kB / 0.9022 GB, free: 61.54 MB / 0.6042 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001318/0.3054, allocations: 49.67 kB / 0.9023 GB, free: 61.48 MB / 0.6042 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.908e-06/0.3054, allocations: 3.938 kB / 0.9023 GB, free: 61.48 MB / 0.6042 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.34e-05/0.3054, allocations: 4 kB / 0.9023 GB, free: 61.48 MB / 0.6042 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.983e-06/0.3054, allocations: 3.984 kB / 0.9023 GB, free: 61.47 MB / 0.6042 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.485e-05/0.3055, allocations: 19.98 kB / 0.9023 GB, free: 61.45 MB / 0.6042 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000489/0.306, allocations: 292.7 kB / 0.9026 GB, free: 61.12 MB / 0.6042 GB Notification: Performance of preOpt comSubExp (simulation): time 9.687e-05/0.3061, allocations: 42.56 kB / 0.9026 GB, free: 61.07 MB / 0.6042 GB Notification: Performance of preOpt evalFunc (simulation): time 1.523e-05/0.3061, allocations: 4 kB / 0.9026 GB, free: 61.06 MB / 0.6042 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001855/0.3063, allocations: 79.56 kB / 0.9027 GB, free: 60.97 MB / 0.6042 GB Notification: Performance of pre-optimization done (n=9): time 3.246e-06/0.3063, allocations: 0 / 0.9027 GB, free: 60.97 MB / 0.6042 GB Notification: Performance of matching and sorting (n=9): time 0.0002559/0.3066, allocations: 113.5 kB / 0.9028 GB, free: 60.86 MB / 0.6042 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.446e-05/0.3067, allocations: 63.33 kB / 0.9029 GB, free: 60.78 MB / 0.6042 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.888e-05/0.3068, allocations: 122.2 kB / 0.903 GB, free: 60.65 MB / 0.6042 GB Notification: Performance of collectPreVariables (initialization): time 1.763e-05/0.3068, allocations: 29.7 kB / 0.903 GB, free: 60.62 MB / 0.6042 GB Notification: Performance of collectInitialEqns (initialization): time 4.518e-05/0.3068, allocations: 88 kB / 0.9031 GB, free: 60.53 MB / 0.6042 GB Notification: Performance of collectInitialBindings (initialization): time 2.465e-05/0.3069, allocations: 23.73 kB / 0.9031 GB, free: 60.5 MB / 0.6042 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.23e-06/0.3069, allocations: 0 / 0.9031 GB, free: 60.5 MB / 0.6042 GB Notification: Performance of setup shared object (initialization): time 8.157e-05/0.307, allocations: 322.8 kB / 0.9034 GB, free: 60.18 MB / 0.6042 GB Notification: Performance of preBalanceInitialSystem (initialization): time 3.585e-05/0.307, allocations: 15.98 kB / 0.9035 GB, free: 60.16 MB / 0.6042 GB Notification: Performance of partitionIndependentBlocks (initialization): time 5.231e-05/0.3071, allocations: 52.28 kB / 0.9035 GB, free: 60.1 MB / 0.6042 GB Notification: Performance of analyzeInitialSystem (initialization): time 4.552e-05/0.3071, allocations: 20 kB / 0.9035 GB, free: 60.08 MB / 0.6042 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.435e-06/0.3071, allocations: 0 / 0.9035 GB, free: 60.08 MB / 0.6042 GB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0001398/0.3073, allocations: 101.5 kB / 0.9036 GB, free: 59.97 MB / 0.6042 GB Notification: Performance of prepare postOptimizeDAE: time 1.981e-05/0.3073, allocations: 8.094 kB / 0.9036 GB, free: 59.96 MB / 0.6042 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.723e-06/0.3073, allocations: 0 / 0.9036 GB, free: 59.96 MB / 0.6042 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.8e-05/0.3073, allocations: 4 kB / 0.9036 GB, free: 59.96 MB / 0.6042 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.35e-05/0.3074, allocations: 15.89 kB / 0.9036 GB, free: 59.95 MB / 0.6042 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.678e-06/0.3074, allocations: 4 kB / 0.9037 GB, free: 59.94 MB / 0.6042 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001001/0.3075, allocations: 19.98 kB / 0.9037 GB, free: 59.92 MB / 0.6042 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.246e-06/0.3076, allocations: 0 / 0.9037 GB, free: 59.92 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 0.0001044/0.3077, allocations: 131.8 kB / 0.9038 GB, free: 59.79 MB / 0.6042 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.696e-05/0.3077, allocations: 7.906 kB / 0.9038 GB, free: 59.78 MB / 0.6042 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.708e-05/0.3077, allocations: 8.375 kB / 0.9038 GB, free: 59.77 MB / 0.6042 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.565e-06/0.3077, allocations: 0 / 0.9038 GB, free: 59.77 MB / 0.6042 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.594e-06/0.3078, allocations: 3.953 kB / 0.9038 GB, free: 59.77 MB / 0.6042 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.548e-06/0.3078, allocations: 0 / 0.9038 GB, free: 59.77 MB / 0.6042 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004574/0.3082, allocations: 394.3 kB / 0.9042 GB, free: 59.32 MB / 0.6042 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.485e-06/0.3082, allocations: 0 / 0.9042 GB, free: 59.32 MB / 0.6042 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.166e-05/0.3083, allocations: 3.984 kB / 0.9042 GB, free: 59.32 MB / 0.6042 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.831e-06/0.3083, allocations: 4 kB / 0.9042 GB, free: 59.32 MB / 0.6042 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.176e-05/0.3083, allocations: 7.953 kB / 0.9042 GB, free: 59.31 MB / 0.6042 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.843e-06/0.3083, allocations: 0 / 0.9042 GB, free: 59.31 MB / 0.6042 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.042e-06/0.3083, allocations: 480 / 0.9042 GB, free: 59.31 MB / 0.6042 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001708/0.3085, allocations: 191.4 kB / 0.9044 GB, free: 59.11 MB / 0.6042 GB Notification: Performance of postOpt removeConstants (simulation): time 3.208e-05/0.3085, allocations: 81.11 kB / 0.9045 GB, free: 59.01 MB / 0.6042 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.127e-05/0.3085, allocations: 0 / 0.9045 GB, free: 59.01 MB / 0.6042 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000109/0.3087, allocations: 23.92 kB / 0.9045 GB, free: 58.98 MB / 0.6042 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.569e-05/0.3087, allocations: 11.98 kB / 0.9045 GB, free: 58.97 MB / 0.6042 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.949e-05/0.3088, allocations: 7.984 kB / 0.9045 GB, free: 58.96 MB / 0.6042 GB Notification: Performance of sorting global known variables: time 4.3e-05/0.3088, allocations: 87.28 kB / 0.9046 GB, free: 58.88 MB / 0.6042 GB Notification: Performance of sort global known variables: time 4e-07/0.3088, allocations: 0 / 0.9046 GB, free: 58.88 MB / 0.6042 GB Notification: Performance of remove unused functions: time 0.0002351/0.309, allocations: 23.94 kB / 0.9046 GB, free: 58.86 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.0004075/0.3095, allocations: 0.7162 MB / 0.9053 GB, free: 58.11 MB / 0.6042 GB Notification: Performance of simCode: created initialization part: time 0.0001437/0.3096, allocations: 59.86 kB / 0.9054 GB, free: 58.05 MB / 0.6042 GB Notification: Performance of simCode: created event and clocks part: time 2.134e-06/0.3096, allocations: 192 / 0.9054 GB, free: 58.05 MB / 0.6042 GB Notification: Performance of simCode: created simulation system equations: time 5.304e-05/0.3097, allocations: 31.98 kB / 0.9054 GB, free: 58.02 MB / 0.6042 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002618/0.31, allocations: 24.75 kB / 0.9054 GB, free: 58 MB / 0.6042 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009777/0.3109, allocations: 1.129 MB / 0.9065 GB, free: 56.8 MB / 0.6042 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000172/0.3111, allocations: 0.6926 MB / 0.9072 GB, free: 56.08 MB / 0.6042 GB Notification: Performance of simCode: alias equations: time 4.323e-05/0.3112, allocations: 12.66 kB / 0.9072 GB, free: 56.07 MB / 0.6042 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.261e-05/0.3112, allocations: 19.44 kB / 0.9072 GB, free: 56.05 MB / 0.6042 GB Notification: Performance of SimCode: time 2.1e-07/0.3112, allocations: 0 / 0.9072 GB, free: 56.05 MB / 0.6042 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01261/0.3239, allocations: 1.772 MB / 0.909 GB, free: 54.43 MB / 0.6042 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001444/0.324, allocations: 193.4 kB / 0.9092 GB, free: 54.2 MB / 0.6042 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.726/2.05, allocations: 0 / 0.9092 GB, free: 54.2 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)