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.001392/0.001392, allocations: 111 kB / 16.46 MB, free: 6.453 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.001544/0.001544, allocations: 213.7 kB / 19.43 MB, free: 3.625 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.478/1.478, allocations: 230.6 MB / 252.8 MB, free: 8.977 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.214/3.214, allocations: 0.49 GB / 0.7916 GB, free: 33.34 MB / 0.6231 GB " [Timeout remaining time 176] 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.001995/0.001995, allocations: 69.28 kB / 1.149 GB, free: 26.26 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.373/0.375, allocations: 176.1 MB / 1.321 GB, free: 3.281 MB / 1.014 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Integers.Validation.OnCounter): time 0.00279/0.3778, allocations: 0.6835 MB / 1.321 GB, free: 2.598 MB / 1.014 GB Notification: Performance of NFInst.instExpressions: time 0.002294/0.3801, allocations: 1.233 MB / 1.323 GB, free: 1.352 MB / 1.014 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.064e-05/0.3802, allocations: 3.938 kB / 1.323 GB, free: 1.348 MB / 1.014 GB Notification: Performance of NFTyping.typeComponents: time 3.867e-05/0.3802, allocations: 3.938 kB / 1.323 GB, free: 1.344 MB / 1.014 GB Notification: Performance of NFTyping.typeBindings: time 0.0001121/0.3803, allocations: 15.91 kB / 1.323 GB, free: 1.328 MB / 1.014 GB Notification: Performance of NFTyping.typeClassSections: time 0.0009542/0.3813, allocations: 215.3 kB / 1.323 GB, free: 1.125 MB / 1.014 GB Notification: Performance of NFFlatten.flatten: time 0.0003397/0.3816, allocations: 183.7 kB / 1.323 GB, free: 0.9453 MB / 1.014 GB Notification: Performance of NFFlatten.resolveConnections: time 0.000102/0.3817, allocations: 8 kB / 1.323 GB, free: 0.9375 MB / 1.014 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001396/0.3819, allocations: 71.89 kB / 1.323 GB, free: 0.8672 MB / 1.014 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001902/0.3821, allocations: 67.83 kB / 1.323 GB, free: 0.8008 MB / 1.014 GB Notification: Performance of NFPackage.collectConstants: time 5.264e-05/0.3821, allocations: 16 kB / 1.323 GB, free: 0.7852 MB / 1.014 GB Notification: Performance of NFFlatten.collectFunctions: time 0.000101/0.3822, allocations: 23.98 kB / 1.323 GB, free: 0.7617 MB / 1.014 GB Notification: Performance of NFScalarize.scalarize: time 3.508e-05/0.3823, allocations: 15.92 kB / 1.323 GB, free: 0.7461 MB / 1.014 GB Notification: Performance of NFVerifyModel.verify: time 0.0001168/0.3824, allocations: 59.83 kB / 1.323 GB, free: 0.6875 MB / 1.014 GB Notification: Performance of NFConvertDAE.convert: time 0.0003145/0.3827, allocations: 155.9 kB / 1.323 GB, free: 0.5352 MB / 1.014 GB Notification: Performance of FrontEnd - DAE generated: time 4.989e-06/0.3827, allocations: 0 / 1.323 GB, free: 0.5352 MB / 1.014 GB Notification: Performance of FrontEnd: time 2.174e-06/0.3827, allocations: 0 / 1.323 GB, free: 0.5352 MB / 1.014 GB Notification: Performance of Transformations before backend: time 7.193e-06/0.3827, allocations: 7.938 kB / 1.323 GB, free: 0.5273 MB / 1.014 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.0007503/0.3835, allocations: 444.3 kB / 1.324 GB, free: 36 kB / 1.014 GB Notification: Performance of prepare preOptimizeDAE: time 5.762e-05/0.3835, allocations: 15.98 kB / 1.324 GB, free: 20 kB / 1.014 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.816e-05/0.3836, allocations: 30.75 kB / 1.324 GB, free: 15.98 MB / 1.029 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.09e-05/0.3837, allocations: 20.83 kB / 1.324 GB, free: 15.96 MB / 1.029 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001955/0.3839, allocations: 176.3 kB / 1.324 GB, free: 15.75 MB / 1.029 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.605e-05/0.3839, allocations: 4.375 kB / 1.324 GB, free: 15.75 MB / 1.029 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.865e-05/0.3839, allocations: 12.12 kB / 1.324 GB, free: 15.73 MB / 1.029 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001569/0.3841, allocations: 53.67 kB / 1.324 GB, free: 15.68 MB / 1.029 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.177e-06/0.3841, allocations: 4 kB / 1.324 GB, free: 15.67 MB / 1.029 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.37e-05/0.3841, allocations: 0 / 1.324 GB, free: 15.67 MB / 1.029 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.251e-06/0.3841, allocations: 0 / 1.324 GB, free: 15.67 MB / 1.029 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.696e-05/0.3842, allocations: 15.94 kB / 1.324 GB, free: 15.66 MB / 1.029 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007494/0.3849, allocations: 364.6 kB / 1.325 GB, free: 15.25 MB / 1.029 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001154/0.385, allocations: 34.56 kB / 1.325 GB, free: 15.21 MB / 1.029 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.709e-05/0.3851, allocations: 8.859 kB / 1.325 GB, free: 15.2 MB / 1.029 GB Notification: Performance of preOpt evalFunc (simulation): time 5.48e-06/0.3851, allocations: 4 kB / 1.325 GB, free: 15.19 MB / 1.029 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002238/0.3853, allocations: 99.38 kB / 1.325 GB, free: 15.08 MB / 1.029 GB Notification: Performance of pre-optimization done (n=9): time 1.853e-06/0.3853, allocations: 0 / 1.325 GB, free: 15.08 MB / 1.029 GB Notification: Performance of matching and sorting (n=9): time 0.0003963/0.3857, allocations: 125.5 kB / 1.325 GB, free: 14.95 MB / 1.029 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.171e-05/0.3858, allocations: 51.41 kB / 1.325 GB, free: 14.89 MB / 1.029 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001507/0.3859, allocations: 133.7 kB / 1.325 GB, free: 14.75 MB / 1.029 GB Notification: Performance of collectPreVariables (initialization): time 4.769e-05/0.386, allocations: 29.7 kB / 1.325 GB, free: 14.71 MB / 1.029 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001003/0.3861, allocations: 92.38 kB / 1.325 GB, free: 14.62 MB / 1.029 GB Notification: Performance of collectInitialBindings (initialization): time 3.054e-05/0.3861, allocations: 19.89 kB / 1.325 GB, free: 14.6 MB / 1.029 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001439/0.3862, allocations: 49.69 kB / 1.325 GB, free: 14.54 MB / 1.029 GB Notification: Performance of setup shared object (initialization): time 0.0001715/0.3864, allocations: 322.8 kB / 1.326 GB, free: 14.22 MB / 1.029 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002087/0.3866, allocations: 63.95 kB / 1.326 GB, free: 14.16 MB / 1.029 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002437/0.3869, allocations: 113.9 kB / 1.326 GB, free: 14.02 MB / 1.029 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003175/0.3872, allocations: 173.3 kB / 1.326 GB, free: 13.82 MB / 1.029 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.796e-06/0.3872, allocations: 0 / 1.326 GB, free: 13.82 MB / 1.029 GB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0006893/0.3879, allocations: 304.9 kB / 1.326 GB, free: 13.5 MB / 1.029 GB Notification: Performance of prepare postOptimizeDAE: time 8.127e-05/0.3879, allocations: 71.7 kB / 1.326 GB, free: 13.42 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.169e-05/0.388, allocations: 4 kB / 1.326 GB, free: 13.42 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.238e-05/0.388, allocations: 3.938 kB / 1.326 GB, free: 13.41 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.765e-05/0.3881, allocations: 4 kB / 1.326 GB, free: 13.41 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.839e-06/0.3881, allocations: 7.938 kB / 1.326 GB, free: 13.4 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004495/0.3885, allocations: 59.98 kB / 1.326 GB, free: 13.34 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.13e-05/0.3886, allocations: 19.92 kB / 1.326 GB, free: 13.32 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.0001492/0.3887, allocations: 125.8 kB / 1.326 GB, free: 13.19 MB / 1.029 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.119e-05/0.3887, allocations: 7.953 kB / 1.326 GB, free: 13.18 MB / 1.029 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.918e-05/0.3888, allocations: 12.36 kB / 1.326 GB, free: 13.17 MB / 1.029 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.795e-06/0.3888, allocations: 0 / 1.326 GB, free: 13.17 MB / 1.029 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.043e-06/0.3888, allocations: 0 / 1.326 GB, free: 13.17 MB / 1.029 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.816e-06/0.3888, allocations: 8 kB / 1.326 GB, free: 13.16 MB / 1.029 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004702/0.3893, allocations: 350.5 kB / 1.327 GB, free: 12.76 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.473e-06/0.3893, allocations: 0 / 1.327 GB, free: 12.76 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.081e-05/0.3893, allocations: 4 kB / 1.327 GB, free: 12.76 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.954e-06/0.3893, allocations: 0 / 1.327 GB, free: 12.76 MB / 1.029 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.292e-05/0.3893, allocations: 3.984 kB / 1.327 GB, free: 12.75 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.172e-06/0.3893, allocations: 7.938 kB / 1.327 GB, free: 12.75 MB / 1.029 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.202e-06/0.3893, allocations: 0 / 1.327 GB, free: 12.75 MB / 1.029 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002759/0.3896, allocations: 199.4 kB / 1.327 GB, free: 12.54 MB / 1.029 GB Notification: Performance of postOpt removeConstants (simulation): time 5.703e-05/0.3896, allocations: 85.06 kB / 1.327 GB, free: 12.43 MB / 1.029 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.943e-05/0.3897, allocations: 7.984 kB / 1.327 GB, free: 12.43 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.937e-05/0.3897, allocations: 3.938 kB / 1.327 GB, free: 12.42 MB / 1.029 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.744e-05/0.3898, allocations: 4 kB / 1.327 GB, free: 12.42 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.308e-05/0.3898, allocations: 7.984 kB / 1.327 GB, free: 12.41 MB / 1.029 GB Notification: Performance of sorting global known variables: time 7.524e-05/0.3899, allocations: 91.28 kB / 1.327 GB, free: 12.32 MB / 1.029 GB Notification: Performance of sort global known variables: time 1.01e-07/0.3899, allocations: 0 / 1.327 GB, free: 12.32 MB / 1.029 GB Notification: Performance of remove unused functions: time 0.0004442/0.3903, allocations: 31.98 kB / 1.327 GB, free: 12.29 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.0007714/0.3911, allocations: 0.7541 MB / 1.328 GB, free: 11.51 MB / 1.029 GB Notification: Performance of simCode: created initialization part: time 0.0005084/0.3916, allocations: 222.7 kB / 1.328 GB, free: 11.27 MB / 1.029 GB Notification: Performance of simCode: created event and clocks part: time 5.009e-06/0.3916, allocations: 4 kB / 1.328 GB, free: 11.27 MB / 1.029 GB Notification: Performance of simCode: created simulation system equations: time 7.929e-05/0.3917, allocations: 32.17 kB / 1.328 GB, free: 11.23 MB / 1.029 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000454/0.3921, allocations: 25.33 kB / 1.328 GB, free: 11.21 MB / 1.029 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003184/0.3953, allocations: 1.87 MB / 1.33 GB, free: 9.211 MB / 1.029 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004173/0.3957, allocations: 0.6885 MB / 1.331 GB, free: 8.496 MB / 1.029 GB Notification: Performance of simCode: alias equations: time 3.931e-05/0.3958, allocations: 4.672 kB / 1.331 GB, free: 8.492 MB / 1.029 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.459e-05/0.3958, allocations: 31.42 kB / 1.331 GB, free: 8.461 MB / 1.029 GB Notification: Performance of SimCode: time 4.31e-07/0.3959, allocations: 0 / 1.331 GB, free: 8.461 MB / 1.029 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03088/0.4267, allocations: 3.033 MB / 1.334 GB, free: 5.547 MB / 1.029 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.254/8.681, allocations: 3.984 kB / 1.334 GB, free: 5.543 MB / 1.029 GB " [Timeout remaining time 291] (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: 15.386101865209639]