Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_11_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.1.0-maint.11.x/package.mo", uses=false) Using package Buildings with version 11.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-maint.11.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_11_Buildings_Utilities_IO_Files_Examples_CSVWriter",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Utilities.IO.Files.Examples.CSVWriter,fileNamePrefix="Buildings_11_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.006466/0.006466, allocations: 103.6 kB / 15.74 MB, free: 6.449 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.001752/0.001752, allocations: 196.1 kB / 16.67 MB, free: 6.355 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.356/1.356, allocations: 222.9 MB / 240.4 MB, free: 4.312 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-maint.11.x/package.mo): time 2.551/2.551, allocations: 469.8 MB / 0.7426 GB, free: 7.285 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001813/0.001813, allocations: 67.89 kB / 1.065 GB, free: 13.58 MB / 0.8262 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2778/0.2797, allocations: 159.1 MB / 1.22 GB, free: 14.32 MB / 0.9825 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.IO.Files.Examples.CSVWriter): time 0.002949/0.2826, allocations: 1.604 MB / 1.222 GB, free: 12.7 MB / 0.9825 GB Notification: Performance of NFInst.instExpressions: time 0.001071/0.2837, allocations: 0.6156 MB / 1.222 GB, free: 12.08 MB / 0.9825 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.832e-05/0.2838, allocations: 4 kB / 1.222 GB, free: 12.07 MB / 0.9825 GB Notification: Performance of NFTyping.typeComponents: time 0.0001554/0.284, allocations: 19.86 kB / 1.222 GB, free: 12.05 MB / 0.9825 GB Notification: Performance of NFTyping.typeBindings: time 0.0002158/0.2842, allocations: 43.7 kB / 1.222 GB, free: 12.01 MB / 0.9825 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003819/0.2846, allocations: 115.7 kB / 1.223 GB, free: 11.9 MB / 0.9825 GB Notification: Performance of NFFlatten.flatten: time 0.0002652/0.2849, allocations: 199.6 kB / 1.223 GB, free: 11.7 MB / 0.9825 GB Notification: Performance of NFFlatten.resolveConnections: time 0.000107/0.285, allocations: 29.09 kB / 1.223 GB, free: 11.68 MB / 0.9825 GB Notification: Performance of NFEvalConstants.evaluate: time 0.000138/0.2851, allocations: 91.73 kB / 1.223 GB, free: 11.59 MB / 0.9825 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001357/0.2853, allocations: 83.72 kB / 1.223 GB, free: 11.5 MB / 0.9825 GB Notification: Performance of NFPackage.collectConstants: time 3.823e-05/0.2853, allocations: 12 kB / 1.223 GB, free: 11.49 MB / 0.9825 GB Notification: Performance of NFFlatten.collectFunctions: time 8.124e-05/0.2854, allocations: 32 kB / 1.223 GB, free: 11.46 MB / 0.9825 GB Notification: Performance of NFScalarize.scalarize: time 7.165e-05/0.2855, allocations: 19.92 kB / 1.223 GB, free: 11.44 MB / 0.9825 GB Notification: Performance of NFVerifyModel.verify: time 9.378e-05/0.2856, allocations: 83.64 kB / 1.223 GB, free: 11.36 MB / 0.9825 GB Notification: Performance of NFConvertDAE.convert: time 0.0002294/0.2858, allocations: 159.4 kB / 1.223 GB, free: 11.2 MB / 0.9825 GB Notification: Performance of FrontEnd - DAE generated: time 3.416e-06/0.2858, allocations: 0 / 1.223 GB, free: 11.2 MB / 0.9825 GB Notification: Performance of FrontEnd: time 1.393e-06/0.2858, allocations: 0 / 1.223 GB, free: 11.2 MB / 0.9825 GB Notification: Performance of Transformations before backend: time 4.418e-06/0.2858, allocations: 0 / 1.223 GB, free: 11.2 MB / 0.9825 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.0006934/0.2865, allocations: 0.5717 MB / 1.224 GB, free: 10.56 MB / 0.9825 GB Notification: Performance of prepare preOptimizeDAE: time 3.531e-05/0.2866, allocations: 8.031 kB / 1.224 GB, free: 10.55 MB / 0.9825 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.368e-05/0.2866, allocations: 34.75 kB / 1.224 GB, free: 10.51 MB / 0.9825 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.415e-05/0.2867, allocations: 20.84 kB / 1.224 GB, free: 10.49 MB / 0.9825 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003541/0.2871, allocations: 249.2 kB / 1.224 GB, free: 10.21 MB / 0.9825 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.886e-05/0.2871, allocations: 8.375 kB / 1.224 GB, free: 10.2 MB / 0.9825 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.711e-05/0.2871, allocations: 12.38 kB / 1.224 GB, free: 10.19 MB / 0.9825 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002816/0.2874, allocations: 117.5 kB / 1.224 GB, free: 10.07 MB / 0.9825 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.458e-06/0.2874, allocations: 3.938 kB / 1.224 GB, free: 10.06 MB / 0.9825 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.65e-05/0.2874, allocations: 4 kB / 1.224 GB, free: 10.06 MB / 0.9825 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.699e-06/0.2875, allocations: 0 / 1.224 GB, free: 10.06 MB / 0.9825 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002/0.2877, allocations: 67.89 kB / 1.224 GB, free: 9.992 MB / 0.9825 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000672/0.2883, allocations: 420.5 kB / 1.225 GB, free: 9.531 MB / 0.9825 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002044/0.2886, allocations: 94.56 kB / 1.225 GB, free: 9.43 MB / 0.9825 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001573/0.2887, allocations: 72.81 kB / 1.225 GB, free: 9.355 MB / 0.9825 GB Notification: Performance of preOpt evalFunc (simulation): time 2.803e-05/0.2888, allocations: 8.141 kB / 1.225 GB, free: 9.348 MB / 0.9825 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002678/0.289, allocations: 174.7 kB / 1.225 GB, free: 9.152 MB / 0.9825 GB Notification: Performance of pre-optimization done (n=10): time 1.522e-06/0.289, allocations: 0 / 1.225 GB, free: 9.152 MB / 0.9825 GB Notification: Performance of matching and sorting (n=10): time 0.0007277/0.2898, allocations: 352.8 kB / 1.225 GB, free: 8.789 MB / 0.9825 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001106/0.2899, allocations: 166.2 kB / 1.225 GB, free: 8.59 MB / 0.9825 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001763/0.2901, allocations: 175.2 kB / 1.226 GB, free: 8.406 MB / 0.9825 GB Notification: Performance of collectPreVariables (initialization): time 2.901e-05/0.2901, allocations: 33.7 kB / 1.226 GB, free: 8.367 MB / 0.9825 GB Notification: Performance of collectInitialEqns (initialization): time 8.064e-05/0.2902, allocations: 104.4 kB / 1.226 GB, free: 8.258 MB / 0.9825 GB Notification: Performance of collectInitialBindings (initialization): time 3.58e-05/0.2902, allocations: 35.72 kB / 1.226 GB, free: 8.223 MB / 0.9825 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.2e-05/0.2903, allocations: 45.64 kB / 1.226 GB, free: 8.172 MB / 0.9825 GB Notification: Performance of setup shared object (initialization): time 0.0001462/0.2905, allocations: 326.8 kB / 1.226 GB, free: 7.844 MB / 0.9825 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001431/0.2906, allocations: 51.95 kB / 1.226 GB, free: 7.793 MB / 0.9825 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001781/0.2908, allocations: 118.4 kB / 1.226 GB, free: 7.656 MB / 0.9825 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003809/0.2912, allocations: 309 kB / 1.227 GB, free: 7.293 MB / 0.9825 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.608e-06/0.2912, allocations: 0 / 1.227 GB, free: 7.293 MB / 0.9825 GB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0005316/0.2917, allocations: 344.1 kB / 1.227 GB, free: 6.926 MB / 0.9825 GB Notification: Performance of prepare postOptimizeDAE: time 9.725e-05/0.2919, allocations: 123 kB / 1.227 GB, free: 6.781 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.131e-06/0.2919, allocations: 4 kB / 1.227 GB, free: 6.777 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.493e-05/0.2919, allocations: 4 kB / 1.227 GB, free: 6.773 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001091/0.292, allocations: 19.92 kB / 1.227 GB, free: 6.754 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.466e-06/0.292, allocations: 4 kB / 1.227 GB, free: 6.75 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.551e-05/0.2921, allocations: 15.92 kB / 1.227 GB, free: 6.734 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.76e-05/0.2922, allocations: 12 kB / 1.227 GB, free: 6.723 MB / 0.9825 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.0001759/0.2923, allocations: 199.6 kB / 1.227 GB, free: 6.508 MB / 0.9825 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.337e-05/0.2924, allocations: 15.91 kB / 1.227 GB, free: 6.492 MB / 0.9825 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.077e-05/0.2924, allocations: 25.39 kB / 1.227 GB, free: 6.457 MB / 0.9825 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.814e-06/0.2924, allocations: 3.938 kB / 1.227 GB, free: 6.453 MB / 0.9825 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.38e-06/0.2924, allocations: 4 kB / 1.227 GB, free: 6.449 MB / 0.9825 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.755e-06/0.2925, allocations: 0 / 1.227 GB, free: 6.449 MB / 0.9825 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007589/0.2932, allocations: 0.5836 MB / 1.228 GB, free: 5.797 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.613e-06/0.2932, allocations: 0 / 1.228 GB, free: 5.797 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.3e-05/0.2933, allocations: 8 kB / 1.228 GB, free: 5.789 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.911e-06/0.2933, allocations: 7.984 kB / 1.228 GB, free: 5.781 MB / 0.9825 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.111e-05/0.2933, allocations: 11.98 kB / 1.228 GB, free: 5.77 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.452e-06/0.2933, allocations: 0 / 1.228 GB, free: 5.77 MB / 0.9825 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.435e-06/0.2933, allocations: 3.938 kB / 1.228 GB, free: 5.766 MB / 0.9825 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005896/0.294, allocations: 402.7 kB / 1.228 GB, free: 5.344 MB / 0.9825 GB Notification: Performance of postOpt removeConstants (simulation): time 6.448e-05/0.294, allocations: 85.06 kB / 1.228 GB, free: 5.242 MB / 0.9825 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.317e-05/0.2941, allocations: 4 kB / 1.228 GB, free: 5.238 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001133/0.2942, allocations: 19.98 kB / 1.228 GB, free: 5.219 MB / 0.9825 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.272e-05/0.2942, allocations: 7.938 kB / 1.228 GB, free: 5.211 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.933e-05/0.2943, allocations: 15.92 kB / 1.228 GB, free: 5.195 MB / 0.9825 GB Notification: Performance of sorting global known variables: time 0.000103/0.2944, allocations: 124.3 kB / 1.229 GB, free: 5.074 MB / 0.9825 GB Notification: Performance of sort global known variables: time 1e-07/0.2944, allocations: 0 / 1.229 GB, free: 5.074 MB / 0.9825 GB Notification: Performance of remove unused functions: time 0.0002831/0.2947, allocations: 47.88 kB / 1.229 GB, free: 5.027 MB / 0.9825 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.001006/0.2957, allocations: 0.9519 MB / 1.23 GB, free: 4.043 MB / 0.9825 GB Notification: Performance of simCode: created initialization part: time 0.000487/0.2962, allocations: 369.8 kB / 1.23 GB, free: 3.633 MB / 0.9825 GB Notification: Performance of simCode: created event and clocks part: time 1.713e-06/0.2962, allocations: 3.938 kB / 1.23 GB, free: 3.629 MB / 0.9825 GB Notification: Performance of simCode: created simulation system equations: time 0.0002455/0.2964, allocations: 206.7 kB / 1.23 GB, free: 3.402 MB / 0.9825 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002779/0.2967, allocations: 23.94 kB / 1.23 GB, free: 3.379 MB / 0.9825 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002521/0.2992, allocations: 2.115 MB / 1.232 GB, free: 1.121 MB / 0.9825 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003224/0.2996, allocations: 0.7041 MB / 1.233 GB, free: 400 kB / 0.9825 GB Notification: Performance of simCode: alias equations: time 6.521e-05/0.2996, allocations: 24.53 kB / 1.233 GB, free: 376 kB / 0.9825 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.162e-05/0.2997, allocations: 35.42 kB / 1.233 GB, free: 340 kB / 0.9825 GB Notification: Performance of SimCode: time 5.51e-07/0.2997, allocations: 0 / 1.233 GB, free: 340 kB / 0.9825 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.5311/0.8308, allocations: 3.632 MB / 1.237 GB, free: 12.8 MB / 0.9981 GB Notification: Performance of buildModelFMU: Generate platform static: time 11.8/12.63, allocations: 13.48 kB / 1.237 GB, free: 12.79 MB / 0.9981 GB (rm -f Buildings_11_Buildings.Utilities.IO.Files.Examples.CSVWriter.pipe ; mkfifo Buildings_11_Buildings.Utilities.IO.Files.Examples.CSVWriter.pipe ; head -c 1048576 < Buildings_11_Buildings.Utilities.IO.Files.Examples.CSVWriter.pipe >> ../files/Buildings_11_Buildings.Utilities.IO.Files.Examples.CSVWriter.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_11_Buildings.Utilities.IO.Files.Examples.CSVWriter_res.mat --tempDir=temp_Buildings_11_Buildings_Utilities_IO_Files_Examples_CSVWriter_fmu --startTime=-1.21 --stopTime=10 --timeout=400 --tolerance=1e-06 Buildings_11_Buildings_Utilities_IO_Files_Examples_CSVWriter.fmu > Buildings_11_Buildings.Utilities.IO.Files.Examples.CSVWriter.pipe 2>&1) diffSimulationResults("Buildings_11_Buildings.Utilities.IO.Files.Examples.CSVWriter_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_11.x/Buildings_Utilities_IO_Files_Examples_CSVWriter.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_11_Buildings.Utilities.IO.Files.Examples.CSVWriter.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches