Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_11_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.1.0-maint.11.x/package.mo", uses=false) Using package Buildings with version 11.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-maint.11.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_11_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_11_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.006959/0.006959, allocations: 98.05 kB / 15.73 MB, free: 5.551 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.001578/0.001578, allocations: 192.7 kB / 16.67 MB, free: 5.473 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.42/1.42, allocations: 222.9 MB / 240.4 MB, free: 14.94 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-maint.11.x/package.mo): time 2.619/2.619, allocations: 469.8 MB / 0.7425 GB, free: 3.363 MB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.001208/0.001208, allocations: 67.89 kB / 1.065 GB, free: 13.57 MB / 0.8419 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8208/0.822, allocations: 159.1 MB / 1.221 GB, free: 2.117 MB / 0.9356 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.IO.Files.Examples.CSVWriter): time 0.002672/0.8247, allocations: 1.62 MB / 1.222 GB, free: 500 kB / 0.9356 GB Notification: Performance of NFInst.instExpressions: time 0.0009783/0.8257, allocations: 0.6167 MB / 1.223 GB, free: 15.87 MB / 0.9512 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.937e-05/0.8258, allocations: 0 / 1.223 GB, free: 15.87 MB / 0.9512 GB Notification: Performance of NFTyping.typeComponents: time 0.0001454/0.8259, allocations: 23.78 kB / 1.223 GB, free: 15.84 MB / 0.9512 GB Notification: Performance of NFTyping.typeBindings: time 0.0002091/0.8261, allocations: 43.77 kB / 1.223 GB, free: 15.8 MB / 0.9512 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003686/0.8265, allocations: 111.8 kB / 1.223 GB, free: 15.69 MB / 0.9512 GB Notification: Performance of NFFlatten.flatten: time 0.0002588/0.8267, allocations: 179.6 kB / 1.223 GB, free: 15.52 MB / 0.9512 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001068/0.8268, allocations: 21.11 kB / 1.223 GB, free: 15.5 MB / 0.9512 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001376/0.827, allocations: 87.69 kB / 1.223 GB, free: 15.41 MB / 0.9512 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001235/0.8271, allocations: 87.7 kB / 1.223 GB, free: 15.32 MB / 0.9512 GB Notification: Performance of NFPackage.collectConstants: time 3.57e-05/0.8271, allocations: 16 kB / 1.223 GB, free: 15.31 MB / 0.9512 GB Notification: Performance of NFFlatten.collectFunctions: time 6.526e-05/0.8272, allocations: 28 kB / 1.223 GB, free: 15.28 MB / 0.9512 GB Notification: Performance of NFScalarize.scalarize: time 8.26e-05/0.8273, allocations: 31.91 kB / 1.223 GB, free: 15.25 MB / 0.9512 GB Notification: Performance of NFVerifyModel.verify: time 8.844e-05/0.8274, allocations: 71.66 kB / 1.223 GB, free: 15.18 MB / 0.9512 GB Notification: Performance of NFConvertDAE.convert: time 0.000256/0.8276, allocations: 171.9 kB / 1.224 GB, free: 15.02 MB / 0.9512 GB Notification: Performance of FrontEnd - DAE generated: time 3.446e-06/0.8276, allocations: 3.938 kB / 1.224 GB, free: 15.01 MB / 0.9512 GB Notification: Performance of FrontEnd: time 1.122e-06/0.8276, allocations: 0 / 1.224 GB, free: 15.01 MB / 0.9512 GB Notification: Performance of Transformations before backend: time 5.34e-06/0.8276, allocations: 0 / 1.224 GB, free: 15.01 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.0006962/0.8283, allocations: 0.5562 MB / 1.224 GB, free: 14.38 MB / 0.9512 GB Notification: Performance of prepare preOptimizeDAE: time 5.576e-05/0.8284, allocations: 12.03 kB / 1.224 GB, free: 14.37 MB / 0.9512 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.679e-05/0.8285, allocations: 24.78 kB / 1.224 GB, free: 14.35 MB / 0.9512 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003129/0.8288, allocations: 232.3 kB / 1.224 GB, free: 14.08 MB / 0.9512 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.847e-05/0.8288, allocations: 12.38 kB / 1.224 GB, free: 14.07 MB / 0.9512 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.959e-05/0.8288, allocations: 16.31 kB / 1.224 GB, free: 14.05 MB / 0.9512 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002712/0.8291, allocations: 117.7 kB / 1.225 GB, free: 13.93 MB / 0.9512 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.356e-06/0.8291, allocations: 4 kB / 1.225 GB, free: 13.93 MB / 0.9512 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.741e-05/0.8291, allocations: 4 kB / 1.225 GB, free: 13.93 MB / 0.9512 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.773e-06/0.8291, allocations: 4 kB / 1.225 GB, free: 13.92 MB / 0.9512 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002349/0.8294, allocations: 71.94 kB / 1.225 GB, free: 13.85 MB / 0.9512 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006071/0.83, allocations: 420.5 kB / 1.225 GB, free: 13.39 MB / 0.9512 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002338/0.8302, allocations: 82.53 kB / 1.225 GB, free: 13.3 MB / 0.9512 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001432/0.8304, allocations: 64.81 kB / 1.225 GB, free: 13.23 MB / 0.9512 GB Notification: Performance of preOpt evalFunc (simulation): time 2.151e-05/0.8304, allocations: 4 kB / 1.225 GB, free: 13.23 MB / 0.9512 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002444/0.8306, allocations: 182.7 kB / 1.225 GB, free: 13.03 MB / 0.9512 GB Notification: Performance of pre-optimization done (n=10): time 1.623e-06/0.8306, allocations: 4 kB / 1.225 GB, free: 13.02 MB / 0.9512 GB Notification: Performance of matching and sorting (n=10): time 0.0007982/0.8314, allocations: 357 kB / 1.226 GB, free: 12.66 MB / 0.9512 GB Notification: Performance of inlineWhenForInitialization (initialization): time 9.489e-05/0.8315, allocations: 166.2 kB / 1.226 GB, free: 12.46 MB / 0.9512 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001581/0.8317, allocations: 175.2 kB / 1.226 GB, free: 12.27 MB / 0.9512 GB Notification: Performance of collectPreVariables (initialization): time 2.313e-05/0.8317, allocations: 33.7 kB / 1.226 GB, free: 12.23 MB / 0.9512 GB Notification: Performance of collectInitialEqns (initialization): time 6.871e-05/0.8318, allocations: 108.4 kB / 1.226 GB, free: 12.12 MB / 0.9512 GB Notification: Performance of collectInitialBindings (initialization): time 3.149e-05/0.8318, allocations: 31.73 kB / 1.226 GB, free: 12.09 MB / 0.9512 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.682e-05/0.8319, allocations: 37.7 kB / 1.226 GB, free: 12.05 MB / 0.9512 GB Notification: Performance of setup shared object (initialization): time 0.0001108/0.832, allocations: 334.8 kB / 1.227 GB, free: 11.71 MB / 0.9512 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001319/0.8321, allocations: 47.97 kB / 1.227 GB, free: 11.66 MB / 0.9512 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001531/0.8323, allocations: 102.8 kB / 1.227 GB, free: 11.54 MB / 0.9512 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.00034/0.8326, allocations: 316.9 kB / 1.227 GB, free: 11.17 MB / 0.9512 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.425e-06/0.8326, allocations: 0 / 1.227 GB, free: 11.17 MB / 0.9512 GB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0005151/0.8331, allocations: 348.2 kB / 1.227 GB, free: 10.8 MB / 0.9512 GB Notification: Performance of prepare postOptimizeDAE: time 7.712e-05/0.8332, allocations: 123 kB / 1.227 GB, free: 10.65 MB / 0.9512 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.3e-06/0.8332, allocations: 0 / 1.227 GB, free: 10.65 MB / 0.9512 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.608e-05/0.8332, allocations: 4.25 kB / 1.227 GB, free: 10.65 MB / 0.9512 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001327/0.8333, allocations: 23.92 kB / 1.227 GB, free: 10.62 MB / 0.9512 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.766e-06/0.8334, allocations: 4 kB / 1.228 GB, free: 10.62 MB / 0.9512 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001086/0.8335, allocations: 15.98 kB / 1.228 GB, free: 10.61 MB / 0.9512 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.967e-05/0.8335, allocations: 8 kB / 1.228 GB, free: 10.6 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.0001469/0.8336, allocations: 209 kB / 1.228 GB, free: 10.37 MB / 0.9512 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.308e-05/0.8337, allocations: 15.91 kB / 1.228 GB, free: 10.36 MB / 0.9512 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.163e-05/0.8337, allocations: 17.39 kB / 1.228 GB, free: 10.32 MB / 0.9512 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.924e-06/0.8337, allocations: 4 kB / 1.228 GB, free: 10.32 MB / 0.9512 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.306e-06/0.8337, allocations: 0 / 1.228 GB, free: 10.32 MB / 0.9512 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.765e-06/0.8337, allocations: 0 / 1.228 GB, free: 10.32 MB / 0.9512 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007042/0.8344, allocations: 0.5876 MB / 1.228 GB, free: 9.664 MB / 0.9512 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.673e-06/0.8344, allocations: 0 / 1.228 GB, free: 9.664 MB / 0.9512 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.707e-05/0.8345, allocations: 15.97 kB / 1.228 GB, free: 9.648 MB / 0.9512 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.673e-06/0.8345, allocations: 0 / 1.228 GB, free: 9.648 MB / 0.9512 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.219e-05/0.8345, allocations: 11.98 kB / 1.228 GB, free: 9.637 MB / 0.9512 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.372e-06/0.8345, allocations: 4 kB / 1.228 GB, free: 9.633 MB / 0.9512 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.567e-06/0.8345, allocations: 7.938 kB / 1.228 GB, free: 9.625 MB / 0.9512 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005459/0.8351, allocations: 406.6 kB / 1.229 GB, free: 9.199 MB / 0.9512 GB Notification: Performance of postOpt removeConstants (simulation): time 4.318e-05/0.8351, allocations: 85.06 kB / 1.229 GB, free: 9.098 MB / 0.9512 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.71e-05/0.8351, allocations: 4 kB / 1.229 GB, free: 9.094 MB / 0.9512 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001185/0.8353, allocations: 15.98 kB / 1.229 GB, free: 9.078 MB / 0.9512 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.489e-05/0.8353, allocations: 7.938 kB / 1.229 GB, free: 9.07 MB / 0.9512 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.11e-05/0.8353, allocations: 19.98 kB / 1.229 GB, free: 9.051 MB / 0.9512 GB Notification: Performance of sorting global known variables: time 9.062e-05/0.8354, allocations: 120.3 kB / 1.229 GB, free: 8.934 MB / 0.9512 GB Notification: Performance of sort global known variables: time 6.1e-08/0.8354, allocations: 0 / 1.229 GB, free: 8.934 MB / 0.9512 GB Notification: Performance of remove unused functions: time 0.0003006/0.8357, allocations: 43.89 kB / 1.229 GB, free: 8.891 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.000261/0.836, allocations: 131.3 kB / 1.229 GB, free: 8.762 MB / 0.9512 GB Notification: Performance of simCode: created initialization part: time 0.0005065/0.8365, allocations: 357.4 kB / 1.23 GB, free: 8.363 MB / 0.9512 GB Notification: Performance of simCode: created event and clocks part: time 1.903e-06/0.8365, allocations: 0 / 1.23 GB, free: 8.363 MB / 0.9512 GB Notification: Performance of simCode: created simulation system equations: time 0.0002146/0.8367, allocations: 182.7 kB / 1.23 GB, free: 8.16 MB / 0.9512 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003358/0.837, allocations: 19.98 kB / 1.23 GB, free: 8.141 MB / 0.9512 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006388/0.8377, allocations: 304.2 kB / 1.23 GB, free: 7.82 MB / 0.9512 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002923/0.838, allocations: 0.7118 MB / 1.231 GB, free: 7.082 MB / 0.9512 GB Notification: Performance of simCode: alias equations: time 7.162e-05/0.838, allocations: 20.53 kB / 1.231 GB, free: 7.059 MB / 0.9512 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.7e-05/0.8381, allocations: 15.44 kB / 1.231 GB, free: 7.043 MB / 0.9512 GB Notification: Performance of SimCode: time 3.71e-07/0.8381, allocations: 0 / 1.231 GB, free: 7.043 MB / 0.9512 GB Notification: Performance of Templates: time 0.005366/0.8434, allocations: 2.096 MB / 1.233 GB, free: 4.977 MB / 0.9512 GB make -j1 -f Buildings_11_Buildings.Utilities.IO.Files.Examples.CSVWriter.makefile (rm -f Buildings_11_Buildings.Utilities.IO.Files.Examples.CSVWriter.pipe ; mkfifo Buildings_11_Buildings.Utilities.IO.Files.Examples.CSVWriter.pipe ; head -c 1048576 < Buildings_11_Buildings.Utilities.IO.Files.Examples.CSVWriter.pipe >> ../files/Buildings_11_Buildings.Utilities.IO.Files.Examples.CSVWriter.sim & ./Buildings_11_Buildings.Utilities.IO.Files.Examples.CSVWriter -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_11_Buildings.Utilities.IO.Files.Examples.CSVWriter.pipe 2>&1) diffSimulationResults("Buildings_11_Buildings.Utilities.IO.Files.Examples.CSVWriter_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_11.x/Buildings_Utilities_IO_Files_Examples_CSVWriter.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_11_Buildings.Utilities.IO.Files.Examples.CSVWriter.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches