Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_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 9.1.3-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/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_9_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_9_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.00452/0.00452, allocations: 100.8 kB / 15.73 MB, free: 6.059 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.001091/0.001091, allocations: 197.5 kB / 16.68 MB, free: 5.969 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.269/1.269, allocations: 222.9 MB / 240.4 MB, free: 15.13 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/package.mo): time 2.195/2.195, allocations: 390.2 MB / 0.6648 GB, free: 0.6094 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.001138/0.001138, allocations: 63.91 kB / 0.9508 GB, free: 7.625 MB / 0.7325 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.9351/0.9363, allocations: 140.4 MB / 1.088 GB, free: 5.508 MB / 0.8575 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.IO.Files.Examples.CSVWriter): time 0.002927/0.9393, allocations: 1.608 MB / 1.089 GB, free: 4.395 MB / 0.8575 GB Notification: Performance of NFInst.instExpressions: time 0.0009349/0.9402, allocations: 0.6055 MB / 1.09 GB, free: 3.977 MB / 0.8575 GB Notification: Performance of NFInst.updateImplicitVariability: time 7.85e-05/0.9403, allocations: 2.25 kB / 1.09 GB, free: 3.977 MB / 0.8575 GB Notification: Performance of NFTyping.typeComponents: time 0.000169/0.9405, allocations: 23.8 kB / 1.09 GB, free: 3.957 MB / 0.8575 GB Notification: Performance of NFTyping.typeBindings: time 0.0002234/0.9407, allocations: 48.97 kB / 1.09 GB, free: 3.926 MB / 0.8575 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003506/0.9411, allocations: 108 kB / 1.09 GB, free: 3.871 MB / 0.8575 GB Notification: Performance of NFFlatten.flatten: time 0.0002783/0.9414, allocations: 201.3 kB / 1.09 GB, free: 3.781 MB / 0.8575 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001272/0.9415, allocations: 24.11 kB / 1.09 GB, free: 3.77 MB / 0.8575 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001614/0.9417, allocations: 82.2 kB / 1.091 GB, free: 3.738 MB / 0.8575 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001402/0.9418, allocations: 91.38 kB / 1.091 GB, free: 3.695 MB / 0.8575 GB Notification: Performance of NFPackage.collectConstants: time 4.008e-05/0.9418, allocations: 14 kB / 1.091 GB, free: 3.695 MB / 0.8575 GB Notification: Performance of NFFlatten.collectFunctions: time 8.181e-05/0.9419, allocations: 34.25 kB / 1.091 GB, free: 3.684 MB / 0.8575 GB Notification: Performance of NFScalarize.scalarize: time 9.437e-05/0.942, allocations: 31.84 kB / 1.091 GB, free: 3.668 MB / 0.8575 GB Notification: Performance of NFVerifyModel.verify: time 0.000108/0.9421, allocations: 76.39 kB / 1.091 GB, free: 3.625 MB / 0.8575 GB Notification: Performance of NFConvertDAE.convert: time 0.0002828/0.9424, allocations: 162.7 kB / 1.091 GB, free: 3.566 MB / 0.8575 GB Notification: Performance of FrontEnd - DAE generated: time 4.278e-06/0.9424, allocations: 3.938 kB / 1.091 GB, free: 3.562 MB / 0.8575 GB Notification: Performance of FrontEnd: time 1.413e-06/0.9425, allocations: 1.031 kB / 1.091 GB, free: 3.562 MB / 0.8575 GB Notification: Performance of Transformations before backend: time 6.031e-06/0.9425, allocations: 0 / 1.091 GB, free: 3.562 MB / 0.8575 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.0006425/0.9431, allocations: 0.5577 MB / 1.091 GB, free: 3.016 MB / 0.8575 GB Notification: Performance of prepare preOptimizeDAE: time 4.266e-05/0.9432, allocations: 10.03 kB / 1.091 GB, free: 3.016 MB / 0.8575 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.017e-05/0.9432, allocations: 23.5 kB / 1.092 GB, free: 3.004 MB / 0.8575 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000312/0.9436, allocations: 230.7 kB / 1.092 GB, free: 2.781 MB / 0.8575 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.028e-05/0.9436, allocations: 11.3 kB / 1.092 GB, free: 2.777 MB / 0.8575 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.424e-05/0.9436, allocations: 11.38 kB / 1.092 GB, free: 2.777 MB / 0.8575 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002857/0.9439, allocations: 119.2 kB / 1.092 GB, free: 2.719 MB / 0.8575 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.847e-06/0.9439, allocations: 0.75 kB / 1.092 GB, free: 2.719 MB / 0.8575 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.864e-05/0.944, allocations: 2.438 kB / 1.092 GB, free: 2.719 MB / 0.8575 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.483e-06/0.944, allocations: 5.688 kB / 1.092 GB, free: 2.715 MB / 0.8575 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002139/0.9442, allocations: 72.31 kB / 1.092 GB, free: 2.695 MB / 0.8575 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006396/0.9448, allocations: 426.6 kB / 1.092 GB, free: 2.359 MB / 0.8575 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002023/0.945, allocations: 86.88 kB / 1.092 GB, free: 2.316 MB / 0.8575 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001724/0.9452, allocations: 75.12 kB / 1.093 GB, free: 2.289 MB / 0.8575 GB Notification: Performance of preOpt evalFunc (simulation): time 2.772e-05/0.9453, allocations: 6.984 kB / 1.093 GB, free: 2.285 MB / 0.8575 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002572/0.9455, allocations: 181.6 kB / 1.093 GB, free: 2.148 MB / 0.8575 GB Notification: Performance of pre-optimization done (n=10): time 1.473e-06/0.9455, allocations: 0 / 1.093 GB, free: 2.148 MB / 0.8575 GB Notification: Performance of matching and sorting (n=10): time 0.0007743/0.9463, allocations: 354.7 kB / 1.093 GB, free: 1.98 MB / 0.8575 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.43e-05/0.9464, allocations: 166.9 kB / 1.093 GB, free: 1.789 MB / 0.8575 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001682/0.9466, allocations: 181.8 kB / 1.093 GB, free: 1.656 MB / 0.8575 GB Notification: Performance of collectPreVariables (initialization): time 2.069e-05/0.9466, allocations: 29.2 kB / 1.093 GB, free: 1.625 MB / 0.8575 GB Notification: Performance of collectInitialEqns (initialization): time 6.087e-05/0.9467, allocations: 111 kB / 1.093 GB, free: 1.52 MB / 0.8575 GB Notification: Performance of collectInitialBindings (initialization): time 2.648e-05/0.9467, allocations: 25.84 kB / 1.094 GB, free: 1.5 MB / 0.8575 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.585e-05/0.9468, allocations: 43.28 kB / 1.094 GB, free: 1.473 MB / 0.8575 GB Notification: Performance of setup shared object (initialization): time 6.946e-05/0.9468, allocations: 327.2 kB / 1.094 GB, free: 1.152 MB / 0.8575 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001518/0.947, allocations: 55.11 kB / 1.094 GB, free: 1.137 MB / 0.8575 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001839/0.9472, allocations: 101.5 kB / 1.094 GB, free: 1.059 MB / 0.8575 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003217/0.9475, allocations: 308.5 kB / 1.094 GB, free: 0.7695 MB / 0.8575 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.078e-06/0.9475, allocations: 0.7812 kB / 1.094 GB, free: 0.7695 MB / 0.8575 GB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0005584/0.9481, allocations: 352.8 kB / 1.095 GB, free: 0.5469 MB / 0.8575 GB Notification: Performance of prepare postOptimizeDAE: time 5.619e-05/0.9482, allocations: 115.6 kB / 1.095 GB, free: 432 kB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.312e-06/0.9482, allocations: 2.469 kB / 1.095 GB, free: 432 kB / 0.8575 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.695e-05/0.9482, allocations: 2.312 kB / 1.095 GB, free: 432 kB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001175/0.9483, allocations: 21.12 kB / 1.095 GB, free: 428 kB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.207e-06/0.9483, allocations: 6.531 kB / 1.095 GB, free: 424 kB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.914e-05/0.9484, allocations: 19.22 kB / 1.095 GB, free: 416 kB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.486e-05/0.9485, allocations: 8.734 kB / 1.095 GB, free: 416 kB / 0.8575 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.0001392/0.9486, allocations: 200.3 kB / 1.095 GB, free: 216 kB / 0.8575 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.724e-05/0.9487, allocations: 18.36 kB / 1.095 GB, free: 208 kB / 0.8575 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.722e-05/0.9487, allocations: 14.84 kB / 1.095 GB, free: 196 kB / 0.8575 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.176e-06/0.9487, allocations: 1.656 kB / 1.095 GB, free: 196 kB / 0.8575 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.3e-06/0.9487, allocations: 288 / 1.095 GB, free: 196 kB / 0.8575 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.318e-06/0.9487, allocations: 1.328 kB / 1.095 GB, free: 196 kB / 0.8575 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008577/0.9496, allocations: 0.5954 MB / 1.096 GB, free: 15.74 MB / 0.8731 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.673e-06/0.9496, allocations: 0.5625 kB / 1.096 GB, free: 15.74 MB / 0.8731 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.951e-05/0.9497, allocations: 12.03 kB / 1.096 GB, free: 15.74 MB / 0.8731 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.567e-06/0.9497, allocations: 0.9062 kB / 1.096 GB, free: 15.74 MB / 0.8731 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.953e-05/0.9497, allocations: 10.52 kB / 1.096 GB, free: 15.73 MB / 0.8731 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.345e-06/0.9497, allocations: 0.7344 kB / 1.096 GB, free: 15.73 MB / 0.8731 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.693e-06/0.9497, allocations: 11.86 kB / 1.096 GB, free: 15.72 MB / 0.8731 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006457/0.9504, allocations: 405.2 kB / 1.096 GB, free: 15.46 MB / 0.8731 GB Notification: Performance of postOpt removeConstants (simulation): time 4.977e-05/0.9505, allocations: 88.56 kB / 1.096 GB, free: 15.36 MB / 0.8731 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.867e-05/0.9505, allocations: 5.266 kB / 1.096 GB, free: 15.36 MB / 0.8731 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001138/0.9506, allocations: 7.703 kB / 1.096 GB, free: 15.36 MB / 0.8731 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.552e-05/0.9507, allocations: 14.42 kB / 1.096 GB, free: 15.36 MB / 0.8731 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.988e-05/0.9507, allocations: 7 kB / 1.096 GB, free: 15.36 MB / 0.8731 GB Notification: Performance of sorting global known variables: time 0.0001342/0.9508, allocations: 129.6 kB / 1.096 GB, free: 15.27 MB / 0.8731 GB Notification: Performance of sort global known variables: time 1.583e-06/0.9509, allocations: 4 kB / 1.096 GB, free: 15.26 MB / 0.8731 GB Notification: Performance of remove unused functions: time 0.0003161/0.9512, allocations: 39.19 kB / 1.096 GB, free: 15.25 MB / 0.8731 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.000271/0.9515, allocations: 130.4 kB / 1.096 GB, free: 15.15 MB / 0.8731 GB Notification: Performance of simCode: created initialization part: time 0.0005675/0.952, allocations: 360.5 kB / 1.097 GB, free: 14.86 MB / 0.8731 GB Notification: Performance of simCode: created event and clocks part: time 2.074e-06/0.952, allocations: 1.156 kB / 1.097 GB, free: 14.86 MB / 0.8731 GB Notification: Performance of simCode: created simulation system equations: time 0.0002862/0.9523, allocations: 207 kB / 1.097 GB, free: 14.7 MB / 0.8731 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003147/0.9527, allocations: 24.39 kB / 1.097 GB, free: 14.7 MB / 0.8731 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000688/0.9534, allocations: 293 kB / 1.097 GB, free: 14.51 MB / 0.8731 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003354/0.9537, allocations: 0.7095 MB / 1.098 GB, free: 13.81 MB / 0.8731 GB Notification: Performance of simCode: alias equations: time 7.894e-05/0.9538, allocations: 19.78 kB / 1.098 GB, free: 13.81 MB / 0.8731 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.128e-05/0.9538, allocations: 19.5 kB / 1.098 GB, free: 13.8 MB / 0.8731 GB Notification: Performance of SimCode: time 1.91e-07/0.9538, allocations: 0 / 1.098 GB, free: 13.8 MB / 0.8731 GB Notification: Performance of Templates: time 0.006849/0.9607, allocations: 2.076 MB / 1.1 GB, free: 13.5 MB / 0.8731 GB make -j1 -f Buildings_9_Buildings.Utilities.IO.Files.Examples.CSVWriter.makefile (rm -f Buildings_9_Buildings.Utilities.IO.Files.Examples.CSVWriter.pipe ; mkfifo Buildings_9_Buildings.Utilities.IO.Files.Examples.CSVWriter.pipe ; head -c 1048576 < Buildings_9_Buildings.Utilities.IO.Files.Examples.CSVWriter.pipe >> ../files/Buildings_9_Buildings.Utilities.IO.Files.Examples.CSVWriter.sim & ./Buildings_9_Buildings.Utilities.IO.Files.Examples.CSVWriter -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Utilities.IO.Files.Examples.CSVWriter.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Utilities.IO.Files.Examples.CSVWriter_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Utilities_IO_Files_Examples_CSVWriter.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Utilities.IO.Files.Examples.CSVWriter.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches