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) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001606/0.001606, allocations: 108.6 kB / 16.46 MB, free: 6.035 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001595/0.001595, allocations: 191.8 kB / 19.41 MB, free: 3.539 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.509/1.509, allocations: 225.6 MB / 247.8 MB, free: 13.93 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-maint.11.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-maint.11.x/package.mo): time 2.864/2.864, allocations: 476.7 MB / 0.7611 GB, free: 11.33 MB / 0.6231 GB " [Timeout remaining time 176] 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: "" <> buildModelFMU(Buildings.Utilities.IO.Files.Examples.CSVWriter,fileNamePrefix="Buildings_11_Buildings_Utilities_IO_Files_Examples_CSVWriter",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Utilities.IO.Files.Examples.CSVWriter,fileNamePrefix="Buildings_11_Buildings_Utilities_IO_Files_Examples_CSVWriter",fmuType="me",version="2.0",platforms={"static"}) [Timeout 300] "Notification: Performance of FrontEnd - loaded program: time 0.001996/0.001996, allocations: 63.89 kB / 1.104 GB, free: 9.297 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7252/0.7272, allocations: 168.7 MB / 1.269 GB, free: 5.16 MB / 0.9669 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.IO.Files.Examples.CSVWriter): time 0.003591/0.7308, allocations: 1.626 MB / 1.27 GB, free: 3.527 MB / 0.9669 GB Notification: Performance of NFInst.instExpressions: time 0.001199/0.732, allocations: 0.6172 MB / 1.271 GB, free: 2.906 MB / 0.9669 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001017/0.7321, allocations: 3.938 kB / 1.271 GB, free: 2.902 MB / 0.9669 GB Notification: Performance of NFTyping.typeComponents: time 0.0001788/0.7323, allocations: 15.86 kB / 1.271 GB, free: 2.887 MB / 0.9669 GB Notification: Performance of NFTyping.typeBindings: time 0.0002591/0.7326, allocations: 49 kB / 1.271 GB, free: 2.84 MB / 0.9669 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004403/0.733, allocations: 115.7 kB / 1.271 GB, free: 2.727 MB / 0.9669 GB Notification: Performance of NFFlatten.flatten: time 0.0003154/0.7333, allocations: 183.6 kB / 1.271 GB, free: 2.547 MB / 0.9669 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001168/0.7334, allocations: 21.11 kB / 1.271 GB, free: 2.527 MB / 0.9669 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001882/0.7336, allocations: 83.75 kB / 1.271 GB, free: 2.445 MB / 0.9669 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001608/0.7338, allocations: 87.66 kB / 1.271 GB, free: 2.359 MB / 0.9669 GB Notification: Performance of NFPackage.collectConstants: time 4.659e-05/0.7338, allocations: 12 kB / 1.271 GB, free: 2.348 MB / 0.9669 GB Notification: Performance of NFFlatten.collectFunctions: time 8.313e-05/0.7339, allocations: 32 kB / 1.271 GB, free: 2.316 MB / 0.9669 GB Notification: Performance of NFScalarize.scalarize: time 9.636e-05/0.734, allocations: 35.89 kB / 1.272 GB, free: 2.281 MB / 0.9669 GB Notification: Performance of NFVerifyModel.verify: time 0.0001046/0.7341, allocations: 71.66 kB / 1.272 GB, free: 2.211 MB / 0.9669 GB Notification: Performance of NFConvertDAE.convert: time 0.0002822/0.7344, allocations: 169.2 kB / 1.272 GB, free: 2.047 MB / 0.9669 GB Notification: Performance of FrontEnd - DAE generated: time 6.362e-06/0.7344, allocations: 4 kB / 1.272 GB, free: 2.043 MB / 0.9669 GB Notification: Performance of FrontEnd: time 1.442e-06/0.7344, allocations: 0 / 1.272 GB, free: 2.043 MB / 0.9669 GB Notification: Performance of Transformations before backend: time 1.146e-05/0.7344, allocations: 0 / 1.272 GB, free: 2.043 MB / 0.9669 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.0008386/0.7352, allocations: 0.5582 MB / 1.272 GB, free: 1.414 MB / 0.9669 GB Notification: Performance of prepare preOptimizeDAE: time 5.211e-05/0.7353, allocations: 12.03 kB / 1.272 GB, free: 1.402 MB / 0.9669 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.71e-05/0.7353, allocations: 38.62 kB / 1.272 GB, free: 1.355 MB / 0.9669 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.438e-05/0.7354, allocations: 20.84 kB / 1.272 GB, free: 1.336 MB / 0.9669 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004842/0.7359, allocations: 248.7 kB / 1.273 GB, free: 1.055 MB / 0.9669 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.266e-05/0.7359, allocations: 8.375 kB / 1.273 GB, free: 1.047 MB / 0.9669 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.756e-05/0.736, allocations: 16.38 kB / 1.273 GB, free: 1.031 MB / 0.9669 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003045/0.7363, allocations: 109.5 kB / 1.273 GB, free: 0.918 MB / 0.9669 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.528e-06/0.7363, allocations: 0 / 1.273 GB, free: 0.918 MB / 0.9669 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.218e-05/0.7363, allocations: 8 kB / 1.273 GB, free: 0.9102 MB / 0.9669 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.859e-06/0.7363, allocations: 0 / 1.273 GB, free: 0.9102 MB / 0.9669 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002103/0.7365, allocations: 75.88 kB / 1.273 GB, free: 0.8359 MB / 0.9669 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007472/0.7373, allocations: 420.5 kB / 1.273 GB, free: 384 kB / 0.9669 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002142/0.7375, allocations: 78.56 kB / 1.273 GB, free: 296 kB / 0.9669 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001601/0.7376, allocations: 64.81 kB / 1.273 GB, free: 228 kB / 0.9669 GB Notification: Performance of preOpt evalFunc (simulation): time 2.657e-05/0.7377, allocations: 4 kB / 1.273 GB, free: 224 kB / 0.9669 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002972/0.738, allocations: 178.7 kB / 1.274 GB, free: 20 kB / 0.9669 GB Notification: Performance of pre-optimization done (n=10): time 1.423e-06/0.738, allocations: 0 / 1.274 GB, free: 20 kB / 0.9669 GB Notification: Performance of matching and sorting (n=10): time 0.0008479/0.7388, allocations: 364.9 kB / 1.274 GB, free: 15.64 MB / 0.9825 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001138/0.7389, allocations: 158.2 kB / 1.274 GB, free: 15.45 MB / 0.9825 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000206/0.7391, allocations: 187.2 kB / 1.274 GB, free: 15.26 MB / 0.9825 GB Notification: Performance of collectPreVariables (initialization): time 2.978e-05/0.7392, allocations: 29.7 kB / 1.274 GB, free: 15.22 MB / 0.9825 GB Notification: Performance of collectInitialEqns (initialization): time 9.47e-05/0.7393, allocations: 104.4 kB / 1.274 GB, free: 15.11 MB / 0.9825 GB Notification: Performance of collectInitialBindings (initialization): time 3.96e-05/0.7393, allocations: 35.73 kB / 1.274 GB, free: 15.08 MB / 0.9825 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.53e-05/0.7394, allocations: 41.7 kB / 1.274 GB, free: 15.03 MB / 0.9825 GB Notification: Performance of setup shared object (initialization): time 0.0001569/0.7395, allocations: 326.8 kB / 1.275 GB, free: 14.7 MB / 0.9825 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001467/0.7397, allocations: 51.91 kB / 1.275 GB, free: 14.65 MB / 0.9825 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002008/0.7399, allocations: 111 kB / 1.275 GB, free: 14.52 MB / 0.9825 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003778/0.7403, allocations: 309 kB / 1.275 GB, free: 14.16 MB / 0.9825 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.575e-06/0.7403, allocations: 0 / 1.275 GB, free: 14.16 MB / 0.9825 GB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0005738/0.7408, allocations: 360.1 kB / 1.276 GB, free: 13.77 MB / 0.9825 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001085/0.7409, allocations: 118.8 kB / 1.276 GB, free: 13.63 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.028e-05/0.741, allocations: 4 kB / 1.276 GB, free: 13.63 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.88e-05/0.741, allocations: 4 kB / 1.276 GB, free: 13.62 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001227/0.7411, allocations: 19.92 kB / 1.276 GB, free: 13.61 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.993e-06/0.7411, allocations: 0 / 1.276 GB, free: 13.61 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000109/0.7412, allocations: 19.94 kB / 1.276 GB, free: 13.59 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.827e-05/0.7412, allocations: 16.2 kB / 1.276 GB, free: 13.57 MB / 0.9825 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.0001747/0.7414, allocations: 195.6 kB / 1.276 GB, free: 13.36 MB / 0.9825 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.154e-05/0.7415, allocations: 19.91 kB / 1.276 GB, free: 13.34 MB / 0.9825 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.675e-05/0.7415, allocations: 25.33 kB / 1.276 GB, free: 13.3 MB / 0.9825 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.788e-06/0.7415, allocations: 3.984 kB / 1.276 GB, free: 13.3 MB / 0.9825 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.779e-06/0.7415, allocations: 0 / 1.276 GB, free: 13.3 MB / 0.9825 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.946e-06/0.7415, allocations: 0 / 1.276 GB, free: 13.3 MB / 0.9825 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008175/0.7423, allocations: 0.5876 MB / 1.277 GB, free: 12.64 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.355e-06/0.7423, allocations: 4 kB / 1.277 GB, free: 12.64 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.163e-05/0.7424, allocations: 11.98 kB / 1.277 GB, free: 12.62 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.935e-06/0.7424, allocations: 0 / 1.277 GB, free: 12.62 MB / 0.9825 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.273e-05/0.7424, allocations: 7.984 kB / 1.277 GB, free: 12.62 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.984e-06/0.7424, allocations: 0 / 1.277 GB, free: 12.62 MB / 0.9825 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.356e-06/0.7424, allocations: 3.938 kB / 1.277 GB, free: 12.61 MB / 0.9825 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006069/0.743, allocations: 418.6 kB / 1.277 GB, free: 12.18 MB / 0.9825 GB Notification: Performance of postOpt removeConstants (simulation): time 6.217e-05/0.7431, allocations: 81.06 kB / 1.277 GB, free: 12.08 MB / 0.9825 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.706e-05/0.7431, allocations: 4 kB / 1.277 GB, free: 12.07 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001145/0.7433, allocations: 11.98 kB / 1.277 GB, free: 12.06 MB / 0.9825 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.879e-05/0.7433, allocations: 11.94 kB / 1.277 GB, free: 12.05 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.78e-05/0.7433, allocations: 7.984 kB / 1.277 GB, free: 12.04 MB / 0.9825 GB Notification: Performance of sorting global known variables: time 0.0001135/0.7435, allocations: 124.3 kB / 1.277 GB, free: 11.92 MB / 0.9825 GB Notification: Performance of sort global known variables: time 8e-08/0.7435, allocations: 0 / 1.277 GB, free: 11.92 MB / 0.9825 GB Notification: Performance of remove unused functions: time 0.0003231/0.7438, allocations: 43.89 kB / 1.277 GB, free: 11.88 MB / 0.9825 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.00107/0.7448, allocations: 0.9639 MB / 1.278 GB, free: 10.88 MB / 0.9825 GB Notification: Performance of simCode: created initialization part: time 0.0005447/0.7454, allocations: 353.5 kB / 1.278 GB, free: 10.49 MB / 0.9825 GB Notification: Performance of simCode: created event and clocks part: time 2.174e-06/0.7454, allocations: 4 kB / 1.278 GB, free: 10.48 MB / 0.9825 GB Notification: Performance of simCode: created simulation system equations: time 0.0002405/0.7456, allocations: 178.7 kB / 1.279 GB, free: 10.29 MB / 0.9825 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003329/0.746, allocations: 31.86 kB / 1.279 GB, free: 10.25 MB / 0.9825 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002813/0.7488, allocations: 2.127 MB / 1.281 GB, free: 7.984 MB / 0.9825 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003432/0.7491, allocations: 0.7123 MB / 1.281 GB, free: 7.246 MB / 0.9825 GB Notification: Performance of simCode: alias equations: time 7.863e-05/0.7492, allocations: 20.53 kB / 1.281 GB, free: 7.227 MB / 0.9825 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.653e-05/0.7493, allocations: 39.36 kB / 1.282 GB, free: 7.188 MB / 0.9825 GB Notification: Performance of SimCode: time 6.92e-07/0.7493, allocations: 0 / 1.282 GB, free: 7.188 MB / 0.9825 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02877/0.778, allocations: 3.657 MB / 1.285 GB, free: 3.637 MB / 0.9825 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.574/9.352, allocations: 5.781 kB / 1.285 GB, free: 3.633 MB / 0.9825 GB " [Timeout remaining time 291] (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_11_Buildings.Utilities.IO.Files.Examples.CSVWriter_res.mat --tempDir=temp_Buildings_11_Buildings_Utilities_IO_Files_Examples_CSVWriter_fmu --startTime=-1.21 --stopTime=10 --stepSize=0.004484 --timeout=400 --tolerance=1e-06 Buildings_11_Buildings_Utilities_IO_Files_Examples_CSVWriter.fmu > Buildings_11_Buildings.Utilities.IO.Files.Examples.CSVWriter.pipe 2>&1) [Timeout 420.0] 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/jenkins1/ws/OpenModelicaLibraryTestingWork_2/OpenModelicaLibraryTesting/files/Buildings_11_Buildings.Utilities.IO.Files.Examples.CSVWriter.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 300] "" [Timeout remaining time 300] Reference file matches [Calling sys.exit(0), Time elapsed: 15.52754737669602]