Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_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 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo", uses=false) Using package Buildings with version 11.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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_latest_Buildings_Controls_OBC_CDL_Integers_Validation_OnCounter",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Integers.Validation.OnCounter,fileNamePrefix="Buildings_latest_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.001274/0.001274, allocations: 103.4 kB / 15.33 MB, free: 0.5078 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.001351/0.001352, allocations: 193.8 kB / 16.25 MB, free: 6.629 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.439/1.439, allocations: 222.9 MB / 239.9 MB, free: 4.449 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.688/2.688, allocations: 461.9 MB / 0.7344 GB, free: 14.93 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001298/0.001298, allocations: 63.91 kB / 0.8987 GB, free: 37.2 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2629/0.2642, allocations: 157.4 MB / 1.052 GB, free: 8.652 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Integers.Validation.OnCounter): time 0.001688/0.2659, allocations: 0.7395 MB / 1.053 GB, free: 7.906 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.00126/0.2672, allocations: 1.214 MB / 1.054 GB, free: 6.68 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.179e-05/0.2673, allocations: 0 / 1.054 GB, free: 6.68 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 3.07e-05/0.2673, allocations: 7.984 kB / 1.054 GB, free: 6.672 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 5.919e-05/0.2674, allocations: 7.922 kB / 1.054 GB, free: 6.664 MB / 0.8106 GB Notification: Performance of NFTyping.typeClassSections: time 0.000589/0.268, allocations: 197.8 kB / 1.055 GB, free: 6.477 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 0.0002251/0.2682, allocations: 195.6 kB / 1.055 GB, free: 6.285 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 9.765e-05/0.2683, allocations: 12 kB / 1.055 GB, free: 6.273 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001551/0.2685, allocations: 71.88 kB / 1.055 GB, free: 6.203 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 0.000108/0.2686, allocations: 55.86 kB / 1.055 GB, free: 6.148 MB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 3.688e-05/0.2686, allocations: 12 kB / 1.055 GB, free: 6.137 MB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 8.588e-05/0.2687, allocations: 35.97 kB / 1.055 GB, free: 6.102 MB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 2.654e-05/0.2688, allocations: 11.94 kB / 1.055 GB, free: 6.09 MB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 8.26e-05/0.2688, allocations: 59.83 kB / 1.055 GB, free: 6.031 MB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 0.0002115/0.2691, allocations: 151.9 kB / 1.055 GB, free: 5.883 MB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 4.448e-06/0.2691, allocations: 0 / 1.055 GB, free: 5.883 MB / 0.8106 GB Notification: Performance of FrontEnd: time 1.933e-06/0.2691, allocations: 4 kB / 1.055 GB, free: 5.879 MB / 0.8106 GB Notification: Performance of Transformations before backend: time 4.999e-06/0.2691, allocations: 0 / 1.055 GB, free: 5.879 MB / 0.8106 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.000565/0.2697, allocations: 438.7 kB / 1.056 GB, free: 5.391 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 3.963e-05/0.2697, allocations: 8.625 kB / 1.056 GB, free: 5.383 MB / 0.8106 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.057e-05/0.2697, allocations: 42.69 kB / 1.056 GB, free: 5.332 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.075e-05/0.2698, allocations: 8.844 kB / 1.056 GB, free: 5.324 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001257/0.2699, allocations: 172.3 kB / 1.056 GB, free: 5.117 MB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.69e-05/0.27, allocations: 4.375 kB / 1.056 GB, free: 5.113 MB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.151e-05/0.27, allocations: 12.38 kB / 1.056 GB, free: 5.102 MB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001182/0.2701, allocations: 57.61 kB / 1.056 GB, free: 5.039 MB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.327e-06/0.2702, allocations: 0 / 1.056 GB, free: 5.039 MB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.113e-05/0.2702, allocations: 4 kB / 1.056 GB, free: 5.035 MB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.26e-06/0.2702, allocations: 0 / 1.056 GB, free: 5.035 MB / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.087e-05/0.2702, allocations: 15.98 kB / 1.056 GB, free: 5.02 MB / 0.8106 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000514/0.2707, allocations: 364.6 kB / 1.056 GB, free: 4.613 MB / 0.8106 GB Notification: Performance of preOpt comSubExp (simulation): time 8.518e-05/0.2708, allocations: 38.5 kB / 1.056 GB, free: 4.566 MB / 0.8106 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.898e-05/0.2709, allocations: 20.86 kB / 1.056 GB, free: 4.543 MB / 0.8106 GB Notification: Performance of preOpt evalFunc (simulation): time 9.037e-06/0.2709, allocations: 0 / 1.056 GB, free: 4.543 MB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001944/0.2711, allocations: 99.28 kB / 1.056 GB, free: 4.434 MB / 0.8106 GB Notification: Performance of pre-optimization done (n=9): time 1.663e-06/0.2711, allocations: 0 / 1.056 GB, free: 4.434 MB / 0.8106 GB Notification: Performance of matching and sorting (n=9): time 0.0002802/0.2714, allocations: 117.9 kB / 1.056 GB, free: 4.312 MB / 0.8106 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.425e-05/0.2714, allocations: 55.5 kB / 1.057 GB, free: 4.246 MB / 0.8106 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.415e-05/0.2715, allocations: 133.6 kB / 1.057 GB, free: 4.105 MB / 0.8106 GB Notification: Performance of collectPreVariables (initialization): time 3.499e-05/0.2716, allocations: 33.7 kB / 1.057 GB, free: 4.066 MB / 0.8106 GB Notification: Performance of collectInitialEqns (initialization): time 5.437e-05/0.2716, allocations: 92.38 kB / 1.057 GB, free: 3.969 MB / 0.8106 GB Notification: Performance of collectInitialBindings (initialization): time 1.775e-05/0.2717, allocations: 19.8 kB / 1.057 GB, free: 3.949 MB / 0.8106 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.466e-05/0.2718, allocations: 49.69 kB / 1.057 GB, free: 3.895 MB / 0.8106 GB Notification: Performance of setup shared object (initialization): time 8.143e-05/0.2718, allocations: 322.8 kB / 1.057 GB, free: 3.57 MB / 0.8106 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001181/0.272, allocations: 59.97 kB / 1.057 GB, free: 3.512 MB / 0.8106 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001359/0.2721, allocations: 118 kB / 1.057 GB, free: 3.375 MB / 0.8106 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001789/0.2723, allocations: 177.3 kB / 1.057 GB, free: 3.168 MB / 0.8106 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.144e-06/0.2723, allocations: 4 kB / 1.057 GB, free: 3.164 MB / 0.8106 GB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0004008/0.2727, allocations: 276.8 kB / 1.058 GB, free: 2.875 MB / 0.8106 GB Notification: Performance of prepare postOptimizeDAE: time 4.252e-05/0.2728, allocations: 71.39 kB / 1.058 GB, free: 2.793 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.709e-06/0.2728, allocations: 0 / 1.058 GB, free: 2.793 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.153e-05/0.2728, allocations: 4 kB / 1.058 GB, free: 2.789 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.695e-05/0.2728, allocations: 7.938 kB / 1.058 GB, free: 2.781 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.412e-06/0.2728, allocations: 4 kB / 1.058 GB, free: 2.777 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003232/0.2732, allocations: 67.92 kB / 1.058 GB, free: 2.711 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.601e-05/0.2732, allocations: 8 kB / 1.058 GB, free: 2.703 MB / 0.8106 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.291e-05/0.2733, allocations: 133.8 kB / 1.058 GB, free: 2.562 MB / 0.8106 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.45e-05/0.2733, allocations: 11.92 kB / 1.058 GB, free: 2.551 MB / 0.8106 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.24e-05/0.2733, allocations: 12.38 kB / 1.058 GB, free: 2.539 MB / 0.8106 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.835e-06/0.2733, allocations: 4 kB / 1.058 GB, free: 2.535 MB / 0.8106 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.889e-06/0.2734, allocations: 7.938 kB / 1.058 GB, free: 2.527 MB / 0.8106 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.575e-06/0.2734, allocations: 0 / 1.058 GB, free: 2.527 MB / 0.8106 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002794/0.2736, allocations: 358.5 kB / 1.058 GB, free: 2.121 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.713e-06/0.2737, allocations: 0 / 1.058 GB, free: 2.121 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.087e-05/0.2737, allocations: 4 kB / 1.058 GB, free: 2.117 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.775e-06/0.2737, allocations: 0 / 1.058 GB, free: 2.117 MB / 0.8106 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.007e-05/0.2737, allocations: 0 / 1.058 GB, free: 2.117 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.442e-06/0.2737, allocations: 0 / 1.058 GB, free: 2.117 MB / 0.8106 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.585e-06/0.2737, allocations: 7.938 kB / 1.058 GB, free: 2.109 MB / 0.8106 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001734/0.2739, allocations: 203.5 kB / 1.059 GB, free: 1.895 MB / 0.8106 GB Notification: Performance of postOpt removeConstants (simulation): time 3.275e-05/0.2739, allocations: 81.02 kB / 1.059 GB, free: 1.797 MB / 0.8106 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.924e-05/0.2739, allocations: 4 kB / 1.059 GB, free: 1.793 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.998e-05/0.274, allocations: 0 / 1.059 GB, free: 1.793 MB / 0.8106 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.112e-05/0.274, allocations: 15.92 kB / 1.059 GB, free: 1.777 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.294e-05/0.2741, allocations: 4 kB / 1.059 GB, free: 1.773 MB / 0.8106 GB Notification: Performance of sorting global known variables: time 4.775e-05/0.2741, allocations: 91.27 kB / 1.059 GB, free: 1.684 MB / 0.8106 GB Notification: Performance of sort global known variables: time 1.3e-07/0.2741, allocations: 4 kB / 1.059 GB, free: 1.68 MB / 0.8106 GB Notification: Performance of remove unused functions: time 0.0002654/0.2744, allocations: 32 kB / 1.059 GB, free: 1.648 MB / 0.8106 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.0004663/0.2749, allocations: 0.7341 MB / 1.06 GB, free: 0.8906 MB / 0.8106 GB Notification: Performance of simCode: created initialization part: time 0.0003196/0.2752, allocations: 266.8 kB / 1.06 GB, free: 0.6055 MB / 0.8106 GB Notification: Performance of simCode: created event and clocks part: time 1.944e-06/0.2752, allocations: 0 / 1.06 GB, free: 0.6055 MB / 0.8106 GB Notification: Performance of simCode: created simulation system equations: time 5.229e-05/0.2753, allocations: 39.91 kB / 1.06 GB, free: 0.5664 MB / 0.8106 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000262/0.2755, allocations: 18.02 kB / 1.06 GB, free: 0.5508 MB / 0.8106 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001714/0.2772, allocations: 1.869 MB / 1.062 GB, free: 14.55 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001937/0.2775, allocations: 0.6891 MB / 1.062 GB, free: 13.84 MB / 0.8262 GB Notification: Performance of simCode: alias equations: time 2.765e-05/0.2775, allocations: 4.672 kB / 1.062 GB, free: 13.84 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.431e-05/0.2775, allocations: 23.42 kB / 1.062 GB, free: 13.81 MB / 0.8262 GB Notification: Performance of SimCode: time 2.11e-07/0.2775, allocations: 0 / 1.062 GB, free: 13.81 MB / 0.8262 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3994/0.6769, allocations: 2.899 MB / 1.065 GB, free: 11.07 MB / 0.8262 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002195/0.6772, allocations: 215.5 kB / 1.065 GB, free: 10.81 MB / 0.8262 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.394/3.071, allocations: 5.375 kB / 1.065 GB, free: 10.81 MB / 0.8262 GB (rm -f Buildings_latest_Buildings.Controls.OBC.CDL.Integers.Validation.OnCounter.pipe ; mkfifo Buildings_latest_Buildings.Controls.OBC.CDL.Integers.Validation.OnCounter.pipe ; head -c 1048576 < Buildings_latest_Buildings.Controls.OBC.CDL.Integers.Validation.OnCounter.pipe >> ../files/Buildings_latest_Buildings.Controls.OBC.CDL.Integers.Validation.OnCounter.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_latest_Buildings.Controls.OBC.CDL.Integers.Validation.OnCounter_res.mat --tempDir=temp_Buildings_latest_Buildings_Controls_OBC_CDL_Integers_Validation_OnCounter_fmu --startTime=0 --stopTime=2 --timeout=50 --tolerance=1e-06 Buildings_latest_Buildings_Controls_OBC_CDL_Integers_Validation_OnCounter.fmu > Buildings_latest_Buildings.Controls.OBC.CDL.Integers.Validation.OnCounter.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Controls.OBC.CDL.Integers.Validation.OnCounter_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Controls_OBC_CDL_Integers_Validation_OnCounter.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Controls.OBC.CDL.Integers.Validation.OnCounter.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches