Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr IDEAS_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.001359/0.001359, allocations: 92.7 kB / 19.44 MB, free: 320 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.001532/0.001532, allocations: 161.3 kB / 22.75 MB, free: 1.652 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 1.489/1.489, allocations: 177.1 MB / 203.1 MB, free: 5.59 MB / 186.7 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 4.0.0/package.mo", uses=false) [Timeout 180] "[/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 4.0.0/Examples/PPD12/Structure.mo:531:21-545:108:writable] Warning: Lexer treating \\ as \\\\, since \\e is not a valid Modelica escape sequence. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 4.0.0/Examples/PPD12/Structure.mo:531:21-545:116:writable] Warning: Lexer treating \\ as \\\\, since \\< is not a valid Modelica escape sequence. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 4.0.0/Media/Refrigerants/R410A/package.order:0:0-0:0:readonly] Warning: Found duplicate names in package.order file: A, B, C. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 4.0.0/Media/Refrigerants/R410A/package.mo:2:1-70:10:writable] Warning: C was referenced in the package.order file, but was not found in package.mo, C/package.mo or C.mo. Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 4.0.0/package.mo): time 1.292/1.292, allocations: 154.6 MB / 414.2 MB, free: 0.6289 MB / 378.7 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 4.0.0/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 4.0.0/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 178] Using package IDEAS with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 4.0.0/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_IDEAS.Utilities.IO.Files.Examples.CSVWriter") translateModel(IDEAS.Utilities.IO.Files.Examples.CSVWriter,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2500,variableFilter="",fileNamePrefix="IDEAS_IDEAS.Utilities.IO.Files.Examples.CSVWriter") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.583e-06/1.583e-06, allocations: 0.6562 kB / 0.5196 GB, free: 2.562 MB / 490.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 3.072e-05/3.23e-05, allocations: 7.75 kB / 0.5196 GB, free: 2.559 MB / 490.7 MB Notification: Performance of NFInst.instantiate(IDEAS.Utilities.IO.Files.Examples.CSVWriter): time 0.003202/0.003234, allocations: 1.614 MB / 0.5212 GB, free: 0.9531 MB / 490.7 MB Notification: Performance of NFInst.instExpressions: time 0.001323/0.004557, allocations: 0.6503 MB / 0.5218 GB, free: 308 kB / 490.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.01e-05/0.004627, allocations: 0 / 0.5218 GB, free: 308 kB / 490.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001759/0.004803, allocations: 19.8 kB / 0.5218 GB, free: 288 kB / 490.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002245/0.005028, allocations: 51.64 kB / 0.5219 GB, free: 236 kB / 490.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004477/0.005475, allocations: 119.7 kB / 0.522 GB, free: 116 kB / 490.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003315/0.005807, allocations: 195.5 kB / 0.5222 GB, free: 15.92 MB / 0.4948 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001113/0.005918, allocations: 22.17 kB / 0.5222 GB, free: 15.9 MB / 0.4948 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002682/0.006186, allocations: 111.8 kB / 0.5223 GB, free: 15.79 MB / 0.4948 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001447/0.006331, allocations: 72.41 kB / 0.5224 GB, free: 15.72 MB / 0.4948 GB Notification: Performance of NFPackage.collectConstants: time 4.076e-05/0.006372, allocations: 12.81 kB / 0.5224 GB, free: 15.71 MB / 0.4948 GB Notification: Performance of NFFlatten.collectFunctions: time 9.578e-05/0.006468, allocations: 35.92 kB / 0.5224 GB, free: 15.67 MB / 0.4948 GB Notification: Performance of NFScalarize.scalarize: time 9.471e-05/0.006562, allocations: 36.38 kB / 0.5225 GB, free: 15.64 MB / 0.4948 GB Notification: Performance of NFVerifyModel.verify: time 9.952e-05/0.006662, allocations: 53.36 kB / 0.5225 GB, free: 15.59 MB / 0.4948 GB Notification: Performance of NFConvertDAE.convert: time 0.0003374/0.006999, allocations: 199.3 kB / 0.5227 GB, free: 15.39 MB / 0.4948 GB Notification: Performance of FrontEnd - DAE generated: time 2.245e-06/0.007002, allocations: 0 / 0.5227 GB, free: 15.39 MB / 0.4948 GB Notification: Performance of FrontEnd: time 8.22e-07/0.007002, allocations: 0 / 0.5227 GB, free: 15.39 MB / 0.4948 GB Notification: Performance of Transformations before backend: time 5.25e-06/0.007008, allocations: 0.9375 kB / 0.5227 GB, free: 15.39 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.0008449/0.007852, allocations: 496.4 kB / 0.5232 GB, free: 14.85 MB / 0.4948 GB Notification: Performance of prepare preOptimizeDAE: time 3.8e-05/0.00789, allocations: 13.38 kB / 0.5232 GB, free: 14.84 MB / 0.4948 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002161/0.008107, allocations: 32.89 kB / 0.5232 GB, free: 14.81 MB / 0.4948 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003546/0.008461, allocations: 182.8 kB / 0.5234 GB, free: 14.61 MB / 0.4948 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.259e-05/0.008484, allocations: 8.375 kB / 0.5234 GB, free: 14.6 MB / 0.4948 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.295e-05/0.008517, allocations: 13.12 kB / 0.5234 GB, free: 14.59 MB / 0.4948 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003701/0.008887, allocations: 169.6 kB / 0.5236 GB, free: 14.4 MB / 0.4948 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.967e-06/0.008896, allocations: 1.469 kB / 0.5236 GB, free: 14.4 MB / 0.4948 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.566e-05/0.008921, allocations: 12.12 kB / 0.5236 GB, free: 14.39 MB / 0.4948 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.829e-06/0.008926, allocations: 0 / 0.5236 GB, free: 14.39 MB / 0.4948 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002642/0.00919, allocations: 132.6 kB / 0.5237 GB, free: 14.25 MB / 0.4948 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006953/0.009886, allocations: 333.1 kB / 0.524 GB, free: 13.89 MB / 0.4948 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002671/0.01015, allocations: 143.8 kB / 0.5242 GB, free: 13.73 MB / 0.4948 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002169/0.01037, allocations: 120.4 kB / 0.5243 GB, free: 13.6 MB / 0.4948 GB Notification: Performance of preOpt evalFunc (simulation): time 2.99e-05/0.0104, allocations: 11.92 kB / 0.5243 GB, free: 13.59 MB / 0.4948 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.00038/0.01078, allocations: 240.1 kB / 0.5245 GB, free: 13.32 MB / 0.4948 GB Notification: Performance of pre-optimization done (n=10): time 1.302e-06/0.01078, allocations: 0 / 0.5245 GB, free: 13.32 MB / 0.4948 GB Notification: Performance of matching and sorting (n=10): time 0.000996/0.01178, allocations: 483.5 kB / 0.525 GB, free: 12.8 MB / 0.4948 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001355/0.01191, allocations: 173.1 kB / 0.5252 GB, free: 12.6 MB / 0.4948 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002117/0.01212, allocations: 175.6 kB / 0.5253 GB, free: 12.42 MB / 0.4948 GB Notification: Performance of collectPreVariables (initialization): time 3.426e-05/0.01216, allocations: 29.7 kB / 0.5254 GB, free: 12.38 MB / 0.4948 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001096/0.01227, allocations: 112.3 kB / 0.5255 GB, free: 12.27 MB / 0.4948 GB Notification: Performance of collectInitialBindings (initialization): time 4.382e-05/0.01231, allocations: 31.77 kB / 0.5255 GB, free: 12.23 MB / 0.4948 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.099e-05/0.01239, allocations: 37.7 kB / 0.5255 GB, free: 12.19 MB / 0.4948 GB Notification: Performance of setup shared object (initialization): time 0.0002038/0.0126, allocations: 326.8 kB / 0.5258 GB, free: 11.86 MB / 0.4948 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003616/0.01296, allocations: 169.5 kB / 0.526 GB, free: 11.68 MB / 0.4948 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000276/0.01323, allocations: 220.3 kB / 0.5262 GB, free: 11.41 MB / 0.4948 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004263/0.01366, allocations: 306.8 kB / 0.5265 GB, free: 11.05 MB / 0.4948 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.435e-06/0.01366, allocations: 4 kB / 0.5265 GB, free: 11.05 MB / 0.4948 GB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0007433/0.01441, allocations: 478.2 kB / 0.527 GB, free: 10.53 MB / 0.4948 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001228/0.01453, allocations: 122.8 kB / 0.5271 GB, free: 10.39 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.68e-06/0.01453, allocations: 0 / 0.5271 GB, free: 10.39 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.338e-05/0.01456, allocations: 4 kB / 0.5271 GB, free: 10.38 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001213/0.01468, allocations: 20.42 kB / 0.5271 GB, free: 10.36 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.088e-05/0.01469, allocations: 9.812 kB / 0.5271 GB, free: 10.36 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001039/0.01479, allocations: 11.95 kB / 0.5271 GB, free: 10.34 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.649e-05/0.01482, allocations: 11.98 kB / 0.5271 GB, free: 10.33 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.0002059/0.01503, allocations: 203 kB / 0.5273 GB, free: 10.12 MB / 0.4948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.675e-05/0.01508, allocations: 31.84 kB / 0.5274 GB, free: 10.09 MB / 0.4948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.599e-05/0.01513, allocations: 17.45 kB / 0.5274 GB, free: 10.07 MB / 0.4948 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.043e-06/0.01513, allocations: 4 kB / 0.5274 GB, free: 10.06 MB / 0.4948 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.528e-06/0.01514, allocations: 0 / 0.5274 GB, free: 10.06 MB / 0.4948 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.861e-06/0.01514, allocations: 3.984 kB / 0.5274 GB, free: 10.06 MB / 0.4948 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008894/0.01603, allocations: 0.5735 MB / 0.5279 GB, free: 9.426 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.633e-06/0.01603, allocations: 0 / 0.5279 GB, free: 9.426 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.898e-05/0.0161, allocations: 11.98 kB / 0.528 GB, free: 9.414 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.794e-06/0.0161, allocations: 0 / 0.528 GB, free: 9.414 MB / 0.4948 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.774e-05/0.01613, allocations: 11.98 kB / 0.528 GB, free: 9.402 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.383e-06/0.01613, allocations: 0 / 0.528 GB, free: 9.402 MB / 0.4948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.306e-06/0.01614, allocations: 5.031 kB / 0.528 GB, free: 9.398 MB / 0.4948 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007441/0.01688, allocations: 482.9 kB / 0.5284 GB, free: 8.887 MB / 0.4948 GB Notification: Performance of postOpt removeConstants (simulation): time 2.322e-05/0.0169, allocations: 11.91 kB / 0.5284 GB, free: 8.875 MB / 0.4948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.542e-05/0.01694, allocations: 4 kB / 0.5284 GB, free: 8.871 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001233/0.01706, allocations: 13.56 kB / 0.5285 GB, free: 8.859 MB / 0.4948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.201e-05/0.01711, allocations: 3.984 kB / 0.5285 GB, free: 8.855 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.984e-05/0.01713, allocations: 8 kB / 0.5285 GB, free: 8.848 MB / 0.4948 GB Notification: Performance of sorting global known variables: time 0.0001347/0.01727, allocations: 135.9 kB / 0.5286 GB, free: 8.719 MB / 0.4948 GB Notification: Performance of sort global known variables: time 6e-08/0.01727, allocations: 0 / 0.5286 GB, free: 8.719 MB / 0.4948 GB Notification: Performance of remove unused functions: time 0.000321/0.01759, allocations: 36 kB / 0.5286 GB, free: 8.684 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.0002828/0.01787, allocations: 123 kB / 0.5288 GB, free: 8.559 MB / 0.4948 GB Notification: Performance of simCode: created initialization part: time 0.000741/0.01861, allocations: 0.5206 MB / 0.5293 GB, free: 7.953 MB / 0.4948 GB Notification: Performance of simCode: created event and clocks part: time 1.863e-06/0.01862, allocations: 0 / 0.5293 GB, free: 7.953 MB / 0.4948 GB Notification: Performance of simCode: created simulation system equations: time 0.0003266/0.01894, allocations: 238.7 kB / 0.5295 GB, free: 7.684 MB / 0.4948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003447/0.01929, allocations: 39.08 kB / 0.5295 GB, free: 7.648 MB / 0.4948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000714/0.02, allocations: 348.1 kB / 0.5299 GB, free: 7.273 MB / 0.4948 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001143/0.02012, allocations: 98.23 kB / 0.53 GB, free: 7.16 MB / 0.4948 GB Notification: Performance of simCode: alias equations: time 7.518e-05/0.02019, allocations: 21.38 kB / 0.53 GB, free: 7.141 MB / 0.4948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.024e-05/0.02023, allocations: 15.12 kB / 0.53 GB, free: 7.129 MB / 0.4948 GB Notification: Performance of SimCode: time 4.81e-07/0.02023, allocations: 0 / 0.53 GB, free: 7.129 MB / 0.4948 GB Notification: Performance of Templates: time 0.006496/0.02673, allocations: 2.197 MB / 0.5321 GB, free: 5.109 MB / 0.4948 GB " [Timeout remaining time 660] make -j1 -f IDEAS_IDEAS.Utilities.IO.Files.Examples.CSVWriter.makefile [Timeout 660] (rm -f IDEAS_IDEAS.Utilities.IO.Files.Examples.CSVWriter.pipe ; mkfifo IDEAS_IDEAS.Utilities.IO.Files.Examples.CSVWriter.pipe ; head -c 1048576 < IDEAS_IDEAS.Utilities.IO.Files.Examples.CSVWriter.pipe >> ../files/IDEAS_IDEAS.Utilities.IO.Files.Examples.CSVWriter.sim & ./IDEAS_IDEAS.Utilities.IO.Files.Examples.CSVWriter -abortSlowSimulation -alarm=480 -lv LOG_STATS > IDEAS_IDEAS.Utilities.IO.Files.Examples.CSVWriter.pipe 2>&1) [Timeout 480] [Calling sys.exit(0), Time elapsed: 6.045137227978557]