Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr AixLib_AixLib.Utilities.IO.Files.Examples.CSVWriter.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.09883/0.09883, allocations: 9.135 MB / 29 MB, free: 408 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.0009028/0.0009028, allocations: 94.64 kB / 35.33 MB, free: 0.9219 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.001874/0.001874, allocations: 170 kB / 38.73 MB, free: 2.363 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 1.03/1.03, allocations: 177.2 MB / 219.2 MB, free: 10.1 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.003938/0.003938, allocations: 0.8297 MB / 276.5 MB, free: 0.7305 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.65/1.65, allocations: 274.9 MB / 0.5419 GB, free: 0.6445 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.Utilities.IO.Files.Examples.CSVWriter,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2500,variableFilter="",fileNamePrefix="AixLib_AixLib.Utilities.IO.Files.Examples.CSVWriter") translateModel(AixLib.Utilities.IO.Files.Examples.CSVWriter,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2500,variableFilter="",fileNamePrefix="AixLib_AixLib.Utilities.IO.Files.Examples.CSVWriter") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.142e-06/1.142e-06, allocations: 0 / 0.6378 GB, free: 14.16 MB / 0.6043 GB Notification: Performance of FrontEnd - Absyn->SCode: time 1.642e-05/1.756e-05, allocations: 2.312 kB / 0.6378 GB, free: 14.15 MB / 0.6043 GB Notification: Performance of NFInst.instantiate(AixLib.Utilities.IO.Files.Examples.CSVWriter): time 0.002123/0.002141, allocations: 1.68 MB / 0.6395 GB, free: 12.46 MB / 0.6043 GB Notification: Performance of NFInst.instExpressions: time 0.00079/0.002931, allocations: 0.6813 MB / 0.6402 GB, free: 11.77 MB / 0.6043 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.138e-05/0.002982, allocations: 0 / 0.6402 GB, free: 11.77 MB / 0.6043 GB Notification: Performance of NFTyping.typeComponents: time 0.0001055/0.003087, allocations: 23.73 kB / 0.6402 GB, free: 11.75 MB / 0.6043 GB Notification: Performance of NFTyping.typeBindings: time 0.0001384/0.003226, allocations: 43.7 kB / 0.6402 GB, free: 11.7 MB / 0.6043 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002682/0.003494, allocations: 127.6 kB / 0.6403 GB, free: 11.58 MB / 0.6043 GB Notification: Performance of NFFlatten.flatten: time 0.0001747/0.003669, allocations: 191.5 kB / 0.6405 GB, free: 11.39 MB / 0.6043 GB Notification: Performance of NFFlatten.resolveConnections: time 7.104e-05/0.00374, allocations: 18.23 kB / 0.6405 GB, free: 11.37 MB / 0.6043 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001656/0.003905, allocations: 119.8 kB / 0.6407 GB, free: 11.25 MB / 0.6043 GB Notification: Performance of NFSimplifyModel.simplify: time 8.387e-05/0.003989, allocations: 71.78 kB / 0.6407 GB, free: 11.18 MB / 0.6043 GB Notification: Performance of NFPackage.collectConstants: time 2.191e-05/0.004011, allocations: 12 kB / 0.6407 GB, free: 11.17 MB / 0.6043 GB Notification: Performance of NFFlatten.collectFunctions: time 5.52e-05/0.004066, allocations: 28 kB / 0.6408 GB, free: 11.14 MB / 0.6043 GB Notification: Performance of NFScalarize.scalarize: time 5.299e-05/0.004119, allocations: 31.91 kB / 0.6408 GB, free: 11.11 MB / 0.6043 GB Notification: Performance of NFVerifyModel.verify: time 5.034e-05/0.00417, allocations: 51.89 kB / 0.6408 GB, free: 11.06 MB / 0.6043 GB Notification: Performance of NFConvertDAE.convert: time 0.0001686/0.004338, allocations: 163.4 kB / 0.641 GB, free: 10.9 MB / 0.6043 GB Notification: Performance of FrontEnd - DAE generated: time 1.312e-06/0.00434, allocations: 4 kB / 0.641 GB, free: 10.89 MB / 0.6043 GB Notification: Performance of FrontEnd: time 6.51e-07/0.00434, allocations: 0 / 0.641 GB, free: 10.89 MB / 0.6043 GB Notification: Performance of Transformations before backend: time 3.096e-06/0.004343, allocations: 0 / 0.641 GB, free: 10.89 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: 10 * Number of variables: 10 Notification: Performance of Generate backend data structure: time 0.000349/0.004692, allocations: 467 kB / 0.6414 GB, free: 10.39 MB / 0.6043 GB Notification: Performance of prepare preOptimizeDAE: time 2.695e-05/0.004719, allocations: 15.98 kB / 0.6415 GB, free: 10.38 MB / 0.6043 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.885e-05/0.004818, allocations: 32.91 kB / 0.6415 GB, free: 10.34 MB / 0.6043 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001588/0.004977, allocations: 169.5 kB / 0.6417 GB, free: 10.15 MB / 0.6043 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.167e-05/0.004989, allocations: 12.38 kB / 0.6417 GB, free: 10.14 MB / 0.6043 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.757e-05/0.005006, allocations: 16.38 kB / 0.6417 GB, free: 10.12 MB / 0.6043 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001358/0.005142, allocations: 154.3 kB / 0.6418 GB, free: 9.953 MB / 0.6043 GB Notification: Performance of preOpt findStateOrder (simulation): time 5.15e-06/0.005147, allocations: 192 / 0.6418 GB, free: 9.953 MB / 0.6043 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.11e-05/0.005158, allocations: 4.375 kB / 0.6418 GB, free: 9.949 MB / 0.6043 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.561e-06/0.005164, allocations: 7.938 kB / 0.6418 GB, free: 9.941 MB / 0.6043 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.073e-05/0.005225, allocations: 83.31 kB / 0.6419 GB, free: 9.848 MB / 0.6043 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002797/0.005504, allocations: 238.9 kB / 0.6421 GB, free: 9.598 MB / 0.6043 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001027/0.005607, allocations: 106 kB / 0.6422 GB, free: 9.473 MB / 0.6043 GB Notification: Performance of preOpt resolveLoops (simulation): time 8.26e-05/0.00569, allocations: 96.38 kB / 0.6423 GB, free: 9.363 MB / 0.6043 GB Notification: Performance of preOpt evalFunc (simulation): time 1.558e-05/0.005705, allocations: 8 kB / 0.6423 GB, free: 9.355 MB / 0.6043 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001476/0.005853, allocations: 202.1 kB / 0.6425 GB, free: 9.121 MB / 0.6043 GB Notification: Performance of pre-optimization done (n=10): time 1.243e-06/0.005854, allocations: 0 / 0.6425 GB, free: 9.121 MB / 0.6043 GB Notification: Performance of matching and sorting (n=10): time 0.0002325/0.006087, allocations: 319.6 kB / 0.6428 GB, free: 8.766 MB / 0.6043 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.372e-05/0.00614, allocations: 166.2 kB / 0.643 GB, free: 8.566 MB / 0.6043 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.292e-05/0.006233, allocations: 175.3 kB / 0.6432 GB, free: 8.379 MB / 0.6043 GB Notification: Performance of collectPreVariables (initialization): time 1.64e-05/0.00625, allocations: 29.7 kB / 0.6432 GB, free: 8.344 MB / 0.6043 GB Notification: Performance of collectInitialEqns (initialization): time 3.512e-05/0.006285, allocations: 96.34 kB / 0.6433 GB, free: 8.242 MB / 0.6043 GB Notification: Performance of collectInitialBindings (initialization): time 2.219e-05/0.006307, allocations: 35.72 kB / 0.6433 GB, free: 8.207 MB / 0.6043 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.356e-05/0.006351, allocations: 37.69 kB / 0.6434 GB, free: 8.164 MB / 0.6043 GB Notification: Performance of setup shared object (initialization): time 7.422e-05/0.006425, allocations: 334.8 kB / 0.6437 GB, free: 7.828 MB / 0.6043 GB Notification: Performance of preBalanceInitialSystem (initialization): time 6.669e-05/0.006491, allocations: 133.6 kB / 0.6438 GB, free: 7.672 MB / 0.6043 GB Notification: Performance of partitionIndependentBlocks (initialization): time 8.596e-05/0.006577, allocations: 181.7 kB / 0.644 GB, free: 7.445 MB / 0.6043 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001329/0.00671, allocations: 273.4 kB / 0.6442 GB, free: 7.113 MB / 0.6043 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.485e-06/0.006713, allocations: 7.938 kB / 0.6442 GB, free: 7.105 MB / 0.6043 GB Notification: Performance of matching and sorting (n=14) (initialization): time 0.000189/0.006902, allocations: 352.7 kB / 0.6446 GB, free: 6.703 MB / 0.6043 GB Notification: Performance of prepare postOptimizeDAE: time 4.947e-05/0.006951, allocations: 126.7 kB / 0.6447 GB, free: 6.555 MB / 0.6043 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.017e-06/0.006955, allocations: 0 / 0.6447 GB, free: 6.555 MB / 0.6043 GB Notification: Performance of postOpt tearingSystem (initialization): time 9.939e-06/0.006965, allocations: 4 kB / 0.6447 GB, free: 6.551 MB / 0.6043 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.738e-05/0.007023, allocations: 15.94 kB / 0.6447 GB, free: 6.535 MB / 0.6043 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.707e-06/0.007026, allocations: 3.984 kB / 0.6447 GB, free: 6.531 MB / 0.6043 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.646e-05/0.007073, allocations: 12.25 kB / 0.6447 GB, free: 6.52 MB / 0.6043 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.483e-05/0.007088, allocations: 12 kB / 0.6448 GB, free: 6.508 MB / 0.6043 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 8 * Number of states: 0 () * Number of discrete variables: 8 (combiTimeTableWriter.str,$PRE.combiTimeTableWriter.str,csvWriter.str,$PRE.csvWriter.str,combiTimeTableWriter.sampleTrigger,$whenCondition2,csvWriter.sampleTrigger,$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (14): * Single equations (assignments): 10 * Array equations: 0 * Algorithm blocks: 4 * 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.0001047/0.007192, allocations: 191.9 kB / 0.6449 GB, free: 6.297 MB / 0.6043 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.325e-05/0.007216, allocations: 19.98 kB / 0.645 GB, free: 6.277 MB / 0.6043 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.383e-05/0.007239, allocations: 21.39 kB / 0.645 GB, free: 6.262 MB / 0.6043 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.615e-06/0.007242, allocations: 4 kB / 0.645 GB, free: 6.258 MB / 0.6043 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.077e-06/0.007246, allocations: 4 kB / 0.645 GB, free: 6.254 MB / 0.6043 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.016e-06/0.007249, allocations: 0 / 0.645 GB, free: 6.254 MB / 0.6043 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000253/0.007502, allocations: 401.4 kB / 0.6454 GB, free: 5.812 MB / 0.6043 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.112e-06/0.007503, allocations: 4 kB / 0.6454 GB, free: 5.809 MB / 0.6043 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.61e-05/0.007529, allocations: 11.98 kB / 0.6454 GB, free: 5.797 MB / 0.6043 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.926e-06/0.007532, allocations: 7.938 kB / 0.6454 GB, free: 5.789 MB / 0.6043 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.845e-06/0.00754, allocations: 0 / 0.6454 GB, free: 5.789 MB / 0.6043 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.136e-06/0.007543, allocations: 4 kB / 0.6454 GB, free: 5.785 MB / 0.6043 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.01e-07/0.007544, allocations: 0 / 0.6454 GB, free: 5.785 MB / 0.6043 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001748/0.007719, allocations: 342.2 kB / 0.6457 GB, free: 5.41 MB / 0.6043 GB Notification: Performance of postOpt removeConstants (simulation): time 1.07e-05/0.00773, allocations: 7.953 kB / 0.6457 GB, free: 5.402 MB / 0.6043 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.271e-05/0.007752, allocations: 11.94 kB / 0.6457 GB, free: 5.391 MB / 0.6043 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.834e-05/0.007801, allocations: 4 kB / 0.6457 GB, free: 5.387 MB / 0.6043 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.795e-05/0.007829, allocations: 7.984 kB / 0.6457 GB, free: 5.379 MB / 0.6043 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.849e-06/0.007839, allocations: 12 kB / 0.6458 GB, free: 5.367 MB / 0.6043 GB Notification: Performance of sorting global known variables: time 3.52e-05/0.007874, allocations: 37.66 kB / 0.6458 GB, free: 5.328 MB / 0.6043 GB Notification: Performance of sort global known variables: time 5e-08/0.007874, allocations: 4 kB / 0.6458 GB, free: 5.324 MB / 0.6043 GB Notification: Performance of remove unused functions: time 0.0001681/0.008042, allocations: 43.88 kB / 0.6458 GB, free: 5.281 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: 6 ($whenCondition1,$whenCondition2,combiTimeTableWriter.str,combiTimeTableWriter.sampleTrigger,csvWriter.str,csvWriter.sampleTrigger) * Number of discrete states: 4 (combiTimeTableWriter.str,$whenCondition2,csvWriter.str,$whenCondition1) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (8): * Single equations (assignments): 6 * 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 Backend phase and start with SimCode phase: time 0.0001597/0.008202, allocations: 92.94 kB / 0.6459 GB, free: 5.18 MB / 0.6043 GB Notification: Performance of simCode: created initialization part: time 0.0002589/0.008461, allocations: 484.4 kB / 0.6464 GB, free: 4.617 MB / 0.6043 GB Notification: Performance of simCode: created event and clocks part: time 3.487e-06/0.008464, allocations: 0 / 0.6464 GB, free: 4.617 MB / 0.6043 GB Notification: Performance of simCode: created simulation system equations: time 0.0001056/0.00857, allocations: 227 kB / 0.6466 GB, free: 4.355 MB / 0.6043 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001427/0.008712, allocations: 27.92 kB / 0.6466 GB, free: 4.328 MB / 0.6043 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005001/0.009212, allocations: 342.1 kB / 0.647 GB, free: 3.957 MB / 0.6043 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 3.444e-05/0.009247, allocations: 67.34 kB / 0.647 GB, free: 3.871 MB / 0.6043 GB Notification: Performance of simCode: alias equations: time 3.075e-05/0.009278, allocations: 12.48 kB / 0.647 GB, free: 3.859 MB / 0.6043 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000112/0.00939, allocations: 91.34 kB / 0.6471 GB, free: 3.77 MB / 0.6043 GB Notification: Performance of SimCode: time 4.81e-07/0.00939, allocations: 4 kB / 0.6471 GB, free: 3.766 MB / 0.6043 GB Notification: Performance of Templates: time 0.003504/0.01289, allocations: 2.336 MB / 0.6494 GB, free: 1.426 MB / 0.6043 GB " [Timeout remaining time 660] make -j1 -f AixLib_AixLib.Utilities.IO.Files.Examples.CSVWriter.makefile [Timeout 660] (rm -f AixLib_AixLib.Utilities.IO.Files.Examples.CSVWriter.pipe ; mkfifo AixLib_AixLib.Utilities.IO.Files.Examples.CSVWriter.pipe ; head -c 1048576 < AixLib_AixLib.Utilities.IO.Files.Examples.CSVWriter.pipe >> ../files/AixLib_AixLib.Utilities.IO.Files.Examples.CSVWriter.sim & ./AixLib_AixLib.Utilities.IO.Files.Examples.CSVWriter -abortSlowSimulation -alarm=240 -lv LOG_STATS > AixLib_AixLib.Utilities.IO.Files.Examples.CSVWriter.pipe 2>&1) [Timeout 240] [Calling sys.exit(0), Time elapsed: 4.514158482197672]