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.0-master/package.mo", uses=false) Using package Buildings with version 11.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-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.001289/0.001289, allocations: 111.3 kB / 15.23 MB, free: 0.6367 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.001301/0.001301, allocations: 193.7 kB / 16.14 MB, free: 6.727 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.303/1.303, allocations: 222.9 MB / 239.8 MB, free: 4.582 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.601/2.601, allocations: 461.8 MB / 0.7342 GB, free: 14.17 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001226/0.001226, allocations: 61.22 kB / 0.8985 GB, free: 36.95 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3013/0.3026, allocations: 157.4 MB / 1.052 GB, free: 8.191 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.IO.Files.Examples.CSVWriter): time 0.003052/0.3057, allocations: 1.677 MB / 1.054 GB, free: 6.5 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.0009296/0.3066, allocations: 0.6312 MB / 1.054 GB, free: 5.863 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.72e-05/0.3067, allocations: 4 kB / 1.054 GB, free: 5.859 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 0.0001534/0.3068, allocations: 19.86 kB / 1.054 GB, free: 5.84 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 0.000176/0.307, allocations: 39.77 kB / 1.055 GB, free: 5.801 MB / 0.8106 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003213/0.3074, allocations: 103.9 kB / 1.055 GB, free: 5.699 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 0.000156/0.3075, allocations: 159.6 kB / 1.055 GB, free: 5.543 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001092/0.3077, allocations: 21.11 kB / 1.055 GB, free: 5.523 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001326/0.3078, allocations: 79.75 kB / 1.055 GB, free: 5.445 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001139/0.3079, allocations: 83.72 kB / 1.055 GB, free: 5.363 MB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 3.621e-05/0.308, allocations: 8 kB / 1.055 GB, free: 5.355 MB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 6.576e-05/0.308, allocations: 20 kB / 1.055 GB, free: 5.336 MB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 8.167e-05/0.3081, allocations: 35.83 kB / 1.055 GB, free: 5.301 MB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 8.305e-05/0.3082, allocations: 63.72 kB / 1.055 GB, free: 5.238 MB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 0.0001987/0.3084, allocations: 167.7 kB / 1.055 GB, free: 5.074 MB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 3.888e-06/0.3084, allocations: 0 / 1.055 GB, free: 5.074 MB / 0.8106 GB Notification: Performance of FrontEnd: time 9.21e-07/0.3084, allocations: 0 / 1.055 GB, free: 5.074 MB / 0.8106 GB Notification: Performance of Transformations before backend: time 5.02e-06/0.3084, allocations: 0 / 1.055 GB, free: 5.074 MB / 0.8106 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.0006276/0.3091, allocations: 0.5602 MB / 1.056 GB, free: 4.441 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 3.522e-05/0.3091, allocations: 11.97 kB / 1.056 GB, free: 4.43 MB / 0.8106 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.953e-05/0.3092, allocations: 38.69 kB / 1.056 GB, free: 4.383 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.663e-05/0.3092, allocations: 24.75 kB / 1.056 GB, free: 4.359 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002638/0.3095, allocations: 228.2 kB / 1.056 GB, free: 4.098 MB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.446e-05/0.3095, allocations: 8.375 kB / 1.056 GB, free: 4.09 MB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.961e-05/0.3095, allocations: 16.38 kB / 1.056 GB, free: 4.074 MB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002543/0.3098, allocations: 113.5 kB / 1.056 GB, free: 3.957 MB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.813e-06/0.3098, allocations: 4 kB / 1.056 GB, free: 3.953 MB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.586e-05/0.3098, allocations: 4 kB / 1.056 GB, free: 3.949 MB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.987e-06/0.3099, allocations: 0 / 1.056 GB, free: 3.949 MB / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001892/0.31, allocations: 71.94 kB / 1.056 GB, free: 3.879 MB / 0.8106 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005968/0.3107, allocations: 420.5 kB / 1.057 GB, free: 3.418 MB / 0.8106 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001885/0.3109, allocations: 86.53 kB / 1.057 GB, free: 3.324 MB / 0.8106 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.00015/0.311, allocations: 76.81 kB / 1.057 GB, free: 3.246 MB / 0.8106 GB Notification: Performance of preOpt evalFunc (simulation): time 2.149e-05/0.311, allocations: 0 / 1.057 GB, free: 3.246 MB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002907/0.3113, allocations: 174.7 kB / 1.057 GB, free: 3.051 MB / 0.8106 GB Notification: Performance of pre-optimization done (n=10): time 1.623e-06/0.3114, allocations: 4 kB / 1.057 GB, free: 3.047 MB / 0.8106 GB Notification: Performance of matching and sorting (n=10): time 0.0006967/0.3121, allocations: 352.9 kB / 1.057 GB, free: 2.684 MB / 0.8106 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.663e-05/0.3122, allocations: 170.2 kB / 1.058 GB, free: 2.48 MB / 0.8106 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001502/0.3123, allocations: 179.1 kB / 1.058 GB, free: 2.297 MB / 0.8106 GB Notification: Performance of collectPreVariables (initialization): time 2.344e-05/0.3123, allocations: 29.98 kB / 1.058 GB, free: 2.262 MB / 0.8106 GB Notification: Performance of collectInitialEqns (initialization): time 6.869e-05/0.3124, allocations: 112.3 kB / 1.058 GB, free: 2.145 MB / 0.8106 GB Notification: Performance of collectInitialBindings (initialization): time 2.666e-05/0.3124, allocations: 27.56 kB / 1.058 GB, free: 2.117 MB / 0.8106 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.694e-05/0.3125, allocations: 49.64 kB / 1.058 GB, free: 2.062 MB / 0.8106 GB Notification: Performance of setup shared object (initialization): time 0.0001024/0.3126, allocations: 334.7 kB / 1.058 GB, free: 1.727 MB / 0.8106 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001336/0.3128, allocations: 47.95 kB / 1.058 GB, free: 1.68 MB / 0.8106 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001538/0.3129, allocations: 101.5 kB / 1.058 GB, free: 1.559 MB / 0.8106 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003192/0.3133, allocations: 320.9 kB / 1.059 GB, free: 1.184 MB / 0.8106 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.405e-06/0.3133, allocations: 0 / 1.059 GB, free: 1.184 MB / 0.8106 GB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0005134/0.3138, allocations: 336.2 kB / 1.059 GB, free: 0.8242 MB / 0.8106 GB Notification: Performance of prepare postOptimizeDAE: time 7.234e-05/0.3139, allocations: 114.8 kB / 1.059 GB, free: 0.6875 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.814e-06/0.3139, allocations: 12.23 kB / 1.059 GB, free: 0.6758 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.311e-05/0.3139, allocations: 4 kB / 1.059 GB, free: 0.6719 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001096/0.314, allocations: 23.91 kB / 1.059 GB, free: 0.6484 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.084e-06/0.314, allocations: 0 / 1.059 GB, free: 0.6484 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001/0.3141, allocations: 19.91 kB / 1.059 GB, free: 0.6289 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.99e-05/0.3142, allocations: 8 kB / 1.059 GB, free: 0.6211 MB / 0.8106 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.0001489/0.3143, allocations: 201.1 kB / 1.059 GB, free: 412 kB / 0.8106 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.507e-05/0.3144, allocations: 19.81 kB / 1.059 GB, free: 392 kB / 0.8106 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.359e-05/0.3144, allocations: 21.41 kB / 1.059 GB, free: 372 kB / 0.8106 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.833e-06/0.3144, allocations: 0 / 1.059 GB, free: 372 kB / 0.8106 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.967e-06/0.3144, allocations: 0 / 1.059 GB, free: 372 kB / 0.8106 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.805e-06/0.3144, allocations: 0 / 1.059 GB, free: 372 kB / 0.8106 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006946/0.3151, allocations: 0.5875 MB / 1.06 GB, free: 15.71 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.094e-06/0.3151, allocations: 0 / 1.06 GB, free: 15.71 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.544e-05/0.3152, allocations: 11.98 kB / 1.06 GB, free: 15.7 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.813e-06/0.3152, allocations: 0 / 1.06 GB, free: 15.7 MB / 0.8262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.804e-05/0.3152, allocations: 8 kB / 1.06 GB, free: 15.69 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.815e-06/0.3152, allocations: 4 kB / 1.06 GB, free: 15.68 MB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.318e-06/0.3153, allocations: 7.938 kB / 1.06 GB, free: 15.68 MB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000517/0.3158, allocations: 398.6 kB / 1.06 GB, free: 15.26 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 4.464e-05/0.3158, allocations: 92.91 kB / 1.06 GB, free: 15.15 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.797e-05/0.3159, allocations: 8 kB / 1.06 GB, free: 15.14 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001138/0.316, allocations: 11.94 kB / 1.06 GB, free: 15.13 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.266e-05/0.316, allocations: 11.92 kB / 1.06 GB, free: 15.12 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.937e-05/0.3161, allocations: 12 kB / 1.06 GB, free: 15.11 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 8.699e-05/0.3162, allocations: 127.2 kB / 1.061 GB, free: 14.98 MB / 0.8262 GB Notification: Performance of sort global known variables: time 1.2e-07/0.3162, allocations: 0 / 1.061 GB, free: 14.98 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.0002854/0.3165, allocations: 36 kB / 1.061 GB, free: 14.95 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.0009186/0.3174, allocations: 0.9513 MB / 1.062 GB, free: 13.96 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.0004633/0.3179, allocations: 365.6 kB / 1.062 GB, free: 13.55 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 4.218e-06/0.3179, allocations: 4 kB / 1.062 GB, free: 13.55 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 0.0002275/0.3181, allocations: 198.8 kB / 1.062 GB, free: 13.33 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003075/0.3184, allocations: 29.47 kB / 1.062 GB, free: 13.3 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002306/0.3207, allocations: 2.136 MB / 1.064 GB, free: 11.02 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002389/0.321, allocations: 0.7043 MB / 1.065 GB, free: 10.29 MB / 0.8262 GB Notification: Performance of simCode: alias equations: time 6.221e-05/0.3211, allocations: 20.53 kB / 1.065 GB, free: 10.27 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.185e-05/0.3211, allocations: 35.42 kB / 1.065 GB, free: 10.24 MB / 0.8262 GB Notification: Performance of SimCode: time 2.6e-07/0.3211, allocations: 0 / 1.065 GB, free: 10.24 MB / 0.8262 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01327/0.3344, allocations: 3.426 MB / 1.068 GB, free: 6.93 MB / 0.8262 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001735/0.3346, allocations: 212.5 kB / 1.069 GB, free: 6.668 MB / 0.8262 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.776/2.111, allocations: 0 / 1.069 GB, free: 6.668 MB / 0.8262 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