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.001617/0.001616, allocations: 109 kB / 16.41 MB, free: 6.5 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: 183 kB / 17.34 MB, free: 5.762 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.465/1.465, allocations: 222.9 MB / 241 MB, free: 15.15 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.596/2.596, allocations: 390.3 MB / 0.6655 GB, free: 0.668 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.001397/0.001397, allocations: 63.91 kB / 0.9515 GB, free: 7.664 MB / 0.7325 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7977/0.7991, allocations: 140.4 MB / 1.089 GB, free: 5.52 MB / 0.8575 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.IO.Files.Examples.CSVWriter): time 0.002842/0.802, allocations: 1.616 MB / 1.09 GB, free: 4.402 MB / 0.8575 GB Notification: Performance of NFInst.instExpressions: time 0.0008821/0.8029, allocations: 0.6061 MB / 1.091 GB, free: 3.984 MB / 0.8575 GB Notification: Performance of NFInst.updateImplicitVariability: time 7.091e-05/0.8029, allocations: 2.188 kB / 1.091 GB, free: 3.984 MB / 0.8575 GB Notification: Performance of NFTyping.typeComponents: time 0.0001536/0.8031, allocations: 17.08 kB / 1.091 GB, free: 3.973 MB / 0.8575 GB Notification: Performance of NFTyping.typeBindings: time 0.0002149/0.8033, allocations: 48.59 kB / 1.091 GB, free: 3.941 MB / 0.8575 GB Notification: Performance of NFTyping.typeClassSections: time 0.000386/0.8037, allocations: 114.9 kB / 1.091 GB, free: 3.879 MB / 0.8575 GB Notification: Performance of NFFlatten.flatten: time 0.0002512/0.804, allocations: 193.2 kB / 1.091 GB, free: 3.797 MB / 0.8575 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001256/0.8041, allocations: 36.98 kB / 1.091 GB, free: 3.773 MB / 0.8575 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001579/0.8043, allocations: 82.09 kB / 1.091 GB, free: 3.742 MB / 0.8575 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001535/0.8044, allocations: 83.08 kB / 1.091 GB, free: 3.707 MB / 0.8575 GB Notification: Performance of NFPackage.collectConstants: time 4.828e-05/0.8045, allocations: 17.78 kB / 1.091 GB, free: 3.703 MB / 0.8575 GB Notification: Performance of NFFlatten.collectFunctions: time 8.573e-05/0.8046, allocations: 30.66 kB / 1.091 GB, free: 3.695 MB / 0.8575 GB Notification: Performance of NFScalarize.scalarize: time 9.322e-05/0.8047, allocations: 27.62 kB / 1.091 GB, free: 3.684 MB / 0.8575 GB Notification: Performance of NFVerifyModel.verify: time 0.0001027/0.8048, allocations: 72.38 kB / 1.091 GB, free: 3.645 MB / 0.8575 GB Notification: Performance of NFConvertDAE.convert: time 0.0002626/0.8051, allocations: 167.3 kB / 1.092 GB, free: 3.578 MB / 0.8575 GB Notification: Performance of FrontEnd - DAE generated: time 3.958e-06/0.8051, allocations: 0 / 1.092 GB, free: 3.578 MB / 0.8575 GB Notification: Performance of FrontEnd: time 1.944e-06/0.8051, allocations: 0 / 1.092 GB, free: 3.578 MB / 0.8575 GB Notification: Performance of Transformations before backend: time 5.961e-06/0.8051, allocations: 4 kB / 1.092 GB, free: 3.574 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.000631/0.8057, allocations: 0.5595 MB / 1.092 GB, free: 3.031 MB / 0.8575 GB Notification: Performance of prepare preOptimizeDAE: time 3.918e-05/0.8058, allocations: 10.28 kB / 1.092 GB, free: 3.031 MB / 0.8575 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.585e-05/0.8059, allocations: 18.94 kB / 1.092 GB, free: 3.023 MB / 0.8575 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002936/0.8062, allocations: 231.2 kB / 1.092 GB, free: 2.801 MB / 0.8575 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.083e-05/0.8062, allocations: 10.91 kB / 1.092 GB, free: 2.797 MB / 0.8575 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.646e-05/0.8062, allocations: 19.38 kB / 1.092 GB, free: 2.789 MB / 0.8575 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002824/0.8065, allocations: 120.3 kB / 1.093 GB, free: 2.73 MB / 0.8575 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.506e-06/0.8065, allocations: 0 / 1.093 GB, free: 2.73 MB / 0.8575 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.955e-05/0.8066, allocations: 2.469 kB / 1.093 GB, free: 2.73 MB / 0.8575 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.441e-06/0.8066, allocations: 1.531 kB / 1.093 GB, free: 2.73 MB / 0.8575 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002082/0.8068, allocations: 73 kB / 1.093 GB, free: 2.711 MB / 0.8575 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006149/0.8074, allocations: 421.8 kB / 1.093 GB, free: 2.379 MB / 0.8575 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001921/0.8076, allocations: 87.33 kB / 1.093 GB, free: 2.336 MB / 0.8575 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001586/0.8078, allocations: 75.2 kB / 1.093 GB, free: 2.309 MB / 0.8575 GB Notification: Performance of preOpt evalFunc (simulation): time 2.612e-05/0.8078, allocations: 5.969 kB / 1.093 GB, free: 2.305 MB / 0.8575 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002608/0.8081, allocations: 185.9 kB / 1.093 GB, free: 2.164 MB / 0.8575 GB Notification: Performance of pre-optimization done (n=10): time 1.552e-06/0.8081, allocations: 0 / 1.093 GB, free: 2.164 MB / 0.8575 GB Notification: Performance of matching and sorting (n=10): time 0.0007562/0.8089, allocations: 351.3 kB / 1.094 GB, free: 2 MB / 0.8575 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.561e-05/0.8089, allocations: 162.7 kB / 1.094 GB, free: 1.812 MB / 0.8575 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000153/0.8091, allocations: 181.2 kB / 1.094 GB, free: 1.68 MB / 0.8575 GB Notification: Performance of collectPreVariables (initialization): time 2.033e-05/0.8091, allocations: 29.36 kB / 1.094 GB, free: 1.648 MB / 0.8575 GB Notification: Performance of collectInitialEqns (initialization): time 5.736e-05/0.8092, allocations: 115.2 kB / 1.094 GB, free: 1.539 MB / 0.8575 GB Notification: Performance of collectInitialBindings (initialization): time 2.769e-05/0.8092, allocations: 29.98 kB / 1.094 GB, free: 1.516 MB / 0.8575 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.38e-05/0.8093, allocations: 43.05 kB / 1.094 GB, free: 1.488 MB / 0.8575 GB Notification: Performance of setup shared object (initialization): time 5.535e-05/0.8093, allocations: 327.1 kB / 1.095 GB, free: 1.168 MB / 0.8575 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001447/0.8095, allocations: 51.48 kB / 1.095 GB, free: 1.156 MB / 0.8575 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001567/0.8097, allocations: 105.2 kB / 1.095 GB, free: 1.074 MB / 0.8575 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002928/0.81, allocations: 312 kB / 1.095 GB, free: 0.7812 MB / 0.8575 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.695e-06/0.81, allocations: 0.7812 kB / 1.095 GB, free: 0.7812 MB / 0.8575 GB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0005273/0.8105, allocations: 340.7 kB / 1.095 GB, free: 0.5703 MB / 0.8575 GB Notification: Performance of prepare postOptimizeDAE: time 6.192e-05/0.8106, allocations: 124.9 kB / 1.095 GB, free: 448 kB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.173e-06/0.8106, allocations: 2.438 kB / 1.095 GB, free: 448 kB / 0.8575 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.694e-05/0.8106, allocations: 2.625 kB / 1.095 GB, free: 448 kB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001199/0.8107, allocations: 19.48 kB / 1.095 GB, free: 444 kB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.937e-06/0.8108, allocations: 3.672 kB / 1.095 GB, free: 444 kB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001047/0.8109, allocations: 18.72 kB / 1.095 GB, free: 436 kB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.393e-05/0.8109, allocations: 8.281 kB / 1.096 GB, free: 436 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.000133/0.811, allocations: 201.3 kB / 1.096 GB, free: 236 kB / 0.8575 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.067e-05/0.8111, allocations: 22.3 kB / 1.096 GB, free: 224 kB / 0.8575 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.983e-05/0.8111, allocations: 14.25 kB / 1.096 GB, free: 212 kB / 0.8575 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.047e-06/0.8111, allocations: 1.609 kB / 1.096 GB, free: 212 kB / 0.8575 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.4e-06/0.8111, allocations: 0 / 1.096 GB, free: 212 kB / 0.8575 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.459e-06/0.8112, allocations: 1.375 kB / 1.096 GB, free: 212 kB / 0.8575 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008189/0.812, allocations: 0.58 MB / 1.096 GB, free: 15.77 MB / 0.8731 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.983e-06/0.812, allocations: 0.9688 kB / 1.096 GB, free: 15.77 MB / 0.8731 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.572e-05/0.8121, allocations: 10.53 kB / 1.096 GB, free: 15.77 MB / 0.8731 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.745e-06/0.8121, allocations: 9.516 kB / 1.096 GB, free: 15.76 MB / 0.8731 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.326e-05/0.8121, allocations: 11 kB / 1.096 GB, free: 15.76 MB / 0.8731 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.485e-06/0.8121, allocations: 1.062 kB / 1.096 GB, free: 15.76 MB / 0.8731 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.338e-06/0.8121, allocations: 7.922 kB / 1.096 GB, free: 15.75 MB / 0.8731 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006339/0.8128, allocations: 404.2 kB / 1.097 GB, free: 15.49 MB / 0.8731 GB Notification: Performance of postOpt removeConstants (simulation): time 5.966e-05/0.8129, allocations: 88.62 kB / 1.097 GB, free: 15.39 MB / 0.8731 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.741e-05/0.8129, allocations: 5.359 kB / 1.097 GB, free: 15.39 MB / 0.8731 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001192/0.813, allocations: 15.25 kB / 1.097 GB, free: 15.38 MB / 0.8731 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.984e-05/0.8131, allocations: 13.81 kB / 1.097 GB, free: 15.38 MB / 0.8731 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.119e-05/0.8131, allocations: 8.141 kB / 1.097 GB, free: 15.38 MB / 0.8731 GB Notification: Performance of sorting global known variables: time 0.0001148/0.8132, allocations: 129.2 kB / 1.097 GB, free: 15.29 MB / 0.8731 GB Notification: Performance of sort global known variables: time 1.21e-07/0.8132, allocations: 0.5938 kB / 1.097 GB, free: 15.29 MB / 0.8731 GB Notification: Performance of remove unused functions: time 0.0003238/0.8136, allocations: 35.23 kB / 1.097 GB, free: 15.28 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.0002689/0.8138, allocations: 136.4 kB / 1.097 GB, free: 15.18 MB / 0.8731 GB Notification: Performance of simCode: created initialization part: time 0.0005382/0.8144, allocations: 360.8 kB / 1.097 GB, free: 14.89 MB / 0.8731 GB Notification: Performance of simCode: created event and clocks part: time 2.114e-06/0.8144, allocations: 0 / 1.097 GB, free: 14.89 MB / 0.8731 GB Notification: Performance of simCode: created simulation system equations: time 0.000265/0.8147, allocations: 208.8 kB / 1.098 GB, free: 14.73 MB / 0.8731 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003178/0.815, allocations: 22.28 kB / 1.098 GB, free: 14.72 MB / 0.8731 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006748/0.8157, allocations: 312.3 kB / 1.098 GB, free: 14.51 MB / 0.8731 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002893/0.816, allocations: 0.7056 MB / 1.099 GB, free: 13.81 MB / 0.8731 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.546e-05/0.816, allocations: 14.91 kB / 1.099 GB, free: 13.8 MB / 0.8731 GB Notification: Performance of SimCode: time 4.91e-07/0.8161, allocations: 0 / 1.099 GB, free: 13.8 MB / 0.8731 GB Notification: Performance of Templates: time 0.00532/0.8214, allocations: 2.186 MB / 1.101 GB, free: 13.51 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/jenkins1/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