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.2-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-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.0009441/0.0009441, allocations: 86.33 kB / 15.06 MB, free: 1.09 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.001025/0.001025, allocations: 168.7 kB / 15.95 MB, free: 204 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.443/1.443, allocations: 223.3 MB / 240 MB, free: 5.418 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-maint.9.1.x/package.mo): time 2.645/2.645, allocations: 390.9 MB / 0.666 GB, free: 2.516 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.0003863/0.0003864, allocations: 8 kB / 0.8154 GB, free: 13.69 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7627/0.7631, allocations: 142.4 MB / 0.9544 GB, free: 7.719 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.IO.Files.Examples.CSVWriter): time 0.002481/0.7656, allocations: 1.302 MB / 0.9557 GB, free: 6.691 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.001116/0.7668, allocations: 0.5704 MB / 0.9563 GB, free: 6.246 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001718/0.767, allocations: 1.031 kB / 0.9563 GB, free: 6.246 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 0.0002531/0.7672, allocations: 31.94 kB / 0.9563 GB, free: 6.219 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 0.0002861/0.7675, allocations: 41.95 kB / 0.9563 GB, free: 6.191 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005192/0.7681, allocations: 90.16 kB / 0.9564 GB, free: 6.133 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 0.0002368/0.7683, allocations: 150.5 kB / 0.9566 GB, free: 6.043 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001519/0.7685, allocations: 22.62 kB / 0.9566 GB, free: 6.027 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002456/0.7687, allocations: 77.03 kB / 0.9567 GB, free: 5.988 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002223/0.7689, allocations: 75.78 kB / 0.9567 GB, free: 5.941 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 5.921e-05/0.769, allocations: 9.969 kB / 0.9567 GB, free: 5.938 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001089/0.7691, allocations: 17.41 kB / 0.9568 GB, free: 5.934 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 9.393e-05/0.7692, allocations: 26.5 kB / 0.9568 GB, free: 5.918 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 8.969e-05/0.7693, allocations: 48.86 kB / 0.9568 GB, free: 5.879 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.000238/0.7696, allocations: 110.3 kB / 0.9569 GB, free: 5.805 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 6.422e-06/0.7696, allocations: 0 / 0.9569 GB, free: 5.805 MB / 0.7169 GB Notification: Performance of FrontEnd: time 2.364e-06/0.7696, allocations: 0 / 0.9569 GB, free: 5.805 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 7.134e-06/0.7696, allocations: 0.9688 kB / 0.9569 GB, free: 5.805 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.0007417/0.7704, allocations: 0.5312 MB / 0.9575 GB, free: 5.246 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 4.489e-05/0.7704, allocations: 10.06 kB / 0.9575 GB, free: 5.246 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001051/0.7705, allocations: 18.36 kB / 0.9575 GB, free: 5.238 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003258/0.7708, allocations: 222.4 kB / 0.9577 GB, free: 5.004 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.564e-05/0.7709, allocations: 9.688 kB / 0.9577 GB, free: 5 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.842e-05/0.7709, allocations: 11.97 kB / 0.9577 GB, free: 5 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003081/0.7712, allocations: 126.6 kB / 0.9578 GB, free: 4.914 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.014e-05/0.7713, allocations: 4 kB / 0.9578 GB, free: 4.91 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.965e-05/0.7713, allocations: 2.312 kB / 0.9578 GB, free: 4.91 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.867e-06/0.7713, allocations: 2.375 kB / 0.9578 GB, free: 4.91 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002115/0.7715, allocations: 85.84 kB / 0.9579 GB, free: 4.871 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006853/0.7722, allocations: 419.3 kB / 0.9583 GB, free: 4.484 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002042/0.7724, allocations: 90.78 kB / 0.9584 GB, free: 4.43 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001524/0.7726, allocations: 83.47 kB / 0.9585 GB, free: 4.387 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 3.117e-05/0.7726, allocations: 1.75 kB / 0.9585 GB, free: 4.387 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002722/0.7729, allocations: 192 kB / 0.9587 GB, free: 4.219 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=10): time 1.913e-06/0.7729, allocations: 0 / 0.9587 GB, free: 4.219 MB / 0.7169 GB Notification: Performance of matching and sorting (n=10): time 0.0007886/0.7737, allocations: 365.3 kB / 0.959 GB, free: 4.012 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.8e-05/0.7738, allocations: 167.7 kB / 0.9592 GB, free: 3.816 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001583/0.774, allocations: 177.7 kB / 0.9594 GB, free: 3.672 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 2.227e-05/0.774, allocations: 32.45 kB / 0.9594 GB, free: 3.637 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 6.424e-05/0.7741, allocations: 112.6 kB / 0.9595 GB, free: 3.527 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 2.768e-05/0.7741, allocations: 31.7 kB / 0.9595 GB, free: 3.5 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.229e-05/0.7741, allocations: 2.75 kB / 0.9595 GB, free: 3.5 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 6.563e-05/0.7742, allocations: 325.6 kB / 0.9598 GB, free: 3.176 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001229/0.7743, allocations: 56.95 kB / 0.9599 GB, free: 3.152 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001355/0.7745, allocations: 108 kB / 0.96 GB, free: 3.059 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001703/0.7746, allocations: 179.7 kB / 0.9602 GB, free: 2.898 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.39e-06/0.7747, allocations: 1.344 kB / 0.9602 GB, free: 2.898 MB / 0.7169 GB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0004851/0.7751, allocations: 354.8 kB / 0.9605 GB, free: 2.652 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 5.652e-05/0.7752, allocations: 117.6 kB / 0.9606 GB, free: 2.523 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.093e-05/0.7752, allocations: 6.547 kB / 0.9606 GB, free: 2.52 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.56e-05/0.7752, allocations: 2.656 kB / 0.9606 GB, free: 2.52 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001196/0.7754, allocations: 23.17 kB / 0.9607 GB, free: 2.512 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.398e-06/0.7754, allocations: 2.156 kB / 0.9607 GB, free: 2.512 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001164/0.7755, allocations: 26.23 kB / 0.9607 GB, free: 2.496 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.971e-05/0.7756, allocations: 8.938 kB / 0.9607 GB, free: 2.496 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 ($PRE.combiTimeTableWriter.str,combiTimeTableWriter.str,$PRE.csvWriter.str,csvWriter.str,$whenCondition2,combiTimeTableWriter.sampleTrigger,$whenCondition1,csvWriter.sampleTrigger) * 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001331/0.7757, allocations: 199.8 kB / 0.9609 GB, free: 2.297 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.027e-05/0.7757, allocations: 17.66 kB / 0.9609 GB, free: 2.289 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.719e-05/0.7758, allocations: 17.02 kB / 0.9609 GB, free: 2.277 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.677e-06/0.7758, allocations: 4.766 kB / 0.9609 GB, free: 2.273 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.44e-06/0.7758, allocations: 1 kB / 0.9609 GB, free: 2.273 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.467e-06/0.7758, allocations: 0 / 0.9609 GB, free: 2.273 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006371/0.7764, allocations: 0.5889 MB / 0.9615 GB, free: 1.773 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.476e-06/0.7765, allocations: 5.375 kB / 0.9615 GB, free: 1.77 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.429e-05/0.7765, allocations: 13.61 kB / 0.9615 GB, free: 1.766 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.4e-06/0.7765, allocations: 5.328 kB / 0.9615 GB, free: 1.762 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.131e-05/0.7766, allocations: 8.109 kB / 0.9615 GB, free: 1.758 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.785e-06/0.7766, allocations: 1.375 kB / 0.9615 GB, free: 1.758 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.71e-07/0.7766, allocations: 4 kB / 0.9615 GB, free: 1.754 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005555/0.7771, allocations: 406.6 kB / 0.9619 GB, free: 1.469 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 3.955e-05/0.7772, allocations: 92.45 kB / 0.962 GB, free: 1.363 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.389e-05/0.7772, allocations: 7.734 kB / 0.962 GB, free: 1.359 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001163/0.7774, allocations: 16.11 kB / 0.962 GB, free: 1.352 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.687e-05/0.7774, allocations: 15.61 kB / 0.962 GB, free: 1.34 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.981e-05/0.7775, allocations: 5.938 kB / 0.962 GB, free: 1.34 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 0.0001042/0.7776, allocations: 125.7 kB / 0.9622 GB, free: 1.242 MB / 0.7169 GB Notification: Performance of sort global known variables: time 3.21e-07/0.7776, allocations: 0 / 0.9622 GB, free: 1.242 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.0003901/0.778, allocations: 34.38 kB / 0.9622 GB, free: 1.238 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0002777/0.7782, allocations: 134 kB / 0.9623 GB, free: 1.129 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.0004779/0.7787, allocations: 373.8 kB / 0.9627 GB, free: 0.8086 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 2.604e-06/0.7787, allocations: 4.125 kB / 0.9627 GB, free: 0.8047 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 0.0002294/0.779, allocations: 204.3 kB / 0.9629 GB, free: 0.6367 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00033/0.7793, allocations: 23.48 kB / 0.9629 GB, free: 0.625 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006097/0.7799, allocations: 319 kB / 0.9632 GB, free: 396 kB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002708/0.7802, allocations: 0.7036 MB / 0.9639 GB, free: 15.68 MB / 0.7325 GB Notification: Performance of simCode: alias equations: time 7.976e-05/0.7803, allocations: 24.5 kB / 0.9639 GB, free: 15.67 MB / 0.7325 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.872e-05/0.7804, allocations: 13.34 kB / 0.9639 GB, free: 15.66 MB / 0.7325 GB Notification: Performance of SimCode: time 2.61e-07/0.7804, allocations: 0 / 0.9639 GB, free: 15.66 MB / 0.7325 GB Notification: Performance of Templates: time 0.005815/0.7862, allocations: 1.929 MB / 0.9658 GB, free: 14.66 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