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.004952/0.004952, allocations: 104.7 kB / 15.74 MB, free: 6.484 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.00105/0.00105, allocations: 193.5 kB / 16.67 MB, free: 6.375 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.306/1.306, allocations: 222.9 MB / 240.4 MB, free: 4.297 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.304/2.304, allocations: 390.2 MB / 0.6648 GB, free: 132 kB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001158/0.001158, allocations: 57.16 kB / 0.9508 GB, free: 5.578 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3226/0.3238, allocations: 140.4 MB / 1.088 GB, free: 1.449 MB / 0.8419 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.IO.Files.Examples.CSVWriter): time 0.003321/0.3272, allocations: 1.609 MB / 1.089 GB, free: 15.83 MB / 0.8575 GB Notification: Performance of NFInst.instExpressions: time 0.00101/0.3282, allocations: 0.6131 MB / 1.09 GB, free: 15.21 MB / 0.8575 GB Notification: Performance of NFInst.updateImplicitVariability: time 8.759e-05/0.3283, allocations: 7.938 kB / 1.09 GB, free: 15.2 MB / 0.8575 GB Notification: Performance of NFTyping.typeComponents: time 0.0001537/0.3285, allocations: 11.86 kB / 1.09 GB, free: 15.19 MB / 0.8575 GB Notification: Performance of NFTyping.typeBindings: time 0.0002237/0.3287, allocations: 51.75 kB / 1.09 GB, free: 15.14 MB / 0.8575 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003653/0.3291, allocations: 111.8 kB / 1.09 GB, free: 15.03 MB / 0.8575 GB Notification: Performance of NFFlatten.flatten: time 0.0002647/0.3294, allocations: 199.5 kB / 1.09 GB, free: 14.84 MB / 0.8575 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001199/0.3295, allocations: 28.86 kB / 1.09 GB, free: 14.8 MB / 0.8575 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001611/0.3297, allocations: 87.8 kB / 1.091 GB, free: 14.72 MB / 0.8575 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001223/0.3298, allocations: 87.66 kB / 1.091 GB, free: 14.63 MB / 0.8575 GB Notification: Performance of NFPackage.collectConstants: time 3.474e-05/0.3298, allocations: 12 kB / 1.091 GB, free: 14.62 MB / 0.8575 GB Notification: Performance of NFFlatten.collectFunctions: time 7.326e-05/0.3299, allocations: 28 kB / 1.091 GB, free: 14.59 MB / 0.8575 GB Notification: Performance of NFScalarize.scalarize: time 9.499e-05/0.33, allocations: 31.86 kB / 1.091 GB, free: 14.56 MB / 0.8575 GB Notification: Performance of NFVerifyModel.verify: time 0.0001104/0.3301, allocations: 71.7 kB / 1.091 GB, free: 14.49 MB / 0.8575 GB Notification: Performance of NFConvertDAE.convert: time 0.0002447/0.3304, allocations: 163.5 kB / 1.091 GB, free: 14.33 MB / 0.8575 GB Notification: Performance of FrontEnd - DAE generated: time 6.783e-06/0.3304, allocations: 4 kB / 1.091 GB, free: 14.33 MB / 0.8575 GB Notification: Performance of FrontEnd: time 1.313e-06/0.3304, allocations: 0 / 1.091 GB, free: 14.33 MB / 0.8575 GB Notification: Performance of Transformations before backend: time 7.865e-06/0.3304, allocations: 4 kB / 1.091 GB, free: 14.32 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.0008254/0.3313, allocations: 0.5602 MB / 1.091 GB, free: 13.69 MB / 0.8575 GB Notification: Performance of prepare preOptimizeDAE: time 4.514e-05/0.3313, allocations: 8.031 kB / 1.091 GB, free: 13.68 MB / 0.8575 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.457e-05/0.3314, allocations: 20.75 kB / 1.092 GB, free: 13.66 MB / 0.8575 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003534/0.3317, allocations: 237.2 kB / 1.092 GB, free: 13.39 MB / 0.8575 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.091e-05/0.3318, allocations: 12.38 kB / 1.092 GB, free: 13.38 MB / 0.8575 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.498e-05/0.3318, allocations: 16.31 kB / 1.092 GB, free: 13.37 MB / 0.8575 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003029/0.3321, allocations: 125.7 kB / 1.092 GB, free: 13.24 MB / 0.8575 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.08e-05/0.3321, allocations: 0 / 1.092 GB, free: 13.24 MB / 0.8575 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.061e-05/0.3322, allocations: 3.984 kB / 1.092 GB, free: 13.23 MB / 0.8575 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.833e-06/0.3322, allocations: 4 kB / 1.092 GB, free: 13.23 MB / 0.8575 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001906/0.3324, allocations: 63.95 kB / 1.092 GB, free: 13.17 MB / 0.8575 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006799/0.3331, allocations: 428.4 kB / 1.092 GB, free: 12.7 MB / 0.8575 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002039/0.3333, allocations: 86.62 kB / 1.092 GB, free: 12.61 MB / 0.8575 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001507/0.3334, allocations: 80.75 kB / 1.093 GB, free: 12.52 MB / 0.8575 GB Notification: Performance of preOpt evalFunc (simulation): time 2.649e-05/0.3335, allocations: 0 / 1.093 GB, free: 12.52 MB / 0.8575 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002565/0.3337, allocations: 182.9 kB / 1.093 GB, free: 12.32 MB / 0.8575 GB Notification: Performance of pre-optimization done (n=10): time 3.526e-06/0.3338, allocations: 0 / 1.093 GB, free: 12.32 MB / 0.8575 GB Notification: Performance of matching and sorting (n=10): time 0.0007177/0.3345, allocations: 356.6 kB / 1.093 GB, free: 11.95 MB / 0.8575 GB Notification: Performance of inlineWhenForInitialization (initialization): time 9.465e-05/0.3346, allocations: 166.2 kB / 1.093 GB, free: 11.75 MB / 0.8575 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001668/0.3348, allocations: 171.2 kB / 1.093 GB, free: 11.57 MB / 0.8575 GB Notification: Performance of collectPreVariables (initialization): time 2.563e-05/0.3348, allocations: 33.7 kB / 1.093 GB, free: 11.54 MB / 0.8575 GB Notification: Performance of collectInitialEqns (initialization): time 9.515e-05/0.3349, allocations: 112.3 kB / 1.093 GB, free: 11.42 MB / 0.8575 GB Notification: Performance of collectInitialBindings (initialization): time 3.24e-05/0.3349, allocations: 31.62 kB / 1.094 GB, free: 11.39 MB / 0.8575 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.783e-05/0.335, allocations: 41.7 kB / 1.094 GB, free: 11.34 MB / 0.8575 GB Notification: Performance of setup shared object (initialization): time 0.000135/0.3351, allocations: 326.8 kB / 1.094 GB, free: 11.01 MB / 0.8575 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000126/0.3353, allocations: 47.97 kB / 1.094 GB, free: 10.96 MB / 0.8575 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001607/0.3354, allocations: 111.7 kB / 1.094 GB, free: 10.83 MB / 0.8575 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003462/0.3358, allocations: 308.9 kB / 1.094 GB, free: 10.47 MB / 0.8575 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.584e-06/0.3358, allocations: 0 / 1.094 GB, free: 10.47 MB / 0.8575 GB Notification: Performance of matching and sorting (n=14) (initialization): time 0.000516/0.3363, allocations: 340.1 kB / 1.095 GB, free: 10.11 MB / 0.8575 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001099/0.3364, allocations: 123.3 kB / 1.095 GB, free: 9.961 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.832e-06/0.3365, allocations: 4 kB / 1.095 GB, free: 9.957 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.996e-05/0.3365, allocations: 4 kB / 1.095 GB, free: 9.953 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001161/0.3366, allocations: 19.92 kB / 1.095 GB, free: 9.934 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.195e-05/0.3366, allocations: 7.938 kB / 1.095 GB, free: 9.926 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.798e-05/0.3367, allocations: 15.89 kB / 1.095 GB, free: 9.91 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.315e-05/0.3368, allocations: 12 kB / 1.095 GB, free: 9.898 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.0001694/0.3369, allocations: 193.8 kB / 1.095 GB, free: 9.688 MB / 0.8575 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.442e-05/0.337, allocations: 15.81 kB / 1.095 GB, free: 9.672 MB / 0.8575 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.155e-05/0.337, allocations: 21.39 kB / 1.095 GB, free: 9.652 MB / 0.8575 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.164e-06/0.337, allocations: 0 / 1.095 GB, free: 9.652 MB / 0.8575 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.63e-06/0.337, allocations: 0 / 1.095 GB, free: 9.652 MB / 0.8575 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.057e-06/0.3371, allocations: 0 / 1.095 GB, free: 9.652 MB / 0.8575 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007657/0.3378, allocations: 0.5836 MB / 1.096 GB, free: 9 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.773e-06/0.3378, allocations: 0 / 1.096 GB, free: 9 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.468e-05/0.3379, allocations: 15.92 kB / 1.096 GB, free: 8.984 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.013e-06/0.3379, allocations: 0 / 1.096 GB, free: 8.984 MB / 0.8575 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.531e-05/0.3379, allocations: 19.98 kB / 1.096 GB, free: 8.965 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.389e-06/0.338, allocations: 0 / 1.096 GB, free: 8.965 MB / 0.8575 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.435e-06/0.338, allocations: 7.875 kB / 1.096 GB, free: 8.957 MB / 0.8575 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005675/0.3385, allocations: 402.6 kB / 1.096 GB, free: 8.535 MB / 0.8575 GB Notification: Performance of postOpt removeConstants (simulation): time 5.561e-05/0.3386, allocations: 88.92 kB / 1.096 GB, free: 8.43 MB / 0.8575 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.018e-05/0.3386, allocations: 4 kB / 1.096 GB, free: 8.426 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001123/0.3388, allocations: 11.98 kB / 1.096 GB, free: 8.414 MB / 0.8575 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.997e-05/0.3388, allocations: 15.88 kB / 1.096 GB, free: 8.398 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.005e-05/0.3388, allocations: 11.98 kB / 1.096 GB, free: 8.387 MB / 0.8575 GB Notification: Performance of sorting global known variables: time 0.0001017/0.3389, allocations: 128.3 kB / 1.096 GB, free: 8.262 MB / 0.8575 GB Notification: Performance of sort global known variables: time 1.5e-07/0.339, allocations: 0 / 1.096 GB, free: 8.262 MB / 0.8575 GB Notification: Performance of remove unused functions: time 0.0002852/0.3392, allocations: 32 kB / 1.096 GB, free: 8.23 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.000257/0.3395, allocations: 140.4 kB / 1.096 GB, free: 8.094 MB / 0.8575 GB Notification: Performance of simCode: created initialization part: time 0.0004917/0.34, allocations: 361.4 kB / 1.097 GB, free: 7.691 MB / 0.8575 GB Notification: Performance of simCode: created event and clocks part: time 1.964e-06/0.34, allocations: 0 / 1.097 GB, free: 7.691 MB / 0.8575 GB Notification: Performance of simCode: created simulation system equations: time 0.000232/0.3403, allocations: 202.8 kB / 1.097 GB, free: 7.469 MB / 0.8575 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002845/0.3406, allocations: 20.48 kB / 1.097 GB, free: 7.449 MB / 0.8575 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005405/0.3411, allocations: 284.3 kB / 1.097 GB, free: 7.148 MB / 0.8575 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002808/0.3414, allocations: 0.708 MB / 1.098 GB, free: 6.414 MB / 0.8575 GB Notification: Performance of simCode: alias equations: time 6.334e-05/0.3415, allocations: 20.53 kB / 1.098 GB, free: 6.395 MB / 0.8575 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.356e-05/0.3415, allocations: 19.38 kB / 1.098 GB, free: 6.375 MB / 0.8575 GB Notification: Performance of SimCode: time 3.81e-07/0.3415, allocations: 4 kB / 1.098 GB, free: 6.371 MB / 0.8575 GB Notification: Performance of Templates: time 0.005126/0.3466, allocations: 2.074 MB / 1.1 GB, free: 4.324 MB / 0.8575 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