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 12.0.0-master/package.mo", uses=false) Using package Buildings with version 12.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-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.005078/0.005078, allocations: 99.47 kB / 15.73 MB, free: 6.441 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.001107/0.001107, allocations: 199.3 kB / 16.67 MB, free: 6.352 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.362/1.362, allocations: 222.9 MB / 240.4 MB, free: 4.273 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.778/2.778, allocations: 472.6 MB / 0.7453 GB, free: 4.566 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001344/0.001344, allocations: 75.86 kB / 1.069 GB, free: 9.215 MB / 0.8262 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3225/0.3239, allocations: 159.9 MB / 1.226 GB, free: 9.199 MB / 0.9825 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.IO.Files.Examples.CSVWriter): time 0.003255/0.3272, allocations: 1.605 MB / 1.227 GB, free: 7.586 MB / 0.9825 GB Notification: Performance of NFInst.instExpressions: time 0.001028/0.3282, allocations: 0.6193 MB / 1.228 GB, free: 6.961 MB / 0.9825 GB Notification: Performance of NFInst.updateImplicitVariability: time 9.273e-05/0.3283, allocations: 3.938 kB / 1.228 GB, free: 6.957 MB / 0.9825 GB Notification: Performance of NFTyping.typeComponents: time 0.0001679/0.3285, allocations: 27.8 kB / 1.228 GB, free: 6.93 MB / 0.9825 GB Notification: Performance of NFTyping.typeBindings: time 0.0002307/0.3288, allocations: 43.75 kB / 1.228 GB, free: 6.887 MB / 0.9825 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004477/0.3292, allocations: 111.8 kB / 1.228 GB, free: 6.777 MB / 0.9825 GB Notification: Performance of NFFlatten.flatten: time 0.0003064/0.3295, allocations: 203.5 kB / 1.228 GB, free: 6.578 MB / 0.9825 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001221/0.3297, allocations: 21.11 kB / 1.228 GB, free: 6.559 MB / 0.9825 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001699/0.3299, allocations: 87.8 kB / 1.228 GB, free: 6.473 MB / 0.9825 GB Notification: Performance of NFSimplifyModel.simplify: time 0.000141/0.33, allocations: 83.72 kB / 1.228 GB, free: 6.391 MB / 0.9825 GB Notification: Performance of NFPackage.collectConstants: time 5.062e-05/0.3301, allocations: 16 kB / 1.228 GB, free: 6.375 MB / 0.9825 GB Notification: Performance of NFFlatten.collectFunctions: time 8.508e-05/0.3302, allocations: 28 kB / 1.228 GB, free: 6.348 MB / 0.9825 GB Notification: Performance of NFScalarize.scalarize: time 8.813e-05/0.3302, allocations: 27.92 kB / 1.228 GB, free: 6.32 MB / 0.9825 GB Notification: Performance of NFVerifyModel.verify: time 9.91e-05/0.3304, allocations: 79.58 kB / 1.228 GB, free: 6.242 MB / 0.9825 GB Notification: Performance of NFConvertDAE.convert: time 0.0002468/0.3306, allocations: 163.4 kB / 1.229 GB, free: 6.082 MB / 0.9825 GB Notification: Performance of FrontEnd - DAE generated: time 3.747e-06/0.3306, allocations: 0 / 1.229 GB, free: 6.082 MB / 0.9825 GB Notification: Performance of FrontEnd: time 1.402e-06/0.3306, allocations: 3.938 kB / 1.229 GB, free: 6.078 MB / 0.9825 GB Notification: Performance of Transformations before backend: time 5.791e-06/0.3306, allocations: 0 / 1.229 GB, free: 6.078 MB / 0.9825 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.0007202/0.3314, allocations: 0.5678 MB / 1.229 GB, free: 5.438 MB / 0.9825 GB Notification: Performance of prepare preOptimizeDAE: time 4.306e-05/0.3314, allocations: 12.03 kB / 1.229 GB, free: 5.426 MB / 0.9825 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.586e-05/0.3315, allocations: 16.84 kB / 1.229 GB, free: 5.41 MB / 0.9825 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003552/0.3319, allocations: 244.3 kB / 1.229 GB, free: 5.133 MB / 0.9825 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.554e-05/0.3319, allocations: 12.38 kB / 1.229 GB, free: 5.121 MB / 0.9825 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.836e-05/0.3319, allocations: 12.38 kB / 1.229 GB, free: 5.109 MB / 0.9825 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000278/0.3322, allocations: 121.7 kB / 1.23 GB, free: 4.984 MB / 0.9825 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.225e-06/0.3322, allocations: 0 / 1.23 GB, free: 4.984 MB / 0.9825 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.885e-05/0.3323, allocations: 4 kB / 1.23 GB, free: 4.98 MB / 0.9825 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.961e-06/0.3323, allocations: 0 / 1.23 GB, free: 4.98 MB / 0.9825 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000206/0.3325, allocations: 67.95 kB / 1.23 GB, free: 4.914 MB / 0.9825 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006472/0.3331, allocations: 420.5 kB / 1.23 GB, free: 4.453 MB / 0.9825 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001979/0.3333, allocations: 90.53 kB / 1.23 GB, free: 4.355 MB / 0.9825 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001541/0.3335, allocations: 72.81 kB / 1.23 GB, free: 4.281 MB / 0.9825 GB Notification: Performance of preOpt evalFunc (simulation): time 2.523e-05/0.3335, allocations: 4 kB / 1.23 GB, free: 4.277 MB / 0.9825 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002797/0.3338, allocations: 186.9 kB / 1.23 GB, free: 4.07 MB / 0.9825 GB Notification: Performance of pre-optimization done (n=10): time 2.044e-06/0.3338, allocations: 0 / 1.23 GB, free: 4.07 MB / 0.9825 GB Notification: Performance of matching and sorting (n=10): time 0.0008397/0.3347, allocations: 352.8 kB / 1.231 GB, free: 3.707 MB / 0.9825 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001389/0.3348, allocations: 166.2 kB / 1.231 GB, free: 3.508 MB / 0.9825 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002214/0.3351, allocations: 175.2 kB / 1.231 GB, free: 3.324 MB / 0.9825 GB Notification: Performance of collectPreVariables (initialization): time 3.163e-05/0.3351, allocations: 29.7 kB / 1.231 GB, free: 3.289 MB / 0.9825 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001068/0.3352, allocations: 108.3 kB / 1.231 GB, free: 3.176 MB / 0.9825 GB Notification: Performance of collectInitialBindings (initialization): time 4.367e-05/0.3353, allocations: 35.72 kB / 1.231 GB, free: 3.141 MB / 0.9825 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.441e-05/0.3354, allocations: 45.98 kB / 1.231 GB, free: 3.09 MB / 0.9825 GB Notification: Performance of setup shared object (initialization): time 0.0001481/0.3355, allocations: 330.8 kB / 1.232 GB, free: 2.758 MB / 0.9825 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001485/0.3357, allocations: 51.95 kB / 1.232 GB, free: 2.707 MB / 0.9825 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001829/0.3359, allocations: 102.8 kB / 1.232 GB, free: 2.582 MB / 0.9825 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003994/0.3363, allocations: 316.9 kB / 1.232 GB, free: 2.211 MB / 0.9825 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.89e-06/0.3363, allocations: 3.984 kB / 1.232 GB, free: 2.207 MB / 0.9825 GB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0006199/0.3369, allocations: 348.1 kB / 1.232 GB, free: 1.836 MB / 0.9825 GB Notification: Performance of prepare postOptimizeDAE: time 8.976e-05/0.337, allocations: 116.2 kB / 1.232 GB, free: 1.699 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.177e-05/0.337, allocations: 4 kB / 1.232 GB, free: 1.695 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.253e-05/0.3371, allocations: 8.25 kB / 1.232 GB, free: 1.688 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001379/0.3372, allocations: 19.98 kB / 1.232 GB, free: 1.668 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.109e-05/0.3372, allocations: 0 / 1.232 GB, free: 1.668 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000114/0.3374, allocations: 23.86 kB / 1.233 GB, free: 1.645 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.53e-05/0.3374, allocations: 8.078 kB / 1.233 GB, free: 1.637 MB / 0.9825 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.0001786/0.3376, allocations: 194 kB / 1.233 GB, free: 1.426 MB / 0.9825 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.884e-05/0.3376, allocations: 19.91 kB / 1.233 GB, free: 1.406 MB / 0.9825 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.497e-05/0.3377, allocations: 17.39 kB / 1.233 GB, free: 1.379 MB / 0.9825 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.176e-06/0.3377, allocations: 4 kB / 1.233 GB, free: 1.375 MB / 0.9825 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.552e-06/0.3377, allocations: 0 / 1.233 GB, free: 1.375 MB / 0.9825 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.737e-06/0.3377, allocations: 0 / 1.233 GB, free: 1.375 MB / 0.9825 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008432/0.3386, allocations: 0.5914 MB / 1.233 GB, free: 0.7148 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.535e-06/0.3386, allocations: 0 / 1.233 GB, free: 0.7148 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.55e-05/0.3386, allocations: 8 kB / 1.233 GB, free: 0.707 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.429e-06/0.3387, allocations: 0 / 1.233 GB, free: 0.707 MB / 0.9825 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.642e-05/0.3387, allocations: 11.98 kB / 1.233 GB, free: 0.6953 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.124e-06/0.3387, allocations: 0 / 1.233 GB, free: 0.6953 MB / 0.9825 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.762e-06/0.3387, allocations: 11.94 kB / 1.233 GB, free: 0.6836 MB / 0.9825 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005903/0.3393, allocations: 402.7 kB / 1.234 GB, free: 268 kB / 0.9825 GB Notification: Performance of postOpt removeConstants (simulation): time 6.011e-05/0.3394, allocations: 85.06 kB / 1.234 GB, free: 164 kB / 0.9825 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.052e-05/0.3394, allocations: 4 kB / 1.234 GB, free: 160 kB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000116/0.3396, allocations: 11.92 kB / 1.234 GB, free: 148 kB / 0.9825 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.505e-05/0.3396, allocations: 11.94 kB / 1.234 GB, free: 136 kB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.11e-05/0.3396, allocations: 15.98 kB / 1.234 GB, free: 120 kB / 0.9825 GB Notification: Performance of sorting global known variables: time 0.0001447/0.3398, allocations: 128.2 kB / 1.234 GB, free: 15.99 MB / 0.9981 GB Notification: Performance of sort global known variables: time 1.71e-07/0.3398, allocations: 0 / 1.234 GB, free: 15.99 MB / 0.9981 GB Notification: Performance of remove unused functions: time 0.0003292/0.3401, allocations: 43.88 kB / 1.234 GB, free: 15.95 MB / 0.9981 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.0003224/0.3405, allocations: 131.9 kB / 1.234 GB, free: 15.82 MB / 0.9981 GB Notification: Performance of simCode: created initialization part: time 0.0005081/0.341, allocations: 357.5 kB / 1.234 GB, free: 15.42 MB / 0.9981 GB Notification: Performance of simCode: created event and clocks part: time 2.505e-06/0.341, allocations: 0 / 1.234 GB, free: 15.42 MB / 0.9981 GB Notification: Performance of simCode: created simulation system equations: time 0.0002342/0.3412, allocations: 206.7 kB / 1.235 GB, free: 15.19 MB / 0.9981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003159/0.3416, allocations: 19.98 kB / 1.235 GB, free: 15.17 MB / 0.9981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005934/0.3422, allocations: 292.2 kB / 1.235 GB, free: 14.86 MB / 0.9981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002666/0.3425, allocations: 0.708 MB / 1.236 GB, free: 14.13 MB / 0.9981 GB Notification: Performance of simCode: alias equations: time 8.552e-05/0.3425, allocations: 20.53 kB / 1.236 GB, free: 14.11 MB / 0.9981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.98e-05/0.3426, allocations: 19.44 kB / 1.236 GB, free: 14.09 MB / 0.9981 GB Notification: Performance of SimCode: time 2.41e-07/0.3426, allocations: 0 / 1.236 GB, free: 14.09 MB / 0.9981 GB Notification: Performance of Templates: time 0.005528/0.3481, allocations: 2.089 MB / 1.238 GB, free: 12.02 MB / 0.9981 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