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: "" <> buildModelFMU(Buildings.Utilities.IO.Files.Examples.CSVWriter,fileNamePrefix="Buildings_9_Buildings_Utilities_IO_Files_Examples_CSVWriter",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Utilities.IO.Files.Examples.CSVWriter,fileNamePrefix="Buildings_9_Buildings_Utilities_IO_Files_Examples_CSVWriter",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001205/0.001205, allocations: 108 kB / 15.6 MB, free: 132 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001184/0.001184, allocations: 192.5 kB / 16.53 MB, free: 6.391 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.207/1.207, allocations: 222.9 MB / 240.2 MB, free: 4.414 MB / 190.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.099/2.099, allocations: 390.2 MB / 0.6647 GB, free: 268 kB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001161/0.001162, allocations: 59.91 kB / 0.8126 GB, free: 14.18 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.522/0.5231, allocations: 140.4 MB / 0.9497 GB, free: 9.219 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.IO.Files.Examples.CSVWriter): time 0.002364/0.5256, allocations: 1.596 MB / 0.9513 GB, free: 7.965 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.000686/0.5262, allocations: 0.6109 MB / 0.9519 GB, free: 7.484 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.674e-05/0.5263, allocations: 5.312 kB / 0.9519 GB, free: 7.48 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 0.0001224/0.5265, allocations: 26.12 kB / 0.9519 GB, free: 7.457 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 0.0001641/0.5266, allocations: 41.88 kB / 0.952 GB, free: 7.426 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003233/0.527, allocations: 108.5 kB / 0.9521 GB, free: 7.348 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 0.0001783/0.5271, allocations: 197.8 kB / 0.9522 GB, free: 7.238 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001037/0.5273, allocations: 33.89 kB / 0.9523 GB, free: 7.215 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001157/0.5274, allocations: 81.53 kB / 0.9524 GB, free: 7.172 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001078/0.5275, allocations: 87.72 kB / 0.9524 GB, free: 7.113 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 3.732e-05/0.5275, allocations: 18.03 kB / 0.9525 GB, free: 7.109 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 6.276e-05/0.5276, allocations: 25.5 kB / 0.9525 GB, free: 7.105 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 6.962e-05/0.5277, allocations: 30 kB / 0.9525 GB, free: 7.086 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 7.433e-05/0.5278, allocations: 77.22 kB / 0.9526 GB, free: 7.035 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.0001708/0.5279, allocations: 163.2 kB / 0.9527 GB, free: 6.922 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 3.497e-06/0.5279, allocations: 0 / 0.9527 GB, free: 6.922 MB / 0.7169 GB Notification: Performance of FrontEnd: time 1.092e-06/0.528, allocations: 0 / 0.9527 GB, free: 6.922 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 4.639e-06/0.528, allocations: 2.312 kB / 0.9527 GB, free: 6.922 MB / 0.7169 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.0005161/0.5285, allocations: 0.5607 MB / 0.9533 GB, free: 6.348 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 3.249e-05/0.5285, allocations: 8.906 kB / 0.9533 GB, free: 6.348 MB / 0.7169 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.185e-05/0.5286, allocations: 42.98 kB / 0.9533 GB, free: 6.301 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.985e-05/0.5286, allocations: 15.81 kB / 0.9534 GB, free: 6.297 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002091/0.5288, allocations: 234.6 kB / 0.9536 GB, free: 6.051 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.264e-05/0.5288, allocations: 10.66 kB / 0.9536 GB, free: 6.047 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.829e-05/0.5289, allocations: 10.56 kB / 0.9536 GB, free: 6.047 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002264/0.5291, allocations: 123.9 kB / 0.9537 GB, free: 5.961 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.993e-06/0.5291, allocations: 0 / 0.9537 GB, free: 5.961 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.446e-05/0.5291, allocations: 6.5 kB / 0.9537 GB, free: 5.957 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.778e-06/0.5292, allocations: 1.312 kB / 0.9537 GB, free: 5.957 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001759/0.5293, allocations: 66.92 kB / 0.9538 GB, free: 5.93 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004891/0.5298, allocations: 425.2 kB / 0.9542 GB, free: 5.531 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001593/0.53, allocations: 90.84 kB / 0.9543 GB, free: 5.473 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001379/0.5301, allocations: 76.41 kB / 0.9543 GB, free: 5.434 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 1.749e-05/0.5302, allocations: 5 kB / 0.9544 GB, free: 5.43 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002088/0.5304, allocations: 177.5 kB / 0.9545 GB, free: 5.273 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=10): time 2.004e-06/0.5304, allocations: 4 kB / 0.9545 GB, free: 5.27 MB / 0.7169 GB Notification: Performance of matching and sorting (n=10): time 0.0006177/0.531, allocations: 351.3 kB / 0.9549 GB, free: 5.066 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.448e-05/0.5311, allocations: 167.8 kB / 0.955 GB, free: 4.871 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001179/0.5312, allocations: 177 kB / 0.9552 GB, free: 4.73 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 1.622e-05/0.5312, allocations: 33.95 kB / 0.9552 GB, free: 4.695 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 4.091e-05/0.5313, allocations: 103.2 kB / 0.9553 GB, free: 4.594 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 2.022e-05/0.5313, allocations: 28.77 kB / 0.9553 GB, free: 4.57 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.616e-05/0.5313, allocations: 45.11 kB / 0.9554 GB, free: 4.539 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 4.404e-05/0.5314, allocations: 323.8 kB / 0.9557 GB, free: 4.215 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001101/0.5315, allocations: 54.14 kB / 0.9558 GB, free: 4.191 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001273/0.5316, allocations: 100.4 kB / 0.9558 GB, free: 4.102 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002454/0.5319, allocations: 313.4 kB / 0.9561 GB, free: 3.793 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.805e-06/0.5319, allocations: 1.469 kB / 0.9561 GB, free: 3.793 MB / 0.7169 GB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0004177/0.5323, allocations: 344.2 kB / 0.9565 GB, free: 3.551 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 4.165e-05/0.5324, allocations: 120.5 kB / 0.9566 GB, free: 3.418 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.139e-06/0.5324, allocations: 1.625 kB / 0.9566 GB, free: 3.418 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.536e-05/0.5324, allocations: 6.969 kB / 0.9566 GB, free: 3.414 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.753e-05/0.5325, allocations: 16.98 kB / 0.9566 GB, free: 3.41 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.111e-06/0.5325, allocations: 2.969 kB / 0.9566 GB, free: 3.41 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.218e-05/0.5326, allocations: 20.64 kB / 0.9566 GB, free: 3.398 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.931e-05/0.5326, allocations: 11.91 kB / 0.9566 GB, free: 3.395 MB / 0.7169 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 9.832e-05/0.5328, allocations: 199.9 kB / 0.9568 GB, free: 3.195 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.182e-05/0.5328, allocations: 18 kB / 0.9569 GB, free: 3.188 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.696e-05/0.5328, allocations: 17.2 kB / 0.9569 GB, free: 3.176 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.823e-06/0.5328, allocations: 7.984 kB / 0.9569 GB, free: 3.168 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.597e-06/0.5328, allocations: 1.156 kB / 0.9569 GB, free: 3.168 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.985e-06/0.5328, allocations: 0 / 0.9569 GB, free: 3.168 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00055/0.5334, allocations: 0.5858 MB / 0.9575 GB, free: 2.664 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.104e-06/0.5334, allocations: 1.688 kB / 0.9575 GB, free: 2.664 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.838e-05/0.5335, allocations: 7.219 kB / 0.9575 GB, free: 2.664 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.124e-06/0.5335, allocations: 5.375 kB / 0.9575 GB, free: 2.66 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.816e-05/0.5335, allocations: 16.2 kB / 0.9575 GB, free: 2.648 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.874e-06/0.5335, allocations: 1.5 kB / 0.9575 GB, free: 2.648 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.393e-06/0.5335, allocations: 3.938 kB / 0.9575 GB, free: 2.645 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004333/0.534, allocations: 399.3 kB / 0.9579 GB, free: 2.359 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 2.089e-05/0.534, allocations: 84.3 kB / 0.958 GB, free: 2.262 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.253e-05/0.534, allocations: 4.531 kB / 0.958 GB, free: 2.262 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001087/0.5341, allocations: 13.7 kB / 0.958 GB, free: 2.254 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.859e-05/0.5342, allocations: 11.22 kB / 0.958 GB, free: 2.246 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.725e-05/0.5342, allocations: 14.7 kB / 0.958 GB, free: 2.238 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 7.058e-05/0.5343, allocations: 125.8 kB / 0.9581 GB, free: 2.141 MB / 0.7169 GB Notification: Performance of sort global known variables: time 1e-07/0.5343, allocations: 0 / 0.9581 GB, free: 2.141 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.0002695/0.5346, allocations: 42.92 kB / 0.9582 GB, free: 2.129 MB / 0.7169 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.0006809/0.5352, allocations: 0.9616 MB / 0.9591 GB, free: 1.301 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.0003808/0.5356, allocations: 373.5 kB / 0.9594 GB, free: 0.9766 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 1.673e-06/0.5356, allocations: 0 / 0.9594 GB, free: 0.9766 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 0.0001814/0.5358, allocations: 209.8 kB / 0.9596 GB, free: 0.8008 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002724/0.5361, allocations: 26.94 kB / 0.9597 GB, free: 0.7852 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001988/0.5381, allocations: 2.101 MB / 0.9617 GB, free: 14.99 MB / 0.7325 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002249/0.5383, allocations: 0.7047 MB / 0.9624 GB, free: 14.29 MB / 0.7325 GB Notification: Performance of simCode: alias equations: time 5.771e-05/0.5384, allocations: 20.41 kB / 0.9624 GB, free: 14.28 MB / 0.7325 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.391e-05/0.5385, allocations: 36.89 kB / 0.9625 GB, free: 14.25 MB / 0.7325 GB Notification: Performance of SimCode: time 3.21e-07/0.5385, allocations: 0 / 0.9625 GB, free: 14.25 MB / 0.7325 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.12/0.6585, allocations: 3.589 MB / 0.966 GB, free: 12.36 MB / 0.7325 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.326/7.985, allocations: 3.25 kB / 0.966 GB, free: 12.36 MB / 0.7325 GB (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_9_Buildings.Utilities.IO.Files.Examples.CSVWriter_res.mat --tempDir=temp_Buildings_9_Buildings_Utilities_IO_Files_Examples_CSVWriter_fmu --startTime=-1.21 --stopTime=10 --timeout=50 --tolerance=1e-06 Buildings_9_Buildings_Utilities_IO_Files_Examples_CSVWriter.fmu > 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