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.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo", uses=false) Using package BuildingSystems with version 2.0.0-beta (/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo) Using package NcDataReader2 with version 2.5.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(BuildingSystems.Utilities.IO.Files.Examples.CSVWriter,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Utilities.IO.Files.Examples.CSVWriter") translateModel(BuildingSystems.Utilities.IO.Files.Examples.CSVWriter,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Utilities.IO.Files.Examples.CSVWriter") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.005641/0.005641, allocations: 102.7 kB / 15.73 MB, free: 6.031 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001158/0.001158, allocations: 190.1 kB / 16.67 MB, free: 5.953 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.285/1.285, allocations: 222.9 MB / 240.4 MB, free: 15.1 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.001994/0.001994, allocations: 293.5 kB / 290.8 MB, free: 14.45 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.9442/0.9442, allocations: 169.3 MB / 0.4983 GB, free: 4.426 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001667/0.001667, allocations: 95.84 kB / 0.6814 GB, free: 6.957 MB / 494.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3894/0.391, allocations: 86.97 MB / 0.7664 GB, free: 4.055 MB / 0.5294 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Utilities.IO.Files.Examples.CSVWriter): time 0.00251/0.3936, allocations: 1.601 MB / 0.7679 GB, free: 2.441 MB / 0.5294 GB Notification: Performance of NFInst.instExpressions: time 0.0008662/0.3945, allocations: 0.6213 MB / 0.7685 GB, free: 1.816 MB / 0.5294 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.41e-05/0.3945, allocations: 0 / 0.7685 GB, free: 1.816 MB / 0.5294 GB Notification: Performance of NFTyping.typeComponents: time 0.0001294/0.3947, allocations: 23.78 kB / 0.7686 GB, free: 1.793 MB / 0.5294 GB Notification: Performance of NFTyping.typeBindings: time 0.0001885/0.3949, allocations: 41.89 kB / 0.7686 GB, free: 1.754 MB / 0.5294 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003368/0.3952, allocations: 111.8 kB / 0.7687 GB, free: 1.645 MB / 0.5294 GB Notification: Performance of NFFlatten.flatten: time 0.0002498/0.3955, allocations: 203.6 kB / 0.7689 GB, free: 1.445 MB / 0.5294 GB Notification: Performance of NFFlatten.resolveConnections: time 9.886e-05/0.3956, allocations: 24.86 kB / 0.7689 GB, free: 1.422 MB / 0.5294 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001395/0.3957, allocations: 87.75 kB / 0.769 GB, free: 1.336 MB / 0.5294 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001176/0.3959, allocations: 87.66 kB / 0.7691 GB, free: 1.25 MB / 0.5294 GB Notification: Performance of NFPackage.collectConstants: time 3.915e-05/0.3959, allocations: 19.94 kB / 0.7691 GB, free: 1.23 MB / 0.5294 GB Notification: Performance of NFFlatten.collectFunctions: time 6.698e-05/0.396, allocations: 27.98 kB / 0.7691 GB, free: 1.203 MB / 0.5294 GB Notification: Performance of NFScalarize.scalarize: time 8.258e-05/0.3961, allocations: 31.91 kB / 0.7692 GB, free: 1.172 MB / 0.5294 GB Notification: Performance of NFVerifyModel.verify: time 8.318e-05/0.3962, allocations: 71.7 kB / 0.7692 GB, free: 1.102 MB / 0.5294 GB Notification: Performance of NFConvertDAE.convert: time 0.0002037/0.3964, allocations: 167.3 kB / 0.7694 GB, free: 0.9414 MB / 0.5294 GB Notification: Performance of FrontEnd - DAE generated: time 4.849e-06/0.3964, allocations: 4 kB / 0.7694 GB, free: 0.9375 MB / 0.5294 GB Notification: Performance of FrontEnd: time 2.574e-06/0.3964, allocations: 0 / 0.7694 GB, free: 0.9375 MB / 0.5294 GB Notification: Performance of Transformations before backend: time 7.474e-06/0.3964, allocations: 3.938 kB / 0.7694 GB, free: 0.9336 MB / 0.5294 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.0006044/0.397, allocations: 0.5472 MB / 0.7699 GB, free: 324 kB / 0.5294 GB Notification: Performance of prepare preOptimizeDAE: time 3.063e-05/0.397, allocations: 12.03 kB / 0.77 GB, free: 312 kB / 0.5294 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.615e-05/0.3971, allocations: 16.75 kB / 0.77 GB, free: 296 kB / 0.5294 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002854/0.3974, allocations: 244.5 kB / 0.7702 GB, free: 12 kB / 0.5294 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.198e-05/0.3974, allocations: 12.38 kB / 0.7702 GB, free: 0 / 0.5294 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.753e-05/0.3975, allocations: 12.42 kB / 0.7702 GB, free: 15.98 MB / 0.545 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002426/0.3977, allocations: 117.7 kB / 0.7703 GB, free: 15.87 MB / 0.545 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.782e-06/0.3977, allocations: 0 / 0.7703 GB, free: 15.87 MB / 0.545 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.765e-05/0.3978, allocations: 7.984 kB / 0.7704 GB, free: 15.86 MB / 0.545 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.098e-06/0.3978, allocations: 0 / 0.7704 GB, free: 15.86 MB / 0.545 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001981/0.398, allocations: 75.88 kB / 0.7704 GB, free: 15.79 MB / 0.545 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005665/0.3985, allocations: 408.6 kB / 0.7708 GB, free: 15.34 MB / 0.545 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001894/0.3987, allocations: 94.56 kB / 0.7709 GB, free: 15.23 MB / 0.545 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001458/0.3989, allocations: 80.75 kB / 0.771 GB, free: 15.15 MB / 0.545 GB Notification: Performance of preOpt evalFunc (simulation): time 1.974e-05/0.3989, allocations: 0 / 0.771 GB, free: 15.15 MB / 0.545 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002349/0.3992, allocations: 174.7 kB / 0.7711 GB, free: 14.96 MB / 0.545 GB Notification: Performance of pre-optimization done (n=10): time 1.403e-06/0.3992, allocations: 0 / 0.7711 GB, free: 14.96 MB / 0.545 GB Notification: Performance of matching and sorting (n=10): time 0.0006702/0.3999, allocations: 357.1 kB / 0.7715 GB, free: 14.59 MB / 0.545 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.744e-05/0.4, allocations: 170.2 kB / 0.7717 GB, free: 14.39 MB / 0.545 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001419/0.4001, allocations: 175.6 kB / 0.7718 GB, free: 14.2 MB / 0.545 GB Notification: Performance of collectPreVariables (initialization): time 2.398e-05/0.4001, allocations: 37.64 kB / 0.7719 GB, free: 14.16 MB / 0.545 GB Notification: Performance of collectInitialEqns (initialization): time 6.949e-05/0.4002, allocations: 108.4 kB / 0.772 GB, free: 14.04 MB / 0.545 GB Notification: Performance of collectInitialBindings (initialization): time 2.705e-05/0.4002, allocations: 23.66 kB / 0.772 GB, free: 14.02 MB / 0.545 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.579e-05/0.4003, allocations: 41.7 kB / 0.772 GB, free: 13.97 MB / 0.545 GB Notification: Performance of setup shared object (initialization): time 0.0001075/0.4004, allocations: 334.8 kB / 0.7723 GB, free: 13.64 MB / 0.545 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001282/0.4006, allocations: 47.97 kB / 0.7724 GB, free: 13.59 MB / 0.545 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001717/0.4007, allocations: 102.8 kB / 0.7725 GB, free: 13.46 MB / 0.545 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003288/0.4011, allocations: 317 kB / 0.7728 GB, free: 13.09 MB / 0.545 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.747e-06/0.4011, allocations: 0 / 0.7728 GB, free: 13.09 MB / 0.545 GB Notification: Performance of matching and sorting (n=14) (initialization): time 0.000506/0.4016, allocations: 348 kB / 0.7731 GB, free: 12.72 MB / 0.545 GB Notification: Performance of prepare postOptimizeDAE: time 6.483e-05/0.4017, allocations: 118.8 kB / 0.7732 GB, free: 12.58 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.753e-06/0.4017, allocations: 4 kB / 0.7732 GB, free: 12.58 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.346e-05/0.4017, allocations: 4.25 kB / 0.7732 GB, free: 12.57 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001032/0.4018, allocations: 23.92 kB / 0.7733 GB, free: 12.55 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.239e-06/0.4018, allocations: 0 / 0.7733 GB, free: 12.55 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.672e-05/0.4019, allocations: 15.94 kB / 0.7733 GB, free: 12.54 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.144e-05/0.402, allocations: 12 kB / 0.7733 GB, free: 12.52 MB / 0.545 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.0001438/0.4021, allocations: 199.5 kB / 0.7735 GB, free: 12.31 MB / 0.545 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.513e-05/0.4022, allocations: 19.81 kB / 0.7735 GB, free: 12.29 MB / 0.545 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.164e-05/0.4022, allocations: 13.41 kB / 0.7735 GB, free: 12.27 MB / 0.545 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.593e-06/0.4022, allocations: 0 / 0.7735 GB, free: 12.27 MB / 0.545 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.409e-06/0.4022, allocations: 8 kB / 0.7735 GB, free: 12.27 MB / 0.545 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.126e-06/0.4022, allocations: 0 / 0.7735 GB, free: 12.27 MB / 0.545 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006883/0.4029, allocations: 0.5875 MB / 0.7741 GB, free: 11.61 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.296e-06/0.4029, allocations: 0 / 0.7741 GB, free: 11.61 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.302e-05/0.403, allocations: 15.92 kB / 0.7741 GB, free: 11.59 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.824e-06/0.403, allocations: 0 / 0.7741 GB, free: 11.59 MB / 0.545 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.008e-05/0.403, allocations: 8 kB / 0.7741 GB, free: 11.59 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.393e-06/0.403, allocations: 0 / 0.7741 GB, free: 11.59 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.25e-05/0.4031, allocations: 11.94 kB / 0.7741 GB, free: 11.57 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005254/0.4036, allocations: 398.6 kB / 0.7745 GB, free: 11.16 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 4.965e-05/0.4036, allocations: 96.84 kB / 0.7746 GB, free: 11.04 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.961e-05/0.4037, allocations: 4 kB / 0.7746 GB, free: 11.04 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001122/0.4038, allocations: 4 kB / 0.7746 GB, free: 11.04 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.476e-05/0.4038, allocations: 15.92 kB / 0.7746 GB, free: 11.02 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.996e-05/0.4039, allocations: 15.98 kB / 0.7746 GB, free: 11 MB / 0.545 GB Notification: Performance of sorting global known variables: time 9.841e-05/0.404, allocations: 132.3 kB / 0.7748 GB, free: 10.88 MB / 0.545 GB Notification: Performance of sort global known variables: time 1.4e-07/0.404, allocations: 0 / 0.7748 GB, free: 10.88 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.0002896/0.4043, allocations: 36 kB / 0.7748 GB, free: 10.84 MB / 0.545 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.0002132/0.4045, allocations: 131 kB / 0.7749 GB, free: 10.71 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.0004955/0.405, allocations: 357.4 kB / 0.7753 GB, free: 10.31 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 1.784e-06/0.405, allocations: 0 / 0.7753 GB, free: 10.31 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 0.000235/0.4053, allocations: 206.8 kB / 0.7755 GB, free: 10.09 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002935/0.4056, allocations: 16.5 kB / 0.7755 GB, free: 10.07 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005503/0.4061, allocations: 284.4 kB / 0.7757 GB, free: 9.77 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002615/0.4064, allocations: 0.7079 MB / 0.7764 GB, free: 9.035 MB / 0.545 GB Notification: Performance of simCode: alias equations: time 6.302e-05/0.4065, allocations: 20.53 kB / 0.7765 GB, free: 9.016 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.748e-05/0.4065, allocations: 19.44 kB / 0.7765 GB, free: 8.996 MB / 0.545 GB Notification: Performance of SimCode: time 2.8e-07/0.4065, allocations: 4 kB / 0.7765 GB, free: 8.992 MB / 0.545 GB Notification: Performance of Templates: time 0.005261/0.4118, allocations: 2.135 MB / 0.7786 GB, free: 6.895 MB / 0.545 GB make -j1 -f BuildingSystems_BuildingSystems.Utilities.IO.Files.Examples.CSVWriter.makefile (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=480 -lv LOG_STATS > BuildingSystems_BuildingSystems.Utilities.IO.Files.Examples.CSVWriter.pipe 2>&1)