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.04272/0.04272, allocations: 9.13 MB / 28.99 MB, free: 340 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.0008205/0.0008205, allocations: 91.27 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.0009519/0.0009519, allocations: 171.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 1.026/1.026, 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.004035/0.004035, allocations: 0.8188 MB / 276.5 MB, free: 0.75 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.654/1.654, allocations: 274.9 MB / 0.5419 GB, free: 0.6328 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.363e-06/1.363e-06, allocations: 0 / 0.6379 GB, free: 14.1 MB / 0.6043 GB Notification: Performance of FrontEnd - Absyn->SCode: time 1.483e-05/1.619e-05, allocations: 2.312 kB / 0.6379 GB, free: 14.1 MB / 0.6043 GB Notification: Performance of NFInst.instantiate(AixLib.Utilities.IO.Files.Examples.CSVWriter): time 0.002306/0.002322, allocations: 1.72 MB / 0.6396 GB, free: 12.36 MB / 0.6043 GB Notification: Performance of NFInst.instExpressions: time 0.0008379/0.00316, allocations: 0.6813 MB / 0.6402 GB, free: 11.68 MB / 0.6043 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.55e-05/0.003225, allocations: 0 / 0.6402 GB, free: 11.68 MB / 0.6043 GB Notification: Performance of NFTyping.typeComponents: time 0.000141/0.003366, allocations: 23.72 kB / 0.6403 GB, free: 11.65 MB / 0.6043 GB Notification: Performance of NFTyping.typeBindings: time 0.000176/0.003542, allocations: 51.69 kB / 0.6403 GB, free: 11.6 MB / 0.6043 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002968/0.003839, allocations: 115.7 kB / 0.6404 GB, free: 11.49 MB / 0.6043 GB Notification: Performance of NFFlatten.flatten: time 0.0002125/0.004051, allocations: 191.5 kB / 0.6406 GB, free: 11.3 MB / 0.6043 GB Notification: Performance of NFFlatten.resolveConnections: time 8.899e-05/0.00414, allocations: 22.22 kB / 0.6406 GB, free: 11.27 MB / 0.6043 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001866/0.004327, allocations: 119.8 kB / 0.6407 GB, free: 11.16 MB / 0.6043 GB Notification: Performance of NFSimplifyModel.simplify: time 9.374e-05/0.004421, allocations: 75.78 kB / 0.6408 GB, free: 11.08 MB / 0.6043 GB Notification: Performance of NFPackage.collectConstants: time 2.487e-05/0.004446, allocations: 12 kB / 0.6408 GB, free: 11.07 MB / 0.6043 GB Notification: Performance of NFFlatten.collectFunctions: time 6.931e-05/0.004515, allocations: 31.98 kB / 0.6409 GB, free: 11.04 MB / 0.6043 GB Notification: Performance of NFScalarize.scalarize: time 5.975e-05/0.004575, allocations: 23.91 kB / 0.6409 GB, free: 11.02 MB / 0.6043 GB Notification: Performance of NFVerifyModel.verify: time 5.469e-05/0.004629, allocations: 59.89 kB / 0.6409 GB, free: 10.96 MB / 0.6043 GB Notification: Performance of NFConvertDAE.convert: time 0.0001719/0.004801, allocations: 155.5 kB / 0.6411 GB, free: 10.8 MB / 0.6043 GB Notification: Performance of FrontEnd - DAE generated: time 1.523e-06/0.004803, allocations: 0 / 0.6411 GB, free: 10.8 MB / 0.6043 GB Notification: Performance of FrontEnd: time 5.61e-07/0.004803, allocations: 0 / 0.6411 GB, free: 10.8 MB / 0.6043 GB Notification: Performance of Transformations before backend: time 3.777e-06/0.004807, allocations: 0 / 0.6411 GB, free: 10.8 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.0004246/0.005232, allocations: 479 kB / 0.6415 GB, free: 10.29 MB / 0.6043 GB Notification: Performance of prepare preOptimizeDAE: time 2.927e-05/0.005261, allocations: 11.98 kB / 0.6416 GB, free: 10.28 MB / 0.6043 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001116/0.005372, allocations: 28.91 kB / 0.6416 GB, free: 10.25 MB / 0.6043 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002017/0.005574, allocations: 169.5 kB / 0.6417 GB, free: 10.06 MB / 0.6043 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.422e-05/0.005588, allocations: 4.375 kB / 0.6417 GB, free: 10.05 MB / 0.6043 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.108e-05/0.005609, allocations: 16.38 kB / 0.6418 GB, free: 10.04 MB / 0.6043 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001843/0.005794, allocations: 154.3 kB / 0.6419 GB, free: 9.867 MB / 0.6043 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.436e-06/0.005802, allocations: 192 / 0.6419 GB, free: 9.867 MB / 0.6043 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.433e-05/0.005817, allocations: 8.359 kB / 0.6419 GB, free: 9.859 MB / 0.6043 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.045e-06/0.005825, allocations: 7.938 kB / 0.6419 GB, free: 9.852 MB / 0.6043 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.204e-05/0.005897, allocations: 83.33 kB / 0.642 GB, free: 9.758 MB / 0.6043 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000385/0.006282, allocations: 238.9 kB / 0.6422 GB, free: 9.508 MB / 0.6043 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001049/0.006387, allocations: 106 kB / 0.6423 GB, free: 9.383 MB / 0.6043 GB Notification: Performance of preOpt resolveLoops (simulation): time 7.315e-05/0.00646, allocations: 96.38 kB / 0.6424 GB, free: 9.273 MB / 0.6043 GB Notification: Performance of preOpt evalFunc (simulation): time 1.486e-05/0.006475, allocations: 0 / 0.6424 GB, free: 9.273 MB / 0.6043 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001557/0.00663, allocations: 202.1 kB / 0.6426 GB, free: 9.039 MB / 0.6043 GB Notification: Performance of pre-optimization done (n=10): time 1.363e-06/0.006632, allocations: 0 / 0.6426 GB, free: 9.039 MB / 0.6043 GB Notification: Performance of matching and sorting (n=10): time 0.0005488/0.00718, allocations: 332 kB / 0.6429 GB, free: 8.672 MB / 0.6043 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.537e-05/0.007246, allocations: 162.2 kB / 0.6431 GB, free: 8.477 MB / 0.6043 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001183/0.007364, allocations: 175.3 kB / 0.6433 GB, free: 8.289 MB / 0.6043 GB Notification: Performance of collectPreVariables (initialization): time 2.042e-05/0.007384, allocations: 33.7 kB / 0.6433 GB, free: 8.25 MB / 0.6043 GB Notification: Performance of collectInitialEqns (initialization): time 4.437e-05/0.007429, allocations: 100.3 kB / 0.6434 GB, free: 8.145 MB / 0.6043 GB Notification: Performance of collectInitialBindings (initialization): time 2.543e-05/0.007454, allocations: 27.73 kB / 0.6434 GB, free: 8.117 MB / 0.6043 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.166e-05/0.007516, allocations: 41.69 kB / 0.6434 GB, free: 8.07 MB / 0.6043 GB Notification: Performance of setup shared object (initialization): time 9.661e-05/0.007612, allocations: 326.8 kB / 0.6438 GB, free: 7.742 MB / 0.6043 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.812e-05/0.007701, allocations: 137.6 kB / 0.6439 GB, free: 7.582 MB / 0.6043 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001251/0.007826, allocations: 189.6 kB / 0.6441 GB, free: 7.348 MB / 0.6043 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.003186/0.01101, allocations: 265.5 kB / 0.6443 GB, free: 7.023 MB / 0.6043 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.505e-06/0.01101, allocations: 3.938 kB / 0.6443 GB, free: 7.02 MB / 0.6043 GB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0002581/0.01127, allocations: 360.8 kB / 0.6447 GB, free: 6.609 MB / 0.6043 GB Notification: Performance of prepare postOptimizeDAE: time 6.254e-05/0.01134, allocations: 118.7 kB / 0.6448 GB, free: 6.469 MB / 0.6043 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.342e-06/0.01134, allocations: 4 kB / 0.6448 GB, free: 6.465 MB / 0.6043 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.327e-05/0.01135, allocations: 0 / 0.6448 GB, free: 6.465 MB / 0.6043 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.898e-05/0.01143, allocations: 27.92 kB / 0.6448 GB, free: 6.438 MB / 0.6043 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.397e-06/0.01144, allocations: 0 / 0.6448 GB, free: 6.438 MB / 0.6043 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.59e-05/0.0115, allocations: 12 kB / 0.6448 GB, free: 6.426 MB / 0.6043 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.687e-05/0.01152, allocations: 11.98 kB / 0.6448 GB, free: 6.414 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.0001225/0.01164, allocations: 195.9 kB / 0.645 GB, free: 6.199 MB / 0.6043 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.776e-05/0.01167, allocations: 20.14 kB / 0.645 GB, free: 6.18 MB / 0.6043 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.353e-05/0.0117, allocations: 17.41 kB / 0.6451 GB, free: 6.168 MB / 0.6043 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.984e-06/0.01171, allocations: 0 / 0.6451 GB, free: 6.168 MB / 0.6043 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.166e-06/0.01171, allocations: 4 kB / 0.6451 GB, free: 6.164 MB / 0.6043 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.876e-06/0.01171, allocations: 0 / 0.6451 GB, free: 6.164 MB / 0.6043 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003175/0.01203, allocations: 409.4 kB / 0.6455 GB, free: 5.715 MB / 0.6043 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.525e-06/0.01203, allocations: 4 kB / 0.6455 GB, free: 5.711 MB / 0.6043 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.773e-05/0.01207, allocations: 4 kB / 0.6455 GB, free: 5.707 MB / 0.6043 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.585e-06/0.01207, allocations: 7.938 kB / 0.6455 GB, free: 5.699 MB / 0.6043 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.503e-05/0.01209, allocations: 11.98 kB / 0.6455 GB, free: 5.688 MB / 0.6043 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.412e-06/0.01209, allocations: 4 kB / 0.6455 GB, free: 5.684 MB / 0.6043 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.092e-06/0.01209, allocations: 0 / 0.6455 GB, free: 5.684 MB / 0.6043 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002157/0.01231, allocations: 334.2 kB / 0.6458 GB, free: 5.316 MB / 0.6043 GB Notification: Performance of postOpt removeConstants (simulation): time 1.294e-05/0.01232, allocations: 7.953 kB / 0.6458 GB, free: 5.309 MB / 0.6043 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.6e-05/0.01234, allocations: 7.938 kB / 0.6458 GB, free: 5.301 MB / 0.6043 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.178e-05/0.01242, allocations: 7.984 kB / 0.6458 GB, free: 5.293 MB / 0.6043 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.428e-05/0.01245, allocations: 11.98 kB / 0.6458 GB, free: 5.281 MB / 0.6043 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.335e-05/0.01246, allocations: 4 kB / 0.6458 GB, free: 5.277 MB / 0.6043 GB Notification: Performance of sorting global known variables: time 4.443e-05/0.01251, allocations: 45.66 kB / 0.6459 GB, free: 5.23 MB / 0.6043 GB Notification: Performance of sort global known variables: time 5e-08/0.01251, allocations: 3.938 kB / 0.6459 GB, free: 5.227 MB / 0.6043 GB Notification: Performance of remove unused functions: time 0.0002476/0.01276, allocations: 39.89 kB / 0.6459 GB, free: 5.188 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.0001726/0.01293, allocations: 100.3 kB / 0.646 GB, free: 5.078 MB / 0.6043 GB Notification: Performance of simCode: created initialization part: time 0.0002958/0.01322, allocations: 480.5 kB / 0.6465 GB, free: 4.52 MB / 0.6043 GB Notification: Performance of simCode: created event and clocks part: time 3.787e-06/0.01323, allocations: 0.5 kB / 0.6465 GB, free: 4.52 MB / 0.6043 GB Notification: Performance of simCode: created simulation system equations: time 0.0001257/0.01335, allocations: 219 kB / 0.6467 GB, free: 4.266 MB / 0.6043 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002007/0.01355, allocations: 27.92 kB / 0.6467 GB, free: 4.238 MB / 0.6043 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00359/0.01714, allocations: 341.8 kB / 0.647 GB, free: 3.867 MB / 0.6043 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.852e-05/0.01719, allocations: 71.33 kB / 0.6471 GB, free: 3.777 MB / 0.6043 GB Notification: Performance of simCode: alias equations: time 3.732e-05/0.01723, allocations: 4.5 kB / 0.6471 GB, free: 3.773 MB / 0.6043 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001443/0.01737, allocations: 95.34 kB / 0.6472 GB, free: 3.68 MB / 0.6043 GB Notification: Performance of SimCode: time 1.162e-06/0.01738, allocations: 4 kB / 0.6472 GB, free: 3.676 MB / 0.6043 GB Notification: Performance of Templates: time 0.008013/0.02539, allocations: 2.34 MB / 0.6495 GB, free: 1.336 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 -s gbode -gbm=radauIIA3 -lv LOG_STATS > AixLib_AixLib.Utilities.IO.Files.Examples.CSVWriter.pipe 2>&1) [Timeout 240] [Calling sys.exit(0), Time elapsed: 4.362286287359893]