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.001528/0.001528, allocations: 106.1 kB / 15.98 MB, free: 5.891 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.001704/0.001705, allocations: 196.4 kB / 16.91 MB, free: 5.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.483/1.483, allocations: 222.9 MB / 240.6 MB, free: 4.543 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.495/2.495, allocations: 390.2 MB / 0.665 GB, free: 0.5469 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.002622/0.002622, allocations: 63.89 kB / 0.8127 GB, free: 14.78 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6971/0.6997, allocations: 140.4 MB / 0.9498 GB, free: 9.141 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.IO.Files.Examples.CSVWriter): time 0.002786/0.7026, allocations: 1.667 MB / 0.9514 GB, free: 7.836 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.0007852/0.7034, allocations: 0.6107 MB / 0.952 GB, free: 7.355 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 8.674e-05/0.7035, allocations: 1.375 kB / 0.952 GB, free: 7.355 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 0.000161/0.7037, allocations: 12.05 kB / 0.952 GB, free: 7.348 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 0.000179/0.7038, allocations: 37.45 kB / 0.952 GB, free: 7.32 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003596/0.7042, allocations: 105.8 kB / 0.9521 GB, free: 7.246 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 0.0002068/0.7044, allocations: 197.6 kB / 0.9523 GB, free: 7.137 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001164/0.7046, allocations: 26.06 kB / 0.9524 GB, free: 7.121 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001357/0.7047, allocations: 92.88 kB / 0.9524 GB, free: 7.066 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001108/0.7048, allocations: 85.16 kB / 0.9525 GB, free: 7.012 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 4.049e-05/0.7049, allocations: 17.52 kB / 0.9525 GB, free: 7.008 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 7.011e-05/0.7049, allocations: 24.47 kB / 0.9526 GB, free: 7.004 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 7.718e-05/0.705, allocations: 27.8 kB / 0.9526 GB, free: 6.988 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 8.439e-05/0.7051, allocations: 76.95 kB / 0.9527 GB, free: 6.938 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.0001586/0.7053, allocations: 115.1 kB / 0.9528 GB, free: 6.859 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 4.519e-06/0.7053, allocations: 7.938 kB / 0.9528 GB, free: 6.852 MB / 0.7169 GB Notification: Performance of FrontEnd: time 1.353e-06/0.7053, allocations: 0 / 0.9528 GB, free: 6.852 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 5.931e-06/0.7053, allocations: 0 / 0.9528 GB, free: 6.852 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.0005657/0.7059, allocations: 0.5549 MB / 0.9533 GB, free: 6.285 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 3.952e-05/0.7059, allocations: 9.281 kB / 0.9533 GB, free: 6.285 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.339e-05/0.706, allocations: 19.41 kB / 0.9533 GB, free: 6.277 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002339/0.7062, allocations: 235.5 kB / 0.9536 GB, free: 6.031 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.624e-05/0.7062, allocations: 10.38 kB / 0.9536 GB, free: 6.027 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.278e-05/0.7063, allocations: 11.66 kB / 0.9536 GB, free: 6.027 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002507/0.7065, allocations: 119.5 kB / 0.9537 GB, free: 5.945 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.715e-06/0.7066, allocations: 4 kB / 0.9537 GB, free: 5.941 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.959e-05/0.7066, allocations: 2.906 kB / 0.9537 GB, free: 5.941 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.472e-06/0.7066, allocations: 5.266 kB / 0.9537 GB, free: 5.938 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001826/0.7068, allocations: 70.22 kB / 0.9538 GB, free: 5.906 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005576/0.7073, allocations: 421.4 kB / 0.9542 GB, free: 5.512 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001915/0.7076, allocations: 86.5 kB / 0.9543 GB, free: 5.457 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001523/0.7077, allocations: 76.03 kB / 0.9543 GB, free: 5.418 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 2.222e-05/0.7077, allocations: 1.031 kB / 0.9543 GB, free: 5.418 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002524/0.708, allocations: 189.2 kB / 0.9545 GB, free: 5.25 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=10): time 1.353e-06/0.708, allocations: 1.125 kB / 0.9545 GB, free: 5.25 MB / 0.7169 GB Notification: Performance of matching and sorting (n=10): time 0.0006671/0.7087, allocations: 350.7 kB / 0.9549 GB, free: 5.047 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.071e-05/0.7087, allocations: 163.5 kB / 0.955 GB, free: 4.855 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001342/0.7089, allocations: 177.9 kB / 0.9552 GB, free: 4.715 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 1.954e-05/0.7089, allocations: 32.95 kB / 0.9552 GB, free: 4.68 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 5.199e-05/0.709, allocations: 107.6 kB / 0.9553 GB, free: 4.574 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 2.613e-05/0.709, allocations: 32.73 kB / 0.9554 GB, free: 4.547 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.307e-05/0.7091, allocations: 38.95 kB / 0.9554 GB, free: 4.52 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 5.678e-05/0.7091, allocations: 326.6 kB / 0.9557 GB, free: 4.195 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001261/0.7093, allocations: 53.59 kB / 0.9558 GB, free: 4.172 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001487/0.7094, allocations: 107.7 kB / 0.9559 GB, free: 4.078 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000262/0.7097, allocations: 313.8 kB / 0.9562 GB, free: 3.77 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.075e-06/0.7097, allocations: 0 / 0.9562 GB, free: 3.77 MB / 0.7169 GB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0004616/0.7102, allocations: 345.8 kB / 0.9565 GB, free: 3.527 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 4.998e-05/0.7102, allocations: 124.2 kB / 0.9566 GB, free: 3.391 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.963e-06/0.7102, allocations: 5.438 kB / 0.9566 GB, free: 3.387 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.56e-05/0.7103, allocations: 2.688 kB / 0.9566 GB, free: 3.387 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001129/0.7104, allocations: 17.86 kB / 0.9566 GB, free: 3.383 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.047e-06/0.7104, allocations: 6 kB / 0.9566 GB, free: 3.379 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001029/0.7105, allocations: 16.72 kB / 0.9566 GB, free: 3.371 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.226e-05/0.7105, allocations: 15.48 kB / 0.9567 GB, free: 3.363 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.0001225/0.7107, allocations: 192.7 kB / 0.9568 GB, free: 3.172 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.362e-05/0.7107, allocations: 13.31 kB / 0.9569 GB, free: 3.168 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.662e-05/0.7107, allocations: 17.5 kB / 0.9569 GB, free: 3.156 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.266e-06/0.7107, allocations: 4.922 kB / 0.9569 GB, free: 3.152 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.38e-06/0.7108, allocations: 0 / 0.9569 GB, free: 3.152 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.286e-06/0.7108, allocations: 0 / 0.9569 GB, free: 3.152 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005845/0.7114, allocations: 0.5833 MB / 0.9575 GB, free: 2.652 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.402e-06/0.7114, allocations: 0 / 0.9575 GB, free: 2.652 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.881e-05/0.7114, allocations: 12.98 kB / 0.9575 GB, free: 2.648 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.104e-06/0.7114, allocations: 4 kB / 0.9575 GB, free: 2.645 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.186e-05/0.7115, allocations: 17.28 kB / 0.9575 GB, free: 2.633 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.663e-06/0.7115, allocations: 0 / 0.9575 GB, free: 2.633 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.486e-06/0.7115, allocations: 9.719 kB / 0.9575 GB, free: 2.625 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004664/0.712, allocations: 394.7 kB / 0.9579 GB, free: 2.344 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 2.37e-05/0.712, allocations: 84.27 kB / 0.9579 GB, free: 2.246 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.596e-05/0.712, allocations: 4.219 kB / 0.958 GB, free: 2.246 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001121/0.7122, allocations: 10.34 kB / 0.958 GB, free: 2.242 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.484e-05/0.7122, allocations: 14.67 kB / 0.958 GB, free: 2.23 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.8e-05/0.7122, allocations: 14.39 kB / 0.958 GB, free: 2.223 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 7.624e-05/0.7123, allocations: 126.2 kB / 0.9581 GB, free: 2.125 MB / 0.7169 GB Notification: Performance of sort global known variables: time 7.42e-07/0.7123, allocations: 0 / 0.9581 GB, free: 2.125 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.0003022/0.7126, allocations: 43.34 kB / 0.9582 GB, free: 2.113 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.0002271/0.7129, allocations: 141.5 kB / 0.9583 GB, free: 1.996 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.0004308/0.7133, allocations: 364.7 kB / 0.9586 GB, free: 1.68 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 2.845e-06/0.7133, allocations: 1.844 kB / 0.9586 GB, free: 1.68 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 0.000187/0.7135, allocations: 204.6 kB / 0.9588 GB, free: 1.508 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003081/0.7138, allocations: 28.75 kB / 0.9589 GB, free: 1.492 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000545/0.7144, allocations: 341.4 kB / 0.9592 GB, free: 1.23 MB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000129/0.7145, allocations: 0.711 MB / 0.9599 GB, free: 0.5156 MB / 0.7169 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.676e-05/0.7146, allocations: 13.94 kB / 0.9599 GB, free: 0.5078 MB / 0.7169 GB Notification: Performance of SimCode: time 2.4e-07/0.7146, allocations: 5.062 kB / 0.9599 GB, free: 0.5039 MB / 0.7169 GB Notification: Performance of Templates: time 0.00406/0.7186, allocations: 2.154 MB / 0.962 GB, free: 15.38 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