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: "" <> buildModelFMU(Buildings.Utilities.IO.Files.Examples.CSVWriter,fileNamePrefix="Buildings_9_Buildings_Utilities_IO_Files_Examples_CSVWriter",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Utilities.IO.Files.Examples.CSVWriter,fileNamePrefix="Buildings_9_Buildings_Utilities_IO_Files_Examples_CSVWriter",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.009081/0.009081, allocations: 103.5 kB / 15.74 MB, free: 5.957 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.00214/0.00214, allocations: 192.5 kB / 16.68 MB, free: 5.887 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.441/1.441, allocations: 222.9 MB / 240.4 MB, free: 15.09 MB / 206.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.284/2.284, allocations: 390.3 MB / 0.6648 GB, free: 0.6055 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.001449/0.00145, allocations: 63.91 kB / 0.9504 GB, free: 8.125 MB / 0.7325 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7637/0.7651, allocations: 140.4 MB / 1.087 GB, free: 5.25 MB / 0.8575 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.IO.Files.Examples.CSVWriter): time 0.00261/0.7678, allocations: 1.61 MB / 1.089 GB, free: 4.137 MB / 0.8575 GB Notification: Performance of NFInst.instExpressions: time 0.0009058/0.7687, allocations: 0.602 MB / 1.09 GB, free: 3.723 MB / 0.8575 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001015/0.7688, allocations: 1.062 kB / 1.09 GB, free: 3.723 MB / 0.8575 GB Notification: Performance of NFTyping.typeComponents: time 0.0001855/0.769, allocations: 36.92 kB / 1.09 GB, free: 3.691 MB / 0.8575 GB Notification: Performance of NFTyping.typeBindings: time 0.0002353/0.7693, allocations: 48.36 kB / 1.09 GB, free: 3.664 MB / 0.8575 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004521/0.7698, allocations: 110.9 kB / 1.09 GB, free: 3.605 MB / 0.8575 GB Notification: Performance of NFFlatten.flatten: time 0.0002677/0.77, allocations: 186.1 kB / 1.09 GB, free: 3.531 MB / 0.8575 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001324/0.7702, allocations: 31.92 kB / 1.09 GB, free: 3.512 MB / 0.8575 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001666/0.7703, allocations: 86.34 kB / 1.09 GB, free: 3.477 MB / 0.8575 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001555/0.7705, allocations: 83.91 kB / 1.09 GB, free: 3.441 MB / 0.8575 GB Notification: Performance of NFPackage.collectConstants: time 4.077e-05/0.7706, allocations: 17.62 kB / 1.09 GB, free: 3.438 MB / 0.8575 GB Notification: Performance of NFFlatten.collectFunctions: time 7.99e-05/0.7706, allocations: 30.22 kB / 1.09 GB, free: 3.43 MB / 0.8575 GB Notification: Performance of NFScalarize.scalarize: time 9.471e-05/0.7707, allocations: 31.88 kB / 1.09 GB, free: 3.414 MB / 0.8575 GB Notification: Performance of NFVerifyModel.verify: time 0.0001037/0.7709, allocations: 68.66 kB / 1.09 GB, free: 3.379 MB / 0.8575 GB Notification: Performance of NFConvertDAE.convert: time 0.0002841/0.7711, allocations: 176.9 kB / 1.09 GB, free: 3.305 MB / 0.8575 GB Notification: Performance of FrontEnd - DAE generated: time 4.077e-06/0.7712, allocations: 0 / 1.09 GB, free: 3.305 MB / 0.8575 GB Notification: Performance of FrontEnd: time 1.633e-06/0.7712, allocations: 0 / 1.09 GB, free: 3.305 MB / 0.8575 GB Notification: Performance of Transformations before backend: time 1.058e-05/0.7712, allocations: 0 / 1.09 GB, free: 3.305 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.0006292/0.7718, allocations: 0.5539 MB / 1.091 GB, free: 2.762 MB / 0.8575 GB Notification: Performance of prepare preOptimizeDAE: time 4.076e-05/0.7719, allocations: 10 kB / 1.091 GB, free: 2.762 MB / 0.8575 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.512e-05/0.7719, allocations: 36.61 kB / 1.091 GB, free: 2.723 MB / 0.8575 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.078e-05/0.772, allocations: 24.41 kB / 1.091 GB, free: 2.711 MB / 0.8575 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002872/0.7723, allocations: 237.3 kB / 1.091 GB, free: 2.48 MB / 0.8575 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.983e-05/0.7723, allocations: 7.281 kB / 1.091 GB, free: 2.48 MB / 0.8575 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.797e-05/0.7723, allocations: 15 kB / 1.091 GB, free: 2.477 MB / 0.8575 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002923/0.7726, allocations: 115.4 kB / 1.091 GB, free: 2.422 MB / 0.8575 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.738e-06/0.7726, allocations: 0.9375 kB / 1.091 GB, free: 2.422 MB / 0.8575 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.983e-05/0.7727, allocations: 6.703 kB / 1.091 GB, free: 2.418 MB / 0.8575 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.781e-06/0.7727, allocations: 1.906 kB / 1.091 GB, free: 2.418 MB / 0.8575 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002166/0.7729, allocations: 68.09 kB / 1.092 GB, free: 2.402 MB / 0.8575 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006187/0.7735, allocations: 422.6 kB / 1.092 GB, free: 2.07 MB / 0.8575 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002221/0.7738, allocations: 82.27 kB / 1.092 GB, free: 2.031 MB / 0.8575 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001683/0.7739, allocations: 79.73 kB / 1.092 GB, free: 2 MB / 0.8575 GB Notification: Performance of preOpt evalFunc (simulation): time 2.429e-05/0.774, allocations: 5.594 kB / 1.092 GB, free: 1.996 MB / 0.8575 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002564/0.7742, allocations: 178.6 kB / 1.092 GB, free: 1.863 MB / 0.8575 GB Notification: Performance of pre-optimization done (n=10): time 1.473e-06/0.7742, allocations: 0 / 1.092 GB, free: 1.863 MB / 0.8575 GB Notification: Performance of matching and sorting (n=10): time 0.0007516/0.775, allocations: 359.3 kB / 1.093 GB, free: 1.691 MB / 0.8575 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.03e-05/0.7751, allocations: 166.6 kB / 1.093 GB, free: 1.5 MB / 0.8575 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001582/0.7752, allocations: 184.9 kB / 1.093 GB, free: 1.363 MB / 0.8575 GB Notification: Performance of collectPreVariables (initialization): time 2.118e-05/0.7753, allocations: 29.55 kB / 1.093 GB, free: 1.332 MB / 0.8575 GB Notification: Performance of collectInitialEqns (initialization): time 5.3e-05/0.7753, allocations: 111.2 kB / 1.093 GB, free: 1.227 MB / 0.8575 GB Notification: Performance of collectInitialBindings (initialization): time 2.735e-05/0.7754, allocations: 25.97 kB / 1.093 GB, free: 1.207 MB / 0.8575 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.383e-05/0.7754, allocations: 38.98 kB / 1.093 GB, free: 1.184 MB / 0.8575 GB Notification: Performance of setup shared object (initialization): time 5.892e-05/0.7755, allocations: 330.8 kB / 1.093 GB, free: 0.8594 MB / 0.8575 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001422/0.7757, allocations: 51.66 kB / 1.094 GB, free: 0.8477 MB / 0.8575 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001607/0.7758, allocations: 101.5 kB / 1.094 GB, free: 0.7695 MB / 0.8575 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003419/0.7762, allocations: 316.5 kB / 1.094 GB, free: 484 kB / 0.8575 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.927e-06/0.7762, allocations: 0 / 1.094 GB, free: 484 kB / 0.8575 GB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0005977/0.7768, allocations: 348.3 kB / 1.094 GB, free: 260 kB / 0.8575 GB Notification: Performance of prepare postOptimizeDAE: time 6.446e-05/0.7769, allocations: 121 kB / 1.094 GB, free: 128 kB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.308e-06/0.7769, allocations: 1.656 kB / 1.094 GB, free: 128 kB / 0.8575 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.097e-05/0.7769, allocations: 2.594 kB / 1.094 GB, free: 128 kB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001245/0.777, allocations: 16.77 kB / 1.094 GB, free: 128 kB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.137e-06/0.7771, allocations: 3.297 kB / 1.094 GB, free: 128 kB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001103/0.7772, allocations: 18.11 kB / 1.094 GB, free: 120 kB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.828e-05/0.7772, allocations: 17.22 kB / 1.094 GB, free: 112 kB / 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.0001915/0.7774, allocations: 206.5 kB / 1.095 GB, free: 15.91 MB / 0.8731 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.961e-05/0.7775, allocations: 17.39 kB / 1.095 GB, free: 15.9 MB / 0.8731 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.602e-05/0.7775, allocations: 14.62 kB / 1.095 GB, free: 15.89 MB / 0.8731 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.618e-06/0.7775, allocations: 1.922 kB / 1.095 GB, free: 15.89 MB / 0.8731 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.242e-06/0.7776, allocations: 0.8125 kB / 1.095 GB, free: 15.89 MB / 0.8731 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.799e-06/0.7776, allocations: 0.7031 kB / 1.095 GB, free: 15.89 MB / 0.8731 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008745/0.7784, allocations: 0.5841 MB / 1.095 GB, free: 15.45 MB / 0.8731 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.439e-06/0.7785, allocations: 0 / 1.095 GB, free: 15.45 MB / 0.8731 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.026e-05/0.7785, allocations: 15.39 kB / 1.095 GB, free: 15.45 MB / 0.8731 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.465e-06/0.7785, allocations: 0.8438 kB / 1.095 GB, free: 15.45 MB / 0.8731 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.441e-05/0.7786, allocations: 7.656 kB / 1.095 GB, free: 15.45 MB / 0.8731 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.435e-06/0.7786, allocations: 0.75 kB / 1.095 GB, free: 15.45 MB / 0.8731 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.416e-06/0.7786, allocations: 8.578 kB / 1.095 GB, free: 15.44 MB / 0.8731 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006183/0.7792, allocations: 403.9 kB / 1.096 GB, free: 15.18 MB / 0.8731 GB Notification: Performance of postOpt removeConstants (simulation): time 4.783e-05/0.7793, allocations: 89.25 kB / 1.096 GB, free: 15.08 MB / 0.8731 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.032e-05/0.7793, allocations: 8.531 kB / 1.096 GB, free: 15.07 MB / 0.8731 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001209/0.7794, allocations: 7.609 kB / 1.096 GB, free: 15.07 MB / 0.8731 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.758e-05/0.7795, allocations: 9.891 kB / 1.096 GB, free: 15.07 MB / 0.8731 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.674e-05/0.7795, allocations: 11.92 kB / 1.096 GB, free: 15.07 MB / 0.8731 GB Notification: Performance of sorting global known variables: time 0.0001184/0.7797, allocations: 125.5 kB / 1.096 GB, free: 14.98 MB / 0.8731 GB Notification: Performance of sort global known variables: time 1.2e-07/0.7797, allocations: 0 / 1.096 GB, free: 14.98 MB / 0.8731 GB Notification: Performance of remove unused functions: time 0.000315/0.78, allocations: 39.64 kB / 1.096 GB, free: 14.97 MB / 0.8731 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.001031/0.781, allocations: 0.9705 MB / 1.097 GB, free: 14.16 MB / 0.8731 GB Notification: Performance of simCode: created initialization part: time 0.0005356/0.7816, allocations: 360.7 kB / 1.097 GB, free: 13.88 MB / 0.8731 GB Notification: Performance of simCode: created event and clocks part: time 1.903e-06/0.7816, allocations: 0 / 1.097 GB, free: 13.88 MB / 0.8731 GB Notification: Performance of simCode: created simulation system equations: time 0.0002681/0.7819, allocations: 208 kB / 1.097 GB, free: 13.71 MB / 0.8731 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003269/0.7822, allocations: 36.38 kB / 1.097 GB, free: 13.7 MB / 0.8731 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002535/0.7847, allocations: 2.093 MB / 1.099 GB, free: 12.05 MB / 0.8731 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000251/0.785, allocations: 0.7135 MB / 1.1 GB, free: 11.35 MB / 0.8731 GB Notification: Performance of simCode: alias equations: time 7.235e-05/0.7851, allocations: 19.33 kB / 1.1 GB, free: 11.35 MB / 0.8731 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.911e-05/0.7852, allocations: 37.58 kB / 1.1 GB, free: 11.32 MB / 0.8731 GB Notification: Performance of SimCode: time 2.5e-07/0.7852, allocations: 0 / 1.1 GB, free: 11.32 MB / 0.8731 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02299/0.8082, allocations: 3.64 MB / 1.104 GB, free: 10.66 MB / 0.8731 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.74/8.549, allocations: 1.219 kB / 1.104 GB, free: 10.66 MB / 0.8731 GB (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 & python3 -m fmpy simulate --output-file Buildings_9_Buildings.Utilities.IO.Files.Examples.CSVWriter_res.csv --start-time -1.21 --stop-time 10 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.004484 Buildings_9_Buildings_Utilities_IO_Files_Examples_CSVWriter.fmu > Buildings_9_Buildings.Utilities.IO.Files.Examples.CSVWriter.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Utilities.IO.Files.Examples.CSVWriter_res.csv","/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