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: 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.001336/0.001336, allocations: 105.9 kB / 16.27 MB, free: 6.348 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.001275/0.001275, allocations: 187.6 kB / 17.2 MB, free: 5.949 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.298/1.298, allocations: 222.9 MB / 240.9 MB, free: 15.21 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.572/2.572, allocations: 469.4 MB / 0.7427 GB, free: 3.656 MB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.00142/0.00142, allocations: 64.62 kB / 0.9088 GB, free: 14.14 MB / 0.6856 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2964/0.2979, allocations: 159.1 MB / 1.064 GB, free: 15.03 MB / 0.8419 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.IO.Files.Examples.CSVWriter): time 0.002767/0.3007, allocations: 1.611 MB / 1.066 GB, free: 13.4 MB / 0.8419 GB Notification: Performance of NFInst.instExpressions: time 0.0009007/0.3016, allocations: 0.6117 MB / 1.066 GB, free: 12.78 MB / 0.8419 GB Notification: Performance of NFInst.updateImplicitVariability: time 7.098e-05/0.3017, allocations: 7.938 kB / 1.066 GB, free: 12.77 MB / 0.8419 GB Notification: Performance of NFTyping.typeComponents: time 0.000132/0.3018, allocations: 19.78 kB / 1.066 GB, free: 12.75 MB / 0.8419 GB Notification: Performance of NFTyping.typeBindings: time 0.0001813/0.302, allocations: 43.77 kB / 1.066 GB, free: 12.71 MB / 0.8419 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003661/0.3024, allocations: 115.8 kB / 1.067 GB, free: 12.6 MB / 0.8419 GB Notification: Performance of NFFlatten.flatten: time 0.000211/0.3026, allocations: 191.6 kB / 1.067 GB, free: 12.41 MB / 0.8419 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001159/0.3028, allocations: 33.09 kB / 1.067 GB, free: 12.38 MB / 0.8419 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001312/0.3029, allocations: 87.75 kB / 1.067 GB, free: 12.29 MB / 0.8419 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001238/0.303, allocations: 83.72 kB / 1.067 GB, free: 12.21 MB / 0.8419 GB Notification: Performance of NFPackage.collectConstants: time 4.018e-05/0.3031, allocations: 16 kB / 1.067 GB, free: 12.2 MB / 0.8419 GB Notification: Performance of NFFlatten.collectFunctions: time 6.813e-05/0.3032, allocations: 23.98 kB / 1.067 GB, free: 12.17 MB / 0.8419 GB Notification: Performance of NFScalarize.scalarize: time 8.413e-05/0.3032, allocations: 31.91 kB / 1.067 GB, free: 12.14 MB / 0.8419 GB Notification: Performance of NFVerifyModel.verify: time 8.548e-05/0.3033, allocations: 71.66 kB / 1.067 GB, free: 12.07 MB / 0.8419 GB Notification: Performance of NFConvertDAE.convert: time 0.0002077/0.3035, allocations: 163.8 kB / 1.067 GB, free: 11.91 MB / 0.8419 GB Notification: Performance of FrontEnd - DAE generated: time 2.655e-06/0.3036, allocations: 0 / 1.067 GB, free: 11.91 MB / 0.8419 GB Notification: Performance of FrontEnd: time 9.41e-07/0.3036, allocations: 0 / 1.067 GB, free: 11.91 MB / 0.8419 GB Notification: Performance of Transformations before backend: time 4.719e-06/0.3036, allocations: 4 kB / 1.067 GB, free: 11.91 MB / 0.8419 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.0006297/0.3042, allocations: 0.5563 MB / 1.068 GB, free: 11.28 MB / 0.8419 GB Notification: Performance of prepare preOptimizeDAE: time 3.513e-05/0.3043, allocations: 12.56 kB / 1.068 GB, free: 11.27 MB / 0.8419 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.44e-05/0.3043, allocations: 20.75 kB / 1.068 GB, free: 11.25 MB / 0.8419 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002734/0.3046, allocations: 236.7 kB / 1.068 GB, free: 10.98 MB / 0.8419 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.253e-05/0.3046, allocations: 4.375 kB / 1.068 GB, free: 10.97 MB / 0.8419 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.027e-05/0.3047, allocations: 12.38 kB / 1.068 GB, free: 10.96 MB / 0.8419 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002616/0.3049, allocations: 117.7 kB / 1.068 GB, free: 10.84 MB / 0.8419 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.356e-06/0.3049, allocations: 4 kB / 1.068 GB, free: 10.84 MB / 0.8419 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.805e-05/0.305, allocations: 3.938 kB / 1.068 GB, free: 10.83 MB / 0.8419 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.912e-06/0.305, allocations: 4 kB / 1.068 GB, free: 10.83 MB / 0.8419 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002102/0.3052, allocations: 63.95 kB / 1.068 GB, free: 10.77 MB / 0.8419 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007248/0.3059, allocations: 420.5 kB / 1.069 GB, free: 10.3 MB / 0.8419 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002066/0.3062, allocations: 94.59 kB / 1.069 GB, free: 10.2 MB / 0.8419 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001692/0.3063, allocations: 80.75 kB / 1.069 GB, free: 10.12 MB / 0.8419 GB Notification: Performance of preOpt evalFunc (simulation): time 2.527e-05/0.3064, allocations: 4 kB / 1.069 GB, free: 10.12 MB / 0.8419 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003079/0.3067, allocations: 174.7 kB / 1.069 GB, free: 9.922 MB / 0.8419 GB Notification: Performance of pre-optimization done (n=10): time 1.733e-06/0.3067, allocations: 0 / 1.069 GB, free: 9.922 MB / 0.8419 GB Notification: Performance of matching and sorting (n=10): time 0.0007578/0.3075, allocations: 352.7 kB / 1.069 GB, free: 9.559 MB / 0.8419 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001129/0.3076, allocations: 166.4 kB / 1.069 GB, free: 9.359 MB / 0.8419 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001847/0.3078, allocations: 179.1 kB / 1.07 GB, free: 9.176 MB / 0.8419 GB Notification: Performance of collectPreVariables (initialization): time 3.102e-05/0.3078, allocations: 33.7 kB / 1.07 GB, free: 9.137 MB / 0.8419 GB Notification: Performance of collectInitialEqns (initialization): time 9.259e-05/0.3079, allocations: 120.2 kB / 1.07 GB, free: 9.012 MB / 0.8419 GB Notification: Performance of collectInitialBindings (initialization): time 2.881e-05/0.3079, allocations: 19.72 kB / 1.07 GB, free: 8.992 MB / 0.8419 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.778e-05/0.308, allocations: 37.7 kB / 1.07 GB, free: 8.949 MB / 0.8419 GB Notification: Performance of setup shared object (initialization): time 0.000136/0.3082, allocations: 326.8 kB / 1.07 GB, free: 8.621 MB / 0.8419 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001384/0.3083, allocations: 51.95 kB / 1.07 GB, free: 8.57 MB / 0.8419 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001722/0.3085, allocations: 106.8 kB / 1.07 GB, free: 8.441 MB / 0.8419 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003631/0.3089, allocations: 312.9 kB / 1.071 GB, free: 8.074 MB / 0.8419 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.439e-06/0.3089, allocations: 0 / 1.071 GB, free: 8.074 MB / 0.8419 GB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0005393/0.3094, allocations: 344.2 kB / 1.071 GB, free: 7.707 MB / 0.8419 GB Notification: Performance of prepare postOptimizeDAE: time 7.901e-05/0.3095, allocations: 129 kB / 1.071 GB, free: 7.559 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.991e-06/0.3095, allocations: 0 / 1.071 GB, free: 7.559 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.64e-05/0.3095, allocations: 4 kB / 1.071 GB, free: 7.555 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001222/0.3097, allocations: 15.98 kB / 1.071 GB, free: 7.539 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.216e-05/0.3097, allocations: 7.938 kB / 1.071 GB, free: 7.531 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001/0.3098, allocations: 15.92 kB / 1.071 GB, free: 7.516 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.168e-05/0.3098, allocations: 12 kB / 1.071 GB, free: 7.504 MB / 0.8419 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.0001617/0.31, allocations: 195.4 kB / 1.071 GB, free: 7.293 MB / 0.8419 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.617e-05/0.31, allocations: 24.08 kB / 1.071 GB, free: 7.27 MB / 0.8419 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.72e-05/0.3101, allocations: 21.39 kB / 1.071 GB, free: 7.25 MB / 0.8419 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.874e-06/0.3101, allocations: 0 / 1.071 GB, free: 7.25 MB / 0.8419 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.278e-06/0.3101, allocations: 3.938 kB / 1.071 GB, free: 7.246 MB / 0.8419 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.946e-06/0.3101, allocations: 0 / 1.071 GB, free: 7.246 MB / 0.8419 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006867/0.3108, allocations: 0.5914 MB / 1.072 GB, free: 6.586 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.513e-06/0.3108, allocations: 0 / 1.072 GB, free: 6.586 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.416e-05/0.3109, allocations: 15.94 kB / 1.072 GB, free: 6.57 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.244e-06/0.3109, allocations: 0 / 1.072 GB, free: 6.57 MB / 0.8419 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.421e-05/0.3109, allocations: 11.98 kB / 1.072 GB, free: 6.559 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.763e-06/0.3109, allocations: 0 / 1.072 GB, free: 6.559 MB / 0.8419 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.455e-06/0.3109, allocations: 3.938 kB / 1.072 GB, free: 6.555 MB / 0.8419 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005303/0.3115, allocations: 402.7 kB / 1.072 GB, free: 6.133 MB / 0.8419 GB Notification: Performance of postOpt removeConstants (simulation): time 4.623e-05/0.3115, allocations: 88.92 kB / 1.072 GB, free: 6.027 MB / 0.8419 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.495e-05/0.3116, allocations: 8 kB / 1.072 GB, free: 6.02 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001166/0.3117, allocations: 15.98 kB / 1.072 GB, free: 6.004 MB / 0.8419 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.247e-05/0.3117, allocations: 7.875 kB / 1.072 GB, free: 5.996 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.561e-05/0.3118, allocations: 11.98 kB / 1.072 GB, free: 5.984 MB / 0.8419 GB Notification: Performance of sorting global known variables: time 9.567e-05/0.3119, allocations: 128.3 kB / 1.073 GB, free: 5.859 MB / 0.8419 GB Notification: Performance of sort global known variables: time 2.41e-07/0.3119, allocations: 0 / 1.073 GB, free: 5.859 MB / 0.8419 GB Notification: Performance of remove unused functions: time 0.0002883/0.3122, allocations: 39.98 kB / 1.073 GB, free: 5.82 MB / 0.8419 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.000232/0.3124, allocations: 129.4 kB / 1.073 GB, free: 5.691 MB / 0.8419 GB Notification: Performance of simCode: created initialization part: time 0.0004936/0.3129, allocations: 369.4 kB / 1.073 GB, free: 5.281 MB / 0.8419 GB Notification: Performance of simCode: created event and clocks part: time 1.814e-06/0.3129, allocations: 0 / 1.073 GB, free: 5.281 MB / 0.8419 GB Notification: Performance of simCode: created simulation system equations: time 0.0002313/0.3131, allocations: 207.2 kB / 1.073 GB, free: 5.055 MB / 0.8419 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002957/0.3135, allocations: 21.56 kB / 1.073 GB, free: 5.035 MB / 0.8419 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006003/0.3141, allocations: 321.7 kB / 1.074 GB, free: 4.684 MB / 0.8419 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002426/0.3143, allocations: 0.7041 MB / 1.074 GB, free: 3.953 MB / 0.8419 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.179e-05/0.3144, allocations: 23.42 kB / 1.074 GB, free: 3.93 MB / 0.8419 GB Notification: Performance of SimCode: time 2.8e-07/0.3144, allocations: 0 / 1.074 GB, free: 3.93 MB / 0.8419 GB Notification: Performance of Templates: time 0.003882/0.3183, allocations: 2.156 MB / 1.076 GB, free: 1.789 MB / 0.8419 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