Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr BuildingSystems_BuildingSystems.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.0008327/0.0008327, allocations: 81.86 kB / 19.87 MB, free: 4.625 MB / 18.57 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.0009143/0.0009143, allocations: 173.7 kB / 23.28 MB, free: 1.223 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.9306/0.9306, allocations: 177.2 MB / 203.7 MB, free: 5.516 MB / 186.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 master/package.mo): time 0.001962/0.001962, allocations: 244.3 kB / 260.5 MB, free: 12.67 MB / 250.7 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems master/package.mo): time 0.7776/0.7776, allocations: 138.4 MB / 455.5 MB, free: 30.06 MB / 410.7 MB " [Timeout remaining time 179] Using package BuildingSystems with version 2.0.0-beta (/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems master/package.mo) Using package NcDataReader2 with version 2.5.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 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(BuildingSystems.Utilities.IO.Files.Examples.CSVWriter,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2500,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Utilities.IO.Files.Examples.CSVWriter") translateModel(BuildingSystems.Utilities.IO.Files.Examples.CSVWriter,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2500,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Utilities.IO.Files.Examples.CSVWriter") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.252e-06/1.252e-06, allocations: 0 / 0.5556 GB, free: 15.93 MB / 490.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.477e-05/1.602e-05, allocations: 2.969 kB / 0.5556 GB, free: 15.93 MB / 490.7 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Utilities.IO.Files.Examples.CSVWriter): time 0.001948/0.001964, allocations: 1.662 MB / 0.5572 GB, free: 14.25 MB / 490.7 MB Notification: Performance of NFInst.instExpressions: time 0.0008138/0.002778, allocations: 0.6658 MB / 0.5578 GB, free: 13.58 MB / 490.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.555e-05/0.002854, allocations: 7.938 kB / 0.5579 GB, free: 13.57 MB / 490.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001312/0.002985, allocations: 19.73 kB / 0.5579 GB, free: 13.55 MB / 490.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001699/0.003155, allocations: 43.81 kB / 0.5579 GB, free: 13.51 MB / 490.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002457/0.0034, allocations: 123.6 kB / 0.558 GB, free: 13.39 MB / 490.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001917/0.003592, allocations: 195.5 kB / 0.5582 GB, free: 13.2 MB / 490.7 MB Notification: Performance of NFFlatten.resolveConnections: time 9.149e-05/0.003684, allocations: 17.62 kB / 0.5582 GB, free: 13.18 MB / 490.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001771/0.003861, allocations: 119.7 kB / 0.5583 GB, free: 13.06 MB / 490.7 MB Notification: Performance of NFSimplifyModel.simplify: time 8.739e-05/0.003948, allocations: 75.83 kB / 0.5584 GB, free: 12.98 MB / 490.7 MB Notification: Performance of NFPackage.collectConstants: time 2.469e-05/0.003973, allocations: 12 kB / 0.5584 GB, free: 12.97 MB / 490.7 MB Notification: Performance of NFFlatten.collectFunctions: time 6.477e-05/0.004037, allocations: 31.92 kB / 0.5585 GB, free: 12.94 MB / 490.7 MB Notification: Performance of NFScalarize.scalarize: time 6.535e-05/0.004103, allocations: 27.91 kB / 0.5585 GB, free: 12.91 MB / 490.7 MB Notification: Performance of NFVerifyModel.verify: time 5.437e-05/0.004157, allocations: 63.83 kB / 0.5585 GB, free: 12.85 MB / 490.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001825/0.00434, allocations: 143.6 kB / 0.5587 GB, free: 12.71 MB / 490.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.903e-06/0.004342, allocations: 0 / 0.5587 GB, free: 12.71 MB / 490.7 MB Notification: Performance of FrontEnd: time 6.51e-07/0.004342, allocations: 4 kB / 0.5587 GB, free: 12.71 MB / 490.7 MB Notification: Performance of Transformations before backend: time 3.075e-06/0.004345, allocations: 0 / 0.5587 GB, free: 12.71 MB / 490.7 MB 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.000736/0.005081, allocations: 0.5884 MB / 0.5593 GB, free: 12.06 MB / 490.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.501e-05/0.005116, allocations: 9.938 kB / 0.5593 GB, free: 12.05 MB / 490.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001165/0.005233, allocations: 32.84 kB / 0.5593 GB, free: 12.02 MB / 490.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001774/0.00541, allocations: 185.1 kB / 0.5595 GB, free: 11.81 MB / 490.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.356e-05/0.005424, allocations: 16.31 kB / 0.5595 GB, free: 11.8 MB / 490.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.694e-05/0.005441, allocations: 12.38 kB / 0.5595 GB, free: 11.79 MB / 490.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001568/0.005598, allocations: 158.3 kB / 0.5597 GB, free: 11.61 MB / 490.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.344e-06/0.005605, allocations: 4.188 kB / 0.5597 GB, free: 11.61 MB / 490.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.08e-05/0.005616, allocations: 8.375 kB / 0.5597 GB, free: 11.6 MB / 490.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.134e-06/0.005623, allocations: 7.938 kB / 0.5597 GB, free: 11.59 MB / 490.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.568e-05/0.005678, allocations: 79.38 kB / 0.5598 GB, free: 11.5 MB / 490.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003236/0.006002, allocations: 356.2 kB / 0.5601 GB, free: 11.12 MB / 490.7 MB Notification: Performance of preOpt comSubExp (simulation): time 8.253e-05/0.006085, allocations: 110.4 kB / 0.5602 GB, free: 10.99 MB / 490.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.601e-05/0.006141, allocations: 95.06 kB / 0.5603 GB, free: 10.88 MB / 490.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.012e-05/0.006161, allocations: 11.97 kB / 0.5603 GB, free: 10.87 MB / 490.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001333/0.006294, allocations: 223.9 kB / 0.5605 GB, free: 10.61 MB / 490.7 MB Notification: Performance of pre-optimization done (n=10): time 1.974e-06/0.006296, allocations: 3.984 kB / 0.5605 GB, free: 10.61 MB / 490.7 MB Notification: Performance of matching and sorting (n=10): time 0.0003514/0.006647, allocations: 399.6 kB / 0.5609 GB, free: 10.18 MB / 490.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.33e-05/0.006711, allocations: 166.2 kB / 0.5611 GB, free: 9.977 MB / 490.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001139/0.006825, allocations: 230.5 kB / 0.5613 GB, free: 9.73 MB / 490.7 MB Notification: Performance of collectPreVariables (initialization): time 1.73e-05/0.006842, allocations: 29.7 kB / 0.5613 GB, free: 9.695 MB / 490.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.203e-05/0.006904, allocations: 159 kB / 0.5615 GB, free: 9.531 MB / 490.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.389e-05/0.006928, allocations: 31.78 kB / 0.5615 GB, free: 9.5 MB / 490.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.118e-05/0.006979, allocations: 47.34 kB / 0.5615 GB, free: 9.445 MB / 490.7 MB Notification: Performance of setup shared object (initialization): time 0.0001174/0.007096, allocations: 0.4962 MB / 0.562 GB, free: 8.938 MB / 490.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.905e-05/0.007165, allocations: 134.8 kB / 0.5621 GB, free: 8.781 MB / 490.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001015/0.007267, allocations: 211.5 kB / 0.5623 GB, free: 8.52 MB / 490.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001482/0.007415, allocations: 291.6 kB / 0.5626 GB, free: 8.164 MB / 490.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.783e-06/0.007417, allocations: 0 / 0.5626 GB, free: 8.164 MB / 490.7 MB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0002616/0.007678, allocations: 411 kB / 0.563 GB, free: 7.707 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.516e-05/0.007734, allocations: 122.7 kB / 0.5631 GB, free: 7.562 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.691e-06/0.007739, allocations: 4 kB / 0.5631 GB, free: 7.559 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.276e-05/0.007752, allocations: 4 kB / 0.5631 GB, free: 7.555 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.453e-05/0.007817, allocations: 19.92 kB / 0.5632 GB, free: 7.535 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.468e-06/0.007821, allocations: 0 / 0.5632 GB, free: 7.535 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.67e-05/0.007868, allocations: 16.19 kB / 0.5632 GB, free: 7.52 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.333e-05/0.007881, allocations: 12 kB / 0.5632 GB, free: 7.508 MB / 490.7 MB 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 9.961e-05/0.007981, allocations: 235.9 kB / 0.5634 GB, free: 7.254 MB / 490.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.683e-05/0.008007, allocations: 27.84 kB / 0.5634 GB, free: 7.227 MB / 490.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.765e-05/0.008035, allocations: 17.45 kB / 0.5635 GB, free: 7.207 MB / 490.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.212e-06/0.008036, allocations: 0 / 0.5635 GB, free: 7.207 MB / 490.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.392e-06/0.008038, allocations: 0 / 0.5635 GB, free: 7.207 MB / 490.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.156e-06/0.008041, allocations: 0 / 0.5635 GB, free: 7.207 MB / 490.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003445/0.008385, allocations: 0.5475 MB / 0.564 GB, free: 6.602 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.31e-07/0.008386, allocations: 0 / 0.564 GB, free: 6.602 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.989e-05/0.008416, allocations: 11.98 kB / 0.564 GB, free: 6.59 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.535e-06/0.008419, allocations: 7.938 kB / 0.564 GB, free: 6.582 MB / 490.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.157e-05/0.00843, allocations: 12 kB / 0.564 GB, free: 6.57 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.603e-06/0.008432, allocations: 4 kB / 0.564 GB, free: 6.566 MB / 490.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.653e-06/0.008434, allocations: 3.984 kB / 0.564 GB, free: 6.562 MB / 490.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000248/0.008682, allocations: 462.8 kB / 0.5645 GB, free: 6.066 MB / 490.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.39e-05/0.008695, allocations: 19.78 kB / 0.5645 GB, free: 6.047 MB / 490.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.891e-05/0.008714, allocations: 8 kB / 0.5645 GB, free: 6.039 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.932e-05/0.008764, allocations: 7.984 kB / 0.5645 GB, free: 6.031 MB / 490.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.669e-05/0.00879, allocations: 4 kB / 0.5645 GB, free: 6.027 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.048e-05/0.008801, allocations: 11.98 kB / 0.5645 GB, free: 6.016 MB / 490.7 MB Notification: Performance of sorting global known variables: time 5.194e-05/0.008853, allocations: 165 kB / 0.5647 GB, free: 5.855 MB / 490.7 MB Notification: Performance of sort global known variables: time 5e-08/0.008853, allocations: 0 / 0.5647 GB, free: 5.855 MB / 490.7 MB Notification: Performance of remove unused functions: time 0.0001746/0.009027, allocations: 32 kB / 0.5647 GB, free: 5.824 MB / 490.7 MB 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.0001378/0.009165, allocations: 123.9 kB / 0.5648 GB, free: 5.699 MB / 490.7 MB Notification: Performance of simCode: created initialization part: time 0.0002393/0.009405, allocations: 487.3 kB / 0.5653 GB, free: 5.133 MB / 490.7 MB Notification: Performance of simCode: created event and clocks part: time 1.373e-06/0.009406, allocations: 0 / 0.5653 GB, free: 5.133 MB / 490.7 MB Notification: Performance of simCode: created simulation system equations: time 9.788e-05/0.009504, allocations: 225.8 kB / 0.5655 GB, free: 4.871 MB / 490.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001843/0.009688, allocations: 31.94 kB / 0.5655 GB, free: 4.84 MB / 490.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007664/0.01045, allocations: 340.9 kB / 0.5659 GB, free: 4.469 MB / 490.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 3.477e-05/0.01049, allocations: 71.33 kB / 0.5659 GB, free: 4.379 MB / 490.7 MB Notification: Performance of simCode: alias equations: time 2.729e-05/0.01052, allocations: 8.5 kB / 0.5659 GB, free: 4.371 MB / 490.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001118/0.01063, allocations: 122.2 kB / 0.5661 GB, free: 4.25 MB / 490.7 MB Notification: Performance of SimCode: time 7.11e-07/0.01063, allocations: 0 / 0.5661 GB, free: 4.25 MB / 490.7 MB Notification: Performance of Templates: time 0.003723/0.01435, allocations: 2.41 MB / 0.5684 GB, free: 1.91 MB / 490.7 MB " [Timeout remaining time 660] make -j1 -f BuildingSystems_BuildingSystems.Utilities.IO.Files.Examples.CSVWriter.makefile [Timeout 660] (rm -f BuildingSystems_BuildingSystems.Utilities.IO.Files.Examples.CSVWriter.pipe ; mkfifo BuildingSystems_BuildingSystems.Utilities.IO.Files.Examples.CSVWriter.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Utilities.IO.Files.Examples.CSVWriter.pipe >> ../files/BuildingSystems_BuildingSystems.Utilities.IO.Files.Examples.CSVWriter.sim & ./BuildingSystems_BuildingSystems.Utilities.IO.Files.Examples.CSVWriter -abortSlowSimulation -alarm=240 -lv LOG_STATS > BuildingSystems_BuildingSystems.Utilities.IO.Files.Examples.CSVWriter.pipe 2>&1) [Timeout 240] [Calling sys.exit(0), Time elapsed: 3.4642544146627188]