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.001075/0.001075, allocations: 91.12 kB / 15.06 MB, free: 1.078 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.001316/0.001316, allocations: 172.7 kB / 15.95 MB, free: 192 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.52/1.52, allocations: 223.3 MB / 240 MB, free: 5.426 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.887/2.887, allocations: 462.6 MB / 0.736 GB, free: 15.77 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.0004238/0.0004242, allocations: 10.09 kB / 0.9021 GB, free: 36.63 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3736/0.374, allocations: 159.6 MB / 1.058 GB, free: 5.348 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.IO.Files.Examples.CSVWriter): time 0.002543/0.3766, allocations: 1.307 MB / 1.059 GB, free: 4.031 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.00119/0.3779, allocations: 0.5847 MB / 1.06 GB, free: 3.441 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.000131/0.378, allocations: 0 / 1.06 GB, free: 3.441 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 0.0002069/0.3783, allocations: 15.92 kB / 1.06 GB, free: 3.426 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 0.0002894/0.3786, allocations: 47.69 kB / 1.06 GB, free: 3.379 MB / 0.8106 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004956/0.3791, allocations: 99.83 kB / 1.06 GB, free: 3.281 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 0.0002289/0.3793, allocations: 151.6 kB / 1.06 GB, free: 3.133 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001424/0.3795, allocations: 21.06 kB / 1.06 GB, free: 3.113 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002428/0.3797, allocations: 75.81 kB / 1.06 GB, free: 3.039 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001976/0.3799, allocations: 75.72 kB / 1.06 GB, free: 2.965 MB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 4.8e-05/0.38, allocations: 4 kB / 1.06 GB, free: 2.961 MB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 9.894e-05/0.3801, allocations: 20 kB / 1.06 GB, free: 2.941 MB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 9.544e-05/0.3802, allocations: 19.91 kB / 1.06 GB, free: 2.922 MB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 9.02e-05/0.3803, allocations: 53.64 kB / 1.06 GB, free: 2.863 MB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 0.0002374/0.3805, allocations: 112 kB / 1.061 GB, free: 2.754 MB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 1.19e-05/0.3805, allocations: 0 / 1.061 GB, free: 2.754 MB / 0.8106 GB Notification: Performance of FrontEnd: time 3.056e-06/0.3805, allocations: 3.938 kB / 1.061 GB, free: 2.75 MB / 0.8106 GB Notification: Performance of Transformations before backend: time 9.427e-06/0.3806, allocations: 0 / 1.061 GB, free: 2.75 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.0009656/0.3815, allocations: 0.5289 MB / 1.061 GB, free: 2.148 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 5.613e-05/0.3816, allocations: 8.031 kB / 1.061 GB, free: 2.141 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001004/0.3817, allocations: 19.81 kB / 1.061 GB, free: 2.121 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003936/0.3821, allocations: 226.8 kB / 1.061 GB, free: 1.859 MB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.683e-05/0.3821, allocations: 11.95 kB / 1.061 GB, free: 1.848 MB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.104e-05/0.3822, allocations: 12 kB / 1.061 GB, free: 1.836 MB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003445/0.3825, allocations: 125.5 kB / 1.061 GB, free: 1.707 MB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.168e-05/0.3825, allocations: 0 / 1.061 GB, free: 1.707 MB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.213e-05/0.3826, allocations: 4 kB / 1.061 GB, free: 1.703 MB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.878e-06/0.3826, allocations: 4 kB / 1.061 GB, free: 1.699 MB / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002339/0.3828, allocations: 67.95 kB / 1.062 GB, free: 1.633 MB / 0.8106 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007821/0.3836, allocations: 440.5 kB / 1.062 GB, free: 1.152 MB / 0.8106 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002085/0.3838, allocations: 90.53 kB / 1.062 GB, free: 1.055 MB / 0.8106 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000161/0.384, allocations: 80.81 kB / 1.062 GB, free: 0.9727 MB / 0.8106 GB Notification: Performance of preOpt evalFunc (simulation): time 2.989e-05/0.3841, allocations: 0 / 1.062 GB, free: 0.9727 MB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003336/0.3844, allocations: 182.9 kB / 1.062 GB, free: 0.7695 MB / 0.8106 GB Notification: Performance of pre-optimization done (n=10): time 1.813e-06/0.3844, allocations: 4 kB / 1.062 GB, free: 0.7656 MB / 0.8106 GB Notification: Performance of matching and sorting (n=10): time 0.0007548/0.3852, allocations: 360.8 kB / 1.063 GB, free: 404 kB / 0.8106 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001139/0.3853, allocations: 166.2 kB / 1.063 GB, free: 200 kB / 0.8106 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001972/0.3855, allocations: 191 kB / 1.063 GB, free: 15.99 MB / 0.8262 GB Notification: Performance of collectPreVariables (initialization): time 2.443e-05/0.3855, allocations: 25.7 kB / 1.063 GB, free: 15.96 MB / 0.8262 GB Notification: Performance of collectInitialEqns (initialization): time 7.724e-05/0.3856, allocations: 108.3 kB / 1.063 GB, free: 15.85 MB / 0.8262 GB Notification: Performance of collectInitialBindings (initialization): time 3.611e-05/0.3857, allocations: 23.7 kB / 1.063 GB, free: 15.83 MB / 0.8262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.355e-05/0.3857, allocations: 8 kB / 1.063 GB, free: 15.82 MB / 0.8262 GB Notification: Performance of setup shared object (initialization): time 0.0001293/0.3858, allocations: 326.8 kB / 1.063 GB, free: 15.49 MB / 0.8262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001349/0.386, allocations: 55.95 kB / 1.063 GB, free: 15.44 MB / 0.8262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001591/0.3861, allocations: 106.8 kB / 1.064 GB, free: 15.31 MB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002236/0.3864, allocations: 182.7 kB / 1.064 GB, free: 15.11 MB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.176e-06/0.3864, allocations: 0 / 1.064 GB, free: 15.11 MB / 0.8262 GB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0005672/0.3869, allocations: 360.1 kB / 1.064 GB, free: 14.72 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001021/0.3871, allocations: 118.8 kB / 1.064 GB, free: 14.58 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.169e-05/0.3871, allocations: 4 kB / 1.064 GB, free: 14.58 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.531e-05/0.3871, allocations: 0 / 1.064 GB, free: 14.58 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001204/0.3872, allocations: 23.92 kB / 1.064 GB, free: 14.55 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.005e-05/0.3872, allocations: 4 kB / 1.064 GB, free: 14.55 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001101/0.3874, allocations: 19.97 kB / 1.064 GB, free: 14.53 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.198e-05/0.3874, allocations: 8 kB / 1.064 GB, free: 14.52 MB / 0.8262 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 ($PRE.combiTimeTableWriter.str,combiTimeTableWriter.str,$PRE.csvWriter.str,csvWriter.str,$whenCondition2,combiTimeTableWriter.sampleTrigger,$whenCondition1,csvWriter.sampleTrigger) * 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001864/0.3876, allocations: 203.4 kB / 1.064 GB, free: 14.3 MB / 0.8262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.74e-05/0.3876, allocations: 15.81 kB / 1.064 GB, free: 14.29 MB / 0.8262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.808e-05/0.3877, allocations: 17.34 kB / 1.064 GB, free: 14.27 MB / 0.8262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.869e-06/0.3877, allocations: 4 kB / 1.064 GB, free: 14.27 MB / 0.8262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.722e-06/0.3877, allocations: 0 / 1.064 GB, free: 14.27 MB / 0.8262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.596e-06/0.3877, allocations: 0 / 1.064 GB, free: 14.27 MB / 0.8262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007392/0.3884, allocations: 0.5954 MB / 1.065 GB, free: 13.61 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.936e-06/0.3885, allocations: 0 / 1.065 GB, free: 13.61 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.787e-05/0.3885, allocations: 15.98 kB / 1.065 GB, free: 13.59 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.077e-06/0.3885, allocations: 0 / 1.065 GB, free: 13.59 MB / 0.8262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.293e-05/0.3886, allocations: 8.281 kB / 1.065 GB, free: 13.58 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.174e-06/0.3886, allocations: 4 kB / 1.065 GB, free: 13.58 MB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.623e-06/0.3886, allocations: 4 kB / 1.065 GB, free: 13.57 MB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005681/0.3892, allocations: 414.5 kB / 1.066 GB, free: 13.14 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 5.523e-05/0.3892, allocations: 85.02 kB / 1.066 GB, free: 13.04 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.95e-05/0.3893, allocations: 12 kB / 1.066 GB, free: 13.03 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001094/0.3894, allocations: 8 kB / 1.066 GB, free: 13.02 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.553e-05/0.3895, allocations: 11.97 kB / 1.066 GB, free: 13.01 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.039e-05/0.3895, allocations: 11.98 kB / 1.066 GB, free: 13 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 0.0001255/0.3896, allocations: 123.2 kB / 1.066 GB, free: 12.88 MB / 0.8262 GB Notification: Performance of sort global known variables: time 1.5e-07/0.3896, allocations: 0 / 1.066 GB, free: 12.88 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.0003141/0.3899, allocations: 36 kB / 1.066 GB, free: 12.84 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0003161/0.3903, allocations: 136.6 kB / 1.066 GB, free: 12.7 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.0005754/0.3908, allocations: 365.6 kB / 1.066 GB, free: 12.3 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 3.026e-06/0.3909, allocations: 4 kB / 1.066 GB, free: 12.29 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 0.0002556/0.3911, allocations: 210.7 kB / 1.066 GB, free: 12.06 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003605/0.3915, allocations: 25.84 kB / 1.066 GB, free: 12.04 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006941/0.3922, allocations: 314.2 kB / 1.067 GB, free: 11.7 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003757/0.3926, allocations: 0.7121 MB / 1.067 GB, free: 10.96 MB / 0.8262 GB Notification: Performance of simCode: alias equations: time 8.272e-05/0.3927, allocations: 28.47 kB / 1.068 GB, free: 10.94 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.263e-05/0.3927, allocations: 15.44 kB / 1.068 GB, free: 10.92 MB / 0.8262 GB Notification: Performance of SimCode: time 3.4e-07/0.3927, allocations: 0 / 1.068 GB, free: 10.92 MB / 0.8262 GB Notification: Performance of Templates: time 0.006369/0.3991, allocations: 1.932 MB / 1.069 GB, free: 9.016 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/jenkins/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