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.0009662/0.0009661, allocations: 98.11 kB / 15.36 MB, free: 0.7344 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.007289/0.007289, allocations: 172.4 kB / 16.27 MB, free: 6.648 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.346/1.346, allocations: 223.3 MB / 240.3 MB, free: 5.332 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.9/2.9, allocations: 462.6 MB / 0.7363 GB, free: 15.62 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.0003573/0.0003578, allocations: 7.594 kB / 0.9027 GB, free: 36.44 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3391/0.3394, allocations: 159.6 MB / 1.059 GB, free: 4.98 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.IO.Files.Examples.CSVWriter): time 0.00195/0.3414, allocations: 1.326 MB / 1.06 GB, free: 3.645 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.0009331/0.3424, allocations: 0.6273 MB / 1.061 GB, free: 3.012 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.328e-05/0.3425, allocations: 3.938 kB / 1.061 GB, free: 3.008 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 0.0001436/0.3426, allocations: 15.92 kB / 1.061 GB, free: 2.992 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 0.0001828/0.3428, allocations: 39.83 kB / 1.061 GB, free: 2.953 MB / 0.8106 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003758/0.3432, allocations: 99.83 kB / 1.061 GB, free: 2.855 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 0.0001697/0.3434, allocations: 171.5 kB / 1.061 GB, free: 2.688 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001091/0.3435, allocations: 25.11 kB / 1.061 GB, free: 2.664 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 0.000127/0.3436, allocations: 67.81 kB / 1.061 GB, free: 2.598 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001214/0.3437, allocations: 79.72 kB / 1.061 GB, free: 2.52 MB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 3.344e-05/0.3438, allocations: 8 kB / 1.061 GB, free: 2.512 MB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 5.906e-05/0.3438, allocations: 19.94 kB / 1.061 GB, free: 2.492 MB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 8.143e-05/0.3439, allocations: 31.91 kB / 1.061 GB, free: 2.461 MB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 9.282e-05/0.344, allocations: 97.3 kB / 1.061 GB, free: 2.359 MB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 0.0002068/0.3443, allocations: 155.8 kB / 1.061 GB, free: 2.207 MB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 3.897e-06/0.3443, allocations: 0 / 1.061 GB, free: 2.207 MB / 0.8106 GB Notification: Performance of FrontEnd: time 1.613e-06/0.3443, allocations: 0 / 1.061 GB, free: 2.207 MB / 0.8106 GB Notification: Performance of Transformations before backend: time 4.569e-06/0.3443, allocations: 0 / 1.061 GB, free: 2.207 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.0006061/0.3449, allocations: 0.5213 MB / 1.062 GB, free: 1.613 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 4.169e-05/0.3449, allocations: 15.97 kB / 1.062 GB, free: 1.598 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.339e-05/0.345, allocations: 20.75 kB / 1.062 GB, free: 1.578 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002913/0.3453, allocations: 236.2 kB / 1.062 GB, free: 1.309 MB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.603e-05/0.3453, allocations: 4.375 kB / 1.062 GB, free: 1.305 MB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.231e-05/0.3454, allocations: 12.38 kB / 1.062 GB, free: 1.293 MB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002811/0.3457, allocations: 121.7 kB / 1.062 GB, free: 1.168 MB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.564e-06/0.3457, allocations: 4 kB / 1.062 GB, free: 1.164 MB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.598e-05/0.3457, allocations: 4 kB / 1.062 GB, free: 1.16 MB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.182e-06/0.3457, allocations: 4 kB / 1.062 GB, free: 1.156 MB / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002036/0.3459, allocations: 71.95 kB / 1.062 GB, free: 1.086 MB / 0.8106 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006468/0.3466, allocations: 424.5 kB / 1.063 GB, free: 0.6211 MB / 0.8106 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001991/0.3468, allocations: 94.52 kB / 1.063 GB, free: 0.5195 MB / 0.8106 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001621/0.347, allocations: 84.81 kB / 1.063 GB, free: 444 kB / 0.8106 GB Notification: Performance of preOpt evalFunc (simulation): time 2.171e-05/0.347, allocations: 4 kB / 1.063 GB, free: 440 kB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000323/0.3473, allocations: 178.8 kB / 1.063 GB, free: 236 kB / 0.8106 GB Notification: Performance of pre-optimization done (n=10): time 1.713e-06/0.3473, allocations: 0 / 1.063 GB, free: 236 kB / 0.8106 GB Notification: Performance of matching and sorting (n=10): time 0.0007497/0.3481, allocations: 368.9 kB / 1.063 GB, free: 15.85 MB / 0.8262 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.84e-05/0.3482, allocations: 170.2 kB / 1.064 GB, free: 15.65 MB / 0.8262 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001585/0.3484, allocations: 179.1 kB / 1.064 GB, free: 15.46 MB / 0.8262 GB Notification: Performance of collectPreVariables (initialization): time 2.859e-05/0.3484, allocations: 29.98 kB / 1.064 GB, free: 15.43 MB / 0.8262 GB Notification: Performance of collectInitialEqns (initialization): time 6.918e-05/0.3485, allocations: 104.4 kB / 1.064 GB, free: 15.32 MB / 0.8262 GB Notification: Performance of collectInitialBindings (initialization): time 2.998e-05/0.3485, allocations: 27.7 kB / 1.064 GB, free: 15.29 MB / 0.8262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.739e-05/0.3486, allocations: 25.66 kB / 1.064 GB, free: 15.26 MB / 0.8262 GB Notification: Performance of setup shared object (initialization): time 0.0001153/0.3487, allocations: 330.8 kB / 1.064 GB, free: 14.93 MB / 0.8262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001387/0.3488, allocations: 55.97 kB / 1.064 GB, free: 14.87 MB / 0.8262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001702/0.349, allocations: 110.8 kB / 1.064 GB, free: 14.74 MB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003546/0.3494, allocations: 320.9 kB / 1.065 GB, free: 14.36 MB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.456e-06/0.3494, allocations: 0 / 1.065 GB, free: 14.36 MB / 0.8262 GB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0005405/0.3499, allocations: 356 kB / 1.065 GB, free: 13.98 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 7.918e-05/0.35, allocations: 118.8 kB / 1.065 GB, free: 13.84 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.634e-06/0.35, allocations: 4 kB / 1.065 GB, free: 13.84 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.374e-05/0.3501, allocations: 4 kB / 1.065 GB, free: 13.84 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001207/0.3502, allocations: 20.23 kB / 1.065 GB, free: 13.82 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.385e-06/0.3502, allocations: 7.938 kB / 1.065 GB, free: 13.81 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001063/0.3503, allocations: 19.84 kB / 1.065 GB, free: 13.79 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.815e-05/0.3503, allocations: 11.98 kB / 1.065 GB, free: 13.78 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 (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.0001531/0.3505, allocations: 198.9 kB / 1.065 GB, free: 13.56 MB / 0.8262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.589e-05/0.3505, allocations: 19.81 kB / 1.065 GB, free: 13.54 MB / 0.8262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.681e-05/0.3506, allocations: 17.41 kB / 1.065 GB, free: 13.53 MB / 0.8262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.524e-06/0.3506, allocations: 4 kB / 1.065 GB, free: 13.52 MB / 0.8262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.408e-06/0.3506, allocations: 0 / 1.065 GB, free: 13.52 MB / 0.8262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.67e-06/0.3506, allocations: 3.984 kB / 1.065 GB, free: 13.52 MB / 0.8262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007627/0.3514, allocations: 0.5953 MB / 1.066 GB, free: 12.86 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.314e-06/0.3514, allocations: 0 / 1.066 GB, free: 12.86 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.708e-05/0.3515, allocations: 15.98 kB / 1.066 GB, free: 12.84 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.833e-06/0.3515, allocations: 0 / 1.066 GB, free: 12.84 MB / 0.8262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.181e-05/0.3515, allocations: 8 kB / 1.066 GB, free: 12.83 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.563e-06/0.3515, allocations: 0 / 1.066 GB, free: 12.83 MB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.815e-06/0.3515, allocations: 3.938 kB / 1.066 GB, free: 12.83 MB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005631/0.3521, allocations: 418.6 kB / 1.066 GB, free: 12.39 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 4.608e-05/0.3522, allocations: 85.02 kB / 1.067 GB, free: 12.29 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.736e-05/0.3522, allocations: 12 kB / 1.067 GB, free: 12.28 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001316/0.3523, allocations: 15.92 kB / 1.067 GB, free: 12.26 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.444e-05/0.3524, allocations: 7.938 kB / 1.067 GB, free: 12.25 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.022e-05/0.3524, allocations: 11.98 kB / 1.067 GB, free: 12.24 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 9.725e-05/0.3525, allocations: 123.2 kB / 1.067 GB, free: 12.12 MB / 0.8262 GB Notification: Performance of sort global known variables: time 1.9e-07/0.3525, allocations: 4 kB / 1.067 GB, free: 12.12 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.0002988/0.3528, allocations: 39.91 kB / 1.067 GB, free: 12.08 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.0002162/0.353, allocations: 127 kB / 1.067 GB, free: 11.95 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.0004858/0.3535, allocations: 373.5 kB / 1.067 GB, free: 11.54 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 3.587e-06/0.3536, allocations: 0 / 1.067 GB, free: 11.54 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 0.000237/0.3538, allocations: 210.6 kB / 1.067 GB, free: 11.31 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003246/0.3541, allocations: 27.3 kB / 1.067 GB, free: 11.29 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000578/0.3547, allocations: 318 kB / 1.068 GB, free: 10.95 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002469/0.355, allocations: 0.7121 MB / 1.068 GB, free: 10.21 MB / 0.8262 GB Notification: Performance of simCode: alias equations: time 7.574e-05/0.3551, allocations: 20.53 kB / 1.068 GB, free: 10.19 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.531e-05/0.3551, allocations: 15.44 kB / 1.068 GB, free: 10.17 MB / 0.8262 GB Notification: Performance of SimCode: time 2.7e-07/0.3551, allocations: 0 / 1.068 GB, free: 10.17 MB / 0.8262 GB Notification: Performance of Templates: time 0.005118/0.3602, allocations: 1.986 MB / 1.07 GB, free: 8.211 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