Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_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 9.1.3-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/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_9_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_9_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.001005/0.001005, allocations: 90.52 kB / 15.36 MB, free: 0.7383 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.008652/0.008653, allocations: 171.1 kB / 16.26 MB, free: 6.613 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.519/1.519, allocations: 223.3 MB / 240.3 MB, free: 5.344 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/package.mo): time 2.419/2.419, allocations: 390.9 MB / 0.6663 GB, free: 2.34 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.000336/0.000336, allocations: 8 kB / 0.816 GB, free: 13.21 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8416/0.842, allocations: 142.4 MB / 0.955 GB, free: 7.68 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.IO.Files.Examples.CSVWriter): time 0.002092/0.8441, allocations: 1.327 MB / 0.9563 GB, free: 6.633 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.001129/0.8453, allocations: 0.6268 MB / 0.9569 GB, free: 6.145 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.00012/0.8454, allocations: 5.938 kB / 0.9569 GB, free: 6.141 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 0.0001863/0.8456, allocations: 11.33 kB / 0.957 GB, free: 6.133 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 0.0002538/0.8459, allocations: 42.03 kB / 0.957 GB, free: 6.105 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005024/0.8464, allocations: 102.5 kB / 0.9571 GB, free: 6.035 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 0.0002267/0.8466, allocations: 163.7 kB / 0.9572 GB, free: 5.945 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001451/0.8468, allocations: 28.69 kB / 0.9573 GB, free: 5.926 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002055/0.847, allocations: 74.94 kB / 0.9573 GB, free: 5.887 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001654/0.8472, allocations: 79.64 kB / 0.9574 GB, free: 5.836 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 4.927e-05/0.8472, allocations: 7.719 kB / 0.9574 GB, free: 5.836 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 8.347e-05/0.8473, allocations: 19.98 kB / 0.9575 GB, free: 5.828 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 9.989e-05/0.8474, allocations: 23.38 kB / 0.9575 GB, free: 5.816 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 0.0001094/0.8475, allocations: 97.05 kB / 0.9576 GB, free: 5.738 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.0002565/0.8478, allocations: 150.3 kB / 0.9577 GB, free: 5.637 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 5.25e-06/0.8478, allocations: 0 / 0.9577 GB, free: 5.637 MB / 0.7169 GB Notification: Performance of FrontEnd: time 2.324e-06/0.8478, allocations: 0 / 0.9577 GB, free: 5.637 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 7.665e-06/0.8478, allocations: 0 / 0.9577 GB, free: 5.637 MB / 0.7169 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.0007047/0.8486, allocations: 0.5324 MB / 0.9582 GB, free: 5.078 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 4.927e-05/0.8486, allocations: 9.531 kB / 0.9582 GB, free: 5.078 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.837e-05/0.8487, allocations: 15.19 kB / 0.9583 GB, free: 5.074 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002959/0.849, allocations: 234 kB / 0.9585 GB, free: 4.828 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.966e-05/0.849, allocations: 7.594 kB / 0.9585 GB, free: 4.828 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.798e-05/0.8491, allocations: 14.84 kB / 0.9585 GB, free: 4.824 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003166/0.8494, allocations: 127.7 kB / 0.9586 GB, free: 4.738 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.13e-05/0.8494, allocations: 0 / 0.9586 GB, free: 4.738 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.278e-05/0.8495, allocations: 6.562 kB / 0.9586 GB, free: 4.734 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.006e-05/0.8495, allocations: 6.109 kB / 0.9586 GB, free: 4.73 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002317/0.8497, allocations: 77.53 kB / 0.9587 GB, free: 4.699 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007481/0.8505, allocations: 418 kB / 0.9591 GB, free: 4.312 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002047/0.8507, allocations: 91.41 kB / 0.9592 GB, free: 4.258 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001586/0.8509, allocations: 83.44 kB / 0.9593 GB, free: 4.215 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 3.058e-05/0.8509, allocations: 5.312 kB / 0.9593 GB, free: 4.211 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002878/0.8512, allocations: 193.5 kB / 0.9595 GB, free: 4.043 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=10): time 4.188e-06/0.8512, allocations: 4 kB / 0.9595 GB, free: 4.039 MB / 0.7169 GB Notification: Performance of matching and sorting (n=10): time 0.0008168/0.852, allocations: 354.1 kB / 0.9598 GB, free: 3.844 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.176e-05/0.8521, allocations: 167.7 kB / 0.96 GB, free: 3.648 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002075/0.8523, allocations: 177.7 kB / 0.9601 GB, free: 3.504 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 2.626e-05/0.8524, allocations: 36.45 kB / 0.9602 GB, free: 3.465 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 6.932e-05/0.8524, allocations: 108.6 kB / 0.9603 GB, free: 3.359 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 3.37e-05/0.8525, allocations: 31.75 kB / 0.9603 GB, free: 3.332 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.47e-05/0.8525, allocations: 20.59 kB / 0.9603 GB, free: 3.312 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 9.075e-05/0.8526, allocations: 330.9 kB / 0.9606 GB, free: 2.984 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001531/0.8528, allocations: 51.58 kB / 0.9607 GB, free: 2.965 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001817/0.853, allocations: 108.9 kB / 0.9608 GB, free: 2.871 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003849/0.8534, allocations: 321.4 kB / 0.9611 GB, free: 2.562 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.088e-06/0.8534, allocations: 4 kB / 0.9611 GB, free: 2.559 MB / 0.7169 GB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0006079/0.854, allocations: 352.7 kB / 0.9614 GB, free: 2.316 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 6.153e-05/0.8541, allocations: 117 kB / 0.9615 GB, free: 2.188 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.136e-06/0.8541, allocations: 6.109 kB / 0.9616 GB, free: 2.184 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.107e-05/0.8541, allocations: 2 kB / 0.9616 GB, free: 2.184 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001363/0.8543, allocations: 19.42 kB / 0.9616 GB, free: 2.18 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.103e-05/0.8543, allocations: 5.953 kB / 0.9616 GB, free: 2.176 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001225/0.8544, allocations: 27.33 kB / 0.9616 GB, free: 2.16 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.77e-05/0.8544, allocations: 7.219 kB / 0.9616 GB, free: 2.16 MB / 0.7169 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.0001547/0.8546, allocations: 196.6 kB / 0.9618 GB, free: 1.965 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.288e-05/0.8547, allocations: 17.41 kB / 0.9618 GB, free: 1.957 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.272e-05/0.8547, allocations: 20.89 kB / 0.9618 GB, free: 1.941 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.278e-06/0.8547, allocations: 1.625 kB / 0.9618 GB, free: 1.941 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.662e-06/0.8547, allocations: 0 / 0.9618 GB, free: 1.941 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.328e-06/0.8547, allocations: 0 / 0.9618 GB, free: 1.941 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007372/0.8555, allocations: 0.6016 MB / 0.9624 GB, free: 1.43 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.515e-06/0.8555, allocations: 0 / 0.9624 GB, free: 1.43 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.058e-05/0.8556, allocations: 10.16 kB / 0.9624 GB, free: 1.43 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.051e-06/0.8556, allocations: 9.016 kB / 0.9624 GB, free: 1.422 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.354e-05/0.8556, allocations: 9.281 kB / 0.9625 GB, free: 1.418 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.474e-06/0.8556, allocations: 0 / 0.9625 GB, free: 1.418 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.564e-06/0.8556, allocations: 4.844 kB / 0.9625 GB, free: 1.414 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000577/0.8562, allocations: 410.9 kB / 0.9628 GB, free: 1.125 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 5.251e-05/0.8563, allocations: 96.84 kB / 0.9629 GB, free: 1.016 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.788e-05/0.8563, allocations: 3.969 kB / 0.9629 GB, free: 1.016 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001183/0.8564, allocations: 8.625 kB / 0.963 GB, free: 1.016 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.811e-05/0.8565, allocations: 11.42 kB / 0.963 GB, free: 1.008 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.846e-05/0.8565, allocations: 13.53 kB / 0.963 GB, free: 1 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 9.472e-05/0.8566, allocations: 126.1 kB / 0.9631 GB, free: 0.9023 MB / 0.7169 GB Notification: Performance of sort global known variables: time 1.21e-07/0.8566, allocations: 0 / 0.9631 GB, free: 0.9023 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.0003104/0.857, allocations: 39.12 kB / 0.9631 GB, free: 0.8945 MB / 0.7169 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.0002738/0.8572, allocations: 132.7 kB / 0.9633 GB, free: 0.7852 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.0004722/0.8577, allocations: 365.7 kB / 0.9636 GB, free: 484 kB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 2.334e-06/0.8577, allocations: 1.25 kB / 0.9636 GB, free: 484 kB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 0.0002283/0.858, allocations: 213.6 kB / 0.9638 GB, free: 304 kB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003297/0.8583, allocations: 24.31 kB / 0.9638 GB, free: 292 kB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006058/0.8589, allocations: 327.7 kB / 0.9641 GB, free: 40 kB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003268/0.8593, allocations: 0.7041 MB / 0.9648 GB, free: 15.33 MB / 0.7325 GB Notification: Performance of simCode: alias equations: time 7.873e-05/0.8593, allocations: 24.16 kB / 0.9649 GB, free: 15.32 MB / 0.7325 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.85e-05/0.8594, allocations: 17.64 kB / 0.9649 GB, free: 15.3 MB / 0.7325 GB Notification: Performance of SimCode: time 4.01e-07/0.8594, allocations: 0 / 0.9649 GB, free: 15.3 MB / 0.7325 GB Notification: Performance of Templates: time 0.006288/0.8657, allocations: 1.986 MB / 0.9668 GB, free: 14.28 MB / 0.7325 GB make -j1 -f Buildings_9_Buildings.Utilities.IO.Files.Examples.CSVWriter.makefile (rm -f Buildings_9_Buildings.Utilities.IO.Files.Examples.CSVWriter.pipe ; mkfifo Buildings_9_Buildings.Utilities.IO.Files.Examples.CSVWriter.pipe ; head -c 1048576 < Buildings_9_Buildings.Utilities.IO.Files.Examples.CSVWriter.pipe >> ../files/Buildings_9_Buildings.Utilities.IO.Files.Examples.CSVWriter.sim & ./Buildings_9_Buildings.Utilities.IO.Files.Examples.CSVWriter -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Utilities.IO.Files.Examples.CSVWriter.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Utilities.IO.Files.Examples.CSVWriter_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Utilities_IO_Files_Examples_CSVWriter.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Utilities.IO.Files.Examples.CSVWriter.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches