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.001742/0.001742, allocations: 105.8 kB / 16.41 MB, free: 6.488 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.001868/0.001868, allocations: 191.8 kB / 17.34 MB, free: 5.762 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.399/1.399, allocations: 222.9 MB / 241 MB, free: 15.14 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002516/0.002516, allocations: 290.5 kB / 291.5 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 1.031/1.031, allocations: 169.3 MB / 0.499 GB, free: 4.438 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002733/0.002733, allocations: 92.23 kB / 0.6821 GB, free: 6.918 MB / 494.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3912/0.3939, allocations: 86.98 MB / 0.7671 GB, free: 3.781 MB / 0.5294 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Utilities.IO.Files.Examples.CSVWriter): time 0.002796/0.3967, allocations: 1.619 MB / 0.7687 GB, free: 2.152 MB / 0.5294 GB Notification: Performance of NFInst.instExpressions: time 0.0009921/0.3977, allocations: 0.6156 MB / 0.7693 GB, free: 1.531 MB / 0.5294 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.871e-05/0.3977, allocations: 0 / 0.7693 GB, free: 1.531 MB / 0.5294 GB Notification: Performance of NFTyping.typeComponents: time 0.0001359/0.3979, allocations: 19.8 kB / 0.7693 GB, free: 1.512 MB / 0.5294 GB Notification: Performance of NFTyping.typeBindings: time 0.0001995/0.3981, allocations: 43.77 kB / 0.7693 GB, free: 1.469 MB / 0.5294 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003712/0.3984, allocations: 111.7 kB / 0.7694 GB, free: 1.359 MB / 0.5294 GB Notification: Performance of NFFlatten.flatten: time 0.0002593/0.3987, allocations: 191.6 kB / 0.7696 GB, free: 1.172 MB / 0.5294 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001002/0.3988, allocations: 28.8 kB / 0.7696 GB, free: 1.145 MB / 0.5294 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001442/0.399, allocations: 79.81 kB / 0.7697 GB, free: 1.066 MB / 0.5294 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001294/0.3991, allocations: 87.66 kB / 0.7698 GB, free: 0.9805 MB / 0.5294 GB Notification: Performance of NFPackage.collectConstants: time 3.532e-05/0.3991, allocations: 16 kB / 0.7698 GB, free: 0.9648 MB / 0.5294 GB Notification: Performance of NFFlatten.collectFunctions: time 6.575e-05/0.3992, allocations: 23.98 kB / 0.7698 GB, free: 0.9414 MB / 0.5294 GB Notification: Performance of NFScalarize.scalarize: time 7.713e-05/0.3993, allocations: 35.91 kB / 0.7699 GB, free: 0.9062 MB / 0.5294 GB Notification: Performance of NFVerifyModel.verify: time 0.0001013/0.3994, allocations: 71.66 kB / 0.7699 GB, free: 0.8359 MB / 0.5294 GB Notification: Performance of NFConvertDAE.convert: time 0.0002462/0.3996, allocations: 173 kB / 0.7701 GB, free: 0.6758 MB / 0.5294 GB Notification: Performance of FrontEnd - DAE generated: time 3.176e-06/0.3996, allocations: 0 / 0.7701 GB, free: 0.6758 MB / 0.5294 GB Notification: Performance of FrontEnd: time 1.052e-06/0.3996, allocations: 0 / 0.7701 GB, free: 0.6758 MB / 0.5294 GB Notification: Performance of Transformations before backend: time 4.809e-06/0.3996, allocations: 0 / 0.7701 GB, free: 0.6758 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.0007233/0.4003, allocations: 0.5562 MB / 0.7706 GB, free: 48 kB / 0.5294 GB Notification: Performance of prepare preOptimizeDAE: time 3.224e-05/0.4004, allocations: 12.03 kB / 0.7707 GB, free: 36 kB / 0.5294 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.317e-05/0.4004, allocations: 16.84 kB / 0.7707 GB, free: 20 kB / 0.5294 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003363/0.4008, allocations: 240.8 kB / 0.7709 GB, free: 15.75 MB / 0.545 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.035e-05/0.4008, allocations: 12.38 kB / 0.7709 GB, free: 15.73 MB / 0.545 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.727e-05/0.4008, allocations: 12.38 kB / 0.7709 GB, free: 15.72 MB / 0.545 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002723/0.4011, allocations: 117.7 kB / 0.771 GB, free: 15.6 MB / 0.545 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.005e-06/0.4011, allocations: 0 / 0.771 GB, free: 15.6 MB / 0.545 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.795e-05/0.4011, allocations: 4 kB / 0.771 GB, free: 15.6 MB / 0.545 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.938e-06/0.4011, allocations: 3.938 kB / 0.771 GB, free: 15.59 MB / 0.545 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002067/0.4013, allocations: 75.94 kB / 0.7711 GB, free: 15.52 MB / 0.545 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006931/0.402, allocations: 412.5 kB / 0.7715 GB, free: 15.07 MB / 0.545 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002072/0.4022, allocations: 82.52 kB / 0.7716 GB, free: 14.98 MB / 0.545 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001565/0.4024, allocations: 64.81 kB / 0.7717 GB, free: 14.91 MB / 0.545 GB Notification: Performance of preOpt evalFunc (simulation): time 2.511e-05/0.4024, allocations: 12.14 kB / 0.7717 GB, free: 14.9 MB / 0.545 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002776/0.4027, allocations: 174.8 kB / 0.7718 GB, free: 14.7 MB / 0.545 GB Notification: Performance of pre-optimization done (n=10): time 1.543e-06/0.4027, allocations: 0 / 0.7718 GB, free: 14.7 MB / 0.545 GB Notification: Performance of matching and sorting (n=10): time 0.0007729/0.4035, allocations: 360.7 kB / 0.7722 GB, free: 14.33 MB / 0.545 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001068/0.4036, allocations: 166.2 kB / 0.7723 GB, free: 14.13 MB / 0.545 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001839/0.4038, allocations: 187.7 kB / 0.7725 GB, free: 13.93 MB / 0.545 GB Notification: Performance of collectPreVariables (initialization): time 3.008e-05/0.4038, allocations: 29.7 kB / 0.7725 GB, free: 13.9 MB / 0.545 GB Notification: Performance of collectInitialEqns (initialization): time 8.438e-05/0.4039, allocations: 108.4 kB / 0.7726 GB, free: 13.79 MB / 0.545 GB Notification: Performance of collectInitialBindings (initialization): time 3.033e-05/0.4039, allocations: 27.78 kB / 0.7727 GB, free: 13.76 MB / 0.545 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.371e-05/0.404, allocations: 37.7 kB / 0.7727 GB, free: 13.71 MB / 0.545 GB Notification: Performance of setup shared object (initialization): time 0.0001841/0.4042, allocations: 334.8 kB / 0.773 GB, free: 13.38 MB / 0.545 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001407/0.4043, allocations: 47.97 kB / 0.7731 GB, free: 13.33 MB / 0.545 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000176/0.4045, allocations: 106.8 kB / 0.7732 GB, free: 13.2 MB / 0.545 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003884/0.4049, allocations: 312.9 kB / 0.7735 GB, free: 12.84 MB / 0.545 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.484e-06/0.4049, allocations: 0 / 0.7735 GB, free: 12.84 MB / 0.545 GB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0005526/0.4054, allocations: 356.1 kB / 0.7738 GB, free: 12.46 MB / 0.545 GB Notification: Performance of prepare postOptimizeDAE: time 7.884e-05/0.4055, allocations: 118.8 kB / 0.7739 GB, free: 12.32 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.709e-06/0.4055, allocations: 0 / 0.7739 GB, free: 12.32 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.485e-05/0.4055, allocations: 4 kB / 0.7739 GB, free: 12.31 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001103/0.4056, allocations: 19.98 kB / 0.7739 GB, free: 12.29 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.068e-05/0.4056, allocations: 4 kB / 0.7739 GB, free: 12.29 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001026/0.4057, allocations: 16.14 kB / 0.774 GB, free: 12.27 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.998e-05/0.4058, allocations: 12 kB / 0.774 GB, free: 12.26 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.0001703/0.4059, allocations: 204.3 kB / 0.7742 GB, free: 12.04 MB / 0.545 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.424e-05/0.406, allocations: 19.91 kB / 0.7742 GB, free: 12.02 MB / 0.545 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.726e-05/0.406, allocations: 17.34 kB / 0.7742 GB, free: 12 MB / 0.545 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.953e-06/0.406, allocations: 0 / 0.7742 GB, free: 12 MB / 0.545 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.366e-06/0.406, allocations: 0 / 0.7742 GB, free: 12 MB / 0.545 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.618e-06/0.406, allocations: 3.984 kB / 0.7742 GB, free: 12 MB / 0.545 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007658/0.4068, allocations: 0.5915 MB / 0.7748 GB, free: 11.34 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.673e-06/0.4068, allocations: 0 / 0.7748 GB, free: 11.34 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.02e-05/0.4069, allocations: 15.98 kB / 0.7748 GB, free: 11.32 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.043e-06/0.4069, allocations: 0 / 0.7748 GB, free: 11.32 MB / 0.545 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.91e-05/0.4069, allocations: 4 kB / 0.7748 GB, free: 11.32 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.446e-06/0.4069, allocations: 4 kB / 0.7748 GB, free: 11.32 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.138e-06/0.4069, allocations: 7.922 kB / 0.7748 GB, free: 11.31 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005887/0.4075, allocations: 414.9 kB / 0.7752 GB, free: 10.88 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 5.418e-05/0.4075, allocations: 89.02 kB / 0.7753 GB, free: 10.77 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.467e-05/0.4076, allocations: 8 kB / 0.7753 GB, free: 10.76 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001162/0.4077, allocations: 4 kB / 0.7753 GB, free: 10.76 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.401e-05/0.4077, allocations: 11.92 kB / 0.7753 GB, free: 10.75 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.228e-05/0.4077, allocations: 15.98 kB / 0.7753 GB, free: 10.73 MB / 0.545 GB Notification: Performance of sorting global known variables: time 0.0001045/0.4078, allocations: 124.3 kB / 0.7755 GB, free: 10.61 MB / 0.545 GB Notification: Performance of sort global known variables: time 1.01e-07/0.4078, allocations: 0 / 0.7755 GB, free: 10.61 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.0002997/0.4081, allocations: 39.94 kB / 0.7755 GB, free: 10.57 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.0002385/0.4084, allocations: 134.6 kB / 0.7756 GB, free: 10.44 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.0005469/0.4089, allocations: 353.6 kB / 0.776 GB, free: 10.04 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 1.753e-06/0.4089, allocations: 0 / 0.776 GB, free: 10.04 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 0.0002432/0.4092, allocations: 186.7 kB / 0.7761 GB, free: 9.836 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003068/0.4095, allocations: 23.97 kB / 0.7762 GB, free: 9.812 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000577/0.4101, allocations: 279.8 kB / 0.7764 GB, free: 9.516 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003358/0.4104, allocations: 0.7122 MB / 0.7771 GB, free: 8.777 MB / 0.545 GB Notification: Performance of simCode: alias equations: time 6.488e-05/0.4105, allocations: 16.55 kB / 0.7771 GB, free: 8.762 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.595e-05/0.4105, allocations: 15.42 kB / 0.7772 GB, free: 8.746 MB / 0.545 GB Notification: Performance of SimCode: time 3.2e-07/0.4105, allocations: 0 / 0.7772 GB, free: 8.746 MB / 0.545 GB Notification: Performance of Templates: time 0.005749/0.4162, allocations: 2.094 MB / 0.7792 GB, free: 6.688 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 -s cvode -lv LOG_STATS > BuildingSystems_BuildingSystems.Utilities.IO.Files.Examples.CSVWriter.pipe 2>&1)