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.001145/0.001145, allocations: 108 kB / 15.61 MB, free: 152 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001108/0.001108, allocations: 195.5 kB / 16.53 MB, free: 6.664 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.275/1.275, allocations: 222.9 MB / 240.2 MB, free: 4.395 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.524/2.524, allocations: 461.9 MB / 0.7346 GB, free: 14.73 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.002217/0.002217, allocations: 67 kB / 0.8992 GB, free: 37.09 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2478/0.25, allocations: 157.4 MB / 1.053 GB, free: 8.285 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.IO.Files.Examples.CSVWriter): time 0.002574/0.2526, allocations: 1.628 MB / 1.054 GB, free: 6.645 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.0008417/0.2535, allocations: 0.6199 MB / 1.055 GB, free: 6.02 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.96e-05/0.2536, allocations: 0 / 1.055 GB, free: 6.02 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 0.000136/0.2537, allocations: 19.8 kB / 1.055 GB, free: 6 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 0.0001793/0.2539, allocations: 39.77 kB / 1.055 GB, free: 5.961 MB / 0.8106 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003507/0.2543, allocations: 123.7 kB / 1.055 GB, free: 5.84 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 0.0001944/0.2545, allocations: 187.6 kB / 1.055 GB, free: 5.656 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 9.847e-05/0.2546, allocations: 33.11 kB / 1.055 GB, free: 5.625 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001197/0.2547, allocations: 83.75 kB / 1.056 GB, free: 5.543 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001124/0.2548, allocations: 83.72 kB / 1.056 GB, free: 5.461 MB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 3.995e-05/0.2549, allocations: 16 kB / 1.056 GB, free: 5.445 MB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 6.388e-05/0.2549, allocations: 31.92 kB / 1.056 GB, free: 5.414 MB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 6.889e-05/0.255, allocations: 23.92 kB / 1.056 GB, free: 5.391 MB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 8.538e-05/0.2551, allocations: 75.64 kB / 1.056 GB, free: 5.316 MB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 0.0002109/0.2553, allocations: 167.7 kB / 1.056 GB, free: 5.152 MB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 4.077e-06/0.2553, allocations: 0 / 1.056 GB, free: 5.152 MB / 0.8106 GB Notification: Performance of FrontEnd: time 1.152e-06/0.2553, allocations: 4 kB / 1.056 GB, free: 5.148 MB / 0.8106 GB Notification: Performance of Transformations before backend: time 6.543e-06/0.2553, allocations: 4 kB / 1.056 GB, free: 5.145 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.0005664/0.2559, allocations: 0.5485 MB / 1.056 GB, free: 4.523 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 3.131e-05/0.256, allocations: 8.625 kB / 1.056 GB, free: 4.516 MB / 0.8106 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.804e-05/0.256, allocations: 38.75 kB / 1.057 GB, free: 4.469 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.929e-05/0.256, allocations: 20.75 kB / 1.057 GB, free: 4.449 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002444/0.2563, allocations: 232.2 kB / 1.057 GB, free: 4.184 MB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.313e-05/0.2563, allocations: 8.375 kB / 1.057 GB, free: 4.176 MB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.618e-05/0.2564, allocations: 12.38 kB / 1.057 GB, free: 4.164 MB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002354/0.2566, allocations: 125.5 kB / 1.057 GB, free: 4.035 MB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.474e-06/0.2566, allocations: 0 / 1.057 GB, free: 4.035 MB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.35e-05/0.2566, allocations: 0 / 1.057 GB, free: 4.035 MB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.15e-06/0.2566, allocations: 4 kB / 1.057 GB, free: 4.031 MB / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001772/0.2568, allocations: 67.94 kB / 1.057 GB, free: 3.965 MB / 0.8106 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005431/0.2574, allocations: 420.5 kB / 1.057 GB, free: 3.504 MB / 0.8106 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001692/0.2576, allocations: 90.53 kB / 1.057 GB, free: 3.406 MB / 0.8106 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001455/0.2577, allocations: 72.81 kB / 1.058 GB, free: 3.332 MB / 0.8106 GB Notification: Performance of preOpt evalFunc (simulation): time 2.241e-05/0.2577, allocations: 11.97 kB / 1.058 GB, free: 3.32 MB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002435/0.258, allocations: 178.8 kB / 1.058 GB, free: 3.121 MB / 0.8106 GB Notification: Performance of pre-optimization done (n=10): time 1.403e-06/0.258, allocations: 0 / 1.058 GB, free: 3.121 MB / 0.8106 GB Notification: Performance of matching and sorting (n=10): time 0.0006251/0.2586, allocations: 353.2 kB / 1.058 GB, free: 2.758 MB / 0.8106 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.338e-05/0.2587, allocations: 162.2 kB / 1.058 GB, free: 2.562 MB / 0.8106 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001371/0.2589, allocations: 179.9 kB / 1.058 GB, free: 2.379 MB / 0.8106 GB Notification: Performance of collectPreVariables (initialization): time 2.15e-05/0.2589, allocations: 37.64 kB / 1.058 GB, free: 2.336 MB / 0.8106 GB Notification: Performance of collectInitialEqns (initialization): time 5.58e-05/0.2589, allocations: 112.4 kB / 1.059 GB, free: 2.219 MB / 0.8106 GB Notification: Performance of collectInitialBindings (initialization): time 2.567e-05/0.259, allocations: 31.55 kB / 1.059 GB, free: 2.188 MB / 0.8106 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.377e-05/0.259, allocations: 37.7 kB / 1.059 GB, free: 2.145 MB / 0.8106 GB Notification: Performance of setup shared object (initialization): time 8.921e-05/0.2591, allocations: 326.8 kB / 1.059 GB, free: 1.816 MB / 0.8106 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001272/0.2593, allocations: 47.97 kB / 1.059 GB, free: 1.77 MB / 0.8106 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001524/0.2594, allocations: 110.8 kB / 1.059 GB, free: 1.637 MB / 0.8106 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002985/0.2597, allocations: 316.9 kB / 1.059 GB, free: 1.266 MB / 0.8106 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.235e-06/0.2597, allocations: 0 / 1.059 GB, free: 1.266 MB / 0.8106 GB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0004782/0.2602, allocations: 344.4 kB / 1.06 GB, free: 0.8984 MB / 0.8106 GB Notification: Performance of prepare postOptimizeDAE: time 6.509e-05/0.2603, allocations: 122.8 kB / 1.06 GB, free: 0.7539 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.639e-06/0.2603, allocations: 3.938 kB / 1.06 GB, free: 0.75 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (initialization): time 9.928e-06/0.2603, allocations: 7.938 kB / 1.06 GB, free: 0.7422 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.183e-05/0.2604, allocations: 15.98 kB / 1.06 GB, free: 0.7266 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.66e-06/0.2604, allocations: 4 kB / 1.06 GB, free: 0.7227 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.281e-05/0.2605, allocations: 11.91 kB / 1.06 GB, free: 0.7109 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.03e-05/0.2606, allocations: 15.98 kB / 1.06 GB, free: 0.6953 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.0001331/0.2607, allocations: 203.2 kB / 1.06 GB, free: 488 kB / 0.8106 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.258e-05/0.2607, allocations: 15.81 kB / 1.06 GB, free: 472 kB / 0.8106 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.847e-05/0.2608, allocations: 17.39 kB / 1.06 GB, free: 456 kB / 0.8106 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.674e-06/0.2608, allocations: 0 / 1.06 GB, free: 456 kB / 0.8106 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.014e-06/0.2608, allocations: 0 / 1.06 GB, free: 456 kB / 0.8106 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.445e-06/0.2608, allocations: 4 kB / 1.06 GB, free: 452 kB / 0.8106 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006479/0.2614, allocations: 0.5797 MB / 1.061 GB, free: 15.79 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.493e-06/0.2615, allocations: 0 / 1.061 GB, free: 15.79 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.392e-05/0.2615, allocations: 19.98 kB / 1.061 GB, free: 15.77 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.577e-06/0.2615, allocations: 4 kB / 1.061 GB, free: 15.77 MB / 0.8262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.682e-05/0.2616, allocations: 7.984 kB / 1.061 GB, free: 15.76 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.242e-06/0.2616, allocations: 0 / 1.061 GB, free: 15.76 MB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.866e-06/0.2616, allocations: 3.938 kB / 1.061 GB, free: 15.76 MB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004927/0.2621, allocations: 406.5 kB / 1.061 GB, free: 15.33 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 3.73e-05/0.2621, allocations: 92.92 kB / 1.061 GB, free: 15.22 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.211e-05/0.2622, allocations: 4 kB / 1.061 GB, free: 15.22 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001113/0.2623, allocations: 15.98 kB / 1.061 GB, free: 15.2 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.786e-05/0.2623, allocations: 11.92 kB / 1.061 GB, free: 15.19 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.536e-05/0.2623, allocations: 7.984 kB / 1.061 GB, free: 15.18 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 8.773e-05/0.2624, allocations: 131.5 kB / 1.061 GB, free: 15.05 MB / 0.8262 GB Notification: Performance of sort global known variables: time 1.01e-07/0.2624, allocations: 0 / 1.061 GB, free: 15.05 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.0002688/0.2627, allocations: 36 kB / 1.061 GB, free: 15.02 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.0007961/0.2635, allocations: 0.9477 MB / 1.062 GB, free: 14.04 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.0004291/0.264, allocations: 373.4 kB / 1.063 GB, free: 13.62 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 1.443e-06/0.264, allocations: 0 / 1.063 GB, free: 13.62 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 0.0002168/0.2642, allocations: 194.8 kB / 1.063 GB, free: 13.41 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002706/0.2645, allocations: 41.52 kB / 1.063 GB, free: 13.37 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002114/0.2666, allocations: 2.097 MB / 1.065 GB, free: 11.13 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002148/0.2668, allocations: 0.708 MB / 1.066 GB, free: 10.39 MB / 0.8262 GB Notification: Performance of simCode: alias equations: time 5.67e-05/0.2669, allocations: 24.52 kB / 1.066 GB, free: 10.37 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.42e-05/0.2669, allocations: 43.42 kB / 1.066 GB, free: 10.33 MB / 0.8262 GB Notification: Performance of SimCode: time 3.21e-07/0.2669, allocations: 0 / 1.066 GB, free: 10.33 MB / 0.8262 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 3.152/3.419, allocations: 3.587 MB / 1.069 GB, free: 6.832 MB / 0.8262 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.209/11.63, allocations: 14.91 kB / 1.069 GB, free: 6.82 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