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.006006/0.006006, allocations: 101.8 kB / 15.73 MB, free: 6.059 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.001314/0.001314, allocations: 190.4 kB / 16.67 MB, free: 5.969 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.295/1.295, allocations: 222.9 MB / 240.4 MB, free: 15.15 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.001956/0.001956, allocations: 293 kB / 290.8 MB, free: 14.44 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.9311/0.9311, allocations: 169.3 MB / 0.4983 GB, free: 4.418 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001666/0.001666, allocations: 91.86 kB / 0.6814 GB, free: 6.941 MB / 494.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3903/0.392, allocations: 86.97 MB / 0.7664 GB, free: 3.875 MB / 0.5294 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Utilities.IO.Files.Examples.CSVWriter): time 0.002748/0.3948, allocations: 1.597 MB / 0.7679 GB, free: 2.266 MB / 0.5294 GB Notification: Performance of NFInst.instExpressions: time 0.0008815/0.3957, allocations: 0.6175 MB / 0.7685 GB, free: 1.645 MB / 0.5294 GB Notification: Performance of NFInst.updateImplicitVariability: time 7.33e-05/0.3958, allocations: 0 / 0.7685 GB, free: 1.645 MB / 0.5294 GB Notification: Performance of NFTyping.typeComponents: time 0.0001598/0.3959, allocations: 27.78 kB / 0.7686 GB, free: 1.617 MB / 0.5294 GB Notification: Performance of NFTyping.typeBindings: time 0.0002021/0.3961, allocations: 49.69 kB / 0.7686 GB, free: 1.57 MB / 0.5294 GB Notification: Performance of NFTyping.typeClassSections: time 0.000368/0.3965, allocations: 111.8 kB / 0.7687 GB, free: 1.461 MB / 0.5294 GB Notification: Performance of NFFlatten.flatten: time 0.0002364/0.3968, allocations: 199.6 kB / 0.7689 GB, free: 1.266 MB / 0.5294 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001138/0.3969, allocations: 24.88 kB / 0.7689 GB, free: 1.242 MB / 0.5294 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001314/0.397, allocations: 87.73 kB / 0.769 GB, free: 1.156 MB / 0.5294 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001339/0.3972, allocations: 87.66 kB / 0.7691 GB, free: 1.07 MB / 0.5294 GB Notification: Performance of NFPackage.collectConstants: time 3.886e-05/0.3972, allocations: 20 kB / 0.7691 GB, free: 1.051 MB / 0.5294 GB Notification: Performance of NFFlatten.collectFunctions: time 6.625e-05/0.3973, allocations: 27.94 kB / 0.7691 GB, free: 1.023 MB / 0.5294 GB Notification: Performance of NFScalarize.scalarize: time 7.643e-05/0.3974, allocations: 27.91 kB / 0.7692 GB, free: 0.9961 MB / 0.5294 GB Notification: Performance of NFVerifyModel.verify: time 9.142e-05/0.3975, allocations: 75.64 kB / 0.7692 GB, free: 0.9219 MB / 0.5294 GB Notification: Performance of NFConvertDAE.convert: time 0.0002262/0.3977, allocations: 173 kB / 0.7694 GB, free: 0.7617 MB / 0.5294 GB Notification: Performance of FrontEnd - DAE generated: time 3.045e-06/0.3977, allocations: 0 / 0.7694 GB, free: 0.7617 MB / 0.5294 GB Notification: Performance of FrontEnd: time 1.052e-06/0.3977, allocations: 0 / 0.7694 GB, free: 0.7617 MB / 0.5294 GB Notification: Performance of Transformations before backend: time 4.859e-06/0.3977, allocations: 0 / 0.7694 GB, free: 0.7617 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.0006284/0.3984, allocations: 0.5523 MB / 0.77 GB, free: 140 kB / 0.5294 GB Notification: Performance of prepare preOptimizeDAE: time 2.945e-05/0.3984, allocations: 16.03 kB / 0.77 GB, free: 124 kB / 0.5294 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.494e-05/0.3985, allocations: 20.84 kB / 0.77 GB, free: 104 kB / 0.5294 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003041/0.3988, allocations: 240.8 kB / 0.7702 GB, free: 15.83 MB / 0.545 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.124e-05/0.3988, allocations: 8.375 kB / 0.7702 GB, free: 15.82 MB / 0.545 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.074e-05/0.3988, allocations: 16.38 kB / 0.7702 GB, free: 15.8 MB / 0.545 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002521/0.3991, allocations: 113.7 kB / 0.7703 GB, free: 15.69 MB / 0.545 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.534e-06/0.3991, allocations: 0 / 0.7703 GB, free: 15.69 MB / 0.545 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.813e-05/0.3991, allocations: 8 kB / 0.7704 GB, free: 15.68 MB / 0.545 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.408e-06/0.3991, allocations: 3.938 kB / 0.7704 GB, free: 15.68 MB / 0.545 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001812/0.3993, allocations: 67.95 kB / 0.7704 GB, free: 15.61 MB / 0.545 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005728/0.3999, allocations: 420.5 kB / 0.7708 GB, free: 15.15 MB / 0.545 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001759/0.4001, allocations: 94.52 kB / 0.7709 GB, free: 15.05 MB / 0.545 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001518/0.4002, allocations: 76.81 kB / 0.771 GB, free: 14.97 MB / 0.545 GB Notification: Performance of preOpt evalFunc (simulation): time 2.036e-05/0.4003, allocations: 0 / 0.771 GB, free: 14.97 MB / 0.545 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000224/0.4005, allocations: 178.8 kB / 0.7712 GB, free: 14.77 MB / 0.545 GB Notification: Performance of pre-optimization done (n=10): time 1.363e-06/0.4005, allocations: 0 / 0.7712 GB, free: 14.77 MB / 0.545 GB Notification: Performance of matching and sorting (n=10): time 0.0006887/0.4012, allocations: 357 kB / 0.7715 GB, free: 14.4 MB / 0.545 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.339e-05/0.4013, allocations: 170.4 kB / 0.7717 GB, free: 14.2 MB / 0.545 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001542/0.4015, allocations: 175.7 kB / 0.7718 GB, free: 14.01 MB / 0.545 GB Notification: Performance of collectPreVariables (initialization): time 2.076e-05/0.4015, allocations: 29.7 kB / 0.7719 GB, free: 13.98 MB / 0.545 GB Notification: Performance of collectInitialEqns (initialization): time 6.188e-05/0.4016, allocations: 112.3 kB / 0.772 GB, free: 13.86 MB / 0.545 GB Notification: Performance of collectInitialBindings (initialization): time 2.698e-05/0.4016, allocations: 27.78 kB / 0.772 GB, free: 13.83 MB / 0.545 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.322e-05/0.4017, allocations: 41.7 kB / 0.772 GB, free: 13.79 MB / 0.545 GB Notification: Performance of setup shared object (initialization): time 0.0001039/0.4018, allocations: 334.8 kB / 0.7724 GB, free: 13.45 MB / 0.545 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001238/0.4019, allocations: 47.95 kB / 0.7724 GB, free: 13.4 MB / 0.545 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001604/0.4021, allocations: 106.8 kB / 0.7725 GB, free: 13.27 MB / 0.545 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003037/0.4024, allocations: 308.9 kB / 0.7728 GB, free: 12.91 MB / 0.545 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.254e-06/0.4024, allocations: 4 kB / 0.7728 GB, free: 12.91 MB / 0.545 GB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0004912/0.4029, allocations: 348.1 kB / 0.7731 GB, free: 12.54 MB / 0.545 GB Notification: Performance of prepare postOptimizeDAE: time 7.8e-05/0.403, allocations: 118.8 kB / 0.7732 GB, free: 12.39 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.708e-06/0.403, allocations: 4 kB / 0.7732 GB, free: 12.39 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.699e-05/0.403, allocations: 4 kB / 0.7733 GB, free: 12.39 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001033/0.4031, allocations: 16.23 kB / 0.7733 GB, free: 12.37 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.876e-06/0.4031, allocations: 8 kB / 0.7733 GB, free: 12.36 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.514e-05/0.4032, allocations: 23.88 kB / 0.7733 GB, free: 12.34 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.983e-05/0.4033, allocations: 8 kB / 0.7733 GB, free: 12.33 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.0001468/0.4034, allocations: 197.1 kB / 0.7735 GB, free: 12.12 MB / 0.545 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.144e-05/0.4035, allocations: 19.91 kB / 0.7735 GB, free: 12.1 MB / 0.545 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.947e-05/0.4035, allocations: 21.39 kB / 0.7735 GB, free: 12.08 MB / 0.545 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.406e-06/0.4035, allocations: 4 kB / 0.7735 GB, free: 12.07 MB / 0.545 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.247e-06/0.4035, allocations: 0 / 0.7735 GB, free: 12.07 MB / 0.545 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.957e-06/0.4035, allocations: 4 kB / 0.7735 GB, free: 12.07 MB / 0.545 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006718/0.4042, allocations: 0.5836 MB / 0.7741 GB, free: 11.42 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.592e-06/0.4042, allocations: 0 / 0.7741 GB, free: 11.42 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.122e-05/0.4043, allocations: 11.98 kB / 0.7741 GB, free: 11.41 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.784e-06/0.4043, allocations: 0 / 0.7741 GB, free: 11.41 MB / 0.545 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.004e-05/0.4043, allocations: 7.984 kB / 0.7741 GB, free: 11.4 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.855e-06/0.4043, allocations: 4 kB / 0.7741 GB, free: 11.39 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.044e-06/0.4043, allocations: 3.938 kB / 0.7741 GB, free: 11.39 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000523/0.4049, allocations: 402.7 kB / 0.7745 GB, free: 10.97 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 3.995e-05/0.4049, allocations: 92.95 kB / 0.7746 GB, free: 10.86 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.384e-05/0.405, allocations: 8 kB / 0.7746 GB, free: 10.85 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001083/0.4051, allocations: 7.984 kB / 0.7746 GB, free: 10.84 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.588e-05/0.4051, allocations: 7.938 kB / 0.7746 GB, free: 10.84 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.036e-05/0.4051, allocations: 19.97 kB / 0.7747 GB, free: 10.82 MB / 0.545 GB Notification: Performance of sorting global known variables: time 0.0001014/0.4053, allocations: 128.3 kB / 0.7748 GB, free: 10.69 MB / 0.545 GB Notification: Performance of sort global known variables: time 1.2e-07/0.4053, allocations: 4 kB / 0.7748 GB, free: 10.69 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.000274/0.4055, allocations: 35.94 kB / 0.7748 GB, free: 10.65 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.0002171/0.4058, allocations: 127.4 kB / 0.7749 GB, free: 10.53 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.0004666/0.4062, allocations: 361.5 kB / 0.7753 GB, free: 10.12 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 2.334e-06/0.4063, allocations: 0 / 0.7753 GB, free: 10.12 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 0.0002262/0.4065, allocations: 206.7 kB / 0.7755 GB, free: 9.898 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002857/0.4068, allocations: 27.97 kB / 0.7755 GB, free: 9.871 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004984/0.4073, allocations: 283.6 kB / 0.7758 GB, free: 9.574 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002353/0.4075, allocations: 0.708 MB / 0.7765 GB, free: 8.84 MB / 0.545 GB Notification: Performance of simCode: alias equations: time 6.095e-05/0.4076, allocations: 20.53 kB / 0.7765 GB, free: 8.82 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.105e-05/0.4076, allocations: 15.44 kB / 0.7765 GB, free: 8.805 MB / 0.545 GB Notification: Performance of SimCode: time 2.31e-07/0.4076, allocations: 0 / 0.7765 GB, free: 8.805 MB / 0.545 GB Notification: Performance of Templates: time 0.004687/0.4123, allocations: 2.089 MB / 0.7785 GB, free: 6.746 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)