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.2-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-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.004191/0.004191, allocations: 108.4 kB / 15.71 MB, free: 6.48 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.001051/0.001051, allocations: 192.5 kB / 16.64 MB, free: 6.395 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.32/1.32, allocations: 222.9 MB / 240.3 MB, free: 4.324 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-maint.9.1.x/package.mo): time 2.424/2.424, allocations: 390.3 MB / 0.6648 GB, free: 144 kB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001232/0.001232, allocations: 67.39 kB / 0.9509 GB, free: 5.586 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3092/0.3105, allocations: 140.4 MB / 1.088 GB, free: 1.402 MB / 0.8419 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.IO.Files.Examples.CSVWriter): time 0.0031/0.3136, allocations: 1.613 MB / 1.09 GB, free: 15.78 MB / 0.8575 GB Notification: Performance of NFInst.instExpressions: time 0.00102/0.3146, allocations: 0.6092 MB / 1.09 GB, free: 15.16 MB / 0.8575 GB Notification: Performance of NFInst.updateImplicitVariability: time 8.696e-05/0.3147, allocations: 3.938 kB / 1.09 GB, free: 15.16 MB / 0.8575 GB Notification: Performance of NFTyping.typeComponents: time 0.0001776/0.3149, allocations: 19.86 kB / 1.09 GB, free: 15.14 MB / 0.8575 GB Notification: Performance of NFTyping.typeBindings: time 0.0002496/0.3152, allocations: 47.77 kB / 1.09 GB, free: 15.09 MB / 0.8575 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004012/0.3156, allocations: 115.7 kB / 1.09 GB, free: 14.98 MB / 0.8575 GB Notification: Performance of NFFlatten.flatten: time 0.0002632/0.3159, allocations: 195.6 kB / 1.091 GB, free: 14.79 MB / 0.8575 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001382/0.316, allocations: 28.86 kB / 1.091 GB, free: 14.76 MB / 0.8575 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001434/0.3162, allocations: 79.81 kB / 1.091 GB, free: 14.68 MB / 0.8575 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001307/0.3163, allocations: 91.59 kB / 1.091 GB, free: 14.59 MB / 0.8575 GB Notification: Performance of NFPackage.collectConstants: time 3.594e-05/0.3163, allocations: 16 kB / 1.091 GB, free: 14.57 MB / 0.8575 GB Notification: Performance of NFFlatten.collectFunctions: time 6.993e-05/0.3164, allocations: 31.98 kB / 1.091 GB, free: 14.54 MB / 0.8575 GB Notification: Performance of NFScalarize.scalarize: time 8.378e-05/0.3165, allocations: 23.92 kB / 1.091 GB, free: 14.52 MB / 0.8575 GB Notification: Performance of NFVerifyModel.verify: time 9.709e-05/0.3166, allocations: 75.7 kB / 1.091 GB, free: 14.45 MB / 0.8575 GB Notification: Performance of NFConvertDAE.convert: time 0.00022/0.3168, allocations: 167.5 kB / 1.091 GB, free: 14.28 MB / 0.8575 GB Notification: Performance of FrontEnd - DAE generated: time 4.178e-06/0.3169, allocations: 0 / 1.091 GB, free: 14.28 MB / 0.8575 GB Notification: Performance of FrontEnd: time 2.865e-06/0.3169, allocations: 4 kB / 1.091 GB, free: 14.28 MB / 0.8575 GB Notification: Performance of Transformations before backend: time 6.402e-06/0.3169, allocations: 3.938 kB / 1.091 GB, free: 14.27 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.0006777/0.3176, allocations: 0.5524 MB / 1.092 GB, free: 13.65 MB / 0.8575 GB Notification: Performance of prepare preOptimizeDAE: time 3.856e-05/0.3176, allocations: 12.03 kB / 1.092 GB, free: 13.64 MB / 0.8575 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.845e-05/0.3177, allocations: 20.75 kB / 1.092 GB, free: 13.62 MB / 0.8575 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000307/0.318, allocations: 233.2 kB / 1.092 GB, free: 13.35 MB / 0.8575 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.389e-05/0.318, allocations: 8.375 kB / 1.092 GB, free: 13.34 MB / 0.8575 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.506e-05/0.3181, allocations: 20.38 kB / 1.092 GB, free: 13.32 MB / 0.8575 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000318/0.3184, allocations: 109.7 kB / 1.092 GB, free: 13.21 MB / 0.8575 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.02e-05/0.3184, allocations: 0 / 1.092 GB, free: 13.21 MB / 0.8575 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.008e-05/0.3184, allocations: 8 kB / 1.092 GB, free: 13.2 MB / 0.8575 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.522e-06/0.3184, allocations: 3.984 kB / 1.092 GB, free: 13.2 MB / 0.8575 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001968/0.3186, allocations: 75.88 kB / 1.092 GB, free: 13.12 MB / 0.8575 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007717/0.3194, allocations: 420.5 kB / 1.092 GB, free: 12.66 MB / 0.8575 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002105/0.3196, allocations: 86.56 kB / 1.093 GB, free: 12.57 MB / 0.8575 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001592/0.3198, allocations: 80.75 kB / 1.093 GB, free: 12.49 MB / 0.8575 GB Notification: Performance of preOpt evalFunc (simulation): time 2.603e-05/0.3198, allocations: 4.141 kB / 1.093 GB, free: 12.48 MB / 0.8575 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002622/0.3201, allocations: 182.7 kB / 1.093 GB, free: 12.28 MB / 0.8575 GB Notification: Performance of pre-optimization done (n=10): time 1.833e-06/0.3201, allocations: 0 / 1.093 GB, free: 12.28 MB / 0.8575 GB Notification: Performance of matching and sorting (n=10): time 0.0007144/0.3208, allocations: 352.6 kB / 1.093 GB, free: 11.92 MB / 0.8575 GB Notification: Performance of inlineWhenForInitialization (initialization): time 9.045e-05/0.3209, allocations: 166.2 kB / 1.093 GB, free: 11.72 MB / 0.8575 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001665/0.3211, allocations: 183.2 kB / 1.093 GB, free: 11.53 MB / 0.8575 GB Notification: Performance of collectPreVariables (initialization): time 2.661e-05/0.3211, allocations: 25.7 kB / 1.093 GB, free: 11.5 MB / 0.8575 GB Notification: Performance of collectInitialEqns (initialization): time 8.327e-05/0.3212, allocations: 112.3 kB / 1.094 GB, free: 11.38 MB / 0.8575 GB Notification: Performance of collectInitialBindings (initialization): time 2.995e-05/0.3213, allocations: 35.62 kB / 1.094 GB, free: 11.34 MB / 0.8575 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.609e-05/0.3213, allocations: 41.7 kB / 1.094 GB, free: 11.3 MB / 0.8575 GB Notification: Performance of setup shared object (initialization): time 0.0001688/0.3215, allocations: 330.8 kB / 1.094 GB, free: 10.96 MB / 0.8575 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001294/0.3217, allocations: 47.97 kB / 1.094 GB, free: 10.92 MB / 0.8575 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001649/0.3218, allocations: 103.9 kB / 1.094 GB, free: 10.79 MB / 0.8575 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003277/0.3222, allocations: 313 kB / 1.094 GB, free: 10.43 MB / 0.8575 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.866e-06/0.3222, allocations: 0 / 1.094 GB, free: 10.43 MB / 0.8575 GB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0005199/0.3227, allocations: 344.3 kB / 1.095 GB, free: 10.06 MB / 0.8575 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001043/0.3228, allocations: 118.8 kB / 1.095 GB, free: 9.918 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.765e-06/0.3228, allocations: 4 kB / 1.095 GB, free: 9.914 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.103e-05/0.3229, allocations: 8 kB / 1.095 GB, free: 9.906 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001188/0.323, allocations: 19.92 kB / 1.095 GB, free: 9.887 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.114e-06/0.323, allocations: 0 / 1.095 GB, free: 9.887 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.405e-05/0.3231, allocations: 19.91 kB / 1.095 GB, free: 9.867 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.193e-05/0.3231, allocations: 11.98 kB / 1.095 GB, free: 9.855 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.0001474/0.3233, allocations: 193.2 kB / 1.095 GB, free: 9.645 MB / 0.8575 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.505e-05/0.3233, allocations: 23.81 kB / 1.095 GB, free: 9.621 MB / 0.8575 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.822e-05/0.3234, allocations: 13.41 kB / 1.095 GB, free: 9.609 MB / 0.8575 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.665e-06/0.3234, allocations: 0 / 1.095 GB, free: 9.609 MB / 0.8575 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.829e-06/0.3234, allocations: 0 / 1.095 GB, free: 9.609 MB / 0.8575 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.502e-06/0.3234, allocations: 3.984 kB / 1.095 GB, free: 9.605 MB / 0.8575 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000705/0.3241, allocations: 0.5836 MB / 1.096 GB, free: 8.953 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.046e-06/0.3241, allocations: 0 / 1.096 GB, free: 8.953 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.706e-05/0.3242, allocations: 19.86 kB / 1.096 GB, free: 8.934 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.894e-06/0.3242, allocations: 4.281 kB / 1.096 GB, free: 8.93 MB / 0.8575 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.167e-05/0.3242, allocations: 8 kB / 1.096 GB, free: 8.922 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.777e-06/0.3242, allocations: 7.984 kB / 1.096 GB, free: 8.914 MB / 0.8575 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.913e-06/0.3242, allocations: 7.875 kB / 1.096 GB, free: 8.906 MB / 0.8575 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005275/0.3248, allocations: 402.6 kB / 1.096 GB, free: 8.484 MB / 0.8575 GB Notification: Performance of postOpt removeConstants (simulation): time 4.788e-05/0.3248, allocations: 88.92 kB / 1.096 GB, free: 8.379 MB / 0.8575 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.163e-05/0.3249, allocations: 4 kB / 1.096 GB, free: 8.375 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001066/0.325, allocations: 8 kB / 1.096 GB, free: 8.367 MB / 0.8575 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.5e-05/0.325, allocations: 15.92 kB / 1.096 GB, free: 8.352 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.701e-05/0.3251, allocations: 8 kB / 1.096 GB, free: 8.344 MB / 0.8575 GB Notification: Performance of sorting global known variables: time 9.48e-05/0.3252, allocations: 124.3 kB / 1.096 GB, free: 8.223 MB / 0.8575 GB Notification: Performance of sort global known variables: time 1.2e-07/0.3252, allocations: 0 / 1.096 GB, free: 8.223 MB / 0.8575 GB Notification: Performance of remove unused functions: time 0.0002801/0.3254, allocations: 36 kB / 1.096 GB, free: 8.188 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.0002701/0.3257, allocations: 138.2 kB / 1.097 GB, free: 8.051 MB / 0.8575 GB Notification: Performance of simCode: created initialization part: time 0.0005393/0.3263, allocations: 357.6 kB / 1.097 GB, free: 7.652 MB / 0.8575 GB Notification: Performance of simCode: created event and clocks part: time 2.064e-06/0.3263, allocations: 0 / 1.097 GB, free: 7.652 MB / 0.8575 GB Notification: Performance of simCode: created simulation system equations: time 0.0002815/0.3266, allocations: 211.2 kB / 1.097 GB, free: 7.422 MB / 0.8575 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003151/0.3269, allocations: 23.98 kB / 1.097 GB, free: 7.398 MB / 0.8575 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005838/0.3275, allocations: 280.3 kB / 1.097 GB, free: 7.102 MB / 0.8575 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002837/0.3278, allocations: 0.7079 MB / 1.098 GB, free: 6.367 MB / 0.8575 GB Notification: Performance of simCode: alias equations: time 6.824e-05/0.3279, allocations: 24.47 kB / 1.098 GB, free: 6.344 MB / 0.8575 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.312e-05/0.3279, allocations: 19.42 kB / 1.098 GB, free: 6.324 MB / 0.8575 GB Notification: Performance of SimCode: time 3.21e-07/0.3279, allocations: 0 / 1.098 GB, free: 6.324 MB / 0.8575 GB Notification: Performance of Templates: time 0.005333/0.3332, allocations: 2.067 MB / 1.1 GB, free: 4.281 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