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.0408/0.0408, allocations: 9.131 MB / 28.99 MB, free: 424 kB / 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.0008633/0.0008633, allocations: 94.64 kB / 35.33 MB, free: 0.9336 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.00119/0.00119, allocations: 160.3 kB / 38.73 MB, free: 2.398 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.9249/0.9249, allocations: 177.2 MB / 219.2 MB, free: 10.11 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.003875/0.003875, allocations: 0.8301 MB / 276.5 MB, free: 0.7461 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.681/1.681, allocations: 274.9 MB / 0.5419 GB, free: 0.6133 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.473e-06/1.473e-06, allocations: 0 / 0.6378 GB, free: 14.16 MB / 0.6043 GB Notification: Performance of FrontEnd - Absyn->SCode: time 1.634e-05/1.781e-05, allocations: 2.312 kB / 0.6378 GB, free: 14.15 MB / 0.6043 GB Notification: Performance of NFInst.instantiate(AixLib.Controls.OBC.CDL.Discrete.Validation.Sampler): time 0.001196/0.001214, allocations: 0.6664 MB / 0.6385 GB, free: 13.48 MB / 0.6043 GB Notification: Performance of NFInst.instExpressions: time 0.0009998/0.002214, allocations: 1.131 MB / 0.6396 GB, free: 12.34 MB / 0.6043 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.601e-05/0.00225, allocations: 4 kB / 0.6396 GB, free: 12.34 MB / 0.6043 GB Notification: Performance of NFTyping.typeComponents: time 2.24e-05/0.002272, allocations: 0 / 0.6396 GB, free: 12.34 MB / 0.6043 GB Notification: Performance of NFTyping.typeBindings: time 5.875e-05/0.002331, allocations: 7.875 kB / 0.6396 GB, free: 12.33 MB / 0.6043 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002718/0.002603, allocations: 51.7 kB / 0.6396 GB, free: 12.28 MB / 0.6043 GB Notification: Performance of NFFlatten.flatten: time 0.0001062/0.002709, allocations: 47.84 kB / 0.6397 GB, free: 12.23 MB / 0.6043 GB Notification: Performance of NFFlatten.resolveConnections: time 6.982e-05/0.002779, allocations: 11.98 kB / 0.6397 GB, free: 12.22 MB / 0.6043 GB Notification: Performance of NFEvalConstants.evaluate: time 6.992e-05/0.002849, allocations: 23.97 kB / 0.6397 GB, free: 12.2 MB / 0.6043 GB Notification: Performance of NFSimplifyModel.simplify: time 3.962e-05/0.002889, allocations: 19.92 kB / 0.6397 GB, free: 12.18 MB / 0.6043 GB Notification: Performance of NFPackage.collectConstants: time 1.312e-05/0.002902, allocations: 4 kB / 0.6397 GB, free: 12.17 MB / 0.6043 GB Notification: Performance of NFFlatten.collectFunctions: time 5.555e-05/0.002957, allocations: 27.97 kB / 0.6398 GB, free: 12.14 MB / 0.6043 GB Notification: Performance of NFScalarize.scalarize: time 1.936e-05/0.002977, allocations: 7.984 kB / 0.6398 GB, free: 12.14 MB / 0.6043 GB Notification: Performance of NFVerifyModel.verify: time 2.04e-05/0.002997, allocations: 11.94 kB / 0.6398 GB, free: 12.12 MB / 0.6043 GB Notification: Performance of NFConvertDAE.convert: time 0.0001046/0.003102, allocations: 51.86 kB / 0.6398 GB, free: 12.07 MB / 0.6043 GB Notification: Performance of FrontEnd - DAE generated: time 1.633e-06/0.003103, allocations: 0 / 0.6398 GB, free: 12.07 MB / 0.6043 GB Notification: Performance of FrontEnd: time 6.31e-07/0.003104, allocations: 0 / 0.6398 GB, free: 12.07 MB / 0.6043 GB Notification: Performance of Transformations before backend: time 3.627e-06/0.003107, allocations: 0 / 0.6398 GB, free: 12.07 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.0003196/0.003427, allocations: 264.4 kB / 0.6401 GB, free: 11.79 MB / 0.6043 GB Notification: Performance of prepare preOptimizeDAE: time 3.004e-05/0.003457, allocations: 15.98 kB / 0.6401 GB, free: 11.77 MB / 0.6043 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.393e-05/0.003531, allocations: 20.86 kB / 0.6401 GB, free: 11.75 MB / 0.6043 GB Notification: Performance of preOpt evaluateParameters (simulation): time 6.809e-05/0.003599, allocations: 105.8 kB / 0.6402 GB, free: 11.62 MB / 0.6043 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.926e-06/0.003608, allocations: 4.375 kB / 0.6402 GB, free: 11.62 MB / 0.6043 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.187e-06/0.003617, allocations: 4.375 kB / 0.6402 GB, free: 11.62 MB / 0.6043 GB Notification: Performance of preOpt clockPartitioning (simulation): time 8.744e-05/0.003705, allocations: 66.91 kB / 0.6403 GB, free: 11.54 MB / 0.6043 GB Notification: Performance of preOpt findStateOrder (simulation): time 5.35e-06/0.00371, allocations: 192 / 0.6403 GB, free: 11.54 MB / 0.6043 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.554e-06/0.003718, allocations: 4.375 kB / 0.6403 GB, free: 11.54 MB / 0.6043 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.737e-06/0.003721, allocations: 384 / 0.6403 GB, free: 11.54 MB / 0.6043 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.326e-05/0.003745, allocations: 15.88 kB / 0.6403 GB, free: 11.52 MB / 0.6043 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002701/0.004015, allocations: 164.2 kB / 0.6405 GB, free: 11.35 MB / 0.6043 GB Notification: Performance of preOpt comSubExp (simulation): time 6.377e-05/0.004078, allocations: 34.58 kB / 0.6405 GB, free: 11.3 MB / 0.6043 GB Notification: Performance of preOpt resolveLoops (simulation): time 1.396e-05/0.004092, allocations: 8.859 kB / 0.6405 GB, free: 11.29 MB / 0.6043 GB Notification: Performance of preOpt evalFunc (simulation): time 1.531e-05/0.004108, allocations: 3.984 kB / 0.6405 GB, free: 11.29 MB / 0.6043 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.472e-05/0.004162, allocations: 55.47 kB / 0.6406 GB, free: 11.22 MB / 0.6043 GB Notification: Performance of pre-optimization done (n=6): time 9.52e-07/0.004163, allocations: 0 / 0.6406 GB, free: 11.22 MB / 0.6043 GB Notification: Performance of matching and sorting (n=6): time 9.825e-05/0.004262, allocations: 57.61 kB / 0.6406 GB, free: 11.16 MB / 0.6043 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.243e-05/0.004294, allocations: 51.41 kB / 0.6407 GB, free: 11.1 MB / 0.6043 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.69e-05/0.004341, allocations: 110.7 kB / 0.6408 GB, free: 10.98 MB / 0.6043 GB Notification: Performance of collectPreVariables (initialization): time 1.046e-05/0.004351, allocations: 29.7 kB / 0.6408 GB, free: 10.94 MB / 0.6043 GB Notification: Performance of collectInitialEqns (initialization): time 2.481e-05/0.004376, allocations: 92.12 kB / 0.6409 GB, free: 10.85 MB / 0.6043 GB Notification: Performance of collectInitialBindings (initialization): time 1.44e-05/0.004391, allocations: 11.91 kB / 0.6409 GB, free: 10.84 MB / 0.6043 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.684e-05/0.004417, allocations: 25.69 kB / 0.6409 GB, free: 10.8 MB / 0.6043 GB Notification: Performance of setup shared object (initialization): time 6.384e-05/0.004481, allocations: 314.8 kB / 0.6412 GB, free: 10.49 MB / 0.6043 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.109e-05/0.004492, allocations: 4 kB / 0.6412 GB, free: 10.48 MB / 0.6043 GB Notification: Performance of partitionIndependentBlocks (initialization): time 2.931e-05/0.004522, allocations: 39.34 kB / 0.6413 GB, free: 10.43 MB / 0.6043 GB Notification: Performance of analyzeInitialSystem (initialization): time 4.236e-05/0.004564, allocations: 43.41 kB / 0.6413 GB, free: 10.38 MB / 0.6043 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.745e-06/0.004567, allocations: 7.938 kB / 0.6413 GB, free: 10.37 MB / 0.6043 GB Notification: Performance of matching and sorting (n=8) (initialization): time 6.088e-05/0.004628, allocations: 61.61 kB / 0.6414 GB, free: 10.3 MB / 0.6043 GB Notification: Performance of prepare postOptimizeDAE: time 8.747e-06/0.004636, allocations: 4 kB / 0.6414 GB, free: 10.3 MB / 0.6043 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.326e-06/0.00464, allocations: 0 / 0.6414 GB, free: 10.3 MB / 0.6043 GB Notification: Performance of postOpt tearingSystem (initialization): time 9.037e-06/0.004649, allocations: 7.938 kB / 0.6414 GB, free: 10.29 MB / 0.6043 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.032e-05/0.004699, allocations: 12.48 kB / 0.6414 GB, free: 10.28 MB / 0.6043 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.496e-06/0.004703, allocations: 0 / 0.6414 GB, free: 10.28 MB / 0.6043 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.513e-05/0.004728, allocations: 11.89 kB / 0.6414 GB, free: 10.27 MB / 0.6043 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.354e-06/0.004735, allocations: 11.94 kB / 0.6414 GB, free: 10.26 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 5.491e-05/0.00479, allocations: 113.9 kB / 0.6415 GB, free: 10.14 MB / 0.6043 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.282e-06/0.004796, allocations: 7.938 kB / 0.6415 GB, free: 10.13 MB / 0.6043 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.957e-05/0.004866, allocations: 62.11 kB / 0.6416 GB, free: 10.06 MB / 0.6043 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.825e-06/0.004869, allocations: 3.938 kB / 0.6416 GB, free: 10.06 MB / 0.6043 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.553e-06/0.00487, allocations: 0 / 0.6416 GB, free: 10.06 MB / 0.6043 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.826e-06/0.004873, allocations: 0 / 0.6416 GB, free: 10.06 MB / 0.6043 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000142/0.005015, allocations: 202.8 kB / 0.6418 GB, free: 9.836 MB / 0.6043 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.31e-07/0.005016, allocations: 0 / 0.6418 GB, free: 9.836 MB / 0.6043 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.233e-05/0.005038, allocations: 4 kB / 0.6418 GB, free: 9.832 MB / 0.6043 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.755e-06/0.005041, allocations: 4 kB / 0.6418 GB, free: 9.828 MB / 0.6043 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.891e-06/0.005047, allocations: 7.922 kB / 0.6418 GB, free: 9.82 MB / 0.6043 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.342e-06/0.005048, allocations: 4 kB / 0.6418 GB, free: 9.816 MB / 0.6043 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.21e-07/0.005049, allocations: 0 / 0.6418 GB, free: 9.816 MB / 0.6043 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 6.63e-05/0.005115, allocations: 147.5 kB / 0.642 GB, free: 9.656 MB / 0.6043 GB Notification: Performance of postOpt removeConstants (simulation): time 4.929e-06/0.00512, allocations: 7.953 kB / 0.642 GB, free: 9.648 MB / 0.6043 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.678e-06/0.00513, allocations: 7.922 kB / 0.642 GB, free: 9.641 MB / 0.6043 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.695e-05/0.005167, allocations: 4 kB / 0.642 GB, free: 9.637 MB / 0.6043 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.335e-05/0.00519, allocations: 11.98 kB / 0.642 GB, free: 9.625 MB / 0.6043 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.564e-06/0.005197, allocations: 0 / 0.642 GB, free: 9.625 MB / 0.6043 GB Notification: Performance of sorting global known variables: time 9.929e-06/0.005207, allocations: 9.047 kB / 0.642 GB, free: 9.613 MB / 0.6043 GB Notification: Performance of sort global known variables: time 5.1e-08/0.005207, allocations: 0 / 0.642 GB, free: 9.613 MB / 0.6043 GB Notification: Performance of remove unused functions: time 0.0001258/0.005333, allocations: 12 kB / 0.642 GB, free: 9.602 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 8.571e-05/0.005419, allocations: 88.41 kB / 0.6421 GB, free: 9.508 MB / 0.6043 GB Notification: Performance of simCode: created initialization part: time 5.77e-05/0.005477, allocations: 28.97 kB / 0.6421 GB, free: 9.477 MB / 0.6043 GB Notification: Performance of simCode: created event and clocks part: time 2.494e-06/0.005479, allocations: 4 kB / 0.6421 GB, free: 9.473 MB / 0.6043 GB Notification: Performance of simCode: created simulation system equations: time 2.626e-05/0.005505, allocations: 24.78 kB / 0.6422 GB, free: 9.445 MB / 0.6043 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001254/0.005631, allocations: 23.8 kB / 0.6422 GB, free: 9.422 MB / 0.6043 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003257/0.005956, allocations: 140.8 kB / 0.6423 GB, free: 9.258 MB / 0.6043 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 2.794e-05/0.005984, allocations: 55.36 kB / 0.6424 GB, free: 9.184 MB / 0.6043 GB Notification: Performance of simCode: alias equations: time 1.951e-05/0.006004, allocations: 3.984 kB / 0.6424 GB, free: 9.18 MB / 0.6043 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.596e-05/0.00605, allocations: 55.38 kB / 0.6424 GB, free: 9.125 MB / 0.6043 GB Notification: Performance of SimCode: time 6.11e-07/0.00605, allocations: 0 / 0.6424 GB, free: 9.125 MB / 0.6043 GB Notification: Performance of Templates: time 0.002169/0.008219, allocations: 0.8671 MB / 0.6433 GB, free: 8.262 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 -lv LOG_STATS > AixLib_AixLib.Controls.OBC.CDL.Discrete.Validation.Sampler.pipe 2>&1) [Timeout 240] [Calling sys.exit(0), Time elapsed: 4.458235113881528]