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.0009101/0.0009101, allocations: 91.84 kB / 15.36 MB, free: 0.7383 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.00544/0.00544, allocations: 169.6 kB / 16.26 MB, free: 6.613 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.33/1.33, allocations: 223.3 MB / 240.3 MB, free: 5.359 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.5/2.5, allocations: 462.6 MB / 0.7364 GB, free: 15.64 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.0003002/0.0003002, allocations: 14.36 kB / 0.9029 GB, free: 36.46 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2357/0.236, allocations: 159.6 MB / 1.059 GB, free: 4.938 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.IO.Files.Examples.CSVWriter): time 0.001654/0.2377, allocations: 1.338 MB / 1.06 GB, free: 3.59 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.0008379/0.2386, allocations: 0.6157 MB / 1.061 GB, free: 2.969 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.635e-05/0.2386, allocations: 4 kB / 1.061 GB, free: 2.965 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 0.0001217/0.2388, allocations: 19.86 kB / 1.061 GB, free: 2.945 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 0.0001651/0.239, allocations: 35.81 kB / 1.061 GB, free: 2.91 MB / 0.8106 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003505/0.2393, allocations: 107.8 kB / 1.061 GB, free: 2.805 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 0.000155/0.2395, allocations: 155.6 kB / 1.061 GB, free: 2.652 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001062/0.2396, allocations: 29.11 kB / 1.061 GB, free: 2.625 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001188/0.2397, allocations: 79.75 kB / 1.061 GB, free: 2.547 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001093/0.2398, allocations: 75.72 kB / 1.061 GB, free: 2.473 MB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 2.637e-05/0.2399, allocations: 4 kB / 1.061 GB, free: 2.469 MB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 5.651e-05/0.2399, allocations: 20 kB / 1.061 GB, free: 2.449 MB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 6.541e-05/0.24, allocations: 23.91 kB / 1.061 GB, free: 2.426 MB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 8.68e-05/0.2401, allocations: 97.34 kB / 1.061 GB, free: 2.324 MB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 0.000185/0.2403, allocations: 163.6 kB / 1.061 GB, free: 2.164 MB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 4.509e-06/0.2403, allocations: 4 kB / 1.061 GB, free: 2.16 MB / 0.8106 GB Notification: Performance of FrontEnd: time 1.372e-06/0.2403, allocations: 0 / 1.061 GB, free: 2.16 MB / 0.8106 GB Notification: Performance of Transformations before backend: time 3.497e-06/0.2403, allocations: 0 / 1.061 GB, free: 2.16 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.000534/0.2408, allocations: 0.5135 MB / 1.062 GB, free: 1.574 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 3.688e-05/0.2409, allocations: 15.97 kB / 1.062 GB, free: 1.559 MB / 0.8106 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.368e-05/0.2409, allocations: 42.75 kB / 1.062 GB, free: 1.508 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.319e-05/0.241, allocations: 16.75 kB / 1.062 GB, free: 1.492 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002412/0.2412, allocations: 232.2 kB / 1.062 GB, free: 1.227 MB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.563e-05/0.2413, allocations: 12.38 kB / 1.062 GB, free: 1.215 MB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.715e-05/0.2413, allocations: 12.38 kB / 1.062 GB, free: 1.203 MB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002458/0.2415, allocations: 129.4 kB / 1.062 GB, free: 1.07 MB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.291e-06/0.2416, allocations: 0 / 1.062 GB, free: 1.07 MB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.404e-05/0.2416, allocations: 0 / 1.062 GB, free: 1.07 MB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.368e-06/0.2416, allocations: 8 kB / 1.062 GB, free: 1.062 MB / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000197/0.2418, allocations: 75.94 kB / 1.062 GB, free: 0.9883 MB / 0.8106 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005644/0.2424, allocations: 428.5 kB / 1.063 GB, free: 0.5195 MB / 0.8106 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001749/0.2425, allocations: 90.53 kB / 1.063 GB, free: 432 kB / 0.8106 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000151/0.2427, allocations: 80.81 kB / 1.063 GB, free: 348 kB / 0.8106 GB Notification: Performance of preOpt evalFunc (simulation): time 2.139e-05/0.2427, allocations: 4 kB / 1.063 GB, free: 344 kB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002339/0.243, allocations: 178.8 kB / 1.063 GB, free: 140 kB / 0.8106 GB Notification: Performance of pre-optimization done (n=10): time 1.413e-06/0.243, allocations: 0 / 1.063 GB, free: 140 kB / 0.8106 GB Notification: Performance of matching and sorting (n=10): time 0.0006822/0.2437, allocations: 376.8 kB / 1.064 GB, free: 15.75 MB / 0.8262 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.451e-05/0.2438, allocations: 162.2 kB / 1.064 GB, free: 15.55 MB / 0.8262 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000143/0.2439, allocations: 179.1 kB / 1.064 GB, free: 15.37 MB / 0.8262 GB Notification: Performance of collectPreVariables (initialization): time 2.294e-05/0.2439, allocations: 33.7 kB / 1.064 GB, free: 15.33 MB / 0.8262 GB Notification: Performance of collectInitialEqns (initialization): time 5.912e-05/0.244, allocations: 108.4 kB / 1.064 GB, free: 15.21 MB / 0.8262 GB Notification: Performance of collectInitialBindings (initialization): time 3.114e-05/0.244, allocations: 31.55 kB / 1.064 GB, free: 15.18 MB / 0.8262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.365e-05/0.2441, allocations: 21.72 kB / 1.064 GB, free: 15.16 MB / 0.8262 GB Notification: Performance of setup shared object (initialization): time 9.1e-05/0.2442, allocations: 326.8 kB / 1.064 GB, free: 14.83 MB / 0.8262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001317/0.2443, allocations: 55.95 kB / 1.064 GB, free: 14.77 MB / 0.8262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001567/0.2445, allocations: 113.7 kB / 1.065 GB, free: 14.64 MB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003166/0.2448, allocations: 320.9 kB / 1.065 GB, free: 14.27 MB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.314e-06/0.2448, allocations: 0 / 1.065 GB, free: 14.27 MB / 0.8262 GB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0004923/0.2453, allocations: 348.1 kB / 1.065 GB, free: 13.89 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 6.639e-05/0.2454, allocations: 122.8 kB / 1.065 GB, free: 13.75 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.448e-06/0.2454, allocations: 0 / 1.065 GB, free: 13.75 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.319e-05/0.2454, allocations: 4 kB / 1.065 GB, free: 13.75 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.966e-05/0.2455, allocations: 24.17 kB / 1.065 GB, free: 13.72 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.26e-06/0.2455, allocations: 4 kB / 1.065 GB, free: 13.72 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001001/0.2456, allocations: 20.17 kB / 1.065 GB, free: 13.7 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.956e-05/0.2457, allocations: 12 kB / 1.065 GB, free: 13.69 MB / 0.8262 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.0001327/0.2458, allocations: 193.1 kB / 1.066 GB, free: 13.48 MB / 0.8262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.768e-05/0.2459, allocations: 27.73 kB / 1.066 GB, free: 13.45 MB / 0.8262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.981e-05/0.2459, allocations: 21.39 kB / 1.066 GB, free: 13.43 MB / 0.8262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.793e-06/0.2459, allocations: 0 / 1.066 GB, free: 13.43 MB / 0.8262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.045e-06/0.2459, allocations: 4 kB / 1.066 GB, free: 13.43 MB / 0.8262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.585e-06/0.2459, allocations: 0 / 1.066 GB, free: 13.43 MB / 0.8262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006519/0.2466, allocations: 0.5953 MB / 1.066 GB, free: 12.76 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.543e-06/0.2466, allocations: 0 / 1.066 GB, free: 12.76 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.243e-05/0.2467, allocations: 12 kB / 1.066 GB, free: 12.75 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.358e-06/0.2467, allocations: 4 kB / 1.066 GB, free: 12.75 MB / 0.8262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.751e-05/0.2467, allocations: 7.984 kB / 1.066 GB, free: 12.74 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.253e-06/0.2467, allocations: 0 / 1.066 GB, free: 12.74 MB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.284e-06/0.2467, allocations: 3.938 kB / 1.066 GB, free: 12.73 MB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005031/0.2472, allocations: 414.6 kB / 1.067 GB, free: 12.3 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 4.028e-05/0.2473, allocations: 89 kB / 1.067 GB, free: 12.2 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.214e-05/0.2473, allocations: 8 kB / 1.067 GB, free: 12.19 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001132/0.2474, allocations: 8 kB / 1.067 GB, free: 12.18 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.838e-05/0.2475, allocations: 11.92 kB / 1.067 GB, free: 12.17 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.886e-05/0.2475, allocations: 16 kB / 1.067 GB, free: 12.15 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 8.828e-05/0.2476, allocations: 123.2 kB / 1.067 GB, free: 12.03 MB / 0.8262 GB Notification: Performance of sort global known variables: time 1.3e-07/0.2476, allocations: 0 / 1.067 GB, free: 12.03 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.000272/0.2479, allocations: 43.91 kB / 1.067 GB, free: 11.99 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.000824/0.2487, allocations: 0.9622 MB / 1.068 GB, free: 10.99 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.0004316/0.2491, allocations: 373.7 kB / 1.068 GB, free: 10.58 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 1.834e-06/0.2491, allocations: 0 / 1.068 GB, free: 10.58 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 0.0002229/0.2494, allocations: 210.8 kB / 1.068 GB, free: 10.35 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002833/0.2497, allocations: 23.94 kB / 1.068 GB, free: 10.32 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002193/0.2519, allocations: 2.148 MB / 1.071 GB, free: 8.031 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002274/0.2521, allocations: 0.7083 MB / 1.071 GB, free: 7.297 MB / 0.8262 GB Notification: Performance of simCode: alias equations: time 6.026e-05/0.2522, allocations: 20.53 kB / 1.071 GB, free: 7.273 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.511e-05/0.2522, allocations: 35.42 kB / 1.071 GB, free: 7.238 MB / 0.8262 GB Notification: Performance of SimCode: time 2.51e-07/0.2522, allocations: 0 / 1.071 GB, free: 7.238 MB / 0.8262 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.4522/0.7044, allocations: 3.357 MB / 1.075 GB, free: 4.031 MB / 0.8262 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000175/0.7046, allocations: 210.8 kB / 1.075 GB, free: 3.773 MB / 0.8262 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.122/2.826, allocations: 3.938 kB / 1.075 GB, free: 3.77 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