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.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.0008601/0.0008601, allocations: 80.44 kB / 19.17 MB, free: 0.7422 MB / 13.93 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.0008331/0.0008331, allocations: 170.3 kB / 22.46 MB, free: 2.105 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 0.8694/0.8694, allocations: 177.1 MB / 202.8 MB, free: 5.746 MB / 186.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.2-maint.11.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.2-maint.11.x/package.mo): time 1.631/1.631, allocations: 359 MB / 0.6037 GB, free: 11.09 MB / 0.573 GB " [Timeout remaining time 178] Using package Buildings with version 11.1.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.2-maint.11.x/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.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 1.774e-06/1.774e-06, allocations: 0 / 0.9505 GB, free: 3.504 MB / 0.9011 GB Notification: Performance of FrontEnd - Absyn->SCode: time 2.042e-05/2.219e-05, allocations: 6.281 kB / 0.9505 GB, free: 3.496 MB / 0.9011 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.IO.Files.Examples.CSVWriter): time 0.003002/0.003024, allocations: 1.619 MB / 0.9521 GB, free: 1.859 MB / 0.9011 GB Notification: Performance of NFInst.instExpressions: time 0.001061/0.004084, allocations: 0.6542 MB / 0.9527 GB, free: 1.199 MB / 0.9011 GB Notification: Performance of NFInst.updateImplicitVariability: time 8.725e-05/0.004172, allocations: 3.938 kB / 0.9527 GB, free: 1.195 MB / 0.9011 GB Notification: Performance of NFTyping.typeComponents: time 0.0001625/0.004334, allocations: 19.8 kB / 0.9527 GB, free: 1.176 MB / 0.9011 GB Notification: Performance of NFTyping.typeBindings: time 0.0002493/0.004583, allocations: 54.06 kB / 0.9528 GB, free: 1.125 MB / 0.9011 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004641/0.005047, allocations: 123.6 kB / 0.9529 GB, free: 1.004 MB / 0.9011 GB Notification: Performance of NFFlatten.flatten: time 0.0003082/0.005356, allocations: 195.5 kB / 0.9531 GB, free: 0.8125 MB / 0.9011 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001265/0.005482, allocations: 21.61 kB / 0.9531 GB, free: 0.7852 MB / 0.9011 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002746/0.005757, allocations: 115.8 kB / 0.9532 GB, free: 0.6719 MB / 0.9011 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001355/0.005892, allocations: 75.78 kB / 0.9533 GB, free: 0.5977 MB / 0.9011 GB Notification: Performance of NFPackage.collectConstants: time 3.614e-05/0.005928, allocations: 12 kB / 0.9533 GB, free: 0.5859 MB / 0.9011 GB Notification: Performance of NFFlatten.collectFunctions: time 9.706e-05/0.006025, allocations: 35.98 kB / 0.9533 GB, free: 0.5508 MB / 0.9011 GB Notification: Performance of NFScalarize.scalarize: time 8.502e-05/0.00611, allocations: 27.91 kB / 0.9534 GB, free: 0.5234 MB / 0.9011 GB Notification: Performance of NFVerifyModel.verify: time 7.98e-05/0.00619, allocations: 55.89 kB / 0.9534 GB, free: 480 kB / 0.9011 GB Notification: Performance of NFConvertDAE.convert: time 0.000302/0.006492, allocations: 195.4 kB / 0.9536 GB, free: 284 kB / 0.9011 GB Notification: Performance of FrontEnd - DAE generated: time 4.048e-06/0.006496, allocations: 0 / 0.9536 GB, free: 284 kB / 0.9011 GB Notification: Performance of FrontEnd: time 1.423e-06/0.006498, allocations: 3.938 kB / 0.9536 GB, free: 280 kB / 0.9011 GB Notification: Performance of Transformations before backend: time 5.57e-06/0.006503, allocations: 0 / 0.9536 GB, free: 280 kB / 0.9011 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.0007089/0.007212, allocations: 0.4886 MB / 0.9541 GB, free: 15.73 MB / 0.9167 GB Notification: Performance of prepare preOptimizeDAE: time 4.855e-05/0.007261, allocations: 8.031 kB / 0.9541 GB, free: 15.72 MB / 0.9167 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.257e-05/0.007303, allocations: 38.75 kB / 0.9541 GB, free: 15.68 MB / 0.9167 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001779/0.007481, allocations: 28.83 kB / 0.9542 GB, free: 15.65 MB / 0.9167 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003447/0.007826, allocations: 181.6 kB / 0.9543 GB, free: 15.45 MB / 0.9167 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.062e-05/0.007846, allocations: 12.38 kB / 0.9543 GB, free: 15.43 MB / 0.9167 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.573e-05/0.007872, allocations: 12.38 kB / 0.9544 GB, free: 15.42 MB / 0.9167 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002942/0.008166, allocations: 177.6 kB / 0.9545 GB, free: 15.23 MB / 0.9167 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.05e-05/0.008177, allocations: 192 / 0.9545 GB, free: 15.23 MB / 0.9167 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.15e-05/0.008198, allocations: 7.938 kB / 0.9545 GB, free: 15.22 MB / 0.9167 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.844e-06/0.008206, allocations: 0 / 0.9545 GB, free: 15.22 MB / 0.9167 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001967/0.008403, allocations: 131.3 kB / 0.9547 GB, free: 15.08 MB / 0.9167 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006127/0.009016, allocations: 355.8 kB / 0.955 GB, free: 14.69 MB / 0.9167 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002067/0.009222, allocations: 141.9 kB / 0.9551 GB, free: 14.53 MB / 0.9167 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001524/0.009375, allocations: 136.2 kB / 0.9553 GB, free: 14.38 MB / 0.9167 GB Notification: Performance of preOpt evalFunc (simulation): time 2.58e-05/0.009401, allocations: 0 / 0.9553 GB, free: 14.38 MB / 0.9167 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002687/0.009669, allocations: 238.1 kB / 0.9555 GB, free: 14.11 MB / 0.9167 GB Notification: Performance of pre-optimization done (n=10): time 1.823e-06/0.009671, allocations: 0 / 0.9555 GB, free: 14.11 MB / 0.9167 GB Notification: Performance of matching and sorting (n=10): time 0.0007004/0.01037, allocations: 479.7 kB / 0.9559 GB, free: 13.6 MB / 0.9167 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.657e-05/0.01046, allocations: 166.2 kB / 0.9561 GB, free: 13.4 MB / 0.9167 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001605/0.01062, allocations: 175.6 kB / 0.9563 GB, free: 13.22 MB / 0.9167 GB Notification: Performance of collectPreVariables (initialization): time 2.074e-05/0.01064, allocations: 33.64 kB / 0.9563 GB, free: 13.18 MB / 0.9167 GB Notification: Performance of collectInitialEqns (initialization): time 7.461e-05/0.01071, allocations: 116.3 kB / 0.9564 GB, free: 13.06 MB / 0.9167 GB Notification: Performance of collectInitialBindings (initialization): time 3.141e-05/0.01075, allocations: 28.06 kB / 0.9564 GB, free: 13.03 MB / 0.9167 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.758e-05/0.01081, allocations: 37.72 kB / 0.9565 GB, free: 12.99 MB / 0.9167 GB Notification: Performance of setup shared object (initialization): time 0.0001093/0.01092, allocations: 326.8 kB / 0.9568 GB, free: 12.66 MB / 0.9167 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001612/0.01108, allocations: 166.7 kB / 0.9569 GB, free: 12.47 MB / 0.9167 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001904/0.01127, allocations: 213.6 kB / 0.9571 GB, free: 12.21 MB / 0.9167 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002854/0.01156, allocations: 312.9 kB / 0.9574 GB, free: 11.85 MB / 0.9167 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.276e-06/0.01156, allocations: 0 / 0.9574 GB, free: 11.85 MB / 0.9167 GB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0004816/0.01204, allocations: 474.9 kB / 0.9579 GB, free: 11.33 MB / 0.9167 GB Notification: Performance of prepare postOptimizeDAE: time 6.291e-05/0.01211, allocations: 121.8 kB / 0.958 GB, free: 11.19 MB / 0.9167 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.751e-06/0.01211, allocations: 0 / 0.958 GB, free: 11.19 MB / 0.9167 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.577e-05/0.01213, allocations: 4 kB / 0.958 GB, free: 11.18 MB / 0.9167 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.217e-05/0.01221, allocations: 23.92 kB / 0.958 GB, free: 11.16 MB / 0.9167 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.444e-06/0.01222, allocations: 4 kB / 0.958 GB, free: 11.16 MB / 0.9167 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.603e-05/0.01227, allocations: 15.89 kB / 0.9581 GB, free: 11.14 MB / 0.9167 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.462e-05/0.01229, allocations: 8.25 kB / 0.9581 GB, free: 11.13 MB / 0.9167 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.0001216/0.01241, allocations: 207.6 kB / 0.9583 GB, free: 10.91 MB / 0.9167 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.167e-05/0.01243, allocations: 15.91 kB / 0.9583 GB, free: 10.89 MB / 0.9167 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.912e-05/0.01246, allocations: 13.47 kB / 0.9583 GB, free: 10.88 MB / 0.9167 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.188e-06/0.01247, allocations: 4 kB / 0.9583 GB, free: 10.88 MB / 0.9167 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.528e-06/0.01247, allocations: 0 / 0.9583 GB, free: 10.88 MB / 0.9167 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.059e-06/0.01247, allocations: 3.984 kB / 0.9583 GB, free: 10.87 MB / 0.9167 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005051/0.01298, allocations: 0.6018 MB / 0.9589 GB, free: 10.2 MB / 0.9167 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.934e-06/0.01298, allocations: 0 / 0.9589 GB, free: 10.2 MB / 0.9167 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.696e-05/0.01302, allocations: 15.94 kB / 0.9589 GB, free: 10.18 MB / 0.9167 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.645e-06/0.01302, allocations: 0 / 0.9589 GB, free: 10.18 MB / 0.9167 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.893e-05/0.01304, allocations: 11.98 kB / 0.9589 GB, free: 10.17 MB / 0.9167 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.695e-06/0.01304, allocations: 0 / 0.9589 GB, free: 10.17 MB / 0.9167 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.333e-06/0.01304, allocations: 0 / 0.9589 GB, free: 10.17 MB / 0.9167 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003637/0.01341, allocations: 470 kB / 0.9594 GB, free: 9.668 MB / 0.9167 GB Notification: Performance of postOpt removeConstants (simulation): time 1.471e-05/0.01342, allocations: 15.84 kB / 0.9594 GB, free: 9.652 MB / 0.9167 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.564e-05/0.01345, allocations: 7.938 kB / 0.9594 GB, free: 9.645 MB / 0.9167 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.9e-05/0.01351, allocations: 11.98 kB / 0.9594 GB, free: 9.633 MB / 0.9167 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.732e-05/0.01355, allocations: 12 kB / 0.9594 GB, free: 9.621 MB / 0.9167 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.261e-05/0.01357, allocations: 15.91 kB / 0.9594 GB, free: 9.605 MB / 0.9167 GB Notification: Performance of sorting global known variables: time 8.89e-05/0.01366, allocations: 133.7 kB / 0.9596 GB, free: 9.477 MB / 0.9167 GB Notification: Performance of sort global known variables: time 6e-08/0.01366, allocations: 0 / 0.9596 GB, free: 9.477 MB / 0.9167 GB Notification: Performance of remove unused functions: time 0.0002294/0.01389, allocations: 39.94 kB / 0.9596 GB, free: 9.438 MB / 0.9167 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.0008166/0.0147, allocations: 1.019 MB / 0.9606 GB, free: 8.375 MB / 0.9167 GB Notification: Performance of simCode: created initialization part: time 0.0004496/0.01515, allocations: 0.5114 MB / 0.9611 GB, free: 7.777 MB / 0.9167 GB Notification: Performance of simCode: created event and clocks part: time 2.064e-06/0.01515, allocations: 0 / 0.9611 GB, free: 7.777 MB / 0.9167 GB Notification: Performance of simCode: created simulation system equations: time 0.0001695/0.01532, allocations: 242.1 kB / 0.9613 GB, free: 7.504 MB / 0.9167 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002548/0.01558, allocations: 28.42 kB / 0.9613 GB, free: 7.477 MB / 0.9167 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002116/0.01769, allocations: 2.629 MB / 0.9639 GB, free: 4.59 MB / 0.9167 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 8.118e-05/0.01778, allocations: 105.3 kB / 0.964 GB, free: 4.465 MB / 0.9167 GB Notification: Performance of simCode: alias equations: time 6.041e-05/0.01784, allocations: 24.45 kB / 0.964 GB, free: 4.441 MB / 0.9167 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.154e-05/0.0179, allocations: 36.48 kB / 0.9641 GB, free: 4.406 MB / 0.9167 GB Notification: Performance of SimCode: time 7.62e-07/0.0179, allocations: 0 / 0.9641 GB, free: 4.406 MB / 0.9167 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02427/0.04217, allocations: 4.46 MB / 0.9684 GB, free: 124 kB / 0.9167 GB Notification: Performance of buildModelFMU: Generate platform static: time 6.998/7.04, allocations: 7.031 kB / 0.9684 GB, free: 120 kB / 0.9167 GB " [Timeout remaining time 293] (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/jenkins/ws/OpenModelicaLibraryTestingWork/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: 10.911807264201343]