Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_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 10.1.1-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.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_10_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_10_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.001487/0.001488, allocations: 104.9 kB / 16.27 MB, free: 5.867 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.001468/0.001468, allocations: 186.8 kB / 17.2 MB, free: 5.508 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.435/1.435, allocations: 222.9 MB / 240.9 MB, free: 15.21 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/package.mo): time 2.616/2.616, allocations: 437.1 MB / 0.7111 GB, free: 4.512 MB / 0.5762 GB Notification: Performance of FrontEnd - loaded program: time 0.001933/0.001933, allocations: 67.2 kB / 0.8699 GB, free: 2.215 MB / 0.6387 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3364/0.3384, allocations: 151.6 MB / 1.018 GB, free: 10.66 MB / 0.795 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.IO.Files.Examples.CSVWriter): time 0.004327/0.3427, allocations: 1.608 MB / 1.02 GB, free: 9.035 MB / 0.795 GB Notification: Performance of NFInst.instExpressions: time 0.00146/0.3442, allocations: 0.617 MB / 1.02 GB, free: 8.414 MB / 0.795 GB Notification: Performance of NFInst.updateImplicitVariability: time 8.599e-05/0.3443, allocations: 8 kB / 1.02 GB, free: 8.406 MB / 0.795 GB Notification: Performance of NFTyping.typeComponents: time 0.0001782/0.3445, allocations: 19.81 kB / 1.02 GB, free: 8.387 MB / 0.795 GB Notification: Performance of NFTyping.typeBindings: time 0.0002544/0.3448, allocations: 40.44 kB / 1.02 GB, free: 8.348 MB / 0.795 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005565/0.3454, allocations: 115.7 kB / 1.02 GB, free: 8.234 MB / 0.795 GB Notification: Performance of NFFlatten.flatten: time 0.0003905/0.3458, allocations: 195.5 kB / 1.021 GB, free: 8.043 MB / 0.795 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001485/0.3459, allocations: 29.11 kB / 1.021 GB, free: 8.012 MB / 0.795 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001984/0.3461, allocations: 83.81 kB / 1.021 GB, free: 7.93 MB / 0.795 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001963/0.3464, allocations: 87.66 kB / 1.021 GB, free: 7.844 MB / 0.795 GB Notification: Performance of NFPackage.collectConstants: time 5.611e-05/0.3464, allocations: 16 kB / 1.021 GB, free: 7.828 MB / 0.795 GB Notification: Performance of NFFlatten.collectFunctions: time 9.68e-05/0.3465, allocations: 28 kB / 1.021 GB, free: 7.801 MB / 0.795 GB Notification: Performance of NFScalarize.scalarize: time 0.0001045/0.3466, allocations: 23.92 kB / 1.021 GB, free: 7.777 MB / 0.795 GB Notification: Performance of NFVerifyModel.verify: time 0.0001394/0.3468, allocations: 79.64 kB / 1.021 GB, free: 7.699 MB / 0.795 GB Notification: Performance of NFConvertDAE.convert: time 0.0003251/0.3471, allocations: 163.8 kB / 1.021 GB, free: 7.539 MB / 0.795 GB Notification: Performance of FrontEnd - DAE generated: time 5.139e-06/0.3471, allocations: 0 / 1.021 GB, free: 7.539 MB / 0.795 GB Notification: Performance of FrontEnd: time 1.543e-06/0.3472, allocations: 0 / 1.021 GB, free: 7.539 MB / 0.795 GB Notification: Performance of Transformations before backend: time 6.432e-06/0.3472, allocations: 0 / 1.021 GB, free: 7.539 MB / 0.795 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.0009908/0.3482, allocations: 0.5563 MB / 1.022 GB, free: 6.91 MB / 0.795 GB Notification: Performance of prepare preOptimizeDAE: time 4.362e-05/0.3482, allocations: 8.922 kB / 1.022 GB, free: 6.902 MB / 0.795 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.674e-05/0.3483, allocations: 20.75 kB / 1.022 GB, free: 6.883 MB / 0.795 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004305/0.3488, allocations: 237.2 kB / 1.022 GB, free: 6.613 MB / 0.795 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.527e-05/0.3488, allocations: 12.31 kB / 1.022 GB, free: 6.602 MB / 0.795 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.632e-05/0.3489, allocations: 20.36 kB / 1.022 GB, free: 6.582 MB / 0.795 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004002/0.3493, allocations: 113.7 kB / 1.022 GB, free: 6.465 MB / 0.795 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.092e-05/0.3493, allocations: 0 / 1.022 GB, free: 6.465 MB / 0.795 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.388e-05/0.3493, allocations: 8 kB / 1.022 GB, free: 6.457 MB / 0.795 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.42e-06/0.3494, allocations: 0 / 1.022 GB, free: 6.457 MB / 0.795 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002964/0.3497, allocations: 63.95 kB / 1.022 GB, free: 6.395 MB / 0.795 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009433/0.3506, allocations: 420.5 kB / 1.022 GB, free: 5.934 MB / 0.795 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002894/0.3509, allocations: 86.53 kB / 1.022 GB, free: 5.84 MB / 0.795 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002566/0.3512, allocations: 76.81 kB / 1.023 GB, free: 5.762 MB / 0.795 GB Notification: Performance of preOpt evalFunc (simulation): time 2.464e-05/0.3512, allocations: 8.031 kB / 1.023 GB, free: 5.754 MB / 0.795 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000421/0.3517, allocations: 178.9 kB / 1.023 GB, free: 5.555 MB / 0.795 GB Notification: Performance of pre-optimization done (n=10): time 2.044e-06/0.3517, allocations: 0 / 1.023 GB, free: 5.555 MB / 0.795 GB Notification: Performance of matching and sorting (n=10): time 0.001121/0.3528, allocations: 356.6 kB / 1.023 GB, free: 5.188 MB / 0.795 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001376/0.353, allocations: 162.2 kB / 1.023 GB, free: 4.992 MB / 0.795 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002548/0.3532, allocations: 179.4 kB / 1.023 GB, free: 4.809 MB / 0.795 GB Notification: Performance of collectPreVariables (initialization): time 4.198e-05/0.3533, allocations: 33.7 kB / 1.023 GB, free: 4.77 MB / 0.795 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001173/0.3534, allocations: 108.4 kB / 1.024 GB, free: 4.656 MB / 0.795 GB Notification: Performance of collectInitialBindings (initialization): time 5.003e-05/0.3535, allocations: 31.59 kB / 1.024 GB, free: 4.625 MB / 0.795 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000112/0.3536, allocations: 37.7 kB / 1.024 GB, free: 4.582 MB / 0.795 GB Notification: Performance of setup shared object (initialization): time 0.0001971/0.3538, allocations: 330.8 kB / 1.024 GB, free: 4.25 MB / 0.795 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002063/0.354, allocations: 47.97 kB / 1.024 GB, free: 4.203 MB / 0.795 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002734/0.3543, allocations: 108.8 kB / 1.024 GB, free: 4.074 MB / 0.795 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005455/0.3549, allocations: 312.9 kB / 1.024 GB, free: 3.707 MB / 0.795 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.036e-06/0.3549, allocations: 0 / 1.024 GB, free: 3.707 MB / 0.795 GB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0008502/0.3557, allocations: 344.1 kB / 1.025 GB, free: 3.34 MB / 0.795 GB Notification: Performance of prepare postOptimizeDAE: time 0.000125/0.3559, allocations: 122.8 kB / 1.025 GB, free: 3.195 MB / 0.795 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.003e-06/0.3559, allocations: 0 / 1.025 GB, free: 3.195 MB / 0.795 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.661e-05/0.3559, allocations: 4 kB / 1.025 GB, free: 3.191 MB / 0.795 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001583/0.3561, allocations: 19.92 kB / 1.025 GB, free: 3.172 MB / 0.795 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.42e-05/0.3561, allocations: 7.938 kB / 1.025 GB, free: 3.164 MB / 0.795 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001623/0.3563, allocations: 23.83 kB / 1.025 GB, free: 3.141 MB / 0.795 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.138e-05/0.3563, allocations: 12.25 kB / 1.025 GB, free: 3.129 MB / 0.795 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.000262/0.3566, allocations: 195.6 kB / 1.025 GB, free: 2.918 MB / 0.795 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.673e-05/0.3567, allocations: 15.81 kB / 1.025 GB, free: 2.902 MB / 0.795 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.597e-05/0.3568, allocations: 21.39 kB / 1.025 GB, free: 2.883 MB / 0.795 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.338e-06/0.3568, allocations: 0 / 1.025 GB, free: 2.883 MB / 0.795 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.867e-06/0.3568, allocations: 0 / 1.025 GB, free: 2.883 MB / 0.795 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.519e-06/0.3568, allocations: 0 / 1.025 GB, free: 2.883 MB / 0.795 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001217/0.358, allocations: 0.5875 MB / 1.026 GB, free: 2.227 MB / 0.795 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.076e-06/0.358, allocations: 0 / 1.026 GB, free: 2.227 MB / 0.795 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.352e-05/0.3581, allocations: 11.98 kB / 1.026 GB, free: 2.215 MB / 0.795 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.777e-06/0.3582, allocations: 0 / 1.026 GB, free: 2.215 MB / 0.795 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.836e-05/0.3582, allocations: 11.98 kB / 1.026 GB, free: 2.203 MB / 0.795 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.274e-06/0.3582, allocations: 3.938 kB / 1.026 GB, free: 2.199 MB / 0.795 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.498e-06/0.3582, allocations: 4.219 kB / 1.026 GB, free: 2.195 MB / 0.795 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009268/0.3592, allocations: 410.6 kB / 1.026 GB, free: 1.766 MB / 0.795 GB Notification: Performance of postOpt removeConstants (simulation): time 8.772e-05/0.3593, allocations: 89 kB / 1.026 GB, free: 1.66 MB / 0.795 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.777e-05/0.3593, allocations: 8 kB / 1.026 GB, free: 1.652 MB / 0.795 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001785/0.3595, allocations: 11.98 kB / 1.026 GB, free: 1.641 MB / 0.795 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.202e-05/0.3596, allocations: 3.938 kB / 1.026 GB, free: 1.637 MB / 0.795 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.467e-05/0.3597, allocations: 15.98 kB / 1.026 GB, free: 1.621 MB / 0.795 GB Notification: Performance of sorting global known variables: time 0.0001989/0.3599, allocations: 132.8 kB / 1.026 GB, free: 1.492 MB / 0.795 GB Notification: Performance of sort global known variables: time 2.61e-07/0.3599, allocations: 0 / 1.026 GB, free: 1.492 MB / 0.795 GB Notification: Performance of remove unused functions: time 0.0005901/0.3605, allocations: 39.91 kB / 1.026 GB, free: 1.453 MB / 0.795 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.0004482/0.361, allocations: 128.2 kB / 1.027 GB, free: 1.32 MB / 0.795 GB Notification: Performance of simCode: created initialization part: time 0.0008872/0.3619, allocations: 377.6 kB / 1.027 GB, free: 0.9023 MB / 0.795 GB Notification: Performance of simCode: created event and clocks part: time 4.188e-06/0.3619, allocations: 3.938 kB / 1.027 GB, free: 0.8984 MB / 0.795 GB Notification: Performance of simCode: created simulation system equations: time 0.0003958/0.3623, allocations: 202.8 kB / 1.027 GB, free: 0.6758 MB / 0.795 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005213/0.3628, allocations: 26.42 kB / 1.027 GB, free: 0.6523 MB / 0.795 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001008/0.3639, allocations: 310 kB / 1.027 GB, free: 328 kB / 0.795 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005689/0.3644, allocations: 0.7118 MB / 1.028 GB, free: 15.58 MB / 0.8106 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.744e-05/0.3645, allocations: 19.44 kB / 1.028 GB, free: 15.56 MB / 0.8106 GB Notification: Performance of SimCode: time 5.21e-07/0.3645, allocations: 4 kB / 1.028 GB, free: 15.56 MB / 0.8106 GB Notification: Performance of Templates: time 0.00688/0.3714, allocations: 2.159 MB / 1.03 GB, free: 13.41 MB / 0.8106 GB make -j1 -f Buildings_10_Buildings.Utilities.IO.Files.Examples.CSVWriter.makefile (rm -f Buildings_10_Buildings.Utilities.IO.Files.Examples.CSVWriter.pipe ; mkfifo Buildings_10_Buildings.Utilities.IO.Files.Examples.CSVWriter.pipe ; head -c 1048576 < Buildings_10_Buildings.Utilities.IO.Files.Examples.CSVWriter.pipe >> ../files/Buildings_10_Buildings.Utilities.IO.Files.Examples.CSVWriter.sim & ./Buildings_10_Buildings.Utilities.IO.Files.Examples.CSVWriter -abortSlowSimulation -alarm=400 -emit_protected -lv LOG_STATS > Buildings_10_Buildings.Utilities.IO.Files.Examples.CSVWriter.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Utilities.IO.Files.Examples.CSVWriter_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Utilities_IO_Files_Examples_CSVWriter.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Utilities.IO.Files.Examples.CSVWriter.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches