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.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 11.1.0-maint.11.x/package.mo", uses=false) Using package Buildings with version 11.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-maint.11.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_11_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_11_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.00154/0.00154, allocations: 105.6 kB / 15.99 MB, free: 5.895 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.001563/0.001563, allocations: 194.6 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.435/1.435, allocations: 222.9 MB / 240.6 MB, free: 4.5 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-maint.11.x/package.mo): time 2.84/2.84, allocations: 469.8 MB / 0.7427 GB, free: 7.52 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001889/0.001889, allocations: 73.28 kB / 0.9087 GB, free: 34.47 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3104/0.3123, allocations: 159.1 MB / 1.064 GB, free: 14.56 MB / 0.8262 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.IO.Files.Examples.CSVWriter): time 0.003392/0.3158, allocations: 1.675 MB / 1.066 GB, free: 12.87 MB / 0.8262 GB Notification: Performance of NFInst.instExpressions: time 0.001319/0.3171, allocations: 0.604 MB / 1.066 GB, free: 12.26 MB / 0.8262 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.000111/0.3173, allocations: 0 / 1.066 GB, free: 12.26 MB / 0.8262 GB Notification: Performance of NFTyping.typeComponents: time 0.0002549/0.3176, allocations: 23.86 kB / 1.066 GB, free: 12.23 MB / 0.8262 GB Notification: Performance of NFTyping.typeBindings: time 0.0002746/0.3179, allocations: 40.95 kB / 1.066 GB, free: 12.2 MB / 0.8262 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004895/0.3184, allocations: 103.8 kB / 1.067 GB, free: 12.09 MB / 0.8262 GB Notification: Performance of NFFlatten.flatten: time 0.0003529/0.3187, allocations: 195.6 kB / 1.067 GB, free: 11.9 MB / 0.8262 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001847/0.3189, allocations: 21.12 kB / 1.067 GB, free: 11.88 MB / 0.8262 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002541/0.3192, allocations: 87.75 kB / 1.067 GB, free: 11.8 MB / 0.8262 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001787/0.3194, allocations: 83.72 kB / 1.067 GB, free: 11.71 MB / 0.8262 GB Notification: Performance of NFPackage.collectConstants: time 5.279e-05/0.3194, allocations: 12 kB / 1.067 GB, free: 11.7 MB / 0.8262 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001223/0.3196, allocations: 35.98 kB / 1.067 GB, free: 11.67 MB / 0.8262 GB Notification: Performance of NFScalarize.scalarize: time 0.000125/0.3197, allocations: 23.92 kB / 1.067 GB, free: 11.64 MB / 0.8262 GB Notification: Performance of NFVerifyModel.verify: time 0.000166/0.3199, allocations: 79.64 kB / 1.067 GB, free: 11.57 MB / 0.8262 GB Notification: Performance of NFConvertDAE.convert: time 0.0002705/0.3202, allocations: 108.1 kB / 1.067 GB, free: 11.46 MB / 0.8262 GB Notification: Performance of FrontEnd - DAE generated: time 1.011e-05/0.3202, allocations: 4 kB / 1.067 GB, free: 11.46 MB / 0.8262 GB Notification: Performance of FrontEnd: time 2.715e-06/0.3202, allocations: 0 / 1.067 GB, free: 11.46 MB / 0.8262 GB Notification: Performance of Transformations before backend: time 1.084e-05/0.3202, allocations: 0 / 1.067 GB, free: 11.46 MB / 0.8262 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.001199/0.3214, allocations: 0.5659 MB / 1.068 GB, free: 10.82 MB / 0.8262 GB Notification: Performance of prepare preOptimizeDAE: time 6.466e-05/0.3215, allocations: 8.031 kB / 1.068 GB, free: 10.81 MB / 0.8262 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.806e-05/0.3216, allocations: 20.75 kB / 1.068 GB, free: 10.79 MB / 0.8262 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000457/0.3221, allocations: 228.2 kB / 1.068 GB, free: 10.53 MB / 0.8262 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.806e-05/0.3221, allocations: 12.38 kB / 1.068 GB, free: 10.52 MB / 0.8262 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.988e-05/0.3221, allocations: 16.38 kB / 1.068 GB, free: 10.5 MB / 0.8262 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003713/0.3225, allocations: 117.7 kB / 1.068 GB, free: 10.38 MB / 0.8262 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.704e-05/0.3226, allocations: 3.984 kB / 1.068 GB, free: 10.38 MB / 0.8262 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.543e-05/0.3226, allocations: 4 kB / 1.068 GB, free: 10.38 MB / 0.8262 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.404e-06/0.3226, allocations: 0 / 1.068 GB, free: 10.38 MB / 0.8262 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000226/0.3228, allocations: 75.88 kB / 1.068 GB, free: 10.3 MB / 0.8262 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009461/0.3238, allocations: 416.5 kB / 1.069 GB, free: 9.844 MB / 0.8262 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002411/0.324, allocations: 90.56 kB / 1.069 GB, free: 9.746 MB / 0.8262 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001911/0.3242, allocations: 72.81 kB / 1.069 GB, free: 9.672 MB / 0.8262 GB Notification: Performance of preOpt evalFunc (simulation): time 4.672e-05/0.3243, allocations: 4 kB / 1.069 GB, free: 9.668 MB / 0.8262 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005327/0.3248, allocations: 178.7 kB / 1.069 GB, free: 9.469 MB / 0.8262 GB Notification: Performance of pre-optimization done (n=10): time 1.513e-06/0.3249, allocations: 3.938 kB / 1.069 GB, free: 9.465 MB / 0.8262 GB Notification: Performance of matching and sorting (n=10): time 0.0009245/0.3258, allocations: 356.8 kB / 1.069 GB, free: 9.098 MB / 0.8262 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001426/0.3259, allocations: 162.2 kB / 1.069 GB, free: 8.902 MB / 0.8262 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002313/0.3262, allocations: 182.6 kB / 1.07 GB, free: 8.715 MB / 0.8262 GB Notification: Performance of collectPreVariables (initialization): time 3.886e-05/0.3262, allocations: 29.7 kB / 1.07 GB, free: 8.68 MB / 0.8262 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001537/0.3264, allocations: 112.3 kB / 1.07 GB, free: 8.562 MB / 0.8262 GB Notification: Performance of collectInitialBindings (initialization): time 3.473e-05/0.3264, allocations: 19.72 kB / 1.07 GB, free: 8.543 MB / 0.8262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.312e-05/0.3265, allocations: 41.7 kB / 1.07 GB, free: 8.496 MB / 0.8262 GB Notification: Performance of setup shared object (initialization): time 0.0001972/0.3267, allocations: 334.8 kB / 1.07 GB, free: 8.16 MB / 0.8262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001405/0.3269, allocations: 47.97 kB / 1.07 GB, free: 8.113 MB / 0.8262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002033/0.3271, allocations: 110.8 kB / 1.07 GB, free: 7.98 MB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004559/0.3276, allocations: 309 kB / 1.071 GB, free: 7.617 MB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.938e-06/0.3276, allocations: 0 / 1.071 GB, free: 7.617 MB / 0.8262 GB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0006226/0.3282, allocations: 352.1 kB / 1.071 GB, free: 7.242 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001198/0.3283, allocations: 114.8 kB / 1.071 GB, free: 7.105 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.999e-06/0.3283, allocations: 4.078 kB / 1.071 GB, free: 7.102 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.818e-05/0.3284, allocations: 4 kB / 1.071 GB, free: 7.098 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001319/0.3285, allocations: 23.92 kB / 1.071 GB, free: 7.074 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.859e-06/0.3285, allocations: 3.984 kB / 1.071 GB, free: 7.07 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001026/0.3286, allocations: 16.22 kB / 1.071 GB, free: 7.055 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.757e-05/0.3287, allocations: 15.97 kB / 1.071 GB, free: 7.039 MB / 0.8262 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.0002104/0.3289, allocations: 197.4 kB / 1.071 GB, free: 6.824 MB / 0.8262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.486e-05/0.3289, allocations: 23.75 kB / 1.071 GB, free: 6.801 MB / 0.8262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.22e-05/0.329, allocations: 17.34 kB / 1.071 GB, free: 6.785 MB / 0.8262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.775e-06/0.329, allocations: 0 / 1.071 GB, free: 6.785 MB / 0.8262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.823e-06/0.329, allocations: 0 / 1.071 GB, free: 6.785 MB / 0.8262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.453e-06/0.329, allocations: 3.984 kB / 1.071 GB, free: 6.781 MB / 0.8262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008316/0.3299, allocations: 0.5875 MB / 1.072 GB, free: 6.125 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.804e-06/0.3299, allocations: 0 / 1.072 GB, free: 6.125 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.332e-05/0.3299, allocations: 11.98 kB / 1.072 GB, free: 6.113 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.863e-06/0.3299, allocations: 0 / 1.072 GB, free: 6.113 MB / 0.8262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.703e-05/0.33, allocations: 8 kB / 1.072 GB, free: 6.105 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.326e-06/0.33, allocations: 7.938 kB / 1.072 GB, free: 6.098 MB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.715e-06/0.33, allocations: 3.938 kB / 1.072 GB, free: 6.094 MB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005788/0.3306, allocations: 406.6 kB / 1.072 GB, free: 5.668 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 5.812e-05/0.3306, allocations: 88.92 kB / 1.072 GB, free: 5.562 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.527e-05/0.3307, allocations: 4 kB / 1.072 GB, free: 5.559 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000111/0.3308, allocations: 4 kB / 1.072 GB, free: 5.555 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.733e-05/0.3309, allocations: 19.91 kB / 1.072 GB, free: 5.535 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.854e-05/0.3309, allocations: 8 kB / 1.072 GB, free: 5.527 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 0.0001145/0.331, allocations: 128.3 kB / 1.073 GB, free: 5.402 MB / 0.8262 GB Notification: Performance of sort global known variables: time 1.3e-07/0.331, allocations: 0 / 1.073 GB, free: 5.402 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.0003003/0.3313, allocations: 32 kB / 1.073 GB, free: 5.371 MB / 0.8262 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.0002941/0.3316, allocations: 131.4 kB / 1.073 GB, free: 5.242 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.0005292/0.3322, allocations: 369.8 kB / 1.073 GB, free: 4.832 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 1.934e-06/0.3322, allocations: 4.062 kB / 1.073 GB, free: 4.828 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 0.0002628/0.3324, allocations: 206.8 kB / 1.073 GB, free: 4.602 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000324/0.3328, allocations: 19.98 kB / 1.073 GB, free: 4.582 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006482/0.3334, allocations: 353.7 kB / 1.074 GB, free: 4.203 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003488/0.3338, allocations: 0.708 MB / 1.074 GB, free: 3.469 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.027e-05/0.3338, allocations: 15.44 kB / 1.074 GB, free: 3.453 MB / 0.8262 GB Notification: Performance of SimCode: time 3.31e-07/0.3338, allocations: 0 / 1.074 GB, free: 3.453 MB / 0.8262 GB Notification: Performance of Templates: time 0.004442/0.3383, allocations: 2.16 MB / 1.076 GB, free: 1.312 MB / 0.8262 GB make -j1 -f Buildings_11_Buildings.Utilities.IO.Files.Examples.CSVWriter.makefile (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) 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/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_11_Buildings.Utilities.IO.Files.Examples.CSVWriter.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches