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.0009851/0.000985, allocations: 99.58 kB / 16.02 MB, free: 76 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001173/0.001173, allocations: 187.7 kB / 16.92 MB, free: 6.746 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.351/1.351, allocations: 223.3 MB / 241 MB, free: 5.266 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.293/2.293, allocations: 390.9 MB / 0.667 GB, free: 2.379 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.0003618/0.0003618, allocations: 8 kB / 0.8166 GB, free: 13.26 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6777/0.678, allocations: 142.4 MB / 0.9557 GB, free: 7.957 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.IO.Files.Examples.CSVWriter): time 0.001663/0.6798, allocations: 1.319 MB / 0.957 GB, free: 6.918 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.0008654/0.6806, allocations: 0.6207 MB / 0.9576 GB, free: 6.438 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.449e-05/0.6807, allocations: 0.9062 kB / 0.9576 GB, free: 6.438 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 0.0001497/0.6809, allocations: 24.23 kB / 0.9576 GB, free: 6.418 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 0.0001802/0.6811, allocations: 34.45 kB / 0.9577 GB, free: 6.395 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003659/0.6814, allocations: 101.5 kB / 0.9578 GB, free: 6.324 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 0.0001673/0.6816, allocations: 160.5 kB / 0.9579 GB, free: 6.238 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001243/0.6817, allocations: 28.62 kB / 0.9579 GB, free: 6.219 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 0.000141/0.6819, allocations: 75.14 kB / 0.958 GB, free: 6.18 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001307/0.682, allocations: 79.53 kB / 0.9581 GB, free: 6.129 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 3.286e-05/0.6821, allocations: 6.844 kB / 0.9581 GB, free: 6.129 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 6.678e-05/0.6821, allocations: 21.14 kB / 0.9581 GB, free: 6.121 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 7.934e-05/0.6822, allocations: 22.36 kB / 0.9581 GB, free: 6.109 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 9.66e-05/0.6823, allocations: 93.78 kB / 0.9582 GB, free: 6.035 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.0001615/0.6825, allocations: 110.7 kB / 0.9583 GB, free: 5.961 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 4.198e-06/0.6825, allocations: 0 / 0.9583 GB, free: 5.961 MB / 0.7169 GB Notification: Performance of FrontEnd: time 1.663e-06/0.6825, allocations: 4 kB / 0.9583 GB, free: 5.957 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 4.99e-06/0.6825, allocations: 0 / 0.9583 GB, free: 5.957 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.0005237/0.683, allocations: 0.5283 MB / 0.9589 GB, free: 5.402 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 3.868e-05/0.6831, allocations: 9.469 kB / 0.9589 GB, free: 5.402 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.748e-05/0.6832, allocations: 16.16 kB / 0.9589 GB, free: 5.398 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002512/0.6834, allocations: 233.3 kB / 0.9591 GB, free: 5.152 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.307e-05/0.6834, allocations: 15.94 kB / 0.9591 GB, free: 5.145 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.319e-05/0.6835, allocations: 10.06 kB / 0.9591 GB, free: 5.145 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003004/0.6838, allocations: 123.8 kB / 0.9592 GB, free: 5.062 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.936e-06/0.6838, allocations: 0 / 0.9592 GB, free: 5.062 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.928e-05/0.6838, allocations: 7.75 kB / 0.9592 GB, free: 5.059 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.741e-06/0.6839, allocations: 5.391 kB / 0.9593 GB, free: 5.055 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000203/0.6841, allocations: 81.69 kB / 0.9593 GB, free: 5.02 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005669/0.6846, allocations: 417.6 kB / 0.9597 GB, free: 4.633 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001903/0.6848, allocations: 94.53 kB / 0.9598 GB, free: 4.574 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001621/0.685, allocations: 79.44 kB / 0.9599 GB, free: 4.535 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 2.635e-05/0.685, allocations: 1.375 kB / 0.9599 GB, free: 4.535 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002468/0.6853, allocations: 189.5 kB / 0.9601 GB, free: 4.371 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=10): time 1.432e-06/0.6853, allocations: 0 / 0.9601 GB, free: 4.371 MB / 0.7169 GB Notification: Performance of matching and sorting (n=10): time 0.0007029/0.686, allocations: 365.9 kB / 0.9604 GB, free: 4.164 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.861e-05/0.6861, allocations: 169.1 kB / 0.9606 GB, free: 3.969 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001494/0.6862, allocations: 176.6 kB / 0.9608 GB, free: 3.824 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 2.156e-05/0.6863, allocations: 34.08 kB / 0.9608 GB, free: 3.789 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 5.472e-05/0.6863, allocations: 107.2 kB / 0.9609 GB, free: 3.684 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 2.778e-05/0.6864, allocations: 28.27 kB / 0.9609 GB, free: 3.66 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.543e-05/0.6864, allocations: 24.11 kB / 0.9609 GB, free: 3.637 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 5.402e-05/0.6865, allocations: 326.8 kB / 0.9613 GB, free: 3.312 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001437/0.6866, allocations: 65.33 kB / 0.9613 GB, free: 3.281 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001549/0.6868, allocations: 103.3 kB / 0.9614 GB, free: 3.191 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003152/0.6871, allocations: 321.3 kB / 0.9617 GB, free: 2.883 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.767e-06/0.6871, allocations: 1.062 kB / 0.9617 GB, free: 2.883 MB / 0.7169 GB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0005276/0.6876, allocations: 352.2 kB / 0.9621 GB, free: 2.641 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 5.866e-05/0.6877, allocations: 121 kB / 0.9622 GB, free: 2.508 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.473e-06/0.6877, allocations: 1.375 kB / 0.9622 GB, free: 2.508 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.661e-05/0.6878, allocations: 2.75 kB / 0.9622 GB, free: 2.508 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001177/0.6879, allocations: 26.98 kB / 0.9622 GB, free: 2.496 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.035e-06/0.6879, allocations: 2.75 kB / 0.9622 GB, free: 2.496 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001034/0.688, allocations: 21.58 kB / 0.9622 GB, free: 2.484 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.073e-05/0.688, allocations: 12.25 kB / 0.9622 GB, free: 2.48 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.0001201/0.6882, allocations: 204 kB / 0.9624 GB, free: 2.277 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.076e-05/0.6882, allocations: 13.78 kB / 0.9624 GB, free: 2.273 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.821e-05/0.6882, allocations: 16.98 kB / 0.9625 GB, free: 2.262 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.116e-06/0.6882, allocations: 1 kB / 0.9625 GB, free: 2.262 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.819e-06/0.6883, allocations: 0 / 0.9625 GB, free: 2.262 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.246e-06/0.6883, allocations: 0.9688 kB / 0.9625 GB, free: 2.262 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007016/0.689, allocations: 0.5972 MB / 0.963 GB, free: 1.754 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.653e-06/0.689, allocations: 0 / 0.963 GB, free: 1.754 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.579e-05/0.6891, allocations: 10.78 kB / 0.9631 GB, free: 1.754 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.085e-06/0.6891, allocations: 1.469 kB / 0.9631 GB, free: 1.754 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.076e-05/0.6891, allocations: 12.05 kB / 0.9631 GB, free: 1.746 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.833e-06/0.6891, allocations: 1.109 kB / 0.9631 GB, free: 1.746 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.896e-06/0.6891, allocations: 15.86 kB / 0.9631 GB, free: 1.73 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005327/0.6896, allocations: 407 kB / 0.9635 GB, free: 1.445 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 3.213e-05/0.6897, allocations: 89.64 kB / 0.9636 GB, free: 1.344 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.529e-05/0.6897, allocations: 8.016 kB / 0.9636 GB, free: 1.34 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001184/0.6898, allocations: 15.38 kB / 0.9636 GB, free: 1.332 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.35e-05/0.6899, allocations: 11.33 kB / 0.9636 GB, free: 1.324 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.963e-05/0.6899, allocations: 6.188 kB / 0.9636 GB, free: 1.324 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 8.997e-05/0.69, allocations: 130.5 kB / 0.9637 GB, free: 1.223 MB / 0.7169 GB Notification: Performance of sort global known variables: time 1.5e-07/0.69, allocations: 0 / 0.9637 GB, free: 1.223 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.0002978/0.6903, allocations: 35.19 kB / 0.9638 GB, free: 1.219 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.0002248/0.6906, allocations: 130.9 kB / 0.9639 GB, free: 1.113 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.0004325/0.691, allocations: 374.3 kB / 0.9642 GB, free: 0.793 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 1.894e-06/0.691, allocations: 5.125 kB / 0.9642 GB, free: 0.7891 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 0.0002079/0.6912, allocations: 209.9 kB / 0.9644 GB, free: 0.6172 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003099/0.6915, allocations: 14.88 kB / 0.9645 GB, free: 0.6133 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000594/0.6921, allocations: 364.7 kB / 0.9648 GB, free: 336 kB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002784/0.6924, allocations: 0.7044 MB / 0.9655 GB, free: 15.62 MB / 0.7325 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.87e-05/0.6925, allocations: 21.42 kB / 0.9655 GB, free: 15.61 MB / 0.7325 GB Notification: Performance of SimCode: time 3.91e-07/0.6925, allocations: 0 / 0.9655 GB, free: 15.61 MB / 0.7325 GB Notification: Performance of Templates: time 0.004209/0.6967, allocations: 2.143 MB / 0.9676 GB, free: 14.49 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/jenkins1/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