Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_12_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.001096/0.001096, 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.0009088/0.0009088, allocations: 165.9 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.8902/0.8902, allocations: 177.1 MB / 202.8 MB, free: 5.754 MB / 186.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.2-maint.12.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.2-maint.12.x/package.mo): time 1.736/1.736, allocations: 377.8 MB / 0.6221 GB, free: 8.664 MB / 0.5886 GB " [Timeout remaining time 178] Using package Buildings with version 12.1.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.2-maint.12.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_12_Buildings_Utilities_IO_Files_Examples_CSVWriter",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Utilities.IO.Files.Examples.CSVWriter,fileNamePrefix="Buildings_12_Buildings_Utilities_IO_Files_Examples_CSVWriter",fmuType="me",version="2.0",platforms={"static"}) [Timeout 300] "Notification: Performance of FrontEnd - loaded program: time 1.393e-06/1.393e-06, allocations: 0 / 0.981 GB, free: 2.59 MB / 0.9323 GB Notification: Performance of FrontEnd - Absyn->SCode: time 2.131e-05/2.27e-05, allocations: 4.812 kB / 0.981 GB, free: 2.586 MB / 0.9323 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.IO.Files.Examples.CSVWriter): time 0.00237/0.002393, allocations: 1.619 MB / 0.9825 GB, free: 0.957 MB / 0.9323 GB Notification: Performance of NFInst.instExpressions: time 0.0009191/0.003312, allocations: 0.6504 MB / 0.9832 GB, free: 308 kB / 0.9323 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001026/0.003415, allocations: 7.938 kB / 0.9832 GB, free: 300 kB / 0.9323 GB Notification: Performance of NFTyping.typeComponents: time 0.000178/0.003593, allocations: 19.8 kB / 0.9832 GB, free: 280 kB / 0.9323 GB Notification: Performance of NFTyping.typeBindings: time 0.0002202/0.003813, allocations: 51.75 kB / 0.9832 GB, free: 228 kB / 0.9323 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004571/0.00427, allocations: 131.5 kB / 0.9834 GB, free: 96 kB / 0.9323 GB Notification: Performance of NFFlatten.flatten: time 0.0002621/0.004532, allocations: 183.7 kB / 0.9835 GB, free: 15.91 MB / 0.948 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001295/0.004662, allocations: 21.61 kB / 0.9836 GB, free: 15.89 MB / 0.948 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0003206/0.004982, allocations: 119.7 kB / 0.9837 GB, free: 15.77 MB / 0.948 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001079/0.00509, allocations: 67.84 kB / 0.9837 GB, free: 15.7 MB / 0.948 GB Notification: Performance of NFPackage.collectConstants: time 2.973e-05/0.00512, allocations: 12 kB / 0.9838 GB, free: 15.69 MB / 0.948 GB Notification: Performance of NFFlatten.collectFunctions: time 7.651e-05/0.005197, allocations: 31.98 kB / 0.9838 GB, free: 15.66 MB / 0.948 GB Notification: Performance of NFScalarize.scalarize: time 7.415e-05/0.005271, allocations: 35.84 kB / 0.9838 GB, free: 15.62 MB / 0.948 GB Notification: Performance of NFVerifyModel.verify: time 6.072e-05/0.005331, allocations: 55.89 kB / 0.9839 GB, free: 15.57 MB / 0.948 GB Notification: Performance of NFConvertDAE.convert: time 0.0002334/0.005565, allocations: 195.5 kB / 0.9841 GB, free: 15.38 MB / 0.948 GB Notification: Performance of FrontEnd - DAE generated: time 3.396e-06/0.005568, allocations: 3.938 kB / 0.9841 GB, free: 15.38 MB / 0.948 GB Notification: Performance of FrontEnd: time 1.443e-06/0.00557, allocations: 0 / 0.9841 GB, free: 15.38 MB / 0.948 GB Notification: Performance of Transformations before backend: time 4.568e-06/0.005574, allocations: 0 / 0.9841 GB, free: 15.38 MB / 0.948 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.0005236/0.006098, allocations: 496.4 kB / 0.9845 GB, free: 14.84 MB / 0.948 GB Notification: Performance of prepare preOptimizeDAE: time 3.894e-05/0.006137, allocations: 8.031 kB / 0.9845 GB, free: 14.83 MB / 0.948 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.952e-05/0.006166, allocations: 34.75 kB / 0.9846 GB, free: 14.79 MB / 0.948 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000124/0.00629, allocations: 28.88 kB / 0.9846 GB, free: 14.76 MB / 0.948 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002579/0.006548, allocations: 190.1 kB / 0.9848 GB, free: 14.55 MB / 0.948 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.475e-05/0.006563, allocations: 4.375 kB / 0.9848 GB, free: 14.54 MB / 0.948 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.964e-05/0.006583, allocations: 16.38 kB / 0.9848 GB, free: 14.53 MB / 0.948 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002276/0.00681, allocations: 177.5 kB / 0.985 GB, free: 14.34 MB / 0.948 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.704e-06/0.006818, allocations: 192 / 0.985 GB, free: 14.34 MB / 0.948 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.346e-05/0.006831, allocations: 3.938 kB / 0.985 GB, free: 14.33 MB / 0.948 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.32e-06/0.006837, allocations: 7.938 kB / 0.985 GB, free: 14.32 MB / 0.948 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001371/0.006974, allocations: 135.3 kB / 0.9851 GB, free: 14.18 MB / 0.948 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000482/0.007456, allocations: 355.8 kB / 0.9855 GB, free: 13.79 MB / 0.948 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001657/0.007621, allocations: 145.9 kB / 0.9856 GB, free: 13.62 MB / 0.948 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001049/0.007726, allocations: 120.2 kB / 0.9857 GB, free: 13.49 MB / 0.948 GB Notification: Performance of preOpt evalFunc (simulation): time 2.604e-05/0.007752, allocations: 7.984 kB / 0.9857 GB, free: 13.48 MB / 0.948 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001831/0.007936, allocations: 230.1 kB / 0.9859 GB, free: 13.22 MB / 0.948 GB Notification: Performance of pre-optimization done (n=10): time 1.482e-06/0.007937, allocations: 0 / 0.9859 GB, free: 13.22 MB / 0.948 GB Notification: Performance of matching and sorting (n=10): time 0.0005545/0.008492, allocations: 491.7 kB / 0.9864 GB, free: 12.7 MB / 0.948 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.398e-05/0.008556, allocations: 162.2 kB / 0.9866 GB, free: 12.5 MB / 0.948 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001207/0.008676, allocations: 176.7 kB / 0.9867 GB, free: 12.32 MB / 0.948 GB Notification: Performance of collectPreVariables (initialization): time 1.645e-05/0.008693, allocations: 33.7 kB / 0.9868 GB, free: 12.28 MB / 0.948 GB Notification: Performance of collectInitialEqns (initialization): time 5.597e-05/0.008749, allocations: 112.3 kB / 0.9869 GB, free: 12.16 MB / 0.948 GB Notification: Performance of collectInitialBindings (initialization): time 2.326e-05/0.008772, allocations: 27.78 kB / 0.9869 GB, free: 12.14 MB / 0.948 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.355e-05/0.008825, allocations: 37.7 kB / 0.9869 GB, free: 12.09 MB / 0.948 GB Notification: Performance of setup shared object (initialization): time 8.083e-05/0.008906, allocations: 326.8 kB / 0.9872 GB, free: 11.77 MB / 0.948 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001175/0.009024, allocations: 162.8 kB / 0.9874 GB, free: 11.58 MB / 0.948 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000135/0.009159, allocations: 217.6 kB / 0.9876 GB, free: 11.32 MB / 0.948 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003162/0.009475, allocations: 316.9 kB / 0.9879 GB, free: 10.95 MB / 0.948 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.274e-06/0.009477, allocations: 0 / 0.9879 GB, free: 10.95 MB / 0.948 GB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0003404/0.009818, allocations: 466.9 kB / 0.9884 GB, free: 10.44 MB / 0.948 GB Notification: Performance of prepare postOptimizeDAE: time 5.405e-05/0.009872, allocations: 118.8 kB / 0.9885 GB, free: 10.3 MB / 0.948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5e-06/0.009877, allocations: 0 / 0.9885 GB, free: 10.3 MB / 0.948 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.21e-05/0.009889, allocations: 4.25 kB / 0.9885 GB, free: 10.29 MB / 0.948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.455e-05/0.009963, allocations: 24.2 kB / 0.9885 GB, free: 10.27 MB / 0.948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.991e-06/0.009969, allocations: 4 kB / 0.9885 GB, free: 10.27 MB / 0.948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.488e-05/0.01002, allocations: 19.89 kB / 0.9885 GB, free: 10.25 MB / 0.948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.509e-05/0.01004, allocations: 15.92 kB / 0.9885 GB, free: 10.23 MB / 0.948 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.0001015/0.01014, allocations: 197.2 kB / 0.9887 GB, free: 10.02 MB / 0.948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.977e-05/0.01016, allocations: 15.91 kB / 0.9887 GB, free: 10 MB / 0.948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.718e-05/0.01019, allocations: 25.39 kB / 0.9888 GB, free: 9.977 MB / 0.948 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.936e-06/0.01019, allocations: 4 kB / 0.9888 GB, free: 9.973 MB / 0.948 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.809e-06/0.0102, allocations: 3.984 kB / 0.9888 GB, free: 9.969 MB / 0.948 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.785e-06/0.0102, allocations: 4 kB / 0.9888 GB, free: 9.965 MB / 0.948 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004741/0.01067, allocations: 0.5979 MB / 0.9894 GB, free: 9.293 MB / 0.948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.224e-06/0.01067, allocations: 4 kB / 0.9894 GB, free: 9.289 MB / 0.948 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.528e-05/0.01071, allocations: 11.94 kB / 0.9894 GB, free: 9.277 MB / 0.948 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.114e-06/0.01071, allocations: 0 / 0.9894 GB, free: 9.277 MB / 0.948 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.472e-05/0.01073, allocations: 11.98 kB / 0.9894 GB, free: 9.266 MB / 0.948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.172e-06/0.01073, allocations: 0 / 0.9894 GB, free: 9.266 MB / 0.948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.253e-06/0.01073, allocations: 0 / 0.9894 GB, free: 9.266 MB / 0.948 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003536/0.01108, allocations: 474 kB / 0.9898 GB, free: 8.762 MB / 0.948 GB Notification: Performance of postOpt removeConstants (simulation): time 1.373e-05/0.0111, allocations: 15.84 kB / 0.9898 GB, free: 8.746 MB / 0.948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.53e-05/0.01112, allocations: 8 kB / 0.9899 GB, free: 8.738 MB / 0.948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.807e-05/0.01118, allocations: 7.984 kB / 0.9899 GB, free: 8.73 MB / 0.948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.017e-05/0.01122, allocations: 7.984 kB / 0.9899 GB, free: 8.723 MB / 0.948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.337e-05/0.01123, allocations: 15.98 kB / 0.9899 GB, free: 8.707 MB / 0.948 GB Notification: Performance of sorting global known variables: time 6.914e-05/0.0113, allocations: 124.1 kB / 0.99 GB, free: 8.586 MB / 0.948 GB Notification: Performance of sort global known variables: time 6e-08/0.0113, allocations: 0 / 0.99 GB, free: 8.586 MB / 0.948 GB Notification: Performance of remove unused functions: time 0.0002449/0.01155, allocations: 39.92 kB / 0.99 GB, free: 8.547 MB / 0.948 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.000695/0.01224, allocations: 1.025 MB / 0.991 GB, free: 7.473 MB / 0.948 GB Notification: Performance of simCode: created initialization part: time 0.0006207/0.01286, allocations: 0.5118 MB / 0.9915 GB, free: 6.875 MB / 0.948 GB Notification: Performance of simCode: created event and clocks part: time 1.904e-06/0.01287, allocations: 4.062 kB / 0.9915 GB, free: 6.871 MB / 0.948 GB Notification: Performance of simCode: created simulation system equations: time 0.000144/0.01301, allocations: 246.1 kB / 0.9918 GB, free: 6.594 MB / 0.948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002221/0.01323, allocations: 19.92 kB / 0.9918 GB, free: 6.574 MB / 0.948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001863/0.01509, allocations: 2.637 MB / 0.9944 GB, free: 3.68 MB / 0.948 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 7.166e-05/0.01517, allocations: 89.31 kB / 0.9945 GB, free: 3.574 MB / 0.948 GB Notification: Performance of simCode: alias equations: time 6.127e-05/0.01523, allocations: 24.33 kB / 0.9945 GB, free: 3.551 MB / 0.948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.417e-05/0.01529, allocations: 36.48 kB / 0.9945 GB, free: 3.516 MB / 0.948 GB Notification: Performance of SimCode: time 9.12e-07/0.01529, allocations: 4 kB / 0.9945 GB, free: 3.512 MB / 0.948 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01893/0.03422, allocations: 4.481 MB / 0.9989 GB, free: 15.21 MB / 0.9636 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.143/7.177, allocations: 6.406 kB / 0.9989 GB, free: 15.21 MB / 0.9636 GB " [Timeout remaining time 293] (rm -f Buildings_12_Buildings.Utilities.IO.Files.Examples.CSVWriter.pipe ; mkfifo Buildings_12_Buildings.Utilities.IO.Files.Examples.CSVWriter.pipe ; head -c 1048576 < Buildings_12_Buildings.Utilities.IO.Files.Examples.CSVWriter.pipe >> ../files/Buildings_12_Buildings.Utilities.IO.Files.Examples.CSVWriter.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_12_Buildings.Utilities.IO.Files.Examples.CSVWriter_res.mat --tempDir=temp_Buildings_12_Buildings_Utilities_IO_Files_Examples_CSVWriter_fmu --startTime=-1.21 --stopTime=10 --stepSize=0.004484 --timeout=400 --tolerance=1e-06 Buildings_12_Buildings_Utilities_IO_Files_Examples_CSVWriter.fmu > Buildings_12_Buildings.Utilities.IO.Files.Examples.CSVWriter.pipe 2>&1) [Timeout 420.0] diffSimulationResults("Buildings_12_Buildings.Utilities.IO.Files.Examples.CSVWriter_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_12.x/Buildings_Utilities_IO_Files_Examples_CSVWriter.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_12_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: 11.115874961018562]