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.00136/0.00136, allocations: 115.3 kB / 15.34 MB, free: 0.5156 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.001389/0.001389, allocations: 189.9 kB / 16.25 MB, free: 6.637 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.482/1.482, allocations: 222.9 MB / 239.9 MB, free: 4.527 MB / 190.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.785/2.785, allocations: 437 MB / 0.7101 GB, free: 5.297 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.001969/0.001969, allocations: 67.89 kB / 0.8687 GB, free: 5.094 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6009/0.6029, allocations: 151.6 MB / 1.017 GB, free: 2.723 MB / 0.7637 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.IO.Files.Examples.CSVWriter): time 0.002997/0.6059, allocations: 1.667 MB / 1.018 GB, free: 1.047 MB / 0.7637 GB Notification: Performance of NFInst.instExpressions: time 0.0009501/0.6069, allocations: 0.6157 MB / 1.019 GB, free: 436 kB / 0.7637 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.723e-05/0.607, allocations: 0 / 1.019 GB, free: 436 kB / 0.7637 GB Notification: Performance of NFTyping.typeComponents: time 0.000152/0.6071, allocations: 11.92 kB / 1.019 GB, free: 424 kB / 0.7637 GB Notification: Performance of NFTyping.typeBindings: time 0.0001815/0.6073, allocations: 47.7 kB / 1.019 GB, free: 376 kB / 0.7637 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003657/0.6077, allocations: 103.9 kB / 1.019 GB, free: 272 kB / 0.7637 GB Notification: Performance of NFFlatten.flatten: time 0.0002422/0.608, allocations: 191.5 kB / 1.019 GB, free: 80 kB / 0.7637 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001123/0.6081, allocations: 33.08 kB / 1.019 GB, free: 44 kB / 0.7637 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001644/0.6083, allocations: 83.84 kB / 1.019 GB, free: 15.96 MB / 0.7794 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001362/0.6084, allocations: 83.64 kB / 1.02 GB, free: 15.88 MB / 0.7794 GB Notification: Performance of NFPackage.collectConstants: time 3.364e-05/0.6084, allocations: 12 kB / 1.02 GB, free: 15.87 MB / 0.7794 GB Notification: Performance of NFFlatten.collectFunctions: time 7.287e-05/0.6085, allocations: 31.98 kB / 1.02 GB, free: 15.84 MB / 0.7794 GB Notification: Performance of NFScalarize.scalarize: time 7.636e-05/0.6086, allocations: 31.91 kB / 1.02 GB, free: 15.8 MB / 0.7794 GB Notification: Performance of NFVerifyModel.verify: time 9.761e-05/0.6087, allocations: 75.66 kB / 1.02 GB, free: 15.73 MB / 0.7794 GB Notification: Performance of NFConvertDAE.convert: time 0.0002285/0.6089, allocations: 161.5 kB / 1.02 GB, free: 15.57 MB / 0.7794 GB Notification: Performance of FrontEnd - DAE generated: time 1.044e-05/0.609, allocations: 7.984 kB / 1.02 GB, free: 15.57 MB / 0.7794 GB Notification: Performance of FrontEnd: time 1.653e-06/0.609, allocations: 3.938 kB / 1.02 GB, free: 15.56 MB / 0.7794 GB Notification: Performance of Transformations before backend: time 4.789e-06/0.609, allocations: 0 / 1.02 GB, free: 15.56 MB / 0.7794 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.000734/0.6097, allocations: 0.5524 MB / 1.02 GB, free: 14.94 MB / 0.7794 GB Notification: Performance of prepare preOptimizeDAE: time 3.154e-05/0.6098, allocations: 8.031 kB / 1.02 GB, free: 14.93 MB / 0.7794 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.318e-05/0.6098, allocations: 24.73 kB / 1.02 GB, free: 14.91 MB / 0.7794 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003066/0.6101, allocations: 236.1 kB / 1.021 GB, free: 14.64 MB / 0.7794 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.533e-05/0.6102, allocations: 12.38 kB / 1.021 GB, free: 14.62 MB / 0.7794 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.486e-05/0.6102, allocations: 12.38 kB / 1.021 GB, free: 14.61 MB / 0.7794 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002948/0.6105, allocations: 113.7 kB / 1.021 GB, free: 14.5 MB / 0.7794 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.755e-06/0.6105, allocations: 0 / 1.021 GB, free: 14.5 MB / 0.7794 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.053e-05/0.6105, allocations: 4 kB / 1.021 GB, free: 14.49 MB / 0.7794 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.059e-06/0.6106, allocations: 0 / 1.021 GB, free: 14.49 MB / 0.7794 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002064/0.6108, allocations: 71.89 kB / 1.021 GB, free: 14.42 MB / 0.7794 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000706/0.6115, allocations: 420.5 kB / 1.021 GB, free: 13.96 MB / 0.7794 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002011/0.6117, allocations: 90.56 kB / 1.021 GB, free: 13.86 MB / 0.7794 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001729/0.6119, allocations: 80.81 kB / 1.021 GB, free: 13.78 MB / 0.7794 GB Notification: Performance of preOpt evalFunc (simulation): time 2.447e-05/0.6119, allocations: 0 / 1.021 GB, free: 13.78 MB / 0.7794 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002958/0.6122, allocations: 174.9 kB / 1.022 GB, free: 13.59 MB / 0.7794 GB Notification: Performance of pre-optimization done (n=10): time 1.533e-06/0.6122, allocations: 0 / 1.022 GB, free: 13.59 MB / 0.7794 GB Notification: Performance of matching and sorting (n=10): time 0.0007616/0.613, allocations: 352.7 kB / 1.022 GB, free: 13.22 MB / 0.7794 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001147/0.6131, allocations: 174.2 kB / 1.022 GB, free: 13.02 MB / 0.7794 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000203/0.6133, allocations: 171.2 kB / 1.022 GB, free: 12.84 MB / 0.7794 GB Notification: Performance of collectPreVariables (initialization): time 2.748e-05/0.6134, allocations: 29.7 kB / 1.022 GB, free: 12.8 MB / 0.7794 GB Notification: Performance of collectInitialEqns (initialization): time 9.684e-05/0.6135, allocations: 108.4 kB / 1.022 GB, free: 12.69 MB / 0.7794 GB Notification: Performance of collectInitialBindings (initialization): time 5.102e-05/0.6135, allocations: 27.64 kB / 1.022 GB, free: 12.66 MB / 0.7794 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001086/0.6136, allocations: 41.98 kB / 1.022 GB, free: 12.62 MB / 0.7794 GB Notification: Performance of setup shared object (initialization): time 0.0001812/0.6138, allocations: 326.8 kB / 1.023 GB, free: 12.29 MB / 0.7794 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000212/0.6141, allocations: 55.95 kB / 1.023 GB, free: 12.23 MB / 0.7794 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002778/0.6144, allocations: 114.7 kB / 1.023 GB, free: 12.1 MB / 0.7794 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005418/0.6149, allocations: 309 kB / 1.023 GB, free: 11.73 MB / 0.7794 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.815e-06/0.6149, allocations: 0 / 1.023 GB, free: 11.73 MB / 0.7794 GB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0008241/0.6158, allocations: 348 kB / 1.024 GB, free: 11.36 MB / 0.7794 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001216/0.6159, allocations: 118.8 kB / 1.024 GB, free: 11.22 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.254e-05/0.6159, allocations: 4 kB / 1.024 GB, free: 11.22 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.05e-05/0.616, allocations: 4 kB / 1.024 GB, free: 11.21 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001639/0.6161, allocations: 23.92 kB / 1.024 GB, free: 11.19 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.419e-05/0.6162, allocations: 0 / 1.024 GB, free: 11.19 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001195/0.6163, allocations: 28.08 kB / 1.024 GB, free: 11.16 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.321e-05/0.6163, allocations: 15.94 kB / 1.024 GB, free: 11.15 MB / 0.7794 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.0001841/0.6165, allocations: 189.2 kB / 1.024 GB, free: 10.94 MB / 0.7794 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.986e-05/0.6165, allocations: 19.81 kB / 1.024 GB, free: 10.92 MB / 0.7794 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.003e-05/0.6166, allocations: 17.39 kB / 1.024 GB, free: 10.91 MB / 0.7794 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.174e-06/0.6166, allocations: 3.938 kB / 1.024 GB, free: 10.9 MB / 0.7794 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.079e-06/0.6166, allocations: 0 / 1.024 GB, free: 10.9 MB / 0.7794 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.875e-06/0.6166, allocations: 0 / 1.024 GB, free: 10.9 MB / 0.7794 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007973/0.6174, allocations: 0.5837 MB / 1.025 GB, free: 10.25 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.683e-06/0.6174, allocations: 3.938 kB / 1.025 GB, free: 10.25 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.643e-05/0.6175, allocations: 11.98 kB / 1.025 GB, free: 10.23 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.144e-06/0.6175, allocations: 0 / 1.025 GB, free: 10.23 MB / 0.7794 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.399e-05/0.6175, allocations: 11.98 kB / 1.025 GB, free: 10.22 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.296e-06/0.6176, allocations: 4 kB / 1.025 GB, free: 10.22 MB / 0.7794 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.91e-06/0.6176, allocations: 3.938 kB / 1.025 GB, free: 10.21 MB / 0.7794 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006238/0.6182, allocations: 406.6 kB / 1.025 GB, free: 9.789 MB / 0.7794 GB Notification: Performance of postOpt removeConstants (simulation): time 5.392e-05/0.6183, allocations: 85.02 kB / 1.025 GB, free: 9.688 MB / 0.7794 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.637e-05/0.6183, allocations: 4 kB / 1.025 GB, free: 9.684 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001157/0.6184, allocations: 7.984 kB / 1.025 GB, free: 9.676 MB / 0.7794 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.11e-05/0.6185, allocations: 11.94 kB / 1.025 GB, free: 9.664 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.139e-05/0.6185, allocations: 11.98 kB / 1.025 GB, free: 9.652 MB / 0.7794 GB Notification: Performance of sorting global known variables: time 0.0001069/0.6186, allocations: 128.2 kB / 1.025 GB, free: 9.527 MB / 0.7794 GB Notification: Performance of sort global known variables: time 1.31e-07/0.6186, allocations: 8 kB / 1.025 GB, free: 9.52 MB / 0.7794 GB Notification: Performance of remove unused functions: time 0.000296/0.6189, allocations: 35.94 kB / 1.025 GB, free: 9.484 MB / 0.7794 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.0002756/0.6192, allocations: 121.1 kB / 1.025 GB, free: 9.363 MB / 0.7794 GB Notification: Performance of simCode: created initialization part: time 0.0005393/0.6198, allocations: 373.4 kB / 1.026 GB, free: 8.949 MB / 0.7794 GB Notification: Performance of simCode: created event and clocks part: time 2.224e-06/0.6198, allocations: 0 / 1.026 GB, free: 8.949 MB / 0.7794 GB Notification: Performance of simCode: created simulation system equations: time 0.0002775/0.6201, allocations: 202.8 kB / 1.026 GB, free: 8.727 MB / 0.7794 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003354/0.6204, allocations: 15.98 kB / 1.026 GB, free: 8.711 MB / 0.7794 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006302/0.621, allocations: 328.4 kB / 1.026 GB, free: 8.367 MB / 0.7794 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003386/0.6214, allocations: 0.7119 MB / 1.027 GB, free: 7.629 MB / 0.7794 GB Notification: Performance of simCode: alias equations: time 6.968e-05/0.6215, allocations: 24.53 kB / 1.027 GB, free: 7.605 MB / 0.7794 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.501e-05/0.6215, allocations: 11.44 kB / 1.027 GB, free: 7.594 MB / 0.7794 GB Notification: Performance of SimCode: time 2.3e-07/0.6215, allocations: 0 / 1.027 GB, free: 7.594 MB / 0.7794 GB Notification: Performance of Templates: time 0.005874/0.6274, allocations: 2.073 MB / 1.029 GB, free: 5.547 MB / 0.7794 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/jenkins/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