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.007703/0.007702, allocations: 101.3 kB / 15.73 MB, free: 5.586 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.00166/0.00166, allocations: 189.1 kB / 16.67 MB, free: 5.523 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.326/1.326, allocations: 222.9 MB / 240.4 MB, free: 15.15 MB / 206.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.4/2.4, allocations: 437 MB / 0.7105 GB, free: 4.379 MB / 0.5762 GB Notification: Performance of FrontEnd - loaded program: time 0.001766/0.001766, allocations: 63.89 kB / 1.018 GB, free: 9.91 MB / 0.795 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7747/0.7765, allocations: 151.6 MB / 1.166 GB, free: 3.797 MB / 0.8887 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.IO.Files.Examples.CSVWriter): time 0.002683/0.7792, allocations: 1.621 MB / 1.168 GB, free: 2.168 MB / 0.8887 GB Notification: Performance of NFInst.instExpressions: time 0.0008649/0.7801, allocations: 0.6078 MB / 1.168 GB, free: 1.555 MB / 0.8887 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.127e-05/0.7801, allocations: 4 kB / 1.168 GB, free: 1.551 MB / 0.8887 GB Notification: Performance of NFTyping.typeComponents: time 0.000137/0.7803, allocations: 19.8 kB / 1.168 GB, free: 1.531 MB / 0.8887 GB Notification: Performance of NFTyping.typeBindings: time 0.0001865/0.7805, allocations: 45.12 kB / 1.168 GB, free: 1.488 MB / 0.8887 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003544/0.7808, allocations: 119.8 kB / 1.169 GB, free: 1.371 MB / 0.8887 GB Notification: Performance of NFFlatten.flatten: time 0.0002175/0.7811, allocations: 191.6 kB / 1.169 GB, free: 1.184 MB / 0.8887 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001056/0.7812, allocations: 37.09 kB / 1.169 GB, free: 1.145 MB / 0.8887 GB Notification: Performance of NFEvalConstants.evaluate: time 0.000128/0.7813, allocations: 83.75 kB / 1.169 GB, free: 1.062 MB / 0.8887 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001232/0.7814, allocations: 83.72 kB / 1.169 GB, free: 0.9805 MB / 0.8887 GB Notification: Performance of NFPackage.collectConstants: time 3.795e-05/0.7815, allocations: 12 kB / 1.169 GB, free: 0.9688 MB / 0.8887 GB Notification: Performance of NFFlatten.collectFunctions: time 6.627e-05/0.7816, allocations: 28 kB / 1.169 GB, free: 0.9414 MB / 0.8887 GB Notification: Performance of NFScalarize.scalarize: time 7.877e-05/0.7816, allocations: 27.89 kB / 1.169 GB, free: 0.9141 MB / 0.8887 GB Notification: Performance of NFVerifyModel.verify: time 8.557e-05/0.7817, allocations: 71.67 kB / 1.169 GB, free: 0.8438 MB / 0.8887 GB Notification: Performance of NFConvertDAE.convert: time 0.0002151/0.782, allocations: 173.7 kB / 1.169 GB, free: 0.6758 MB / 0.8887 GB Notification: Performance of FrontEnd - DAE generated: time 6.252e-06/0.782, allocations: 3.984 kB / 1.169 GB, free: 0.6719 MB / 0.8887 GB Notification: Performance of FrontEnd: time 1.332e-06/0.782, allocations: 4 kB / 1.169 GB, free: 0.668 MB / 0.8887 GB Notification: Performance of Transformations before backend: time 5.15e-06/0.782, allocations: 4 kB / 1.169 GB, free: 0.6641 MB / 0.8887 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.0006148/0.7826, allocations: 0.5408 MB / 1.17 GB, free: 52 kB / 0.8887 GB Notification: Performance of prepare preOptimizeDAE: time 3.682e-05/0.7827, allocations: 8.922 kB / 1.17 GB, free: 44 kB / 0.8887 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.806e-05/0.7827, allocations: 42.78 kB / 1.17 GB, free: 15.99 MB / 0.9044 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.205e-05/0.7828, allocations: 20.75 kB / 1.17 GB, free: 15.97 MB / 0.9044 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002856/0.7831, allocations: 244 kB / 1.17 GB, free: 15.7 MB / 0.9044 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.607e-05/0.7831, allocations: 16.38 kB / 1.17 GB, free: 15.68 MB / 0.9044 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.976e-05/0.7831, allocations: 8.375 kB / 1.17 GB, free: 15.67 MB / 0.9044 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002592/0.7834, allocations: 121.5 kB / 1.17 GB, free: 15.55 MB / 0.9044 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.645e-06/0.7834, allocations: 0 / 1.17 GB, free: 15.55 MB / 0.9044 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.584e-05/0.7834, allocations: 4 kB / 1.17 GB, free: 15.54 MB / 0.9044 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.927e-06/0.7834, allocations: 0 / 1.17 GB, free: 15.54 MB / 0.9044 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000179/0.7836, allocations: 71.94 kB / 1.17 GB, free: 15.47 MB / 0.9044 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005843/0.7842, allocations: 416.6 kB / 1.171 GB, free: 15.02 MB / 0.9044 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001763/0.7844, allocations: 86.53 kB / 1.171 GB, free: 14.92 MB / 0.9044 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001368/0.7845, allocations: 76.75 kB / 1.171 GB, free: 14.84 MB / 0.9044 GB Notification: Performance of preOpt evalFunc (simulation): time 2.541e-05/0.7846, allocations: 4 kB / 1.171 GB, free: 14.84 MB / 0.9044 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002392/0.7848, allocations: 182.8 kB / 1.171 GB, free: 14.64 MB / 0.9044 GB Notification: Performance of pre-optimization done (n=10): time 1.693e-06/0.7848, allocations: 4 kB / 1.171 GB, free: 14.63 MB / 0.9044 GB Notification: Performance of matching and sorting (n=10): time 0.0006585/0.7855, allocations: 352.8 kB / 1.171 GB, free: 14.27 MB / 0.9044 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.379e-05/0.7856, allocations: 166.2 kB / 1.171 GB, free: 14.07 MB / 0.9044 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001417/0.7857, allocations: 171.8 kB / 1.172 GB, free: 13.89 MB / 0.9044 GB Notification: Performance of collectPreVariables (initialization): time 2.089e-05/0.7857, allocations: 33.7 kB / 1.172 GB, free: 13.85 MB / 0.9044 GB Notification: Performance of collectInitialEqns (initialization): time 6.174e-05/0.7858, allocations: 116.3 kB / 1.172 GB, free: 13.73 MB / 0.9044 GB Notification: Performance of collectInitialBindings (initialization): time 2.473e-05/0.7858, allocations: 23.66 kB / 1.172 GB, free: 13.71 MB / 0.9044 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.434e-05/0.7859, allocations: 37.7 kB / 1.172 GB, free: 13.66 MB / 0.9044 GB Notification: Performance of setup shared object (initialization): time 9.138e-05/0.786, allocations: 330.8 kB / 1.172 GB, free: 13.33 MB / 0.9044 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001252/0.7861, allocations: 47.97 kB / 1.172 GB, free: 13.29 MB / 0.9044 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001497/0.7863, allocations: 110.8 kB / 1.172 GB, free: 13.15 MB / 0.9044 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002958/0.7866, allocations: 312.9 kB / 1.173 GB, free: 12.79 MB / 0.9044 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.355e-06/0.7866, allocations: 0 / 1.173 GB, free: 12.79 MB / 0.9044 GB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0004716/0.7871, allocations: 352.2 kB / 1.173 GB, free: 12.41 MB / 0.9044 GB Notification: Performance of prepare postOptimizeDAE: time 6.537e-05/0.7872, allocations: 118.8 kB / 1.173 GB, free: 12.27 MB / 0.9044 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.751e-06/0.7872, allocations: 0 / 1.173 GB, free: 12.27 MB / 0.9044 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.508e-05/0.7872, allocations: 4 kB / 1.173 GB, free: 12.27 MB / 0.9044 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001131/0.7873, allocations: 19.98 kB / 1.173 GB, free: 12.25 MB / 0.9044 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.739e-06/0.7873, allocations: 4 kB / 1.173 GB, free: 12.24 MB / 0.9044 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.343e-05/0.7874, allocations: 19.81 kB / 1.173 GB, free: 12.22 MB / 0.9044 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.206e-05/0.7875, allocations: 12 kB / 1.173 GB, free: 12.21 MB / 0.9044 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.0001383/0.7876, allocations: 201.2 kB / 1.173 GB, free: 11.99 MB / 0.9044 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.156e-05/0.7876, allocations: 15.81 kB / 1.173 GB, free: 11.98 MB / 0.9044 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.467e-05/0.7877, allocations: 13.41 kB / 1.173 GB, free: 11.96 MB / 0.9044 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.556e-06/0.7877, allocations: 4 kB / 1.173 GB, free: 11.96 MB / 0.9044 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.637e-06/0.7877, allocations: 0 / 1.173 GB, free: 11.96 MB / 0.9044 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.539e-06/0.7877, allocations: 3.984 kB / 1.173 GB, free: 11.95 MB / 0.9044 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006764/0.7884, allocations: 0.5878 MB / 1.174 GB, free: 11.3 MB / 0.9044 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.614e-06/0.7884, allocations: 0 / 1.174 GB, free: 11.3 MB / 0.9044 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.481e-05/0.7885, allocations: 19.98 kB / 1.174 GB, free: 11.28 MB / 0.9044 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.525e-06/0.7885, allocations: 4 kB / 1.174 GB, free: 11.27 MB / 0.9044 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.886e-05/0.7885, allocations: 4 kB / 1.174 GB, free: 11.27 MB / 0.9044 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.482e-06/0.7885, allocations: 0 / 1.174 GB, free: 11.27 MB / 0.9044 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.386e-06/0.7885, allocations: 3.938 kB / 1.174 GB, free: 11.27 MB / 0.9044 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005006/0.789, allocations: 402.6 kB / 1.174 GB, free: 10.84 MB / 0.9044 GB Notification: Performance of postOpt removeConstants (simulation): time 3.993e-05/0.7891, allocations: 88.92 kB / 1.174 GB, free: 10.74 MB / 0.9044 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.112e-05/0.7891, allocations: 8 kB / 1.174 GB, free: 10.73 MB / 0.9044 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001128/0.7892, allocations: 12 kB / 1.174 GB, free: 10.72 MB / 0.9044 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.623e-05/0.7893, allocations: 11.92 kB / 1.174 GB, free: 10.71 MB / 0.9044 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.51e-05/0.7893, allocations: 4 kB / 1.174 GB, free: 10.7 MB / 0.9044 GB Notification: Performance of sorting global known variables: time 9.382e-05/0.7894, allocations: 136.8 kB / 1.175 GB, free: 10.57 MB / 0.9044 GB Notification: Performance of sort global known variables: time 1.1e-07/0.7894, allocations: 0 / 1.175 GB, free: 10.57 MB / 0.9044 GB Notification: Performance of remove unused functions: time 0.0002911/0.7897, allocations: 39.94 kB / 1.175 GB, free: 10.53 MB / 0.9044 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.0008689/0.7906, allocations: 0.9541 MB / 1.176 GB, free: 9.543 MB / 0.9044 GB Notification: Performance of simCode: created initialization part: time 0.0004328/0.791, allocations: 365.3 kB / 1.176 GB, free: 9.137 MB / 0.9044 GB Notification: Performance of simCode: created event and clocks part: time 1.934e-06/0.791, allocations: 3.938 kB / 1.176 GB, free: 9.133 MB / 0.9044 GB Notification: Performance of simCode: created simulation system equations: time 0.00021/0.7913, allocations: 210.7 kB / 1.176 GB, free: 8.902 MB / 0.9044 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002929/0.7916, allocations: 31.92 kB / 1.176 GB, free: 8.875 MB / 0.9044 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002269/0.7938, allocations: 2.1 MB / 1.178 GB, free: 6.629 MB / 0.9044 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002261/0.7941, allocations: 0.7158 MB / 1.179 GB, free: 5.887 MB / 0.9044 GB Notification: Performance of simCode: alias equations: time 6.528e-05/0.7942, allocations: 16.55 kB / 1.179 GB, free: 5.871 MB / 0.9044 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.054e-05/0.7942, allocations: 35.42 kB / 1.179 GB, free: 5.836 MB / 0.9044 GB Notification: Performance of SimCode: time 3.7e-07/0.7942, allocations: 0 / 1.179 GB, free: 5.836 MB / 0.9044 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 1.15/1.944, allocations: 3.64 MB / 1.182 GB, free: 2.305 MB / 0.9044 GB Notification: Performance of buildModelFMU: Generate platform static: time 11/12.94, allocations: 9.219 kB / 1.182 GB, free: 2.297 MB / 0.9044 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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_10_Buildings.Utilities.IO.Files.Examples.CSVWriter_res.mat --tempDir=temp_Buildings_10_Buildings_Utilities_IO_Files_Examples_CSVWriter_fmu --startTime=-1.21 --stopTime=10 --timeout=50 --tolerance=1e-06 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.mat","/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