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.001536/0.001537, allocations: 111.3 kB / 15.23 MB, free: 0.6602 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.002915/0.002915, allocations: 192.8 kB / 16.13 MB, free: 6.652 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.439/1.439, allocations: 222.9 MB / 239.8 MB, free: 4.648 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.347/2.347, allocations: 390.2 MB / 0.6642 GB, free: 0.668 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001221/0.001221, allocations: 55.91 kB / 0.8118 GB, free: 14.91 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7531/0.7544, allocations: 140.4 MB / 0.9489 GB, free: 9.207 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.IO.Files.Examples.CSVWriter): time 0.003716/0.7582, allocations: 1.658 MB / 0.9505 GB, free: 7.91 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.0009726/0.7592, allocations: 0.6329 MB / 0.9512 GB, free: 7.418 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 7.327e-05/0.7592, allocations: 5.375 kB / 0.9512 GB, free: 7.414 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 0.0001951/0.7594, allocations: 15.98 kB / 0.9512 GB, free: 7.402 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 0.0001941/0.7597, allocations: 42.77 kB / 0.9512 GB, free: 7.371 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004122/0.7601, allocations: 102.1 kB / 0.9513 GB, free: 7.301 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 0.000188/0.7603, allocations: 163.3 kB / 0.9515 GB, free: 7.211 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001351/0.7604, allocations: 30.34 kB / 0.9515 GB, free: 7.191 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001488/0.7606, allocations: 80.31 kB / 0.9516 GB, free: 7.148 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 0.00012/0.7607, allocations: 79.88 kB / 0.9517 GB, free: 7.098 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 3.875e-05/0.7608, allocations: 7.844 kB / 0.9517 GB, free: 7.098 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 7.572e-05/0.7608, allocations: 17.62 kB / 0.9517 GB, free: 7.094 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 8.769e-05/0.7609, allocations: 31.42 kB / 0.9517 GB, free: 7.074 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 9.703e-05/0.761, allocations: 65.44 kB / 0.9518 GB, free: 7.035 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.0002103/0.7613, allocations: 161.2 kB / 0.9519 GB, free: 6.922 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 3.737e-06/0.7613, allocations: 0 / 0.9519 GB, free: 6.922 MB / 0.7169 GB Notification: Performance of FrontEnd: time 1.192e-06/0.7613, allocations: 0 / 0.9519 GB, free: 6.922 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 1.053e-05/0.7613, allocations: 4 kB / 0.9519 GB, free: 6.918 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.0006627/0.762, allocations: 0.5508 MB / 0.9525 GB, free: 6.355 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 4.153e-05/0.762, allocations: 13.64 kB / 0.9525 GB, free: 6.352 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.879e-05/0.7621, allocations: 14.97 kB / 0.9525 GB, free: 6.348 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002513/0.7623, allocations: 243.2 kB / 0.9527 GB, free: 6.094 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.367e-05/0.7624, allocations: 6.75 kB / 0.9527 GB, free: 6.094 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.405e-05/0.7624, allocations: 14.84 kB / 0.9527 GB, free: 6.09 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002648/0.7627, allocations: 115.6 kB / 0.9529 GB, free: 6.012 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.152e-05/0.7627, allocations: 1 kB / 0.9529 GB, free: 6.012 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.162e-05/0.7627, allocations: 2.156 kB / 0.9529 GB, free: 6.012 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.933e-06/0.7627, allocations: 1.062 kB / 0.9529 GB, free: 6.012 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001977/0.7629, allocations: 70.14 kB / 0.9529 GB, free: 5.98 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006366/0.7636, allocations: 421.6 kB / 0.9533 GB, free: 5.586 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002002/0.7638, allocations: 91.44 kB / 0.9534 GB, free: 5.527 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001668/0.764, allocations: 75.97 kB / 0.9535 GB, free: 5.488 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 2.96e-05/0.764, allocations: 5.312 kB / 0.9535 GB, free: 5.484 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002756/0.7643, allocations: 177.5 kB / 0.9537 GB, free: 5.328 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=10): time 1.994e-06/0.7643, allocations: 0 / 0.9537 GB, free: 5.328 MB / 0.7169 GB Notification: Performance of matching and sorting (n=10): time 0.0008441/0.7651, allocations: 355.2 kB / 0.954 GB, free: 5.121 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.466e-05/0.7652, allocations: 167.5 kB / 0.9542 GB, free: 4.926 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001953/0.7654, allocations: 173.7 kB / 0.9543 GB, free: 4.789 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 2.416e-05/0.7655, allocations: 37.16 kB / 0.9544 GB, free: 4.75 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 6.218e-05/0.7655, allocations: 108.5 kB / 0.9545 GB, free: 4.645 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 3.148e-05/0.7656, allocations: 27.55 kB / 0.9545 GB, free: 4.621 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.998e-05/0.7657, allocations: 39.2 kB / 0.9545 GB, free: 4.594 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 9.53e-05/0.7658, allocations: 330.7 kB / 0.9548 GB, free: 4.266 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001412/0.7659, allocations: 48.64 kB / 0.9549 GB, free: 4.246 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001547/0.7661, allocations: 109 kB / 0.955 GB, free: 4.148 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002923/0.7664, allocations: 305.3 kB / 0.9553 GB, free: 3.848 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.466e-06/0.7664, allocations: 1 kB / 0.9553 GB, free: 3.848 MB / 0.7169 GB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0005193/0.7669, allocations: 345.1 kB / 0.9556 GB, free: 3.605 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 6.489e-05/0.767, allocations: 126 kB / 0.9557 GB, free: 3.469 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.145e-06/0.767, allocations: 2.406 kB / 0.9557 GB, free: 3.469 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.925e-05/0.767, allocations: 2.312 kB / 0.9557 GB, free: 3.469 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001173/0.7671, allocations: 20.55 kB / 0.9558 GB, free: 3.461 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.068e-05/0.7672, allocations: 6.656 kB / 0.9558 GB, free: 3.457 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.956e-05/0.7673, allocations: 24.73 kB / 0.9558 GB, free: 3.441 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.306e-05/0.7673, allocations: 11.84 kB / 0.9558 GB, free: 3.438 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.0001398/0.7674, allocations: 195.8 kB / 0.956 GB, free: 3.242 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.346e-05/0.7675, allocations: 18.5 kB / 0.956 GB, free: 3.234 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.478e-05/0.7675, allocations: 24.16 kB / 0.956 GB, free: 3.215 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.665e-06/0.7675, allocations: 1.469 kB / 0.956 GB, free: 3.215 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.23e-06/0.7675, allocations: 0 / 0.956 GB, free: 3.215 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.34e-06/0.7675, allocations: 1.344 kB / 0.956 GB, free: 3.215 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006041/0.7681, allocations: 0.5848 MB / 0.9566 GB, free: 2.711 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.513e-06/0.7682, allocations: 1.312 kB / 0.9566 GB, free: 2.711 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.371e-05/0.7682, allocations: 15.5 kB / 0.9566 GB, free: 2.703 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.044e-06/0.7682, allocations: 5.75 kB / 0.9566 GB, free: 2.699 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.22e-05/0.7683, allocations: 8.422 kB / 0.9566 GB, free: 2.695 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.204e-06/0.7683, allocations: 1.031 kB / 0.9566 GB, free: 2.695 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.964e-06/0.7683, allocations: 3.938 kB / 0.9566 GB, free: 2.691 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004723/0.7688, allocations: 399.6 kB / 0.957 GB, free: 2.406 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 2.377e-05/0.7688, allocations: 89.08 kB / 0.9571 GB, free: 2.305 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.716e-05/0.7688, allocations: 12.03 kB / 0.9571 GB, free: 2.297 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001095/0.7689, allocations: 9.266 kB / 0.9571 GB, free: 2.293 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.193e-05/0.769, allocations: 8.688 kB / 0.9571 GB, free: 2.289 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.897e-05/0.769, allocations: 13.64 kB / 0.9571 GB, free: 2.281 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 8.105e-05/0.7691, allocations: 122.2 kB / 0.9573 GB, free: 2.188 MB / 0.7169 GB Notification: Performance of sort global known variables: time 1.3e-07/0.7691, allocations: 0 / 0.9573 GB, free: 2.188 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.0003089/0.7694, allocations: 43.14 kB / 0.9573 GB, free: 2.176 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.0002243/0.7697, allocations: 123.4 kB / 0.9574 GB, free: 2.078 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.000443/0.7701, allocations: 362.7 kB / 0.9578 GB, free: 1.762 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 2.034e-06/0.7701, allocations: 0.5 kB / 0.9578 GB, free: 1.762 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 0.0002107/0.7703, allocations: 205.9 kB / 0.958 GB, free: 1.59 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003166/0.7707, allocations: 21.95 kB / 0.958 GB, free: 1.582 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005329/0.7712, allocations: 322.2 kB / 0.9583 GB, free: 1.34 MB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001588/0.7714, allocations: 0.7167 MB / 0.959 GB, free: 0.6211 MB / 0.7169 GB Notification: Performance of simCode: alias equations: time 6.867e-05/0.7715, allocations: 19.94 kB / 0.959 GB, free: 0.6133 MB / 0.7169 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.353e-05/0.7715, allocations: 13.56 kB / 0.959 GB, free: 0.6055 MB / 0.7169 GB Notification: Performance of SimCode: time 2.21e-07/0.7715, allocations: 0 / 0.959 GB, free: 0.6055 MB / 0.7169 GB Notification: Performance of Templates: time 0.005368/0.7769, allocations: 1.993 MB / 0.961 GB, free: 15.57 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