Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_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.0.1-master/package.mo", uses=false) Using package Buildings with version 11.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/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_latest_Buildings_Utilities_IO_Files_Examples_CSVWriter",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Utilities.IO.Files.Examples.CSVWriter,fileNamePrefix="Buildings_latest_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.009383/0.009383, allocations: 103.5 kB / 15.73 MB, free: 5.996 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.002429/0.002429, allocations: 187.5 kB / 16.67 MB, free: 5.934 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.367/1.367, 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 11.0.1-master/package.mo): time 2.831/2.831, allocations: 461.9 MB / 0.7348 GB, free: 14.68 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001312/0.001312, allocations: 59.91 kB / 1.054 GB, free: 7.734 MB / 0.8106 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2856/0.2869, allocations: 157.4 MB / 1.207 GB, free: 10.23 MB / 0.9669 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.IO.Files.Examples.CSVWriter): time 0.003186/0.2901, allocations: 1.62 MB / 1.209 GB, free: 8.594 MB / 0.9669 GB Notification: Performance of NFInst.instExpressions: time 0.001107/0.2913, allocations: 0.6199 MB / 1.209 GB, free: 7.969 MB / 0.9669 GB Notification: Performance of NFInst.updateImplicitVariability: time 9.975e-05/0.2914, allocations: 4 kB / 1.209 GB, free: 7.965 MB / 0.9669 GB Notification: Performance of NFTyping.typeComponents: time 0.0001671/0.2916, allocations: 23.78 kB / 1.209 GB, free: 7.941 MB / 0.9669 GB Notification: Performance of NFTyping.typeBindings: time 0.0002616/0.2919, allocations: 43.77 kB / 1.21 GB, free: 7.898 MB / 0.9669 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004492/0.2923, allocations: 107.8 kB / 1.21 GB, free: 7.793 MB / 0.9669 GB Notification: Performance of NFFlatten.flatten: time 0.0003156/0.2927, allocations: 199.5 kB / 1.21 GB, free: 7.598 MB / 0.9669 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001359/0.2928, allocations: 29.09 kB / 1.21 GB, free: 7.57 MB / 0.9669 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001979/0.293, allocations: 83.77 kB / 1.21 GB, free: 7.488 MB / 0.9669 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001516/0.2932, allocations: 83.72 kB / 1.21 GB, free: 7.406 MB / 0.9669 GB Notification: Performance of NFPackage.collectConstants: time 3.989e-05/0.2932, allocations: 12 kB / 1.21 GB, free: 7.395 MB / 0.9669 GB Notification: Performance of NFFlatten.collectFunctions: time 7.819e-05/0.2933, allocations: 39.97 kB / 1.21 GB, free: 7.355 MB / 0.9669 GB Notification: Performance of NFScalarize.scalarize: time 7.916e-05/0.2934, allocations: 23.92 kB / 1.21 GB, free: 7.332 MB / 0.9669 GB Notification: Performance of NFVerifyModel.verify: time 9.655e-05/0.2935, allocations: 79.64 kB / 1.21 GB, free: 7.254 MB / 0.9669 GB Notification: Performance of NFConvertDAE.convert: time 0.0002529/0.2937, allocations: 167.7 kB / 1.21 GB, free: 7.09 MB / 0.9669 GB Notification: Performance of FrontEnd - DAE generated: time 4.809e-06/0.2938, allocations: 0 / 1.21 GB, free: 7.09 MB / 0.9669 GB Notification: Performance of FrontEnd: time 2.144e-06/0.2938, allocations: 0 / 1.21 GB, free: 7.09 MB / 0.9669 GB Notification: Performance of Transformations before backend: time 7.254e-06/0.2938, allocations: 0 / 1.21 GB, free: 7.09 MB / 0.9669 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.0007895/0.2946, allocations: 0.5562 MB / 1.211 GB, free: 6.461 MB / 0.9669 GB Notification: Performance of prepare preOptimizeDAE: time 4.293e-05/0.2946, allocations: 8.625 kB / 1.211 GB, free: 6.453 MB / 0.9669 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.796e-05/0.2947, allocations: 42.75 kB / 1.211 GB, free: 6.402 MB / 0.9669 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.745e-05/0.2948, allocations: 16.84 kB / 1.211 GB, free: 6.387 MB / 0.9669 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004138/0.2952, allocations: 241.3 kB / 1.211 GB, free: 6.113 MB / 0.9669 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.074e-05/0.2952, allocations: 16.36 kB / 1.211 GB, free: 6.098 MB / 0.9669 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.844e-05/0.2952, allocations: 8.375 kB / 1.211 GB, free: 6.09 MB / 0.9669 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003633/0.2956, allocations: 113.6 kB / 1.211 GB, free: 5.973 MB / 0.9669 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.128e-05/0.2956, allocations: 0 / 1.211 GB, free: 5.973 MB / 0.9669 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.788e-05/0.2957, allocations: 15.92 kB / 1.211 GB, free: 5.957 MB / 0.9669 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.522e-06/0.2957, allocations: 3.938 kB / 1.211 GB, free: 5.953 MB / 0.9669 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002885/0.296, allocations: 63.95 kB / 1.211 GB, free: 5.891 MB / 0.9669 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008443/0.2968, allocations: 412.7 kB / 1.212 GB, free: 5.438 MB / 0.9669 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002159/0.2971, allocations: 94.48 kB / 1.212 GB, free: 5.336 MB / 0.9669 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001699/0.2973, allocations: 68.81 kB / 1.212 GB, free: 5.266 MB / 0.9669 GB Notification: Performance of preOpt evalFunc (simulation): time 2.79e-05/0.2973, allocations: 7.984 kB / 1.212 GB, free: 5.258 MB / 0.9669 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000293/0.2976, allocations: 178.6 kB / 1.212 GB, free: 5.059 MB / 0.9669 GB Notification: Performance of pre-optimization done (n=10): time 4.769e-06/0.2976, allocations: 3.984 kB / 1.212 GB, free: 5.055 MB / 0.9669 GB Notification: Performance of matching and sorting (n=10): time 0.0008308/0.2984, allocations: 356.9 kB / 1.212 GB, free: 4.688 MB / 0.9669 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001149/0.2986, allocations: 158.2 kB / 1.213 GB, free: 4.496 MB / 0.9669 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001917/0.2988, allocations: 187 kB / 1.213 GB, free: 4.297 MB / 0.9669 GB Notification: Performance of collectPreVariables (initialization): time 3.89e-05/0.2988, allocations: 29.7 kB / 1.213 GB, free: 4.262 MB / 0.9669 GB Notification: Performance of collectInitialEqns (initialization): time 7.513e-05/0.2989, allocations: 108.4 kB / 1.213 GB, free: 4.148 MB / 0.9669 GB Notification: Performance of collectInitialBindings (initialization): time 3.613e-05/0.2989, allocations: 27.64 kB / 1.213 GB, free: 4.121 MB / 0.9669 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.11e-05/0.299, allocations: 37.7 kB / 1.213 GB, free: 4.078 MB / 0.9669 GB Notification: Performance of setup shared object (initialization): time 0.0001358/0.2992, allocations: 334.8 kB / 1.213 GB, free: 3.742 MB / 0.9669 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001528/0.2993, allocations: 55.84 kB / 1.213 GB, free: 3.688 MB / 0.9669 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001779/0.2995, allocations: 102.8 kB / 1.213 GB, free: 3.562 MB / 0.9669 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003565/0.2999, allocations: 312.9 kB / 1.214 GB, free: 3.195 MB / 0.9669 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.1e-06/0.2999, allocations: 4 kB / 1.214 GB, free: 3.191 MB / 0.9669 GB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0005997/0.3005, allocations: 348.1 kB / 1.214 GB, free: 2.82 MB / 0.9669 GB Notification: Performance of prepare postOptimizeDAE: time 8.751e-05/0.3006, allocations: 118.8 kB / 1.214 GB, free: 2.68 MB / 0.9669 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.103e-06/0.3006, allocations: 0 / 1.214 GB, free: 2.68 MB / 0.9669 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.92e-05/0.3006, allocations: 4 kB / 1.214 GB, free: 2.676 MB / 0.9669 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000136/0.3008, allocations: 28.17 kB / 1.214 GB, free: 2.648 MB / 0.9669 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.347e-06/0.3008, allocations: 8 kB / 1.214 GB, free: 2.641 MB / 0.9669 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001208/0.3009, allocations: 15.89 kB / 1.214 GB, free: 2.625 MB / 0.9669 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.433e-05/0.301, allocations: 8 kB / 1.214 GB, free: 2.617 MB / 0.9669 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.0002114/0.3012, allocations: 201.1 kB / 1.214 GB, free: 2.398 MB / 0.9669 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.72e-05/0.3012, allocations: 12.19 kB / 1.214 GB, free: 2.387 MB / 0.9669 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.745e-05/0.3013, allocations: 17.39 kB / 1.214 GB, free: 2.367 MB / 0.9669 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.146e-06/0.3013, allocations: 0 / 1.214 GB, free: 2.367 MB / 0.9669 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.147e-06/0.3013, allocations: 7.938 kB / 1.214 GB, free: 2.359 MB / 0.9669 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.841e-06/0.3013, allocations: 4 kB / 1.214 GB, free: 2.355 MB / 0.9669 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008745/0.3022, allocations: 0.5835 MB / 1.215 GB, free: 1.703 MB / 0.9669 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.776e-06/0.3022, allocations: 0 / 1.215 GB, free: 1.703 MB / 0.9669 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.084e-05/0.3023, allocations: 11.98 kB / 1.215 GB, free: 1.691 MB / 0.9669 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.773e-06/0.3023, allocations: 4 kB / 1.215 GB, free: 1.688 MB / 0.9669 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.946e-05/0.3023, allocations: 11.98 kB / 1.215 GB, free: 1.676 MB / 0.9669 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.124e-06/0.3024, allocations: 0 / 1.215 GB, free: 1.676 MB / 0.9669 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.146e-06/0.3024, allocations: 3.938 kB / 1.215 GB, free: 1.672 MB / 0.9669 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006197/0.303, allocations: 398.7 kB / 1.215 GB, free: 1.254 MB / 0.9669 GB Notification: Performance of postOpt removeConstants (simulation): time 5.664e-05/0.3031, allocations: 88.92 kB / 1.216 GB, free: 1.148 MB / 0.9669 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.642e-05/0.3031, allocations: 4 kB / 1.216 GB, free: 1.145 MB / 0.9669 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001182/0.3032, allocations: 11.98 kB / 1.216 GB, free: 1.133 MB / 0.9669 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.561e-05/0.3033, allocations: 15.92 kB / 1.216 GB, free: 1.117 MB / 0.9669 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.625e-05/0.3033, allocations: 7.984 kB / 1.216 GB, free: 1.109 MB / 0.9669 GB Notification: Performance of sorting global known variables: time 0.000136/0.3035, allocations: 131.2 kB / 1.216 GB, free: 0.9805 MB / 0.9669 GB Notification: Performance of sort global known variables: time 1.7e-07/0.3035, allocations: 3.938 kB / 1.216 GB, free: 0.9766 MB / 0.9669 GB Notification: Performance of remove unused functions: time 0.0003362/0.3038, allocations: 32 kB / 1.216 GB, free: 0.9453 MB / 0.9669 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.001095/0.3049, allocations: 0.9595 MB / 1.217 GB, free: 15.95 MB / 0.9825 GB Notification: Performance of simCode: created initialization part: time 0.0005677/0.3055, allocations: 361.4 kB / 1.217 GB, free: 15.55 MB / 0.9825 GB Notification: Performance of simCode: created event and clocks part: time 3.046e-06/0.3055, allocations: 0 / 1.217 GB, free: 15.55 MB / 0.9825 GB Notification: Performance of simCode: created simulation system equations: time 0.0002554/0.3058, allocations: 207.3 kB / 1.217 GB, free: 15.32 MB / 0.9825 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003569/0.3062, allocations: 23.92 kB / 1.217 GB, free: 15.3 MB / 0.9825 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002724/0.3089, allocations: 2.109 MB / 1.219 GB, free: 13.05 MB / 0.9825 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003118/0.3092, allocations: 0.708 MB / 1.22 GB, free: 12.31 MB / 0.9825 GB Notification: Performance of simCode: alias equations: time 8.46e-05/0.3093, allocations: 20.53 kB / 1.22 GB, free: 12.29 MB / 0.9825 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001008/0.3094, allocations: 39.42 kB / 1.22 GB, free: 12.25 MB / 0.9825 GB Notification: Performance of SimCode: time 5.21e-07/0.3094, allocations: 0 / 1.22 GB, free: 12.25 MB / 0.9825 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02446/0.3339, allocations: 3.719 MB / 1.224 GB, free: 8.652 MB / 0.9825 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.08/8.414, allocations: 11.39 kB / 1.224 GB, free: 8.645 MB / 0.9825 GB (rm -f Buildings_latest_Buildings.Utilities.IO.Files.Examples.CSVWriter.pipe ; mkfifo Buildings_latest_Buildings.Utilities.IO.Files.Examples.CSVWriter.pipe ; head -c 1048576 < Buildings_latest_Buildings.Utilities.IO.Files.Examples.CSVWriter.pipe >> ../files/Buildings_latest_Buildings.Utilities.IO.Files.Examples.CSVWriter.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_latest_Buildings.Utilities.IO.Files.Examples.CSVWriter_res.mat --tempDir=temp_Buildings_latest_Buildings_Utilities_IO_Files_Examples_CSVWriter_fmu --startTime=-1.21 --stopTime=10 --timeout=50 --tolerance=1e-06 Buildings_latest_Buildings_Utilities_IO_Files_Examples_CSVWriter.fmu > Buildings_latest_Buildings.Utilities.IO.Files.Examples.CSVWriter.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Utilities.IO.Files.Examples.CSVWriter_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Utilities_IO_Files_Examples_CSVWriter.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Utilities.IO.Files.Examples.CSVWriter.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches