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 12.0.0-master/package.mo", uses=false) Using package Buildings with version 12.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.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.001376/0.001376, allocations: 107.7 kB / 16.41 MB, free: 6.453 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.001494/0.001494, allocations: 192 kB / 17.34 MB, free: 5.711 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.442/1.442, allocations: 222.9 MB / 241 MB, free: 15.09 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.788/2.788, allocations: 474.5 MB / 0.7477 GB, free: 14.07 MB / 0.6231 GB Notification: Performance of FrontEnd - loaded program: time 0.001959/0.001959, allocations: 63.91 kB / 1.073 GB, free: 7.191 MB / 0.8419 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8093/0.8113, allocations: 160.3 MB / 1.229 GB, free: 10.98 MB / 0.9512 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.IO.Files.Examples.CSVWriter): time 0.002879/0.8142, allocations: 1.612 MB / 1.231 GB, free: 9.352 MB / 0.9512 GB Notification: Performance of NFInst.instExpressions: time 0.001071/0.8153, allocations: 0.6171 MB / 1.231 GB, free: 8.73 MB / 0.9512 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.988e-05/0.8154, allocations: 7.938 kB / 1.231 GB, free: 8.723 MB / 0.9512 GB Notification: Performance of NFTyping.typeComponents: time 0.0001448/0.8156, allocations: 15.81 kB / 1.231 GB, free: 8.707 MB / 0.9512 GB Notification: Performance of NFTyping.typeBindings: time 0.0002082/0.8158, allocations: 47.75 kB / 1.231 GB, free: 8.66 MB / 0.9512 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004067/0.8162, allocations: 119.7 kB / 1.232 GB, free: 8.543 MB / 0.9512 GB Notification: Performance of NFFlatten.flatten: time 0.0002778/0.8165, allocations: 199.6 kB / 1.232 GB, free: 8.348 MB / 0.9512 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001124/0.8166, allocations: 29.09 kB / 1.232 GB, free: 8.32 MB / 0.9512 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001446/0.8168, allocations: 79.81 kB / 1.232 GB, free: 8.242 MB / 0.9512 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001449/0.8169, allocations: 87.66 kB / 1.232 GB, free: 8.156 MB / 0.9512 GB Notification: Performance of NFPackage.collectConstants: time 3.437e-05/0.817, allocations: 12 kB / 1.232 GB, free: 8.145 MB / 0.9512 GB Notification: Performance of NFFlatten.collectFunctions: time 7.637e-05/0.817, allocations: 36 kB / 1.232 GB, free: 8.109 MB / 0.9512 GB Notification: Performance of NFScalarize.scalarize: time 8.138e-05/0.8171, allocations: 27.89 kB / 1.232 GB, free: 8.082 MB / 0.9512 GB Notification: Performance of NFVerifyModel.verify: time 0.0001045/0.8172, allocations: 79.66 kB / 1.232 GB, free: 8.004 MB / 0.9512 GB Notification: Performance of NFConvertDAE.convert: time 0.0002653/0.8175, allocations: 160 kB / 1.232 GB, free: 7.852 MB / 0.9512 GB Notification: Performance of FrontEnd - DAE generated: time 6.462e-06/0.8175, allocations: 0 / 1.232 GB, free: 7.852 MB / 0.9512 GB Notification: Performance of FrontEnd: time 1.613e-06/0.8175, allocations: 0 / 1.232 GB, free: 7.852 MB / 0.9512 GB Notification: Performance of Transformations before backend: time 7.013e-06/0.8176, allocations: 4 kB / 1.232 GB, free: 7.848 MB / 0.9512 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.0009341/0.8185, allocations: 0.5561 MB / 1.233 GB, free: 7.219 MB / 0.9512 GB Notification: Performance of prepare preOptimizeDAE: time 5.244e-05/0.8186, allocations: 12.02 kB / 1.233 GB, free: 7.207 MB / 0.9512 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.503e-05/0.8187, allocations: 28.84 kB / 1.233 GB, free: 7.18 MB / 0.9512 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004403/0.8191, allocations: 236.2 kB / 1.233 GB, free: 6.91 MB / 0.9512 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.738e-05/0.8191, allocations: 8.375 kB / 1.233 GB, free: 6.902 MB / 0.9512 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.855e-05/0.8192, allocations: 12.38 kB / 1.233 GB, free: 6.891 MB / 0.9512 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003322/0.8195, allocations: 113.7 kB / 1.233 GB, free: 6.773 MB / 0.9512 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.252e-05/0.8195, allocations: 0 / 1.233 GB, free: 6.773 MB / 0.9512 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.34e-05/0.8196, allocations: 8 kB / 1.233 GB, free: 6.766 MB / 0.9512 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.241e-06/0.8196, allocations: 4 kB / 1.233 GB, free: 6.762 MB / 0.9512 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002243/0.8198, allocations: 71.88 kB / 1.233 GB, free: 6.691 MB / 0.9512 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007632/0.8206, allocations: 416.5 kB / 1.234 GB, free: 6.234 MB / 0.9512 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002224/0.8208, allocations: 86.56 kB / 1.234 GB, free: 6.141 MB / 0.9512 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001686/0.821, allocations: 76.81 kB / 1.234 GB, free: 6.062 MB / 0.9512 GB Notification: Performance of preOpt evalFunc (simulation): time 3.139e-05/0.821, allocations: 8.141 kB / 1.234 GB, free: 6.055 MB / 0.9512 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000298/0.8213, allocations: 174.7 kB / 1.234 GB, free: 5.859 MB / 0.9512 GB Notification: Performance of pre-optimization done (n=10): time 1.673e-06/0.8213, allocations: 0 / 1.234 GB, free: 5.859 MB / 0.9512 GB Notification: Performance of matching and sorting (n=10): time 0.0007682/0.8221, allocations: 352.7 kB / 1.234 GB, free: 5.496 MB / 0.9512 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001103/0.8222, allocations: 170.2 kB / 1.234 GB, free: 5.293 MB / 0.9512 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001915/0.8224, allocations: 178.7 kB / 1.235 GB, free: 5.105 MB / 0.9512 GB Notification: Performance of collectPreVariables (initialization): time 2.944e-05/0.8225, allocations: 29.7 kB / 1.235 GB, free: 5.07 MB / 0.9512 GB Notification: Performance of collectInitialEqns (initialization): time 8.87e-05/0.8226, allocations: 108.4 kB / 1.235 GB, free: 4.957 MB / 0.9512 GB Notification: Performance of collectInitialBindings (initialization): time 3.417e-05/0.8226, allocations: 31.73 kB / 1.235 GB, free: 4.926 MB / 0.9512 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.724e-05/0.8227, allocations: 37.7 kB / 1.235 GB, free: 4.883 MB / 0.9512 GB Notification: Performance of setup shared object (initialization): time 0.0001586/0.8229, allocations: 334.7 kB / 1.235 GB, free: 4.547 MB / 0.9512 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001401/0.823, allocations: 59.95 kB / 1.235 GB, free: 4.488 MB / 0.9512 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001752/0.8232, allocations: 101.4 kB / 1.235 GB, free: 4.367 MB / 0.9512 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003752/0.8236, allocations: 309 kB / 1.236 GB, free: 4.004 MB / 0.9512 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.384e-06/0.8236, allocations: 0 / 1.236 GB, free: 4.004 MB / 0.9512 GB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0005618/0.8242, allocations: 352.1 kB / 1.236 GB, free: 3.629 MB / 0.9512 GB Notification: Performance of prepare postOptimizeDAE: time 9.067e-05/0.8243, allocations: 114.8 kB / 1.236 GB, free: 3.492 MB / 0.9512 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.644e-06/0.8243, allocations: 4 kB / 1.236 GB, free: 3.488 MB / 0.9512 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.743e-05/0.8243, allocations: 3.984 kB / 1.236 GB, free: 3.484 MB / 0.9512 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001161/0.8244, allocations: 15.94 kB / 1.236 GB, free: 3.469 MB / 0.9512 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.335e-05/0.8244, allocations: 8.234 kB / 1.236 GB, free: 3.461 MB / 0.9512 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.964e-05/0.8245, allocations: 16 kB / 1.236 GB, free: 3.445 MB / 0.9512 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.175e-05/0.8246, allocations: 8 kB / 1.236 GB, free: 3.438 MB / 0.9512 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.0001799/0.8248, allocations: 205.9 kB / 1.236 GB, free: 3.215 MB / 0.9512 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.622e-05/0.8248, allocations: 19.89 kB / 1.236 GB, free: 3.195 MB / 0.9512 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.043e-05/0.8248, allocations: 13.41 kB / 1.236 GB, free: 3.176 MB / 0.9512 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.891e-06/0.8249, allocations: 4 kB / 1.236 GB, free: 3.172 MB / 0.9512 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.108e-06/0.8249, allocations: 0 / 1.236 GB, free: 3.172 MB / 0.9512 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.616e-06/0.8249, allocations: 0 / 1.236 GB, free: 3.172 MB / 0.9512 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007702/0.8257, allocations: 0.5875 MB / 1.237 GB, free: 2.516 MB / 0.9512 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.968e-06/0.8257, allocations: 4 kB / 1.237 GB, free: 2.512 MB / 0.9512 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.142e-05/0.8257, allocations: 19.92 kB / 1.237 GB, free: 2.492 MB / 0.9512 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.914e-06/0.8258, allocations: 0 / 1.237 GB, free: 2.492 MB / 0.9512 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.937e-05/0.8258, allocations: 4.281 kB / 1.237 GB, free: 2.488 MB / 0.9512 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.423e-06/0.8258, allocations: 0 / 1.237 GB, free: 2.488 MB / 0.9512 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.595e-06/0.8258, allocations: 3.938 kB / 1.237 GB, free: 2.484 MB / 0.9512 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005903/0.8264, allocations: 406.7 kB / 1.237 GB, free: 2.059 MB / 0.9512 GB Notification: Performance of postOpt removeConstants (simulation): time 5.155e-05/0.8264, allocations: 85.06 kB / 1.237 GB, free: 1.957 MB / 0.9512 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.941e-05/0.8265, allocations: 15.92 kB / 1.237 GB, free: 1.941 MB / 0.9512 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001129/0.8266, allocations: 8 kB / 1.237 GB, free: 1.934 MB / 0.9512 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.035e-05/0.8267, allocations: 11.92 kB / 1.237 GB, free: 1.922 MB / 0.9512 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.968e-05/0.8267, allocations: 8 kB / 1.237 GB, free: 1.914 MB / 0.9512 GB Notification: Performance of sorting global known variables: time 0.0001182/0.8268, allocations: 136.8 kB / 1.238 GB, free: 1.781 MB / 0.9512 GB Notification: Performance of sort global known variables: time 1.5e-07/0.8268, allocations: 4 kB / 1.238 GB, free: 1.777 MB / 0.9512 GB Notification: Performance of remove unused functions: time 0.0002977/0.8271, allocations: 43.89 kB / 1.238 GB, free: 1.734 MB / 0.9512 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.0002519/0.8274, allocations: 115.9 kB / 1.238 GB, free: 1.617 MB / 0.9512 GB Notification: Performance of simCode: created initialization part: time 0.0005427/0.8279, allocations: 369.4 kB / 1.238 GB, free: 1.207 MB / 0.9512 GB Notification: Performance of simCode: created event and clocks part: time 1.814e-06/0.8279, allocations: 0 / 1.238 GB, free: 1.207 MB / 0.9512 GB Notification: Performance of simCode: created simulation system equations: time 0.0002586/0.8282, allocations: 202.8 kB / 1.238 GB, free: 0.9844 MB / 0.9512 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002994/0.8285, allocations: 17.41 kB / 1.238 GB, free: 0.9688 MB / 0.9512 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000616/0.8292, allocations: 300.1 kB / 1.239 GB, free: 0.6445 MB / 0.9512 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000351/0.8295, allocations: 0.7118 MB / 1.239 GB, free: 15.91 MB / 0.9669 GB Notification: Performance of simCode: alias equations: time 6.773e-05/0.8296, allocations: 20.53 kB / 1.239 GB, free: 15.89 MB / 0.9669 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.58e-05/0.8296, allocations: 15.44 kB / 1.239 GB, free: 15.87 MB / 0.9669 GB Notification: Performance of SimCode: time 2.9e-07/0.8296, allocations: 0 / 1.239 GB, free: 15.87 MB / 0.9669 GB Notification: Performance of Templates: time 0.005624/0.8353, allocations: 2.099 MB / 1.241 GB, free: 13.8 MB / 0.9669 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 -s gbode -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/jenkins1/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