Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr AixLib_AixLib.Controls.OBC.CDL.Discrete.Validation.Sampler.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_DeviceDrivers 2.2.0/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_DeviceDrivers 2.2.0/package.mo): time 0.04996/0.04996, allocations: 9.128 MB / 28.99 MB, free: 0.8281 MB / 18.57 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_DeviceDrivers 2.2.0/EmbeddedTargets/STM32F4/Functions/HAL.mo:5:3-11:14:writable] Warning: External function annotation should occur on the external-clause, not on the function. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_DeviceDrivers 2.2.0/Incubate/OperatingSystem/DynamicArray.mo:6:3-94:18:writable] Warning: External function annotation should occur on the external-clause, not on the function. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_DeviceDrivers 2.2.0/Incubate/Utilities/Functions.mo:1041:3-1062:27:writable] Warning: External function annotation should occur on the external-clause, not on the function. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_DeviceDrivers 2.2.0/Incubate/Utilities/Functions.mo:1064:3-1092:25:writable] Warning: External function annotation should occur on the external-clause, not on the function. " [Timeout remaining time 180] 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.0008358/0.0008358, allocations: 98.95 kB / 35.33 MB, free: 1.078 MB / 24.77 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.001087/0.001087, allocations: 166.7 kB / 38.73 MB, free: 2.52 MB / 24.77 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 0.9792/0.9792, allocations: 177.1 MB / 219.2 MB, free: 10.09 MB / 202.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/SDF 0.4.5/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/SDF 0.4.5/package.mo): time 0.00407/0.00407, allocations: 0.8224 MB / 276.5 MB, free: 0.7109 MB / 250.7 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/AixLib 3.0.1/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AixLib 3.0.1/package.mo): time 1.682/1.682, allocations: 274.9 MB / 0.5419 GB, free: 0.6484 MB / 0.4949 GB " [Timeout remaining time 178] Using package AixLib with version 3.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/AixLib 3.0.1/package.mo) Using package SDF with version 0.4.5 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/SDF 0.4.5/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) Using package Modelica_DeviceDrivers with version 2.2.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_DeviceDrivers 2.2.0/package.mo) Running command: translateModel(AixLib.Controls.OBC.CDL.Discrete.Validation.Sampler,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2500,variableFilter="",fileNamePrefix="AixLib_AixLib.Controls.OBC.CDL.Discrete.Validation.Sampler") translateModel(AixLib.Controls.OBC.CDL.Discrete.Validation.Sampler,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2500,variableFilter="",fileNamePrefix="AixLib_AixLib.Controls.OBC.CDL.Discrete.Validation.Sampler") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.723e-06/1.723e-06, allocations: 0 / 0.6379 GB, free: 14.14 MB / 0.6043 GB Notification: Performance of FrontEnd - Absyn->SCode: time 1.827e-05/2e-05, allocations: 6.312 kB / 0.6379 GB, free: 14.13 MB / 0.6043 GB Notification: Performance of NFInst.instantiate(AixLib.Controls.OBC.CDL.Discrete.Validation.Sampler): time 0.004591/0.004611, allocations: 0.7096 MB / 0.6386 GB, free: 13.42 MB / 0.6043 GB Notification: Performance of NFInst.instExpressions: time 0.001552/0.006162, allocations: 1.131 MB / 0.6397 GB, free: 12.27 MB / 0.6043 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.246e-05/0.006205, allocations: 0 / 0.6397 GB, free: 12.27 MB / 0.6043 GB Notification: Performance of NFTyping.typeComponents: time 2.773e-05/0.006233, allocations: 3.938 kB / 0.6397 GB, free: 12.27 MB / 0.6043 GB Notification: Performance of NFTyping.typeBindings: time 6.615e-05/0.006299, allocations: 7.875 kB / 0.6397 GB, free: 12.26 MB / 0.6043 GB Notification: Performance of NFTyping.typeClassSections: time 0.000234/0.006533, allocations: 43.81 kB / 0.6397 GB, free: 12.22 MB / 0.6043 GB Notification: Performance of NFFlatten.flatten: time 8.629e-05/0.006619, allocations: 51.86 kB / 0.6398 GB, free: 12.17 MB / 0.6043 GB Notification: Performance of NFFlatten.resolveConnections: time 7.07e-05/0.00669, allocations: 15.91 kB / 0.6398 GB, free: 12.15 MB / 0.6043 GB Notification: Performance of NFEvalConstants.evaluate: time 7.876e-05/0.006769, allocations: 31.86 kB / 0.6398 GB, free: 12.12 MB / 0.6043 GB Notification: Performance of NFSimplifyModel.simplify: time 4.084e-05/0.006809, allocations: 11.98 kB / 0.6398 GB, free: 12.11 MB / 0.6043 GB Notification: Performance of NFPackage.collectConstants: time 1.336e-05/0.006823, allocations: 4 kB / 0.6398 GB, free: 12.11 MB / 0.6043 GB Notification: Performance of NFFlatten.collectFunctions: time 7.341e-05/0.006896, allocations: 23.97 kB / 0.6399 GB, free: 12.08 MB / 0.6043 GB Notification: Performance of NFScalarize.scalarize: time 1.798e-05/0.006914, allocations: 11.92 kB / 0.6399 GB, free: 12.07 MB / 0.6043 GB Notification: Performance of NFVerifyModel.verify: time 2.054e-05/0.006935, allocations: 12 kB / 0.6399 GB, free: 12.06 MB / 0.6043 GB Notification: Performance of NFConvertDAE.convert: time 0.0001095/0.007044, allocations: 51.8 kB / 0.6399 GB, free: 12.01 MB / 0.6043 GB Notification: Performance of FrontEnd - DAE generated: time 2.044e-06/0.007046, allocations: 4 kB / 0.6399 GB, free: 12 MB / 0.6043 GB Notification: Performance of FrontEnd: time 8.02e-07/0.007047, allocations: 0 / 0.6399 GB, free: 12 MB / 0.6043 GB Notification: Performance of Transformations before backend: time 3.307e-06/0.00705, allocations: 4 kB / 0.6399 GB, free: 12 MB / 0.6043 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.00335/0.0104, allocations: 264.4 kB / 0.6402 GB, free: 11.71 MB / 0.6043 GB Notification: Performance of prepare preOptimizeDAE: time 3.507e-05/0.01044, allocations: 11.98 kB / 0.6402 GB, free: 11.7 MB / 0.6043 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.855e-05/0.01052, allocations: 8.938 kB / 0.6402 GB, free: 11.7 MB / 0.6043 GB Notification: Performance of preOpt evaluateParameters (simulation): time 7.949e-05/0.0106, allocations: 109.7 kB / 0.6403 GB, free: 11.56 MB / 0.6043 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.145e-05/0.01061, allocations: 4.375 kB / 0.6403 GB, free: 11.56 MB / 0.6043 GB Notification: Performance of preOpt expandDerOperator (simulation): time 8.506e-06/0.01062, allocations: 4.359 kB / 0.6403 GB, free: 11.55 MB / 0.6043 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001048/0.01073, allocations: 70.91 kB / 0.6404 GB, free: 11.48 MB / 0.6043 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.033e-06/0.01074, allocations: 4.188 kB / 0.6404 GB, free: 11.47 MB / 0.6043 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.324e-06/0.01074, allocations: 384 / 0.6404 GB, free: 11.47 MB / 0.6043 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.739e-06/0.01075, allocations: 4.375 kB / 0.6404 GB, free: 11.47 MB / 0.6043 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.557e-05/0.01077, allocations: 7.938 kB / 0.6404 GB, free: 11.46 MB / 0.6043 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002485/0.01102, allocations: 172.1 kB / 0.6406 GB, free: 11.28 MB / 0.6043 GB Notification: Performance of preOpt comSubExp (simulation): time 6.174e-05/0.01108, allocations: 26.58 kB / 0.6406 GB, free: 11.24 MB / 0.6043 GB Notification: Performance of preOpt resolveLoops (simulation): time 1.752e-05/0.0111, allocations: 12.84 kB / 0.6406 GB, free: 11.23 MB / 0.6043 GB Notification: Performance of preOpt evalFunc (simulation): time 1.194e-05/0.01111, allocations: 128 / 0.6406 GB, free: 11.23 MB / 0.6043 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.46e-05/0.01118, allocations: 55.39 kB / 0.6407 GB, free: 11.16 MB / 0.6043 GB Notification: Performance of pre-optimization done (n=6): time 9.32e-07/0.01118, allocations: 8 kB / 0.6407 GB, free: 11.15 MB / 0.6043 GB Notification: Performance of matching and sorting (n=6): time 0.0001184/0.0113, allocations: 57.56 kB / 0.6407 GB, free: 11.09 MB / 0.6043 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.214e-05/0.01133, allocations: 55.41 kB / 0.6408 GB, free: 11.02 MB / 0.6043 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.853e-05/0.01139, allocations: 110.8 kB / 0.6409 GB, free: 10.9 MB / 0.6043 GB Notification: Performance of collectPreVariables (initialization): time 1.144e-05/0.0114, allocations: 25.7 kB / 0.6409 GB, free: 10.87 MB / 0.6043 GB Notification: Performance of collectInitialEqns (initialization): time 3.02e-05/0.01143, allocations: 84.12 kB / 0.641 GB, free: 10.79 MB / 0.6043 GB Notification: Performance of collectInitialBindings (initialization): time 1.934e-05/0.01145, allocations: 15.91 kB / 0.641 GB, free: 10.77 MB / 0.6043 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.775e-05/0.01149, allocations: 25.69 kB / 0.641 GB, free: 10.74 MB / 0.6043 GB Notification: Performance of setup shared object (initialization): time 7.7e-05/0.01156, allocations: 314.8 kB / 0.6413 GB, free: 10.42 MB / 0.6043 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.488e-05/0.01158, allocations: 8.484 kB / 0.6413 GB, free: 10.41 MB / 0.6043 GB Notification: Performance of partitionIndependentBlocks (initialization): time 2.833e-05/0.01161, allocations: 31.42 kB / 0.6414 GB, free: 10.37 MB / 0.6043 GB Notification: Performance of analyzeInitialSystem (initialization): time 5.334e-05/0.01166, allocations: 51.34 kB / 0.6414 GB, free: 10.31 MB / 0.6043 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.843e-06/0.01166, allocations: 3.938 kB / 0.6414 GB, free: 10.3 MB / 0.6043 GB Notification: Performance of matching and sorting (n=8) (initialization): time 8.115e-05/0.01174, allocations: 65.55 kB / 0.6415 GB, free: 10.23 MB / 0.6043 GB Notification: Performance of prepare postOptimizeDAE: time 1.292e-05/0.01176, allocations: 8 kB / 0.6415 GB, free: 10.23 MB / 0.6043 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.288e-06/0.01176, allocations: 0 / 0.6415 GB, free: 10.23 MB / 0.6043 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.256e-05/0.01177, allocations: 3.938 kB / 0.6415 GB, free: 10.22 MB / 0.6043 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.531e-05/0.01184, allocations: 24.08 kB / 0.6415 GB, free: 10.2 MB / 0.6043 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.796e-06/0.01184, allocations: 0 / 0.6415 GB, free: 10.2 MB / 0.6043 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.811e-05/0.01188, allocations: 11.94 kB / 0.6415 GB, free: 10.19 MB / 0.6043 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.683e-06/0.01189, allocations: 0 / 0.6415 GB, free: 10.19 MB / 0.6043 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 5 (sampler1.firstTrigger,$PRE.sampler1.firstTrigger,sampler1.sampleTrigger,$whenCondition1,sampler1.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (8): * Single equations (assignments): 8 * Array equations: 0 * Algorithm blocks: 0 * 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 6.182e-05/0.01195, allocations: 121.7 kB / 0.6416 GB, free: 10.06 MB / 0.6043 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.598e-06/0.01196, allocations: 4 kB / 0.6416 GB, free: 10.05 MB / 0.6043 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.888e-05/0.01204, allocations: 54.11 kB / 0.6417 GB, free: 9.996 MB / 0.6043 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.008e-06/0.01204, allocations: 7.938 kB / 0.6417 GB, free: 9.988 MB / 0.6043 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.292e-06/0.01204, allocations: 0 / 0.6417 GB, free: 9.988 MB / 0.6043 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.855e-06/0.01204, allocations: 0 / 0.6417 GB, free: 9.988 MB / 0.6043 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001693/0.01221, allocations: 202.8 kB / 0.6419 GB, free: 9.766 MB / 0.6043 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.182e-06/0.01221, allocations: 4 kB / 0.6419 GB, free: 9.762 MB / 0.6043 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.917e-05/0.01224, allocations: 7.984 kB / 0.6419 GB, free: 9.754 MB / 0.6043 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.383e-06/0.01224, allocations: 0 / 0.6419 GB, free: 9.754 MB / 0.6043 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.712e-06/0.01225, allocations: 3.938 kB / 0.6419 GB, free: 9.75 MB / 0.6043 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.494e-06/0.01225, allocations: 4 kB / 0.6419 GB, free: 9.746 MB / 0.6043 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.92e-07/0.01225, allocations: 0 / 0.6419 GB, free: 9.746 MB / 0.6043 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 7.836e-05/0.01233, allocations: 143.5 kB / 0.6421 GB, free: 9.59 MB / 0.6043 GB Notification: Performance of postOpt removeConstants (simulation): time 8.135e-06/0.01234, allocations: 11.94 kB / 0.6421 GB, free: 9.578 MB / 0.6043 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.119e-05/0.01235, allocations: 7.938 kB / 0.6421 GB, free: 9.57 MB / 0.6043 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.809e-05/0.01241, allocations: 4.188 kB / 0.6421 GB, free: 9.566 MB / 0.6043 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.519e-05/0.01244, allocations: 7.984 kB / 0.6421 GB, free: 9.559 MB / 0.6043 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.638e-06/0.01245, allocations: 8 kB / 0.6421 GB, free: 9.551 MB / 0.6043 GB Notification: Performance of sorting global known variables: time 1.211e-05/0.01246, allocations: 8.859 kB / 0.6421 GB, free: 9.539 MB / 0.6043 GB Notification: Performance of sort global known variables: time 7e-08/0.01246, allocations: 0 / 0.6421 GB, free: 9.539 MB / 0.6043 GB Notification: Performance of remove unused functions: time 0.0001956/0.01265, allocations: 19.98 kB / 0.6421 GB, free: 9.52 MB / 0.6043 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 4 (sampler1.sampleTrigger,$whenCondition1,sampler1.y,sampler1.firstTrigger) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (6): * Single equations (assignments): 4 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * 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 9.125e-05/0.01274, allocations: 76.42 kB / 0.6422 GB, free: 9.438 MB / 0.6043 GB Notification: Performance of simCode: created initialization part: time 7.398e-05/0.01282, allocations: 32.78 kB / 0.6422 GB, free: 9.402 MB / 0.6043 GB Notification: Performance of simCode: created event and clocks part: time 2.285e-06/0.01282, allocations: 0 / 0.6422 GB, free: 9.402 MB / 0.6043 GB Notification: Performance of simCode: created simulation system equations: time 3.077e-05/0.01285, allocations: 29.02 kB / 0.6423 GB, free: 9.371 MB / 0.6043 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001592/0.01301, allocations: 7.938 kB / 0.6423 GB, free: 9.363 MB / 0.6043 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003391/0.0164, allocations: 140.5 kB / 0.6424 GB, free: 9.199 MB / 0.6043 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 3.743e-05/0.01644, allocations: 59.34 kB / 0.6425 GB, free: 9.121 MB / 0.6043 GB Notification: Performance of simCode: alias equations: time 2.416e-05/0.01646, allocations: 4 kB / 0.6425 GB, free: 9.117 MB / 0.6043 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.119e-05/0.01651, allocations: 59.38 kB / 0.6425 GB, free: 9.059 MB / 0.6043 GB Notification: Performance of SimCode: time 1.322e-06/0.01652, allocations: 4 kB / 0.6425 GB, free: 9.055 MB / 0.6043 GB Notification: Performance of Templates: time 0.002546/0.01906, allocations: 0.8551 MB / 0.6434 GB, free: 8.203 MB / 0.6043 GB " [Timeout remaining time 660] make -j1 -f AixLib_AixLib.Controls.OBC.CDL.Discrete.Validation.Sampler.makefile [Timeout 660] (rm -f AixLib_AixLib.Controls.OBC.CDL.Discrete.Validation.Sampler.pipe ; mkfifo AixLib_AixLib.Controls.OBC.CDL.Discrete.Validation.Sampler.pipe ; head -c 1048576 < AixLib_AixLib.Controls.OBC.CDL.Discrete.Validation.Sampler.pipe >> ../files/AixLib_AixLib.Controls.OBC.CDL.Discrete.Validation.Sampler.sim & ./AixLib_AixLib.Controls.OBC.CDL.Discrete.Validation.Sampler -abortSlowSimulation -alarm=240 -s gbode -gbm=radauIIA3 -lv LOG_STATS > AixLib_AixLib.Controls.OBC.CDL.Discrete.Validation.Sampler.pipe 2>&1) [Timeout 240] [Calling sys.exit(0), Time elapsed: 4.373180793132633]