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.001553/0.001553, allocations: 111.3 kB / 15.23 MB, free: 0.6602 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.001852/0.001852, allocations: 193.6 kB / 16.14 MB, free: 6.645 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.44/1.44, allocations: 222.9 MB / 239.8 MB, free: 4.566 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.747/2.747, allocations: 461.8 MB / 0.7342 GB, free: 15.02 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001248/0.001248, allocations: 66.72 kB / 0.8984 GB, free: 37.19 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3372/0.3384, allocations: 157.4 MB / 1.052 GB, free: 8.859 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.IO.Files.Examples.CSVWriter): time 0.005572/0.3441, allocations: 1.679 MB / 1.054 GB, free: 7.168 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.002188/0.3463, allocations: 0.635 MB / 1.054 GB, free: 6.527 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001274/0.3465, allocations: 0 / 1.054 GB, free: 6.527 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 0.0002358/0.3468, allocations: 27.86 kB / 1.054 GB, free: 6.5 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 0.0003315/0.3471, allocations: 35.83 kB / 1.054 GB, free: 6.465 MB / 0.8106 GB Notification: Performance of NFTyping.typeClassSections: time 0.000753/0.3479, allocations: 103.8 kB / 1.055 GB, free: 6.363 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 0.0003133/0.3482, allocations: 163.5 kB / 1.055 GB, free: 6.203 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001545/0.3484, allocations: 17.12 kB / 1.055 GB, free: 6.188 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002841/0.3487, allocations: 83.75 kB / 1.055 GB, free: 6.105 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002421/0.349, allocations: 79.72 kB / 1.055 GB, free: 6.027 MB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 7.789e-05/0.3491, allocations: 8 kB / 1.055 GB, free: 6.02 MB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001252/0.3492, allocations: 23.98 kB / 1.055 GB, free: 5.996 MB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 0.0001379/0.3494, allocations: 27.91 kB / 1.055 GB, free: 5.969 MB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 0.0001855/0.3496, allocations: 67.66 kB / 1.055 GB, free: 5.902 MB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 0.0003762/0.3499, allocations: 155.8 kB / 1.055 GB, free: 5.75 MB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 6.022e-06/0.35, allocations: 0 / 1.055 GB, free: 5.75 MB / 0.8106 GB Notification: Performance of FrontEnd: time 1.913e-06/0.35, allocations: 4 kB / 1.055 GB, free: 5.746 MB / 0.8106 GB Notification: Performance of Transformations before backend: time 9.218e-06/0.35, allocations: 0 / 1.055 GB, free: 5.746 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.001302/0.3513, allocations: 0.5524 MB / 1.056 GB, free: 5.121 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 4.793e-05/0.3514, allocations: 8.031 kB / 1.056 GB, free: 5.113 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001162/0.3515, allocations: 20.75 kB / 1.056 GB, free: 5.094 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005427/0.3521, allocations: 244.7 kB / 1.056 GB, free: 4.816 MB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.67e-05/0.3521, allocations: 8.312 kB / 1.056 GB, free: 4.809 MB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.772e-05/0.3522, allocations: 16.38 kB / 1.056 GB, free: 4.793 MB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005176/0.3527, allocations: 113.7 kB / 1.056 GB, free: 4.676 MB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.347e-05/0.3528, allocations: 4 kB / 1.056 GB, free: 4.672 MB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.053e-05/0.3528, allocations: 4 kB / 1.056 GB, free: 4.668 MB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.287e-06/0.3528, allocations: 4 kB / 1.056 GB, free: 4.664 MB / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003849/0.3532, allocations: 63.94 kB / 1.056 GB, free: 4.602 MB / 0.8106 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001225/0.3545, allocations: 420.5 kB / 1.057 GB, free: 4.141 MB / 0.8106 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003689/0.3548, allocations: 90.53 kB / 1.057 GB, free: 4.043 MB / 0.8106 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003099/0.3552, allocations: 76.84 kB / 1.057 GB, free: 3.965 MB / 0.8106 GB Notification: Performance of preOpt evalFunc (simulation): time 4.172e-05/0.3552, allocations: 4 kB / 1.057 GB, free: 3.961 MB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006901/0.3559, allocations: 174.7 kB / 1.057 GB, free: 3.766 MB / 0.8106 GB Notification: Performance of pre-optimization done (n=10): time 3.747e-06/0.356, allocations: 0 / 1.057 GB, free: 3.766 MB / 0.8106 GB Notification: Performance of matching and sorting (n=10): time 0.001422/0.3574, allocations: 360.8 kB / 1.057 GB, free: 3.395 MB / 0.8106 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001666/0.3576, allocations: 166.2 kB / 1.057 GB, free: 3.195 MB / 0.8106 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000297/0.3579, allocations: 174.6 kB / 1.058 GB, free: 3.016 MB / 0.8106 GB Notification: Performance of collectPreVariables (initialization): time 4.608e-05/0.358, allocations: 33.7 kB / 1.058 GB, free: 2.977 MB / 0.8106 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001243/0.3581, allocations: 108.4 kB / 1.058 GB, free: 2.863 MB / 0.8106 GB Notification: Performance of collectInitialBindings (initialization): time 5.241e-05/0.3582, allocations: 27.62 kB / 1.058 GB, free: 2.836 MB / 0.8106 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001336/0.3583, allocations: 41.7 kB / 1.058 GB, free: 2.789 MB / 0.8106 GB Notification: Performance of setup shared object (initialization): time 0.0001814/0.3585, allocations: 330.8 kB / 1.058 GB, free: 2.457 MB / 0.8106 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000275/0.3588, allocations: 51.95 kB / 1.058 GB, free: 2.406 MB / 0.8106 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003289/0.3592, allocations: 106 kB / 1.058 GB, free: 2.281 MB / 0.8106 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000695/0.3599, allocations: 312.9 kB / 1.058 GB, free: 1.914 MB / 0.8106 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.029e-06/0.3599, allocations: 0 / 1.058 GB, free: 1.914 MB / 0.8106 GB Notification: Performance of matching and sorting (n=14) (initialization): time 0.001132/0.361, allocations: 340.1 kB / 1.059 GB, free: 1.551 MB / 0.8106 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001377/0.3612, allocations: 119.1 kB / 1.059 GB, free: 1.41 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.286e-05/0.3612, allocations: 7.984 kB / 1.059 GB, free: 1.402 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.592e-05/0.3613, allocations: 7.984 kB / 1.059 GB, free: 1.395 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002033/0.3615, allocations: 12 kB / 1.059 GB, free: 1.383 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.062e-05/0.3615, allocations: 19.86 kB / 1.059 GB, free: 1.363 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002064/0.3617, allocations: 19.84 kB / 1.059 GB, free: 1.344 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.812e-05/0.3618, allocations: 8 kB / 1.059 GB, free: 1.336 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.0002822/0.3621, allocations: 197.2 kB / 1.059 GB, free: 1.121 MB / 0.8106 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.393e-05/0.3622, allocations: 19.8 kB / 1.059 GB, free: 1.102 MB / 0.8106 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.065e-05/0.3623, allocations: 21.41 kB / 1.059 GB, free: 1.082 MB / 0.8106 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.541e-06/0.3623, allocations: 0 / 1.059 GB, free: 1.082 MB / 0.8106 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.192e-06/0.3623, allocations: 0 / 1.059 GB, free: 1.082 MB / 0.8106 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.749e-06/0.3623, allocations: 4 kB / 1.059 GB, free: 1.078 MB / 0.8106 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001404/0.3637, allocations: 0.5836 MB / 1.06 GB, free: 436 kB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.046e-06/0.3638, allocations: 0 / 1.06 GB, free: 436 kB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001271/0.3639, allocations: 11.98 kB / 1.06 GB, free: 424 kB / 0.8106 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.046e-05/0.3639, allocations: 15.92 kB / 1.06 GB, free: 408 kB / 0.8106 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.207e-05/0.364, allocations: 4.281 kB / 1.06 GB, free: 404 kB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.216e-06/0.364, allocations: 0 / 1.06 GB, free: 404 kB / 0.8106 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.225e-06/0.364, allocations: 3.938 kB / 1.06 GB, free: 400 kB / 0.8106 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00111/0.3651, allocations: 398.7 kB / 1.06 GB, free: 15.97 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 8.436e-05/0.3652, allocations: 85.02 kB / 1.06 GB, free: 15.87 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.708e-05/0.3653, allocations: 11.98 kB / 1.06 GB, free: 15.86 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002202/0.3655, allocations: 12 kB / 1.06 GB, free: 15.84 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.507e-05/0.3656, allocations: 15.86 kB / 1.06 GB, free: 15.83 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.29e-05/0.3657, allocations: 8 kB / 1.06 GB, free: 15.82 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 0.0001884/0.3659, allocations: 132.8 kB / 1.06 GB, free: 15.69 MB / 0.8262 GB Notification: Performance of sort global known variables: time 5.42e-07/0.3659, allocations: 0 / 1.06 GB, free: 15.69 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.0005756/0.3665, allocations: 39.91 kB / 1.061 GB, free: 15.65 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.0003431/0.3669, allocations: 115.8 kB / 1.061 GB, free: 15.54 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.0009036/0.3678, allocations: 357.5 kB / 1.061 GB, free: 15.14 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 6.021e-06/0.3678, allocations: 4 kB / 1.061 GB, free: 15.14 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 0.000442/0.3683, allocations: 211.1 kB / 1.061 GB, free: 14.91 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005495/0.3688, allocations: 26.03 kB / 1.061 GB, free: 14.88 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001051/0.3699, allocations: 325.7 kB / 1.061 GB, free: 14.54 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004119/0.3703, allocations: 0.7043 MB / 1.062 GB, free: 13.81 MB / 0.8262 GB Notification: Performance of simCode: alias equations: time 0.0001215/0.3705, allocations: 20.47 kB / 1.062 GB, free: 13.79 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.498e-05/0.3706, allocations: 15.44 kB / 1.062 GB, free: 13.77 MB / 0.8262 GB Notification: Performance of SimCode: time 7.31e-07/0.3706, allocations: 0 / 1.062 GB, free: 13.77 MB / 0.8262 GB Notification: Performance of Templates: time 0.009671/0.3803, allocations: 1.992 MB / 1.064 GB, free: 11.8 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