Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_11_Buildings.Utilities.IO.Files.Examples.CSVWriter.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001853/0.001853, allocations: 80.45 kB / 19.18 MB, free: 2.52 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.002164/0.002164, allocations: 160.8 kB / 22.45 MB, free: 5.375 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.482/1.482, allocations: 177.2 MB / 202.8 MB, free: 9.16 MB / 190.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.2-maint.11.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.2-maint.11.x/package.mo): time 2.647/2.647, allocations: 359 MB / 0.6037 GB, free: 14.98 MB / 0.5762 GB " [Timeout remaining time 177] Using package Buildings with version 11.1.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.2-maint.11.x/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: translateModel(Buildings.Utilities.IO.Files.Examples.CSVWriter,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|cos.y|step.y",fileNamePrefix="Buildings_11_Buildings.Utilities.IO.Files.Examples.CSVWriter") translateModel(Buildings.Utilities.IO.Files.Examples.CSVWriter,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|cos.y|step.y",fileNamePrefix="Buildings_11_Buildings.Utilities.IO.Files.Examples.CSVWriter") [Timeout 300] "Notification: Performance of FrontEnd - loaded program: time 2.164e-06/2.164e-06, allocations: 0 / 0.951 GB, free: 11.58 MB / 0.8575 GB Notification: Performance of FrontEnd - Absyn->SCode: time 3.139e-05/3.355e-05, allocations: 2.281 kB / 0.951 GB, free: 11.58 MB / 0.8575 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.IO.Files.Examples.CSVWriter): time 0.004829/0.004862, allocations: 1.621 MB / 0.9525 GB, free: 9.938 MB / 0.8575 GB Notification: Performance of NFInst.instExpressions: time 0.001928/0.006791, allocations: 0.6549 MB / 0.9532 GB, free: 9.277 MB / 0.8575 GB Notification: Performance of NFInst.updateImplicitVariability: time 9.687e-05/0.006888, allocations: 7.938 kB / 0.9532 GB, free: 9.27 MB / 0.8575 GB Notification: Performance of NFTyping.typeComponents: time 0.0002073/0.007095, allocations: 15.84 kB / 0.9532 GB, free: 9.254 MB / 0.8575 GB Notification: Performance of NFTyping.typeBindings: time 0.0003318/0.007427, allocations: 47.02 kB / 0.9533 GB, free: 9.211 MB / 0.8575 GB Notification: Performance of NFTyping.typeClassSections: time 0.0008002/0.008227, allocations: 131.5 kB / 0.9534 GB, free: 9.082 MB / 0.8575 GB Notification: Performance of NFFlatten.flatten: time 0.0004386/0.008666, allocations: 191.6 kB / 0.9536 GB, free: 8.895 MB / 0.8575 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001501/0.008816, allocations: 17.64 kB / 0.9536 GB, free: 8.871 MB / 0.8575 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0003839/0.0092, allocations: 123.7 kB / 0.9537 GB, free: 8.75 MB / 0.8575 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002064/0.009406, allocations: 67.84 kB / 0.9538 GB, free: 8.684 MB / 0.8575 GB Notification: Performance of NFPackage.collectConstants: time 5.864e-05/0.009465, allocations: 12 kB / 0.9538 GB, free: 8.672 MB / 0.8575 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001396/0.009604, allocations: 35.92 kB / 0.9538 GB, free: 8.637 MB / 0.8575 GB Notification: Performance of NFScalarize.scalarize: time 0.0001364/0.009741, allocations: 31.86 kB / 0.9538 GB, free: 8.605 MB / 0.8575 GB Notification: Performance of NFVerifyModel.verify: time 0.0001428/0.009883, allocations: 59.83 kB / 0.9539 GB, free: 8.547 MB / 0.8575 GB Notification: Performance of NFConvertDAE.convert: time 0.0004737/0.01036, allocations: 191.5 kB / 0.9541 GB, free: 8.359 MB / 0.8575 GB Notification: Performance of FrontEnd - DAE generated: time 6.563e-06/0.01036, allocations: 3.938 kB / 0.9541 GB, free: 8.355 MB / 0.8575 GB Notification: Performance of FrontEnd: time 1.683e-06/0.01037, allocations: 0 / 0.9541 GB, free: 8.355 MB / 0.8575 GB Notification: Performance of Transformations before backend: time 6.422e-06/0.01037, allocations: 4 kB / 0.9541 GB, free: 8.352 MB / 0.8575 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.001081/0.01145, allocations: 496.3 kB / 0.9546 GB, free: 7.812 MB / 0.8575 GB Notification: Performance of prepare preOptimizeDAE: time 4.709e-05/0.0115, allocations: 8.031 kB / 0.9546 GB, free: 7.805 MB / 0.8575 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002705/0.01177, allocations: 32.83 kB / 0.9546 GB, free: 7.773 MB / 0.8575 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005007/0.01227, allocations: 185.6 kB / 0.9548 GB, free: 7.566 MB / 0.8575 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.835e-05/0.0123, allocations: 8.375 kB / 0.9548 GB, free: 7.559 MB / 0.8575 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.213e-05/0.01234, allocations: 8.375 kB / 0.9548 GB, free: 7.551 MB / 0.8575 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005026/0.01284, allocations: 181.6 kB / 0.955 GB, free: 7.355 MB / 0.8575 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.209e-05/0.01286, allocations: 192 / 0.955 GB, free: 7.355 MB / 0.8575 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.77e-05/0.01288, allocations: 4.125 kB / 0.955 GB, free: 7.352 MB / 0.8575 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.296e-06/0.01289, allocations: 4 kB / 0.955 GB, free: 7.348 MB / 0.8575 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004083/0.0133, allocations: 131.2 kB / 0.9551 GB, free: 7.207 MB / 0.8575 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009662/0.01427, allocations: 332.4 kB / 0.9554 GB, free: 6.852 MB / 0.8575 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003872/0.01465, allocations: 138 kB / 0.9555 GB, free: 6.695 MB / 0.8575 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003405/0.01499, allocations: 132.2 kB / 0.9557 GB, free: 6.551 MB / 0.8575 GB Notification: Performance of preOpt evalFunc (simulation): time 3.485e-05/0.01503, allocations: 3.938 kB / 0.9557 GB, free: 6.547 MB / 0.8575 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004968/0.01553, allocations: 238.3 kB / 0.9559 GB, free: 6.277 MB / 0.8575 GB Notification: Performance of pre-optimization done (n=10): time 1.964e-06/0.01553, allocations: 0 / 0.9559 GB, free: 6.277 MB / 0.8575 GB Notification: Performance of matching and sorting (n=10): time 0.001419/0.01695, allocations: 475.6 kB / 0.9564 GB, free: 5.77 MB / 0.8575 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002189/0.01717, allocations: 170.2 kB / 0.9565 GB, free: 5.566 MB / 0.8575 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003504/0.01752, allocations: 187.5 kB / 0.9567 GB, free: 5.371 MB / 0.8575 GB Notification: Performance of collectPreVariables (initialization): time 4.395e-05/0.01756, allocations: 25.98 kB / 0.9567 GB, free: 5.34 MB / 0.8575 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001205/0.01768, allocations: 108.4 kB / 0.9568 GB, free: 5.227 MB / 0.8575 GB Notification: Performance of collectInitialBindings (initialization): time 6.747e-05/0.01775, allocations: 31.73 kB / 0.9569 GB, free: 5.195 MB / 0.8575 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001249/0.01787, allocations: 45.64 kB / 0.9569 GB, free: 5.145 MB / 0.8575 GB Notification: Performance of setup shared object (initialization): time 0.0002072/0.01808, allocations: 330.8 kB / 0.9572 GB, free: 4.812 MB / 0.8575 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000335/0.01841, allocations: 162.8 kB / 0.9574 GB, free: 4.629 MB / 0.8575 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004057/0.01882, allocations: 213.6 kB / 0.9576 GB, free: 4.371 MB / 0.8575 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000634/0.01945, allocations: 309 kB / 0.9579 GB, free: 4.008 MB / 0.8575 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.909e-06/0.01946, allocations: 0 / 0.9579 GB, free: 4.008 MB / 0.8575 GB Notification: Performance of matching and sorting (n=14) (initialization): time 0.001114/0.02057, allocations: 470.9 kB / 0.9583 GB, free: 3.492 MB / 0.8575 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001313/0.02071, allocations: 122.8 kB / 0.9584 GB, free: 3.348 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.808e-06/0.02072, allocations: 0 / 0.9584 GB, free: 3.348 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.187e-05/0.02074, allocations: 4 kB / 0.9584 GB, free: 3.344 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001752/0.02091, allocations: 19.92 kB / 0.9585 GB, free: 3.324 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.096e-05/0.02092, allocations: 4 kB / 0.9585 GB, free: 3.32 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001681/0.02109, allocations: 15.95 kB / 0.9585 GB, free: 3.305 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.267e-05/0.02113, allocations: 8.25 kB / 0.9585 GB, free: 3.297 MB / 0.8575 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.0002783/0.02141, allocations: 197.2 kB / 0.9587 GB, free: 3.082 MB / 0.8575 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001523/0.02156, allocations: 23.84 kB / 0.9587 GB, free: 3.059 MB / 0.8575 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.802e-05/0.02162, allocations: 13.47 kB / 0.9587 GB, free: 3.051 MB / 0.8575 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.188e-06/0.02163, allocations: 3.938 kB / 0.9587 GB, free: 3.047 MB / 0.8575 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.781e-06/0.02163, allocations: 0 / 0.9587 GB, free: 3.047 MB / 0.8575 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.938e-06/0.02164, allocations: 0 / 0.9587 GB, free: 3.047 MB / 0.8575 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001345/0.02298, allocations: 0.5866 MB / 0.9593 GB, free: 2.398 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.229e-06/0.02299, allocations: 4 kB / 0.9593 GB, free: 2.395 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001135/0.0231, allocations: 19.92 kB / 0.9593 GB, free: 2.375 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.767e-06/0.0231, allocations: 0 / 0.9593 GB, free: 2.375 MB / 0.8575 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.465e-05/0.02314, allocations: 8 kB / 0.9593 GB, free: 2.367 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.773e-06/0.02314, allocations: 0 / 0.9593 GB, free: 2.367 MB / 0.8575 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.172e-06/0.02314, allocations: 0 / 0.9593 GB, free: 2.367 MB / 0.8575 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001093/0.02423, allocations: 470.1 kB / 0.9598 GB, free: 1.867 MB / 0.8575 GB Notification: Performance of postOpt removeConstants (simulation): time 3.19e-05/0.02427, allocations: 15.89 kB / 0.9598 GB, free: 1.852 MB / 0.8575 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.685e-05/0.02432, allocations: 7.938 kB / 0.9598 GB, free: 1.844 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001945/0.02452, allocations: 11.94 kB / 0.9598 GB, free: 1.832 MB / 0.8575 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.165e-05/0.02459, allocations: 11.98 kB / 0.9598 GB, free: 1.82 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.622e-05/0.02463, allocations: 8 kB / 0.9598 GB, free: 1.812 MB / 0.8575 GB Notification: Performance of sorting global known variables: time 0.0001763/0.0248, allocations: 137.1 kB / 0.9599 GB, free: 1.68 MB / 0.8575 GB Notification: Performance of sort global known variables: time 1e-07/0.0248, allocations: 0 / 0.9599 GB, free: 1.68 MB / 0.8575 GB Notification: Performance of remove unused functions: time 0.0005939/0.0254, allocations: 32 kB / 0.96 GB, free: 1.648 MB / 0.8575 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.0003465/0.02574, allocations: 139.9 kB / 0.9601 GB, free: 1.512 MB / 0.8575 GB Notification: Performance of simCode: created initialization part: time 0.001108/0.02685, allocations: 0.523 MB / 0.9606 GB, free: 0.9023 MB / 0.8575 GB Notification: Performance of simCode: created event and clocks part: time 3.086e-06/0.02685, allocations: 0 / 0.9606 GB, free: 0.9023 MB / 0.8575 GB Notification: Performance of simCode: created simulation system equations: time 0.000521/0.02737, allocations: 238.2 kB / 0.9609 GB, free: 0.6328 MB / 0.8575 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005676/0.02794, allocations: 19.94 kB / 0.9609 GB, free: 0.6133 MB / 0.8575 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001053/0.029, allocations: 350.1 kB / 0.9612 GB, free: 240 kB / 0.8575 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001649/0.02916, allocations: 97.11 kB / 0.9613 GB, free: 124 kB / 0.8575 GB Notification: Performance of simCode: alias equations: time 0.0001218/0.02928, allocations: 20.47 kB / 0.9613 GB, free: 104 kB / 0.8575 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.208e-05/0.02934, allocations: 16.5 kB / 0.9613 GB, free: 84 kB / 0.8575 GB Notification: Performance of SimCode: time 5.31e-07/0.02934, allocations: 0 / 0.9613 GB, free: 84 kB / 0.8575 GB Notification: Performance of Templates: time 0.009931/0.03928, allocations: 2.175 MB / 0.9635 GB, free: 13.96 MB / 0.8731 GB " [Timeout remaining time 300] make -j1 -f Buildings_11_Buildings.Utilities.IO.Files.Examples.CSVWriter.makefile [Timeout 300] (rm -f Buildings_11_Buildings.Utilities.IO.Files.Examples.CSVWriter.pipe ; mkfifo Buildings_11_Buildings.Utilities.IO.Files.Examples.CSVWriter.pipe ; head -c 1048576 < Buildings_11_Buildings.Utilities.IO.Files.Examples.CSVWriter.pipe >> ../files/Buildings_11_Buildings.Utilities.IO.Files.Examples.CSVWriter.sim & ./Buildings_11_Buildings.Utilities.IO.Files.Examples.CSVWriter -abortSlowSimulation -alarm=400 -emit_protected -lv LOG_STATS > Buildings_11_Buildings.Utilities.IO.Files.Examples.CSVWriter.pipe 2>&1) [Timeout 400] diffSimulationResults("Buildings_11_Buildings.Utilities.IO.Files.Examples.CSVWriter_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_11.x/Buildings_Utilities_IO_Files_Examples_CSVWriter.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_11_Buildings.Utilities.IO.Files.Examples.CSVWriter.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 300] "" [Timeout remaining time 300] Reference file matches [Calling sys.exit(0), Time elapsed: 7.808875352144241]