Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr IDEAS_dev_IDEAS.Utilities.IO.Files.Examples.CSVWriter.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.001338/0.001338, allocations: 92.22 kB / 19.65 MB, free: 276 kB / 13.93 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.001659/0.001659, allocations: 173 kB / 23.02 MB, free: 1.547 MB / 18.57 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.9779/0.9779, allocations: 177.1 MB / 203.4 MB, free: 5.629 MB / 186.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS master/package.mo", uses=false) [Timeout 180] "[/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS master/Examples/PPD12/Structure.mo:531:21-535:34:writable] Warning: Lexer treating \\ as \\\\, since \\e is not a valid Modelica escape sequence. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS master/Examples/PPD12/Structure.mo:531:21-535:42:writable] Warning: Lexer treating \\ as \\\\, since \\< is not a valid Modelica escape sequence. Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS master/package.mo): time 0.8053/0.8053, allocations: 154.9 MB / 414.8 MB, free: 392 kB / 378.7 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS master/Utilities/Cryptographics/BaseClasses/sha.mo:2:1-19:8:writable] Warning: External function annotation should occur on the external-clause, not on the function. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS master/Utilities/File/sha2.mo:2:1-9:9:writable] Warning: External function annotation should occur on the external-clause, not on the function. " [Timeout remaining time 179] Using package IDEAS with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS master/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: translateModel(IDEAS.Utilities.IO.Files.Examples.CSVWriter,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2500,variableFilter="",fileNamePrefix="IDEAS_dev_IDEAS.Utilities.IO.Files.Examples.CSVWriter") translateModel(IDEAS.Utilities.IO.Files.Examples.CSVWriter,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2500,variableFilter="",fileNamePrefix="IDEAS_dev_IDEAS.Utilities.IO.Files.Examples.CSVWriter") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.563e-06/1.563e-06, allocations: 0 / 0.5207 GB, free: 1.793 MB / 490.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.811e-05/2.968e-05, allocations: 4 kB / 0.5207 GB, free: 1.789 MB / 490.7 MB Notification: Performance of NFInst.instantiate(IDEAS.Utilities.IO.Files.Examples.CSVWriter): time 0.002388/0.002418, allocations: 1.665 MB / 0.5223 GB, free: 136 kB / 490.7 MB Notification: Performance of NFInst.instExpressions: time 0.0009063/0.003324, allocations: 0.6665 MB / 0.523 GB, free: 15.46 MB / 0.4948 GB Notification: Performance of NFInst.updateImplicitVariability: time 8.112e-05/0.003405, allocations: 0.5625 kB / 0.523 GB, free: 15.46 MB / 0.4948 GB Notification: Performance of NFTyping.typeComponents: time 0.0001682/0.003574, allocations: 23.73 kB / 0.523 GB, free: 15.44 MB / 0.4948 GB Notification: Performance of NFTyping.typeBindings: time 0.0002033/0.003777, allocations: 44.61 kB / 0.523 GB, free: 15.39 MB / 0.4948 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003818/0.004159, allocations: 129.1 kB / 0.5231 GB, free: 15.27 MB / 0.4948 GB Notification: Performance of NFFlatten.flatten: time 0.000236/0.004395, allocations: 199.5 kB / 0.5233 GB, free: 15.07 MB / 0.4948 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001102/0.004505, allocations: 9.641 kB / 0.5233 GB, free: 15.06 MB / 0.4948 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002303/0.004735, allocations: 115.8 kB / 0.5235 GB, free: 14.95 MB / 0.4948 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001075/0.004843, allocations: 80.7 kB / 0.5235 GB, free: 14.87 MB / 0.4948 GB Notification: Performance of NFPackage.collectConstants: time 2.91e-05/0.004872, allocations: 15.94 kB / 0.5235 GB, free: 14.86 MB / 0.4948 GB Notification: Performance of NFFlatten.collectFunctions: time 7.613e-05/0.004948, allocations: 33.34 kB / 0.5236 GB, free: 14.82 MB / 0.4948 GB Notification: Performance of NFScalarize.scalarize: time 7.911e-05/0.005027, allocations: 27.91 kB / 0.5236 GB, free: 14.8 MB / 0.4948 GB Notification: Performance of NFVerifyModel.verify: time 6.614e-05/0.005093, allocations: 55.89 kB / 0.5237 GB, free: 14.74 MB / 0.4948 GB Notification: Performance of NFConvertDAE.convert: time 0.0002181/0.005311, allocations: 148.7 kB / 0.5238 GB, free: 14.6 MB / 0.4948 GB Notification: Performance of FrontEnd - DAE generated: time 2.996e-06/0.005314, allocations: 0 / 0.5238 GB, free: 14.6 MB / 0.4948 GB Notification: Performance of FrontEnd: time 8.32e-07/0.005315, allocations: 0 / 0.5238 GB, free: 14.6 MB / 0.4948 GB Notification: Performance of Transformations before backend: time 4.588e-06/0.00532, allocations: 0 / 0.5238 GB, free: 14.6 MB / 0.4948 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.0005708/0.00589, allocations: 0.5813 MB / 0.5244 GB, free: 13.96 MB / 0.4948 GB Notification: Performance of prepare preOptimizeDAE: time 3.776e-05/0.005928, allocations: 13.31 kB / 0.5244 GB, free: 13.95 MB / 0.4948 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001659/0.006094, allocations: 36.83 kB / 0.5244 GB, free: 13.91 MB / 0.4948 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002314/0.006326, allocations: 181.4 kB / 0.5246 GB, free: 13.71 MB / 0.4948 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.792e-05/0.006343, allocations: 12.38 kB / 0.5246 GB, free: 13.7 MB / 0.4948 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.899e-05/0.006362, allocations: 8.906 kB / 0.5246 GB, free: 13.69 MB / 0.4948 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005009/0.006863, allocations: 172.2 kB / 0.5248 GB, free: 13.5 MB / 0.4948 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.877e-06/0.006872, allocations: 4.125 kB / 0.5248 GB, free: 13.5 MB / 0.4948 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.57e-05/0.006888, allocations: 4.375 kB / 0.5248 GB, free: 13.49 MB / 0.4948 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.446e-06/0.006896, allocations: 3.938 kB / 0.5248 GB, free: 13.49 MB / 0.4948 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.148e-05/0.006978, allocations: 87.38 kB / 0.5249 GB, free: 13.39 MB / 0.4948 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004587/0.007437, allocations: 396.9 kB / 0.5252 GB, free: 12.97 MB / 0.4948 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001285/0.007565, allocations: 122.4 kB / 0.5254 GB, free: 12.82 MB / 0.4948 GB Notification: Performance of preOpt resolveLoops (simulation): time 8.351e-05/0.007649, allocations: 108.5 kB / 0.5255 GB, free: 12.7 MB / 0.4948 GB Notification: Performance of preOpt evalFunc (simulation): time 2.063e-05/0.007669, allocations: 0 / 0.5255 GB, free: 12.7 MB / 0.4948 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001701/0.007839, allocations: 223.7 kB / 0.5257 GB, free: 12.45 MB / 0.4948 GB Notification: Performance of pre-optimization done (n=10): time 1.493e-06/0.007841, allocations: 0 / 0.5257 GB, free: 12.45 MB / 0.4948 GB Notification: Performance of matching and sorting (n=10): time 0.0004655/0.008306, allocations: 424.8 kB / 0.5261 GB, free: 11.99 MB / 0.4948 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.089e-05/0.008377, allocations: 162.2 kB / 0.5262 GB, free: 11.79 MB / 0.4948 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000146/0.008523, allocations: 231.2 kB / 0.5265 GB, free: 11.55 MB / 0.4948 GB Notification: Performance of collectPreVariables (initialization): time 1.945e-05/0.008543, allocations: 35.2 kB / 0.5265 GB, free: 11.51 MB / 0.4948 GB Notification: Performance of collectInitialEqns (initialization): time 6.235e-05/0.008605, allocations: 163 kB / 0.5266 GB, free: 11.34 MB / 0.4948 GB Notification: Performance of collectInitialBindings (initialization): time 2.51e-05/0.00863, allocations: 23.8 kB / 0.5267 GB, free: 11.32 MB / 0.4948 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.422e-05/0.008684, allocations: 43.36 kB / 0.5267 GB, free: 11.27 MB / 0.4948 GB Notification: Performance of setup shared object (initialization): time 0.0001134/0.008798, allocations: 0.4967 MB / 0.5272 GB, free: 10.76 MB / 0.4948 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.361e-05/0.008891, allocations: 139.8 kB / 0.5273 GB, free: 10.6 MB / 0.4948 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001156/0.009007, allocations: 216.3 kB / 0.5275 GB, free: 10.33 MB / 0.4948 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001669/0.009174, allocations: 290.9 kB / 0.5278 GB, free: 9.977 MB / 0.4948 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.765e-06/0.009177, allocations: 0 / 0.5278 GB, free: 9.977 MB / 0.4948 GB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0003073/0.009484, allocations: 437.2 kB / 0.5282 GB, free: 9.496 MB / 0.4948 GB Notification: Performance of prepare postOptimizeDAE: time 6.448e-05/0.009548, allocations: 113.2 kB / 0.5283 GB, free: 9.363 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.498e-06/0.009558, allocations: 3.984 kB / 0.5283 GB, free: 9.359 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.262e-05/0.009581, allocations: 6.438 kB / 0.5283 GB, free: 9.355 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001028/0.009683, allocations: 16 kB / 0.5284 GB, free: 9.34 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.646e-06/0.009692, allocations: 8 kB / 0.5284 GB, free: 9.332 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.568e-05/0.009748, allocations: 19.88 kB / 0.5284 GB, free: 9.312 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.626e-05/0.009764, allocations: 8 kB / 0.5284 GB, free: 9.305 MB / 0.4948 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.0001302/0.009894, allocations: 237.1 kB / 0.5286 GB, free: 9.055 MB / 0.4948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.301e-05/0.009927, allocations: 27.84 kB / 0.5286 GB, free: 9.027 MB / 0.4948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.934e-05/0.009966, allocations: 21.45 kB / 0.5287 GB, free: 9.008 MB / 0.4948 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.917e-06/0.00997, allocations: 4 kB / 0.5287 GB, free: 9.004 MB / 0.4948 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.15e-06/0.009976, allocations: 0 / 0.5287 GB, free: 9.004 MB / 0.4948 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.188e-06/0.00998, allocations: 0 / 0.5287 GB, free: 9.004 MB / 0.4948 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004566/0.01044, allocations: 0.5831 MB / 0.5292 GB, free: 8.355 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.713e-06/0.01044, allocations: 0 / 0.5292 GB, free: 8.355 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.459e-05/0.01048, allocations: 8.922 kB / 0.5293 GB, free: 8.348 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.635e-06/0.01049, allocations: 4 kB / 0.5293 GB, free: 8.344 MB / 0.4948 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.379e-05/0.0105, allocations: 8 kB / 0.5293 GB, free: 8.336 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.854e-06/0.0105, allocations: 3.25 kB / 0.5293 GB, free: 8.336 MB / 0.4948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.152e-06/0.0105, allocations: 0 / 0.5293 GB, free: 8.336 MB / 0.4948 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003153/0.01082, allocations: 490.4 kB / 0.5297 GB, free: 7.812 MB / 0.4948 GB Notification: Performance of postOpt removeConstants (simulation): time 1.284e-05/0.01083, allocations: 11.91 kB / 0.5297 GB, free: 7.801 MB / 0.4948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.301e-05/0.01085, allocations: 4 kB / 0.5297 GB, free: 7.797 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.233e-05/0.01092, allocations: 11.98 kB / 0.5298 GB, free: 7.785 MB / 0.4948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.232e-05/0.01096, allocations: 7.984 kB / 0.5298 GB, free: 7.777 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.294e-05/0.01097, allocations: 12 kB / 0.5298 GB, free: 7.766 MB / 0.4948 GB Notification: Performance of sorting global known variables: time 7.716e-05/0.01105, allocations: 168.6 kB / 0.5299 GB, free: 7.605 MB / 0.4948 GB Notification: Performance of sort global known variables: time 5e-08/0.01105, allocations: 0 / 0.5299 GB, free: 7.605 MB / 0.4948 GB Notification: Performance of remove unused functions: time 0.0002084/0.01126, allocations: 39.92 kB / 0.53 GB, free: 7.566 MB / 0.4948 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.0002098/0.01147, allocations: 123.3 kB / 0.5301 GB, free: 7.441 MB / 0.4948 GB Notification: Performance of simCode: created initialization part: time 0.0003197/0.01179, allocations: 496.7 kB / 0.5306 GB, free: 6.867 MB / 0.4948 GB Notification: Performance of simCode: created event and clocks part: time 2.004e-06/0.01179, allocations: 0 / 0.5306 GB, free: 6.867 MB / 0.4948 GB Notification: Performance of simCode: created simulation system equations: time 0.000132/0.01192, allocations: 233.8 kB / 0.5308 GB, free: 6.598 MB / 0.4948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002249/0.01214, allocations: 30.53 kB / 0.5308 GB, free: 6.57 MB / 0.4948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006478/0.01279, allocations: 347.3 kB / 0.5312 GB, free: 6.191 MB / 0.4948 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.316e-05/0.01284, allocations: 71.34 kB / 0.5312 GB, free: 6.102 MB / 0.4948 GB Notification: Performance of simCode: alias equations: time 5.237e-05/0.01289, allocations: 20.45 kB / 0.5312 GB, free: 6.082 MB / 0.4948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.692e-05/0.01293, allocations: 21.48 kB / 0.5313 GB, free: 6.062 MB / 0.4948 GB Notification: Performance of SimCode: time 9.41e-07/0.01293, allocations: 0 / 0.5313 GB, free: 6.062 MB / 0.4948 GB Notification: Performance of Templates: time 0.004901/0.01783, allocations: 2.349 MB / 0.5336 GB, free: 3.895 MB / 0.4948 GB " [Timeout remaining time 660] make -j1 -f IDEAS_dev_IDEAS.Utilities.IO.Files.Examples.CSVWriter.makefile [Timeout 660] (rm -f IDEAS_dev_IDEAS.Utilities.IO.Files.Examples.CSVWriter.pipe ; mkfifo IDEAS_dev_IDEAS.Utilities.IO.Files.Examples.CSVWriter.pipe ; head -c 1048576 < IDEAS_dev_IDEAS.Utilities.IO.Files.Examples.CSVWriter.pipe >> ../files/IDEAS_dev_IDEAS.Utilities.IO.Files.Examples.CSVWriter.sim & ./IDEAS_dev_IDEAS.Utilities.IO.Files.Examples.CSVWriter -abortSlowSimulation -alarm=240 -lv LOG_STATS > IDEAS_dev_IDEAS.Utilities.IO.Files.Examples.CSVWriter.pipe 2>&1) [Timeout 240] [Calling sys.exit(0), Time elapsed: 3.7434486960992217]