Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.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/Buildings 11.0.1-master/package.mo", uses=false) Using package Buildings with version 11.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.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(Buildings.Utilities.IO.Files.Examples.CSVWriter,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|cos.y|step.y",fileNamePrefix="Buildings_latest_Buildings.Utilities.IO.Files.Examples.CSVWriter") translateModel(Buildings.Utilities.IO.Files.Examples.CSVWriter,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|cos.y|step.y",fileNamePrefix="Buildings_latest_Buildings.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.007785/0.007785, allocations: 99.55 kB / 15.73 MB, free: 6.008 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.001847/0.001847, allocations: 199.1 kB / 16.68 MB, free: 5.93 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.365/1.365, allocations: 222.9 MB / 240.4 MB, free: 4.184 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.719/2.719, allocations: 461.9 MB / 0.7348 GB, free: 14.62 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.00129/0.00129, allocations: 67.83 kB / 1.054 GB, free: 7.125 MB / 0.8106 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3275/0.3288, allocations: 157.4 MB / 1.208 GB, free: 9.633 MB / 0.9669 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.IO.Files.Examples.CSVWriter): time 0.002734/0.3316, allocations: 1.61 MB / 1.209 GB, free: 8.008 MB / 0.9669 GB Notification: Performance of NFInst.instExpressions: time 0.0009139/0.3325, allocations: 0.6238 MB / 1.21 GB, free: 7.379 MB / 0.9669 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.403e-05/0.3326, allocations: 0 / 1.21 GB, free: 7.379 MB / 0.9669 GB Notification: Performance of NFTyping.typeComponents: time 0.000158/0.3328, allocations: 23.8 kB / 1.21 GB, free: 7.355 MB / 0.9669 GB Notification: Performance of NFTyping.typeBindings: time 0.000215/0.333, allocations: 39.77 kB / 1.21 GB, free: 7.316 MB / 0.9669 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003496/0.3334, allocations: 111.8 kB / 1.21 GB, free: 7.207 MB / 0.9669 GB Notification: Performance of NFFlatten.flatten: time 0.000243/0.3336, allocations: 203.5 kB / 1.21 GB, free: 7.008 MB / 0.9669 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001213/0.3338, allocations: 25.09 kB / 1.21 GB, free: 6.984 MB / 0.9669 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001483/0.3339, allocations: 91.75 kB / 1.21 GB, free: 6.895 MB / 0.9669 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001303/0.334, allocations: 83.72 kB / 1.21 GB, free: 6.812 MB / 0.9669 GB Notification: Performance of NFPackage.collectConstants: time 3.658e-05/0.3341, allocations: 16 kB / 1.21 GB, free: 6.797 MB / 0.9669 GB Notification: Performance of NFFlatten.collectFunctions: time 6.772e-05/0.3342, allocations: 27.98 kB / 1.21 GB, free: 6.77 MB / 0.9669 GB Notification: Performance of NFScalarize.scalarize: time 8.084e-05/0.3343, allocations: 31.91 kB / 1.211 GB, free: 6.738 MB / 0.9669 GB Notification: Performance of NFVerifyModel.verify: time 8.864e-05/0.3343, allocations: 71.66 kB / 1.211 GB, free: 6.668 MB / 0.9669 GB Notification: Performance of NFConvertDAE.convert: time 0.0002227/0.3346, allocations: 167.5 kB / 1.211 GB, free: 6.504 MB / 0.9669 GB Notification: Performance of FrontEnd - DAE generated: time 4.588e-06/0.3346, allocations: 0 / 1.211 GB, free: 6.504 MB / 0.9669 GB Notification: Performance of FrontEnd: time 1.653e-06/0.3346, allocations: 0 / 1.211 GB, free: 6.504 MB / 0.9669 GB Notification: Performance of Transformations before backend: time 5.17e-06/0.3346, allocations: 0 / 1.211 GB, free: 6.504 MB / 0.9669 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.0007103/0.3353, allocations: 0.5639 MB / 1.211 GB, free: 5.867 MB / 0.9669 GB Notification: Performance of prepare preOptimizeDAE: time 4.615e-05/0.3354, allocations: 12.62 kB / 1.211 GB, free: 5.855 MB / 0.9669 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.702e-05/0.3355, allocations: 16.84 kB / 1.211 GB, free: 5.84 MB / 0.9669 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003449/0.3358, allocations: 236.8 kB / 1.212 GB, free: 5.57 MB / 0.9669 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.137e-05/0.3358, allocations: 20.31 kB / 1.212 GB, free: 5.551 MB / 0.9669 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.08e-05/0.3359, allocations: 12.38 kB / 1.212 GB, free: 5.539 MB / 0.9669 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002697/0.3361, allocations: 113.7 kB / 1.212 GB, free: 5.422 MB / 0.9669 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.905e-06/0.3362, allocations: 4 kB / 1.212 GB, free: 5.418 MB / 0.9669 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.719e-05/0.3362, allocations: 4 kB / 1.212 GB, free: 5.414 MB / 0.9669 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.449e-06/0.3362, allocations: 0 / 1.212 GB, free: 5.414 MB / 0.9669 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001982/0.3364, allocations: 75.88 kB / 1.212 GB, free: 5.34 MB / 0.9669 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006171/0.337, allocations: 404.7 kB / 1.212 GB, free: 4.895 MB / 0.9669 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001873/0.3372, allocations: 94.56 kB / 1.212 GB, free: 4.793 MB / 0.9669 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001563/0.3374, allocations: 76.81 kB / 1.212 GB, free: 4.715 MB / 0.9669 GB Notification: Performance of preOpt evalFunc (simulation): time 2.572e-05/0.3374, allocations: 4.141 kB / 1.212 GB, free: 4.711 MB / 0.9669 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002429/0.3377, allocations: 174.7 kB / 1.213 GB, free: 4.516 MB / 0.9669 GB Notification: Performance of pre-optimization done (n=10): time 1.483e-06/0.3377, allocations: 0 / 1.213 GB, free: 4.516 MB / 0.9669 GB Notification: Performance of matching and sorting (n=10): time 0.0007061/0.3384, allocations: 352.7 kB / 1.213 GB, free: 4.152 MB / 0.9669 GB Notification: Performance of inlineWhenForInitialization (initialization): time 9.374e-05/0.3385, allocations: 170.2 kB / 1.213 GB, free: 3.949 MB / 0.9669 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001577/0.3387, allocations: 183 kB / 1.213 GB, free: 3.754 MB / 0.9669 GB Notification: Performance of collectPreVariables (initialization): time 2.312e-05/0.3387, allocations: 29.7 kB / 1.213 GB, free: 3.719 MB / 0.9669 GB Notification: Performance of collectInitialEqns (initialization): time 6.867e-05/0.3388, allocations: 108.4 kB / 1.213 GB, free: 3.605 MB / 0.9669 GB Notification: Performance of collectInitialBindings (initialization): time 2.833e-05/0.3388, allocations: 23.7 kB / 1.213 GB, free: 3.582 MB / 0.9669 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.219e-05/0.3389, allocations: 41.7 kB / 1.213 GB, free: 3.535 MB / 0.9669 GB Notification: Performance of setup shared object (initialization): time 0.0001233/0.339, allocations: 334.8 kB / 1.214 GB, free: 3.199 MB / 0.9669 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001249/0.3391, allocations: 51.91 kB / 1.214 GB, free: 3.148 MB / 0.9669 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001636/0.3393, allocations: 105.1 kB / 1.214 GB, free: 3.023 MB / 0.9669 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003458/0.3397, allocations: 317 kB / 1.214 GB, free: 2.652 MB / 0.9669 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.505e-06/0.3397, allocations: 7.938 kB / 1.214 GB, free: 2.645 MB / 0.9669 GB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0004934/0.3402, allocations: 340.4 kB / 1.214 GB, free: 2.281 MB / 0.9669 GB Notification: Performance of prepare postOptimizeDAE: time 7.519e-05/0.3403, allocations: 118.8 kB / 1.215 GB, free: 2.141 MB / 0.9669 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.813e-06/0.3403, allocations: 4 kB / 1.215 GB, free: 2.137 MB / 0.9669 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.39e-05/0.3403, allocations: 7.938 kB / 1.215 GB, free: 2.129 MB / 0.9669 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001094/0.3404, allocations: 24.17 kB / 1.215 GB, free: 2.105 MB / 0.9669 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.302e-06/0.3404, allocations: 0 / 1.215 GB, free: 2.105 MB / 0.9669 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.005e-05/0.3405, allocations: 15.94 kB / 1.215 GB, free: 2.09 MB / 0.9669 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.425e-05/0.3406, allocations: 12 kB / 1.215 GB, free: 2.078 MB / 0.9669 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.0001529/0.3407, allocations: 197.1 kB / 1.215 GB, free: 1.863 MB / 0.9669 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.28e-05/0.3407, allocations: 19.81 kB / 1.215 GB, free: 1.844 MB / 0.9669 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.737e-05/0.3408, allocations: 17.39 kB / 1.215 GB, free: 1.824 MB / 0.9669 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.705e-06/0.3408, allocations: 0 / 1.215 GB, free: 1.824 MB / 0.9669 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.479e-06/0.3408, allocations: 0 / 1.215 GB, free: 1.824 MB / 0.9669 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.818e-06/0.3408, allocations: 7.984 kB / 1.215 GB, free: 1.816 MB / 0.9669 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007013/0.3415, allocations: 0.5874 MB / 1.215 GB, free: 1.16 MB / 0.9669 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.853e-06/0.3415, allocations: 0 / 1.215 GB, free: 1.16 MB / 0.9669 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.257e-05/0.3416, allocations: 15.98 kB / 1.215 GB, free: 1.145 MB / 0.9669 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.265e-06/0.3416, allocations: 0 / 1.215 GB, free: 1.145 MB / 0.9669 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.776e-05/0.3416, allocations: 4 kB / 1.215 GB, free: 1.141 MB / 0.9669 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.585e-06/0.3416, allocations: 4 kB / 1.215 GB, free: 1.137 MB / 0.9669 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.914e-06/0.3417, allocations: 3.938 kB / 1.215 GB, free: 1.133 MB / 0.9669 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005159/0.3422, allocations: 406.7 kB / 1.216 GB, free: 0.707 MB / 0.9669 GB Notification: Performance of postOpt removeConstants (simulation): time 4.136e-05/0.3422, allocations: 92.92 kB / 1.216 GB, free: 0.5977 MB / 0.9669 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.26e-05/0.3423, allocations: 4 kB / 1.216 GB, free: 0.5938 MB / 0.9669 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001073/0.3424, allocations: 8 kB / 1.216 GB, free: 0.5859 MB / 0.9669 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.28e-05/0.3424, allocations: 11.92 kB / 1.216 GB, free: 0.5742 MB / 0.9669 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.703e-05/0.3425, allocations: 8 kB / 1.216 GB, free: 0.5664 MB / 0.9669 GB Notification: Performance of sorting global known variables: time 0.0001189/0.3426, allocations: 131.2 kB / 1.216 GB, free: 448 kB / 0.9669 GB Notification: Performance of sort global known variables: time 1.5e-07/0.3426, allocations: 3.938 kB / 1.216 GB, free: 444 kB / 0.9669 GB Notification: Performance of remove unused functions: time 0.0002851/0.3429, allocations: 36 kB / 1.216 GB, free: 408 kB / 0.9669 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.0002398/0.3431, allocations: 127.7 kB / 1.216 GB, free: 276 kB / 0.9669 GB Notification: Performance of simCode: created initialization part: time 0.0005254/0.3437, allocations: 361.4 kB / 1.217 GB, free: 15.87 MB / 0.9825 GB Notification: Performance of simCode: created event and clocks part: time 2.174e-06/0.3437, allocations: 0 / 1.217 GB, free: 15.87 MB / 0.9825 GB Notification: Performance of simCode: created simulation system equations: time 0.0002326/0.3439, allocations: 206.8 kB / 1.217 GB, free: 15.64 MB / 0.9825 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003025/0.3442, allocations: 16 kB / 1.217 GB, free: 15.62 MB / 0.9825 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005667/0.3448, allocations: 300.5 kB / 1.217 GB, free: 15.31 MB / 0.9825 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002417/0.3451, allocations: 0.708 MB / 1.218 GB, free: 14.57 MB / 0.9825 GB Notification: Performance of simCode: alias equations: time 6.49e-05/0.3451, allocations: 16.53 kB / 1.218 GB, free: 14.56 MB / 0.9825 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.185e-05/0.3452, allocations: 15.44 kB / 1.218 GB, free: 14.54 MB / 0.9825 GB Notification: Performance of SimCode: time 2.8e-07/0.3452, allocations: 0 / 1.218 GB, free: 14.54 MB / 0.9825 GB Notification: Performance of Templates: time 0.005749/0.3509, allocations: 2.089 MB / 1.22 GB, free: 12.48 MB / 0.9825 GB make -j1 -f Buildings_latest_Buildings.Utilities.IO.Files.Examples.CSVWriter.makefile (rm -f Buildings_latest_Buildings.Utilities.IO.Files.Examples.CSVWriter.pipe ; mkfifo Buildings_latest_Buildings.Utilities.IO.Files.Examples.CSVWriter.pipe ; head -c 1048576 < Buildings_latest_Buildings.Utilities.IO.Files.Examples.CSVWriter.pipe >> ../files/Buildings_latest_Buildings.Utilities.IO.Files.Examples.CSVWriter.sim & ./Buildings_latest_Buildings.Utilities.IO.Files.Examples.CSVWriter -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Utilities.IO.Files.Examples.CSVWriter.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Utilities.IO.Files.Examples.CSVWriter_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Utilities_IO_Files_Examples_CSVWriter.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Utilities.IO.Files.Examples.CSVWriter.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches