Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_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 10.1.1-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.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_10_Buildings_Utilities_IO_Files_Examples_CSVWriter",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Utilities.IO.Files.Examples.CSVWriter,fileNamePrefix="Buildings_10_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.006019/0.006019, allocations: 99.72 kB / 15.73 MB, free: 6.492 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.001869/0.001869, allocations: 201.8 kB / 16.68 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.469/1.469, allocations: 222.9 MB / 240.4 MB, free: 4.32 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/package.mo): time 2.786/2.786, allocations: 437 MB / 0.7105 GB, free: 5.008 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.001912/0.001912, allocations: 55.91 kB / 1.018 GB, free: 15.12 MB / 0.7794 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.309/0.3109, allocations: 151.6 MB / 1.166 GB, free: 7.371 MB / 0.92 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.IO.Files.Examples.CSVWriter): time 0.002985/0.3139, allocations: 1.607 MB / 1.168 GB, free: 5.746 MB / 0.92 GB Notification: Performance of NFInst.instExpressions: time 0.001023/0.315, allocations: 0.604 MB / 1.168 GB, free: 5.137 MB / 0.92 GB Notification: Performance of NFInst.updateImplicitVariability: time 7.844e-05/0.3151, allocations: 7.938 kB / 1.168 GB, free: 5.129 MB / 0.92 GB Notification: Performance of NFTyping.typeComponents: time 0.0001543/0.3152, allocations: 11.86 kB / 1.168 GB, free: 5.117 MB / 0.92 GB Notification: Performance of NFTyping.typeBindings: time 0.0002237/0.3155, allocations: 55.69 kB / 1.168 GB, free: 5.062 MB / 0.92 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004119/0.3159, allocations: 111.8 kB / 1.169 GB, free: 4.953 MB / 0.92 GB Notification: Performance of NFFlatten.flatten: time 0.0002948/0.3162, allocations: 203.5 kB / 1.169 GB, free: 4.754 MB / 0.92 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001563/0.3164, allocations: 25.12 kB / 1.169 GB, free: 4.727 MB / 0.92 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001734/0.3165, allocations: 87.8 kB / 1.169 GB, free: 4.641 MB / 0.92 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001492/0.3167, allocations: 91.59 kB / 1.169 GB, free: 4.551 MB / 0.92 GB Notification: Performance of NFPackage.collectConstants: time 4.226e-05/0.3168, allocations: 12 kB / 1.169 GB, free: 4.539 MB / 0.92 GB Notification: Performance of NFFlatten.collectFunctions: time 7.793e-05/0.3168, allocations: 24 kB / 1.169 GB, free: 4.516 MB / 0.92 GB Notification: Performance of NFScalarize.scalarize: time 8.955e-05/0.3169, allocations: 27.92 kB / 1.169 GB, free: 4.488 MB / 0.92 GB Notification: Performance of NFVerifyModel.verify: time 0.0001139/0.3171, allocations: 75.64 kB / 1.169 GB, free: 4.414 MB / 0.92 GB Notification: Performance of NFConvertDAE.convert: time 0.0002764/0.3173, allocations: 171.6 kB / 1.169 GB, free: 4.246 MB / 0.92 GB Notification: Performance of FrontEnd - DAE generated: time 5.139e-06/0.3174, allocations: 0 / 1.169 GB, free: 4.246 MB / 0.92 GB Notification: Performance of FrontEnd: time 1.723e-06/0.3174, allocations: 0 / 1.169 GB, free: 4.246 MB / 0.92 GB Notification: Performance of Transformations before backend: time 5.661e-06/0.3174, allocations: 4 kB / 1.169 GB, free: 4.242 MB / 0.92 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.0008291/0.3182, allocations: 0.5601 MB / 1.17 GB, free: 3.609 MB / 0.92 GB Notification: Performance of prepare preOptimizeDAE: time 4.198e-05/0.3183, allocations: 8.031 kB / 1.17 GB, free: 3.602 MB / 0.92 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.859e-05/0.3183, allocations: 42.73 kB / 1.17 GB, free: 3.551 MB / 0.92 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.674e-05/0.3184, allocations: 20.84 kB / 1.17 GB, free: 3.531 MB / 0.92 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000379/0.3188, allocations: 237.2 kB / 1.17 GB, free: 3.262 MB / 0.92 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.876e-05/0.3188, allocations: 12.38 kB / 1.17 GB, free: 3.25 MB / 0.92 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.321e-05/0.3188, allocations: 12.38 kB / 1.17 GB, free: 3.238 MB / 0.92 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003033/0.3191, allocations: 117.5 kB / 1.17 GB, free: 3.117 MB / 0.92 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.548e-06/0.3192, allocations: 3.938 kB / 1.17 GB, free: 3.113 MB / 0.92 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.61e-05/0.3192, allocations: 0 / 1.17 GB, free: 3.113 MB / 0.92 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.304e-06/0.3192, allocations: 4 kB / 1.17 GB, free: 3.109 MB / 0.92 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002135/0.3194, allocations: 71.88 kB / 1.17 GB, free: 3.039 MB / 0.92 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007288/0.3202, allocations: 412.6 kB / 1.171 GB, free: 2.586 MB / 0.92 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002604/0.3204, allocations: 94.56 kB / 1.171 GB, free: 2.484 MB / 0.92 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001732/0.3206, allocations: 72.81 kB / 1.171 GB, free: 2.41 MB / 0.92 GB Notification: Performance of preOpt evalFunc (simulation): time 3.159e-05/0.3206, allocations: 8.141 kB / 1.171 GB, free: 2.402 MB / 0.92 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000301/0.321, allocations: 182.7 kB / 1.171 GB, free: 2.199 MB / 0.92 GB Notification: Performance of pre-optimization done (n=10): time 2.274e-06/0.321, allocations: 0 / 1.171 GB, free: 2.199 MB / 0.92 GB Notification: Performance of matching and sorting (n=10): time 0.0008157/0.3218, allocations: 352.8 kB / 1.171 GB, free: 1.836 MB / 0.92 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001098/0.3219, allocations: 162.2 kB / 1.171 GB, free: 1.641 MB / 0.92 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001939/0.3221, allocations: 178.6 kB / 1.172 GB, free: 1.453 MB / 0.92 GB Notification: Performance of collectPreVariables (initialization): time 2.916e-05/0.3221, allocations: 29.7 kB / 1.172 GB, free: 1.418 MB / 0.92 GB Notification: Performance of collectInitialEqns (initialization): time 8.631e-05/0.3222, allocations: 116.3 kB / 1.172 GB, free: 1.297 MB / 0.92 GB Notification: Performance of collectInitialBindings (initialization): time 3.193e-05/0.3223, allocations: 27.8 kB / 1.172 GB, free: 1.27 MB / 0.92 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.742e-05/0.3224, allocations: 37.7 kB / 1.172 GB, free: 1.227 MB / 0.92 GB Notification: Performance of setup shared object (initialization): time 0.000163/0.3225, allocations: 330.8 kB / 1.172 GB, free: 0.8945 MB / 0.92 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001479/0.3227, allocations: 51.95 kB / 1.172 GB, free: 0.8438 MB / 0.92 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001928/0.3229, allocations: 110.8 kB / 1.172 GB, free: 0.7109 MB / 0.92 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004156/0.3233, allocations: 305 kB / 1.173 GB, free: 360 kB / 0.92 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.836e-06/0.3233, allocations: 0 / 1.173 GB, free: 360 kB / 0.92 GB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0005877/0.3239, allocations: 352.3 kB / 1.173 GB, free: 15.98 MB / 0.9356 GB Notification: Performance of prepare postOptimizeDAE: time 9.08e-05/0.324, allocations: 114.8 kB / 1.173 GB, free: 15.84 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.173e-06/0.324, allocations: 3.984 kB / 1.173 GB, free: 15.84 MB / 0.9356 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.232e-05/0.3241, allocations: 4 kB / 1.173 GB, free: 15.83 MB / 0.9356 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001164/0.3242, allocations: 19.94 kB / 1.173 GB, free: 15.81 MB / 0.9356 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.038e-05/0.3242, allocations: 7.984 kB / 1.173 GB, free: 15.8 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001172/0.3243, allocations: 11.94 kB / 1.173 GB, free: 15.79 MB / 0.9356 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.662e-05/0.3244, allocations: 12 kB / 1.173 GB, free: 15.78 MB / 0.9356 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.0001931/0.3246, allocations: 205.2 kB / 1.173 GB, free: 15.56 MB / 0.9356 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.016e-05/0.3246, allocations: 15.91 kB / 1.173 GB, free: 15.54 MB / 0.9356 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.3e-05/0.3247, allocations: 13.41 kB / 1.173 GB, free: 15.53 MB / 0.9356 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.07e-06/0.3247, allocations: 0 / 1.173 GB, free: 15.53 MB / 0.9356 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.548e-06/0.3247, allocations: 3.938 kB / 1.173 GB, free: 15.52 MB / 0.9356 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.931e-06/0.3247, allocations: 0 / 1.173 GB, free: 15.52 MB / 0.9356 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008352/0.3255, allocations: 0.5875 MB / 1.174 GB, free: 14.87 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.034e-06/0.3256, allocations: 0 / 1.174 GB, free: 14.87 MB / 0.9356 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.2e-05/0.3256, allocations: 19.92 kB / 1.174 GB, free: 14.85 MB / 0.9356 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.785e-06/0.3256, allocations: 0 / 1.174 GB, free: 14.85 MB / 0.9356 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.589e-05/0.3257, allocations: 12.28 kB / 1.174 GB, free: 14.84 MB / 0.9356 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.613e-06/0.3257, allocations: 0 / 1.174 GB, free: 14.84 MB / 0.9356 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.989e-06/0.3257, allocations: 4.094 kB / 1.174 GB, free: 14.83 MB / 0.9356 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006206/0.3263, allocations: 406.6 kB / 1.174 GB, free: 14.41 MB / 0.9356 GB Notification: Performance of postOpt removeConstants (simulation): time 6.852e-05/0.3264, allocations: 92.98 kB / 1.174 GB, free: 14.3 MB / 0.9356 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.695e-05/0.3264, allocations: 8 kB / 1.174 GB, free: 14.29 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001152/0.3266, allocations: 8 kB / 1.174 GB, free: 14.28 MB / 0.9356 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.663e-05/0.3266, allocations: 11.92 kB / 1.174 GB, free: 14.27 MB / 0.9356 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.665e-05/0.3266, allocations: 8 kB / 1.174 GB, free: 14.26 MB / 0.9356 GB Notification: Performance of sorting global known variables: time 0.0001192/0.3268, allocations: 136.3 kB / 1.175 GB, free: 14.13 MB / 0.9356 GB Notification: Performance of sort global known variables: time 1.51e-07/0.3268, allocations: 0 / 1.175 GB, free: 14.13 MB / 0.9356 GB Notification: Performance of remove unused functions: time 0.0003011/0.3271, allocations: 28 kB / 1.175 GB, free: 14.1 MB / 0.9356 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.001126/0.3282, allocations: 0.9755 MB / 1.176 GB, free: 13.1 MB / 0.9356 GB Notification: Performance of simCode: created initialization part: time 0.0006619/0.3289, allocations: 357.5 kB / 1.176 GB, free: 12.7 MB / 0.9356 GB Notification: Performance of simCode: created event and clocks part: time 2.325e-06/0.3289, allocations: 0 / 1.176 GB, free: 12.7 MB / 0.9356 GB Notification: Performance of simCode: created simulation system equations: time 0.0003086/0.3292, allocations: 214.7 kB / 1.176 GB, free: 12.46 MB / 0.9356 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003548/0.3296, allocations: 23.88 kB / 1.176 GB, free: 12.44 MB / 0.9356 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002867/0.3325, allocations: 2.111 MB / 1.178 GB, free: 10.19 MB / 0.9356 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003538/0.3328, allocations: 0.7119 MB / 1.179 GB, free: 9.449 MB / 0.9356 GB Notification: Performance of simCode: alias equations: time 7.587e-05/0.3329, allocations: 24.53 kB / 1.179 GB, free: 9.426 MB / 0.9356 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.09e-05/0.333, allocations: 35.42 kB / 1.179 GB, free: 9.391 MB / 0.9356 GB Notification: Performance of SimCode: time 7.72e-07/0.333, allocations: 0 / 1.179 GB, free: 9.391 MB / 0.9356 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02623/0.3592, allocations: 3.643 MB / 1.183 GB, free: 5.848 MB / 0.9356 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.259/8.618, allocations: 4.5 kB / 1.183 GB, free: 5.848 MB / 0.9356 GB (rm -f Buildings_10_Buildings.Utilities.IO.Files.Examples.CSVWriter.pipe ; mkfifo Buildings_10_Buildings.Utilities.IO.Files.Examples.CSVWriter.pipe ; head -c 1048576 < Buildings_10_Buildings.Utilities.IO.Files.Examples.CSVWriter.pipe >> ../files/Buildings_10_Buildings.Utilities.IO.Files.Examples.CSVWriter.sim & python3 -m fmpy simulate --output-file Buildings_10_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_10_Buildings_Utilities_IO_Files_Examples_CSVWriter.fmu > Buildings_10_Buildings.Utilities.IO.Files.Examples.CSVWriter.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Utilities.IO.Files.Examples.CSVWriter_res.csv","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Utilities_IO_Files_Examples_CSVWriter.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Utilities.IO.Files.Examples.CSVWriter.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches