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: translateModel(Buildings.Utilities.IO.Files.Examples.CSVWriter,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|cos.y|step.y",fileNamePrefix="Buildings_latest_Buildings.Utilities.IO.Files.Examples.CSVWriter") translateModel(Buildings.Utilities.IO.Files.Examples.CSVWriter,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|cos.y|step.y",fileNamePrefix="Buildings_latest_Buildings.Utilities.IO.Files.Examples.CSVWriter") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.007973/0.007973, allocations: 100.8 kB / 15.87 MB, free: 5.867 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.002009/0.002009, allocations: 196.6 kB / 16.79 MB, free: 5.809 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.32/1.32, allocations: 222.9 MB / 240.5 MB, free: 4.57 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.746/2.746, allocations: 461.8 MB / 0.7348 GB, free: 14.21 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001282/0.001283, allocations: 61.06 kB / 0.899 GB, free: 37.05 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2854/0.2867, allocations: 157.4 MB / 1.053 GB, free: 8.32 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.IO.Files.Examples.CSVWriter): time 0.003249/0.29, allocations: 1.669 MB / 1.054 GB, free: 6.637 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.001094/0.2911, allocations: 0.6389 MB / 1.055 GB, free: 5.992 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 9.028e-05/0.2912, allocations: 0 / 1.055 GB, free: 5.992 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 0.0001648/0.2914, allocations: 23.91 kB / 1.055 GB, free: 5.969 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 0.0001969/0.2917, allocations: 35.84 kB / 1.055 GB, free: 5.934 MB / 0.8106 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004099/0.2921, allocations: 107.8 kB / 1.055 GB, free: 5.828 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 0.000184/0.2923, allocations: 163.6 kB / 1.055 GB, free: 5.668 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001148/0.2924, allocations: 21.11 kB / 1.055 GB, free: 5.648 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001591/0.2925, allocations: 71.81 kB / 1.055 GB, free: 5.578 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001491/0.2927, allocations: 87.66 kB / 1.055 GB, free: 5.492 MB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 4.56e-05/0.2928, allocations: 8 kB / 1.055 GB, free: 5.484 MB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 8.163e-05/0.2928, allocations: 27.98 kB / 1.056 GB, free: 5.457 MB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 8.739e-05/0.2929, allocations: 27.84 kB / 1.056 GB, free: 5.43 MB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 9.639e-05/0.293, allocations: 67.72 kB / 1.056 GB, free: 5.363 MB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 0.0001846/0.2932, allocations: 112 kB / 1.056 GB, free: 5.254 MB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 4.278e-06/0.2932, allocations: 0 / 1.056 GB, free: 5.254 MB / 0.8106 GB Notification: Performance of FrontEnd: time 1.252e-06/0.2933, allocations: 3.938 kB / 1.056 GB, free: 5.25 MB / 0.8106 GB Notification: Performance of Transformations before backend: time 5.881e-06/0.2933, allocations: 0 / 1.056 GB, free: 5.25 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.0007223/0.294, allocations: 0.5524 MB / 1.056 GB, free: 4.625 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 4.044e-05/0.294, allocations: 15.97 kB / 1.056 GB, free: 4.609 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.217e-05/0.2941, allocations: 16.75 kB / 1.056 GB, free: 4.594 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002911/0.2944, allocations: 232.2 kB / 1.057 GB, free: 4.328 MB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.678e-05/0.2944, allocations: 8.375 kB / 1.057 GB, free: 4.32 MB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.119e-05/0.2945, allocations: 12.38 kB / 1.057 GB, free: 4.309 MB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002843/0.2948, allocations: 117.7 kB / 1.057 GB, free: 4.188 MB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.456e-06/0.2948, allocations: 0 / 1.057 GB, free: 4.188 MB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.38e-05/0.2948, allocations: 12 kB / 1.057 GB, free: 4.176 MB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.34e-06/0.2948, allocations: 0 / 1.057 GB, free: 4.176 MB / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002144/0.295, allocations: 67.88 kB / 1.057 GB, free: 4.109 MB / 0.8106 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006542/0.2957, allocations: 424.5 kB / 1.057 GB, free: 3.645 MB / 0.8106 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001973/0.2959, allocations: 86.53 kB / 1.057 GB, free: 3.551 MB / 0.8106 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001676/0.2961, allocations: 72.81 kB / 1.057 GB, free: 3.477 MB / 0.8106 GB Notification: Performance of preOpt evalFunc (simulation): time 2.34e-05/0.2961, allocations: 4 kB / 1.057 GB, free: 3.473 MB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003142/0.2965, allocations: 178.8 kB / 1.057 GB, free: 3.273 MB / 0.8106 GB Notification: Performance of pre-optimization done (n=10): time 1.633e-06/0.2965, allocations: 0 / 1.057 GB, free: 3.273 MB / 0.8106 GB Notification: Performance of matching and sorting (n=10): time 0.0007514/0.2972, allocations: 356.8 kB / 1.058 GB, free: 2.906 MB / 0.8106 GB Notification: Performance of inlineWhenForInitialization (initialization): time 9.237e-05/0.2973, allocations: 170.2 kB / 1.058 GB, free: 2.703 MB / 0.8106 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001705/0.2975, allocations: 179.1 kB / 1.058 GB, free: 2.52 MB / 0.8106 GB Notification: Performance of collectPreVariables (initialization): time 2.345e-05/0.2975, allocations: 29.7 kB / 1.058 GB, free: 2.484 MB / 0.8106 GB Notification: Performance of collectInitialEqns (initialization): time 6.584e-05/0.2976, allocations: 108.4 kB / 1.058 GB, free: 2.371 MB / 0.8106 GB Notification: Performance of collectInitialBindings (initialization): time 2.92e-05/0.2976, allocations: 23.62 kB / 1.058 GB, free: 2.348 MB / 0.8106 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.472e-05/0.2977, allocations: 41.98 kB / 1.058 GB, free: 2.301 MB / 0.8106 GB Notification: Performance of setup shared object (initialization): time 0.0001031/0.2978, allocations: 330.8 kB / 1.059 GB, free: 1.969 MB / 0.8106 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000139/0.298, allocations: 55.95 kB / 1.059 GB, free: 1.914 MB / 0.8106 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000167/0.2982, allocations: 102.8 kB / 1.059 GB, free: 1.789 MB / 0.8106 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000324/0.2985, allocations: 316.9 kB / 1.059 GB, free: 1.418 MB / 0.8106 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.996e-06/0.2985, allocations: 0 / 1.059 GB, free: 1.418 MB / 0.8106 GB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0005569/0.2991, allocations: 348.1 kB / 1.059 GB, free: 1.047 MB / 0.8106 GB Notification: Performance of prepare postOptimizeDAE: time 7.198e-05/0.2991, allocations: 118.8 kB / 1.06 GB, free: 0.9062 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.969e-06/0.2992, allocations: 4 kB / 1.06 GB, free: 0.9023 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.422e-05/0.2992, allocations: 8.25 kB / 1.06 GB, free: 0.8945 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001127/0.2993, allocations: 15.98 kB / 1.06 GB, free: 0.8789 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.128e-05/0.2993, allocations: 7.938 kB / 1.06 GB, free: 0.8711 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001046/0.2994, allocations: 19.84 kB / 1.06 GB, free: 0.8516 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.224e-05/0.2995, allocations: 8 kB / 1.06 GB, free: 0.8438 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.0001509/0.2996, allocations: 205.1 kB / 1.06 GB, free: 0.6211 MB / 0.8106 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.619e-05/0.2997, allocations: 15.81 kB / 1.06 GB, free: 0.6055 MB / 0.8106 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.374e-05/0.2997, allocations: 13.41 kB / 1.06 GB, free: 0.5938 MB / 0.8106 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.757e-06/0.2997, allocations: 8 kB / 1.06 GB, free: 0.5859 MB / 0.8106 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.237e-06/0.2997, allocations: 0 / 1.06 GB, free: 0.5859 MB / 0.8106 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.635e-06/0.2997, allocations: 0 / 1.06 GB, free: 0.5859 MB / 0.8106 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007151/0.3004, allocations: 0.5875 MB / 1.06 GB, free: 15.93 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.808e-06/0.3005, allocations: 4 kB / 1.06 GB, free: 15.93 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.808e-05/0.3005, allocations: 11.98 kB / 1.06 GB, free: 15.91 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.775e-06/0.3005, allocations: 0 / 1.06 GB, free: 15.91 MB / 0.8262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.933e-05/0.3006, allocations: 4 kB / 1.06 GB, free: 15.91 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.774e-06/0.3006, allocations: 4 kB / 1.06 GB, free: 15.91 MB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.838e-06/0.3006, allocations: 7.875 kB / 1.06 GB, free: 15.9 MB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005517/0.3011, allocations: 398.7 kB / 1.061 GB, free: 15.48 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 4.016e-05/0.3012, allocations: 85 kB / 1.061 GB, free: 15.38 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.745e-05/0.3012, allocations: 8 kB / 1.061 GB, free: 15.37 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001186/0.3014, allocations: 8 kB / 1.061 GB, free: 15.36 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.595e-05/0.3014, allocations: 15.92 kB / 1.061 GB, free: 15.35 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.159e-05/0.3014, allocations: 8 kB / 1.061 GB, free: 15.34 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 9.792e-05/0.3015, allocations: 131.2 kB / 1.061 GB, free: 15.21 MB / 0.8262 GB Notification: Performance of sort global known variables: time 1.473e-06/0.3016, allocations: 0 / 1.061 GB, free: 15.21 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.0003073/0.3019, allocations: 43.84 kB / 1.061 GB, free: 15.17 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.0002247/0.3021, allocations: 123 kB / 1.061 GB, free: 15.05 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.0004817/0.3026, allocations: 361.5 kB / 1.062 GB, free: 14.64 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 2.124e-06/0.3026, allocations: 0 / 1.062 GB, free: 14.64 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 0.0002397/0.3028, allocations: 206.7 kB / 1.062 GB, free: 14.42 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003334/0.3032, allocations: 18.38 kB / 1.062 GB, free: 14.4 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006399/0.3038, allocations: 359.8 kB / 1.062 GB, free: 14.02 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002439/0.3041, allocations: 0.7121 MB / 1.063 GB, free: 13.28 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.993e-05/0.3041, allocations: 15.44 kB / 1.063 GB, free: 13.27 MB / 0.8262 GB Notification: Performance of SimCode: time 2.4e-07/0.3042, allocations: 0 / 1.063 GB, free: 13.27 MB / 0.8262 GB Notification: Performance of Templates: time 0.004253/0.3084, allocations: 2.16 MB / 1.065 GB, free: 11.12 MB / 0.8262 GB make -j1 -f Buildings_latest_Buildings.Utilities.IO.Files.Examples.CSVWriter.makefile (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 & ./Buildings_latest_Buildings.Utilities.IO.Files.Examples.CSVWriter -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > 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