Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_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 10.1.1-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/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_10_Buildings_Controls_OBC_CDL_Integers_Validation_OnCounter",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Integers.Validation.OnCounter,fileNamePrefix="Buildings_10_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.008075/0.008075, allocations: 99.8 kB / 15.73 MB, free: 6.496 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.00165/0.00165, allocations: 199 kB / 16.68 MB, free: 6.375 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.428/1.428, allocations: 222.9 MB / 240.4 MB, free: 4.297 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/package.mo): time 2.614/2.614, allocations: 437.1 MB / 0.7105 GB, free: 4.984 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.002104/0.002104, allocations: 67.89 kB / 1.018 GB, free: 15.03 MB / 0.7794 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.35/0.3521, allocations: 151.6 MB / 1.166 GB, free: 7.277 MB / 0.92 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Integers.Validation.OnCounter): time 0.00217/0.3543, allocations: 0.6874 MB / 1.167 GB, free: 6.586 MB / 0.92 GB Notification: Performance of NFInst.instExpressions: time 0.002441/0.3568, allocations: 1.195 MB / 1.168 GB, free: 5.375 MB / 0.92 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.578e-05/0.3569, allocations: 4 kB / 1.168 GB, free: 5.371 MB / 0.92 GB Notification: Performance of NFTyping.typeComponents: time 3.855e-05/0.3569, allocations: 3.938 kB / 1.168 GB, free: 5.367 MB / 0.92 GB Notification: Performance of NFTyping.typeBindings: time 9.641e-05/0.357, allocations: 15.86 kB / 1.168 GB, free: 5.352 MB / 0.92 GB Notification: Performance of NFTyping.typeClassSections: time 0.0009926/0.358, allocations: 226.5 kB / 1.168 GB, free: 5.137 MB / 0.92 GB Notification: Performance of NFFlatten.flatten: time 0.0004095/0.3585, allocations: 191.8 kB / 1.168 GB, free: 4.949 MB / 0.92 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001135/0.3586, allocations: 8 kB / 1.168 GB, free: 4.941 MB / 0.92 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001618/0.3588, allocations: 75.81 kB / 1.169 GB, free: 4.867 MB / 0.92 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002335/0.359, allocations: 67.77 kB / 1.169 GB, free: 4.801 MB / 0.92 GB Notification: Performance of NFPackage.collectConstants: time 5.826e-05/0.3591, allocations: 16 kB / 1.169 GB, free: 4.785 MB / 0.92 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001182/0.3592, allocations: 35.98 kB / 1.169 GB, free: 4.75 MB / 0.92 GB Notification: Performance of NFScalarize.scalarize: time 2.853e-05/0.3592, allocations: 8 kB / 1.169 GB, free: 4.742 MB / 0.92 GB Notification: Performance of NFVerifyModel.verify: time 0.0001167/0.3594, allocations: 59.81 kB / 1.169 GB, free: 4.684 MB / 0.92 GB Notification: Performance of NFConvertDAE.convert: time 0.0003706/0.3598, allocations: 150.5 kB / 1.169 GB, free: 4.539 MB / 0.92 GB Notification: Performance of FrontEnd - DAE generated: time 3.858e-06/0.3598, allocations: 7.938 kB / 1.169 GB, free: 4.531 MB / 0.92 GB Notification: Performance of FrontEnd: time 1.634e-06/0.3598, allocations: 0 / 1.169 GB, free: 4.531 MB / 0.92 GB Notification: Performance of Transformations before backend: time 6.553e-06/0.3598, allocations: 0 / 1.169 GB, free: 4.531 MB / 0.92 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.0006814/0.3605, allocations: 443.5 kB / 1.169 GB, free: 4.039 MB / 0.92 GB Notification: Performance of prepare preOptimizeDAE: time 4.408e-05/0.3605, allocations: 8.031 kB / 1.169 GB, free: 4.031 MB / 0.92 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.57e-05/0.3606, allocations: 30.75 kB / 1.169 GB, free: 3.992 MB / 0.92 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.324e-05/0.3607, allocations: 12.92 kB / 1.169 GB, free: 3.98 MB / 0.92 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001488/0.3608, allocations: 180.2 kB / 1.169 GB, free: 3.766 MB / 0.92 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.826e-05/0.3609, allocations: 8.375 kB / 1.169 GB, free: 3.758 MB / 0.92 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.139e-05/0.3609, allocations: 12.12 kB / 1.17 GB, free: 3.746 MB / 0.92 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001522/0.3611, allocations: 53.67 kB / 1.17 GB, free: 3.688 MB / 0.92 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.775e-06/0.3611, allocations: 4 kB / 1.17 GB, free: 3.684 MB / 0.92 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.129e-05/0.3611, allocations: 0 / 1.17 GB, free: 3.684 MB / 0.92 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.949e-06/0.3611, allocations: 0 / 1.17 GB, free: 3.684 MB / 0.92 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.753e-05/0.3612, allocations: 15.98 kB / 1.17 GB, free: 3.668 MB / 0.92 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007377/0.362, allocations: 352.8 kB / 1.17 GB, free: 3.273 MB / 0.92 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001216/0.3621, allocations: 42.5 kB / 1.17 GB, free: 3.223 MB / 0.92 GB Notification: Performance of preOpt resolveLoops (simulation): time 4.67e-05/0.3622, allocations: 20.88 kB / 1.17 GB, free: 3.199 MB / 0.92 GB Notification: Performance of preOpt evalFunc (simulation): time 1.169e-05/0.3622, allocations: 4 kB / 1.17 GB, free: 3.195 MB / 0.92 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003032/0.3625, allocations: 99.2 kB / 1.17 GB, free: 3.086 MB / 0.92 GB Notification: Performance of pre-optimization done (n=9): time 2.815e-06/0.3625, allocations: 0 / 1.17 GB, free: 3.086 MB / 0.92 GB Notification: Performance of matching and sorting (n=9): time 0.0004235/0.3629, allocations: 125.5 kB / 1.17 GB, free: 2.957 MB / 0.92 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.3e-05/0.363, allocations: 55.39 kB / 1.17 GB, free: 2.891 MB / 0.92 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001299/0.3632, allocations: 117.8 kB / 1.17 GB, free: 2.766 MB / 0.92 GB Notification: Performance of collectPreVariables (initialization): time 4.578e-05/0.3632, allocations: 29.7 kB / 1.17 GB, free: 2.73 MB / 0.92 GB Notification: Performance of collectInitialEqns (initialization): time 8.883e-05/0.3633, allocations: 96.36 kB / 1.17 GB, free: 2.633 MB / 0.92 GB Notification: Performance of collectInitialBindings (initialization): time 3.336e-05/0.3634, allocations: 23.7 kB / 1.171 GB, free: 2.609 MB / 0.92 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001482/0.3635, allocations: 53.69 kB / 1.171 GB, free: 2.551 MB / 0.92 GB Notification: Performance of setup shared object (initialization): time 0.0001488/0.3637, allocations: 330.7 kB / 1.171 GB, free: 2.219 MB / 0.92 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002284/0.3639, allocations: 59.97 kB / 1.171 GB, free: 2.16 MB / 0.92 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002464/0.3642, allocations: 106 kB / 1.171 GB, free: 2.035 MB / 0.92 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003109/0.3645, allocations: 185.3 kB / 1.171 GB, free: 1.82 MB / 0.92 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.835e-06/0.3645, allocations: 0 / 1.171 GB, free: 1.82 MB / 0.92 GB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0007017/0.3652, allocations: 276.9 kB / 1.171 GB, free: 1.531 MB / 0.92 GB Notification: Performance of prepare postOptimizeDAE: time 7.331e-05/0.3653, allocations: 71.39 kB / 1.172 GB, free: 1.449 MB / 0.92 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.602e-06/0.3653, allocations: 0 / 1.172 GB, free: 1.449 MB / 0.92 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.771e-05/0.3654, allocations: 4 kB / 1.172 GB, free: 1.445 MB / 0.92 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.116e-05/0.3654, allocations: 7.938 kB / 1.172 GB, free: 1.438 MB / 0.92 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.364e-06/0.3654, allocations: 0 / 1.172 GB, free: 1.438 MB / 0.92 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004473/0.3659, allocations: 59.94 kB / 1.172 GB, free: 1.379 MB / 0.92 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.078e-05/0.366, allocations: 23.92 kB / 1.172 GB, free: 1.355 MB / 0.92 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 0.0001402/0.3661, allocations: 124.1 kB / 1.172 GB, free: 1.227 MB / 0.92 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.406e-05/0.3661, allocations: 7.906 kB / 1.172 GB, free: 1.219 MB / 0.92 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.262e-05/0.3662, allocations: 8.375 kB / 1.172 GB, free: 1.207 MB / 0.92 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.352e-06/0.3662, allocations: 4 kB / 1.172 GB, free: 1.203 MB / 0.92 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.909e-06/0.3662, allocations: 384 / 1.172 GB, free: 1.203 MB / 0.92 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.747e-06/0.3662, allocations: 0 / 1.172 GB, free: 1.203 MB / 0.92 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004996/0.3667, allocations: 366.4 kB / 1.172 GB, free: 0.7891 MB / 0.92 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.076e-05/0.3667, allocations: 7.984 kB / 1.172 GB, free: 0.7812 MB / 0.92 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.242e-05/0.3668, allocations: 3.938 kB / 1.172 GB, free: 0.7773 MB / 0.92 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.336e-06/0.3668, allocations: 0 / 1.172 GB, free: 0.7773 MB / 0.92 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.238e-05/0.3668, allocations: 4 kB / 1.172 GB, free: 0.7734 MB / 0.92 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.529e-06/0.3668, allocations: 3.938 kB / 1.172 GB, free: 0.7695 MB / 0.92 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.253e-06/0.3668, allocations: 0 / 1.172 GB, free: 0.7695 MB / 0.92 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002949/0.3671, allocations: 199.5 kB / 1.172 GB, free: 0.5586 MB / 0.92 GB Notification: Performance of postOpt removeConstants (simulation): time 5.253e-05/0.3672, allocations: 92.98 kB / 1.172 GB, free: 460 kB / 0.92 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.474e-05/0.3672, allocations: 4 kB / 1.172 GB, free: 456 kB / 0.92 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000101/0.3673, allocations: 3.938 kB / 1.172 GB, free: 452 kB / 0.92 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.038e-05/0.3674, allocations: 7.984 kB / 1.172 GB, free: 444 kB / 0.92 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.83e-05/0.3674, allocations: 4 kB / 1.172 GB, free: 440 kB / 0.92 GB Notification: Performance of sorting global known variables: time 7.114e-05/0.3675, allocations: 99.2 kB / 1.173 GB, free: 340 kB / 0.92 GB Notification: Performance of sort global known variables: time 1.8e-07/0.3675, allocations: 0 / 1.173 GB, free: 340 kB / 0.92 GB Notification: Performance of remove unused functions: time 0.0005401/0.368, allocations: 32 kB / 1.173 GB, free: 308 kB / 0.92 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.0006731/0.3687, allocations: 0.732 MB / 1.173 GB, free: 15.54 MB / 0.9356 GB Notification: Performance of simCode: created initialization part: time 0.0005682/0.3693, allocations: 262.9 kB / 1.174 GB, free: 15.26 MB / 0.9356 GB Notification: Performance of simCode: created event and clocks part: time 2.965e-06/0.3693, allocations: 0 / 1.174 GB, free: 15.26 MB / 0.9356 GB Notification: Performance of simCode: created simulation system equations: time 0.0001012/0.3694, allocations: 35.92 kB / 1.174 GB, free: 15.23 MB / 0.9356 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005053/0.37, allocations: 25.95 kB / 1.174 GB, free: 15.2 MB / 0.9356 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003297/0.3733, allocations: 1.853 MB / 1.175 GB, free: 13.22 MB / 0.9356 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003434/0.3736, allocations: 0.6923 MB / 1.176 GB, free: 12.5 MB / 0.9356 GB Notification: Performance of simCode: alias equations: time 4.911e-05/0.3737, allocations: 12.59 kB / 1.176 GB, free: 12.49 MB / 0.9356 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.635e-05/0.3738, allocations: 23.44 kB / 1.176 GB, free: 12.47 MB / 0.9356 GB Notification: Performance of SimCode: time 8.42e-07/0.3738, allocations: 0 / 1.176 GB, free: 12.47 MB / 0.9356 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02766/0.4015, allocations: 3.01 MB / 1.179 GB, free: 9.566 MB / 0.9356 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.761/8.162, allocations: 11.17 kB / 1.179 GB, free: 9.559 MB / 0.9356 GB (rm -f Buildings_10_Buildings.Controls.OBC.CDL.Integers.Validation.OnCounter.pipe ; mkfifo Buildings_10_Buildings.Controls.OBC.CDL.Integers.Validation.OnCounter.pipe ; head -c 1048576 < Buildings_10_Buildings.Controls.OBC.CDL.Integers.Validation.OnCounter.pipe >> ../files/Buildings_10_Buildings.Controls.OBC.CDL.Integers.Validation.OnCounter.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_10_Buildings.Controls.OBC.CDL.Integers.Validation.OnCounter_res.mat --tempDir=temp_Buildings_10_Buildings_Controls_OBC_CDL_Integers_Validation_OnCounter_fmu --startTime=0 --stopTime=2 --timeout=50 --tolerance=1e-06 Buildings_10_Buildings_Controls_OBC_CDL_Integers_Validation_OnCounter.fmu > Buildings_10_Buildings.Controls.OBC.CDL.Integers.Validation.OnCounter.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Controls.OBC.CDL.Integers.Validation.OnCounter_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Controls_OBC_CDL_Integers_Validation_OnCounter.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Controls.OBC.CDL.Integers.Validation.OnCounter.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches