Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_12_Buildings.Controls.OBC.CDL.Integers.Validation.OnCounter.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001842/0.001842, allocations: 99.75 kB / 18.95 MB, free: 2.672 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.002438/0.002438, allocations: 213.9 kB / 22.25 MB, free: 5.254 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.485/1.485, allocations: 230.6 MB / 256 MB, free: 7.801 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.1-maint.12.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.1-maint.12.x/package.mo): time 3.119/3.119, allocations: 0.49 GB / 0.7951 GB, free: 35.36 MB / 0.6231 GB " [Timeout remaining time 177] Using package Buildings with version 12.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.1-maint.12.x/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Integers.Validation.OnCounter,fileNamePrefix="Buildings_12_Buildings_Controls_OBC_CDL_Integers_Validation_OnCounter",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Integers.Validation.OnCounter,fileNamePrefix="Buildings_12_Buildings_Controls_OBC_CDL_Integers_Validation_OnCounter",fmuType="me",version="2.0",platforms={"static"}) [Timeout 300] "Notification: Buildings requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.00218/0.00218, allocations: 66.58 kB / 1.154 GB, free: 25.45 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3428/0.3449, allocations: 176.1 MB / 1.326 GB, free: 1.488 MB / 1.014 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Integers.Validation.OnCounter): time 0.001867/0.3468, allocations: 0.6706 MB / 1.327 GB, free: 0.8242 MB / 1.014 GB Notification: Performance of NFInst.instExpressions: time 0.001577/0.3484, allocations: 1.237 MB / 1.328 GB, free: 15.57 MB / 1.029 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.889e-05/0.3484, allocations: 0 / 1.328 GB, free: 15.57 MB / 1.029 GB Notification: Performance of NFTyping.typeComponents: time 2.904e-05/0.3485, allocations: 3.938 kB / 1.328 GB, free: 15.57 MB / 1.029 GB Notification: Performance of NFTyping.typeBindings: time 6.146e-05/0.3485, allocations: 7.922 kB / 1.328 GB, free: 15.56 MB / 1.029 GB Notification: Performance of NFTyping.typeClassSections: time 0.0006275/0.3491, allocations: 217.2 kB / 1.328 GB, free: 15.36 MB / 1.029 GB Notification: Performance of NFFlatten.flatten: time 0.0002404/0.3494, allocations: 183.7 kB / 1.328 GB, free: 15.18 MB / 1.029 GB Notification: Performance of NFFlatten.resolveConnections: time 7.829e-05/0.3495, allocations: 8 kB / 1.328 GB, free: 15.17 MB / 1.029 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001046/0.3496, allocations: 67.89 kB / 1.328 GB, free: 15.1 MB / 1.029 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001441/0.3497, allocations: 71.78 kB / 1.328 GB, free: 15.03 MB / 1.029 GB Notification: Performance of NFPackage.collectConstants: time 3.515e-05/0.3497, allocations: 16 kB / 1.328 GB, free: 15.02 MB / 1.029 GB Notification: Performance of NFFlatten.collectFunctions: time 7.02e-05/0.3498, allocations: 27.98 kB / 1.328 GB, free: 14.99 MB / 1.029 GB Notification: Performance of NFScalarize.scalarize: time 2.602e-05/0.3498, allocations: 15.97 kB / 1.328 GB, free: 14.97 MB / 1.029 GB Notification: Performance of NFVerifyModel.verify: time 8.182e-05/0.3499, allocations: 51.84 kB / 1.328 GB, free: 14.92 MB / 1.029 GB Notification: Performance of NFConvertDAE.convert: time 0.0002213/0.3501, allocations: 155.9 kB / 1.329 GB, free: 14.77 MB / 1.029 GB Notification: Performance of FrontEnd - DAE generated: time 3.767e-06/0.3501, allocations: 0 / 1.329 GB, free: 14.77 MB / 1.029 GB Notification: Performance of FrontEnd: time 1.553e-06/0.3502, allocations: 7.938 kB / 1.329 GB, free: 14.76 MB / 1.029 GB Notification: Performance of Transformations before backend: time 4.879e-06/0.3502, allocations: 0 / 1.329 GB, free: 14.76 MB / 1.029 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.0005274/0.3507, allocations: 369.5 kB / 1.329 GB, free: 14.36 MB / 1.029 GB Notification: Performance of prepare preOptimizeDAE: time 3.72e-05/0.3507, allocations: 8.031 kB / 1.329 GB, free: 14.35 MB / 1.029 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.562e-05/0.3508, allocations: 34.75 kB / 1.329 GB, free: 14.31 MB / 1.029 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.311e-05/0.3508, allocations: 12.89 kB / 1.329 GB, free: 14.3 MB / 1.029 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001039/0.3509, allocations: 114.5 kB / 1.329 GB, free: 14.16 MB / 1.029 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.815e-05/0.3509, allocations: 4.375 kB / 1.329 GB, free: 14.16 MB / 1.029 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.9e-05/0.351, allocations: 16.12 kB / 1.329 GB, free: 14.14 MB / 1.029 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000117/0.3511, allocations: 49.67 kB / 1.329 GB, free: 14.09 MB / 1.029 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.274e-06/0.3511, allocations: 4 kB / 1.329 GB, free: 14.08 MB / 1.029 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.907e-06/0.3511, allocations: 0 / 1.329 GB, free: 14.08 MB / 1.029 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.747e-06/0.3511, allocations: 0 / 1.329 GB, free: 14.08 MB / 1.029 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.25e-05/0.3511, allocations: 15.94 kB / 1.329 GB, free: 14.07 MB / 1.029 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004969/0.3516, allocations: 307.8 kB / 1.329 GB, free: 13.72 MB / 1.029 GB Notification: Performance of preOpt comSubExp (simulation): time 8.334e-05/0.3517, allocations: 34.56 kB / 1.329 GB, free: 13.68 MB / 1.029 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.768e-05/0.3518, allocations: 12.86 kB / 1.329 GB, free: 13.66 MB / 1.029 GB Notification: Performance of preOpt evalFunc (simulation): time 3.667e-06/0.3518, allocations: 3.938 kB / 1.329 GB, free: 13.66 MB / 1.029 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001815/0.3519, allocations: 95.38 kB / 1.33 GB, free: 13.55 MB / 1.029 GB Notification: Performance of pre-optimization done (n=9): time 1.373e-06/0.3519, allocations: 0 / 1.33 GB, free: 13.55 MB / 1.029 GB Notification: Performance of matching and sorting (n=9): time 0.0003324/0.3523, allocations: 133.5 kB / 1.33 GB, free: 13.42 MB / 1.029 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.61e-05/0.3523, allocations: 55.41 kB / 1.33 GB, free: 13.35 MB / 1.029 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001125/0.3524, allocations: 129.7 kB / 1.33 GB, free: 13.21 MB / 1.029 GB Notification: Performance of collectPreVariables (initialization): time 4.233e-05/0.3525, allocations: 29.7 kB / 1.33 GB, free: 13.18 MB / 1.029 GB Notification: Performance of collectInitialEqns (initialization): time 6.922e-05/0.3525, allocations: 88.38 kB / 1.33 GB, free: 13.09 MB / 1.029 GB Notification: Performance of collectInitialBindings (initialization): time 2.368e-05/0.3526, allocations: 19.89 kB / 1.33 GB, free: 13.07 MB / 1.029 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001024/0.3527, allocations: 53.69 kB / 1.33 GB, free: 13.01 MB / 1.029 GB Notification: Performance of setup shared object (initialization): time 0.0001304/0.3528, allocations: 318.8 kB / 1.33 GB, free: 12.69 MB / 1.029 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001743/0.353, allocations: 123.4 kB / 1.33 GB, free: 12.55 MB / 1.029 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002065/0.3532, allocations: 173.3 kB / 1.331 GB, free: 12.35 MB / 1.029 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002232/0.3534, allocations: 189.3 kB / 1.331 GB, free: 12.13 MB / 1.029 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.248e-06/0.3534, allocations: 4 kB / 1.331 GB, free: 12.13 MB / 1.029 GB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0005144/0.3539, allocations: 344.2 kB / 1.331 GB, free: 11.76 MB / 1.029 GB Notification: Performance of prepare postOptimizeDAE: time 6.132e-05/0.354, allocations: 67.39 kB / 1.331 GB, free: 11.68 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.659e-06/0.354, allocations: 4.094 kB / 1.331 GB, free: 11.68 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.367e-05/0.354, allocations: 11.94 kB / 1.331 GB, free: 11.67 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.904e-05/0.3541, allocations: 7.984 kB / 1.331 GB, free: 11.66 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.498e-06/0.3541, allocations: 7.984 kB / 1.331 GB, free: 11.65 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003346/0.3544, allocations: 55.83 kB / 1.331 GB, free: 11.6 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.546e-05/0.3544, allocations: 19.92 kB / 1.331 GB, free: 11.58 MB / 1.029 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.0001184/0.3546, allocations: 131.2 kB / 1.331 GB, free: 11.44 MB / 1.029 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.621e-05/0.3546, allocations: 7.953 kB / 1.331 GB, free: 11.43 MB / 1.029 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.619e-05/0.3546, allocations: 8.375 kB / 1.331 GB, free: 11.42 MB / 1.029 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.432e-06/0.3546, allocations: 0 / 1.331 GB, free: 11.42 MB / 1.029 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.878e-06/0.3546, allocations: 0 / 1.331 GB, free: 11.42 MB / 1.029 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.005e-06/0.3546, allocations: 384 / 1.331 GB, free: 11.42 MB / 1.029 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000361/0.355, allocations: 333.5 kB / 1.332 GB, free: 11.05 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.382e-06/0.355, allocations: 0 / 1.332 GB, free: 11.05 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.087e-06/0.355, allocations: 0 / 1.332 GB, free: 11.05 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.764e-06/0.355, allocations: 0 / 1.332 GB, free: 11.05 MB / 1.029 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.113e-05/0.355, allocations: 4 kB / 1.332 GB, free: 11.04 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.619e-06/0.355, allocations: 11.94 kB / 1.332 GB, free: 11.03 MB / 1.029 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.22e-07/0.355, allocations: 0 / 1.332 GB, free: 11.03 MB / 1.029 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002549/0.3552, allocations: 199.4 kB / 1.332 GB, free: 10.82 MB / 1.029 GB Notification: Performance of postOpt removeConstants (simulation): time 1.021e-05/0.3553, allocations: 7.953 kB / 1.332 GB, free: 10.81 MB / 1.029 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.804e-05/0.3553, allocations: 0 / 1.332 GB, free: 10.81 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.938e-05/0.3553, allocations: 11.94 kB / 1.332 GB, free: 10.8 MB / 1.029 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.421e-05/0.3554, allocations: 3.984 kB / 1.332 GB, free: 10.8 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.399e-05/0.3554, allocations: 4 kB / 1.332 GB, free: 10.79 MB / 1.029 GB Notification: Performance of sorting global known variables: time 5.799e-05/0.3554, allocations: 91.27 kB / 1.332 GB, free: 10.7 MB / 1.029 GB Notification: Performance of sort global known variables: time 9e-08/0.3554, allocations: 4 kB / 1.332 GB, free: 10.7 MB / 1.029 GB Notification: Performance of remove unused functions: time 0.0002832/0.3557, allocations: 32 kB / 1.332 GB, free: 10.67 MB / 1.029 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.0006042/0.3563, allocations: 0.745 MB / 1.333 GB, free: 9.898 MB / 1.029 GB Notification: Performance of simCode: created initialization part: time 0.0004217/0.3568, allocations: 286.1 kB / 1.333 GB, free: 9.582 MB / 1.029 GB Notification: Performance of simCode: created event and clocks part: time 2.124e-06/0.3568, allocations: 288 / 1.333 GB, free: 9.582 MB / 1.029 GB Notification: Performance of simCode: created simulation system equations: time 6.353e-05/0.3568, allocations: 39.84 kB / 1.333 GB, free: 9.543 MB / 1.029 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002972/0.3571, allocations: 23.86 kB / 1.333 GB, free: 9.52 MB / 1.029 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002361/0.3595, allocations: 2.113 MB / 1.335 GB, free: 7.234 MB / 1.029 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 6.755e-05/0.3595, allocations: 71.33 kB / 1.335 GB, free: 7.145 MB / 1.029 GB Notification: Performance of simCode: alias equations: time 3.821e-05/0.3596, allocations: 4.672 kB / 1.335 GB, free: 7.141 MB / 1.029 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.759e-05/0.3596, allocations: 23.42 kB / 1.335 GB, free: 7.117 MB / 1.029 GB Notification: Performance of SimCode: time 3.81e-07/0.3596, allocations: 0 / 1.335 GB, free: 7.117 MB / 1.029 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03127/0.3909, allocations: 3.8 MB / 1.339 GB, free: 3.488 MB / 1.029 GB Notification: Performance of buildModelFMU: Generate platform static: time 11.3/11.69, allocations: 5.484 kB / 1.339 GB, free: 3.484 MB / 1.029 GB " [Timeout remaining time 288] (rm -f Buildings_12_Buildings.Controls.OBC.CDL.Integers.Validation.OnCounter.pipe ; mkfifo Buildings_12_Buildings.Controls.OBC.CDL.Integers.Validation.OnCounter.pipe ; head -c 1048576 < Buildings_12_Buildings.Controls.OBC.CDL.Integers.Validation.OnCounter.pipe >> ../files/Buildings_12_Buildings.Controls.OBC.CDL.Integers.Validation.OnCounter.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_12_Buildings.Controls.OBC.CDL.Integers.Validation.OnCounter_res.mat --tempDir=temp_Buildings_12_Buildings_Controls_OBC_CDL_Integers_Validation_OnCounter_fmu --startTime=0 --stopTime=2 --stepSize=0.0008 --timeout=400 --tolerance=1e-06 Buildings_12_Buildings_Controls_OBC_CDL_Integers_Validation_OnCounter.fmu > Buildings_12_Buildings.Controls.OBC.CDL.Integers.Validation.OnCounter.pipe 2>&1) [Timeout 420.0] diffSimulationResults("Buildings_12_Buildings.Controls.OBC.CDL.Integers.Validation.OnCounter_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_12.x/Buildings_Controls_OBC_CDL_Integers_Validation_OnCounter.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_12_Buildings.Controls.OBC.CDL.Integers.Validation.OnCounter.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 300] "" [Timeout remaining time 300] Reference file matches [Calling sys.exit(0), Time elapsed: 18.35143380399677]