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.002024/0.002024, allocations: 79.7 kB / 19.18 MB, free: 2.527 MB / 14.72 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.001676/0.001676, allocations: 167.6 kB / 22.46 MB, free: 5.359 MB / 14.72 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 1.511/1.511, allocations: 177.1 MB / 202.8 MB, free: 9.172 MB / 190.1 MB " [Timeout remaining time 178] 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 2.894/2.894, allocations: 377.8 MB / 0.6221 GB, free: 12.61 MB / 0.5919 GB " [Timeout remaining time 176] 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: translateModel(Buildings.Utilities.IO.Files.Examples.CSVWriter,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|cos.y|step.y",fileNamePrefix="Buildings_12_Buildings.Utilities.IO.Files.Examples.CSVWriter") translateModel(Buildings.Utilities.IO.Files.Examples.CSVWriter,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|cos.y|step.y",fileNamePrefix="Buildings_12_Buildings.Utilities.IO.Files.Examples.CSVWriter") [Timeout 300] "Notification: Performance of FrontEnd - loaded program: time 1.402e-06/1.402e-06, allocations: 0 / 0.9814 GB, free: 12.03 MB / 0.9356 GB Notification: Performance of FrontEnd - Absyn->SCode: time 2.059e-05/2.199e-05, allocations: 4.812 kB / 0.9814 GB, free: 12.03 MB / 0.9356 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.IO.Files.Examples.CSVWriter): time 0.002917/0.002939, allocations: 1.626 MB / 0.983 GB, free: 10.39 MB / 0.9356 GB Notification: Performance of NFInst.instExpressions: time 0.001209/0.004148, allocations: 0.6465 MB / 0.9836 GB, free: 9.734 MB / 0.9356 GB Notification: Performance of NFInst.updateImplicitVariability: time 7.189e-05/0.00422, allocations: 3.938 kB / 0.9836 GB, free: 9.73 MB / 0.9356 GB Notification: Performance of NFTyping.typeComponents: time 0.0001414/0.004362, allocations: 27.78 kB / 0.9837 GB, free: 9.703 MB / 0.9356 GB Notification: Performance of NFTyping.typeBindings: time 0.000227/0.004589, allocations: 43.69 kB / 0.9837 GB, free: 9.66 MB / 0.9356 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004738/0.005062, allocations: 127.7 kB / 0.9838 GB, free: 9.535 MB / 0.9356 GB Notification: Performance of NFFlatten.flatten: time 0.0002889/0.005351, allocations: 183.5 kB / 0.984 GB, free: 9.355 MB / 0.9356 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001088/0.00546, allocations: 25.62 kB / 0.984 GB, free: 9.328 MB / 0.9356 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002598/0.00572, allocations: 119.7 kB / 0.9841 GB, free: 9.211 MB / 0.9356 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001362/0.005856, allocations: 75.78 kB / 0.9842 GB, free: 9.137 MB / 0.9356 GB Notification: Performance of NFPackage.collectConstants: time 4.031e-05/0.005896, allocations: 16 kB / 0.9842 GB, free: 9.121 MB / 0.9356 GB Notification: Performance of NFFlatten.collectFunctions: time 8.313e-05/0.00598, allocations: 31.97 kB / 0.9843 GB, free: 9.09 MB / 0.9356 GB Notification: Performance of NFScalarize.scalarize: time 9.074e-05/0.00607, allocations: 23.92 kB / 0.9843 GB, free: 9.066 MB / 0.9356 GB Notification: Performance of NFVerifyModel.verify: time 9.47e-05/0.006165, allocations: 59.89 kB / 0.9843 GB, free: 9.008 MB / 0.9356 GB Notification: Performance of NFConvertDAE.convert: time 0.0002958/0.006461, allocations: 195.4 kB / 0.9845 GB, free: 8.816 MB / 0.9356 GB Notification: Performance of FrontEnd - DAE generated: time 2.074e-06/0.006463, allocations: 0 / 0.9845 GB, free: 8.816 MB / 0.9356 GB Notification: Performance of FrontEnd: time 7.22e-07/0.006464, allocations: 0 / 0.9845 GB, free: 8.816 MB / 0.9356 GB Notification: Performance of Transformations before backend: time 4.359e-06/0.006468, allocations: 4 kB / 0.9845 GB, free: 8.812 MB / 0.9356 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.0007372/0.007205, allocations: 0.4925 MB / 0.985 GB, free: 8.266 MB / 0.9356 GB Notification: Performance of prepare preOptimizeDAE: time 3.623e-05/0.007241, allocations: 12.03 kB / 0.985 GB, free: 8.254 MB / 0.9356 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001726/0.007414, allocations: 24.88 kB / 0.9851 GB, free: 8.23 MB / 0.9356 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003338/0.007748, allocations: 178.2 kB / 0.9852 GB, free: 8.031 MB / 0.9356 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.138e-05/0.007769, allocations: 12.38 kB / 0.9852 GB, free: 8.02 MB / 0.9356 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.949e-05/0.007799, allocations: 12.38 kB / 0.9852 GB, free: 8.008 MB / 0.9356 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003308/0.00813, allocations: 169.6 kB / 0.9854 GB, free: 7.824 MB / 0.9356 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.179e-05/0.008141, allocations: 4.172 kB / 0.9854 GB, free: 7.82 MB / 0.9356 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.416e-05/0.008165, allocations: 12.12 kB / 0.9854 GB, free: 7.809 MB / 0.9356 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.484e-06/0.008173, allocations: 0 / 0.9854 GB, free: 7.809 MB / 0.9356 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002655/0.008438, allocations: 127.3 kB / 0.9855 GB, free: 7.672 MB / 0.9356 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000634/0.009072, allocations: 340.3 kB / 0.9859 GB, free: 7.309 MB / 0.9356 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002662/0.009339, allocations: 142 kB / 0.986 GB, free: 7.148 MB / 0.9356 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002113/0.00955, allocations: 128.2 kB / 0.9861 GB, free: 7.008 MB / 0.9356 GB Notification: Performance of preOpt evalFunc (simulation): time 2.593e-05/0.009576, allocations: 4.094 kB / 0.9861 GB, free: 7.004 MB / 0.9356 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000358/0.009934, allocations: 242.1 kB / 0.9864 GB, free: 6.73 MB / 0.9356 GB Notification: Performance of pre-optimization done (n=10): time 1.573e-06/0.009935, allocations: 0 / 0.9864 GB, free: 6.73 MB / 0.9356 GB Notification: Performance of matching and sorting (n=10): time 0.0009169/0.01085, allocations: 479.8 kB / 0.9868 GB, free: 6.219 MB / 0.9356 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001199/0.01097, allocations: 174.1 kB / 0.987 GB, free: 6.012 MB / 0.9356 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001847/0.01116, allocations: 176.1 kB / 0.9872 GB, free: 5.828 MB / 0.9356 GB Notification: Performance of collectPreVariables (initialization): time 4.247e-05/0.0112, allocations: 37.7 kB / 0.9872 GB, free: 5.785 MB / 0.9356 GB Notification: Performance of collectInitialEqns (initialization): time 8.741e-05/0.01129, allocations: 112.3 kB / 0.9873 GB, free: 5.668 MB / 0.9356 GB Notification: Performance of collectInitialBindings (initialization): time 3.163e-05/0.01132, allocations: 27.78 kB / 0.9873 GB, free: 5.641 MB / 0.9356 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.82e-05/0.0114, allocations: 37.7 kB / 0.9874 GB, free: 5.598 MB / 0.9356 GB Notification: Performance of setup shared object (initialization): time 0.000165/0.01156, allocations: 326.8 kB / 0.9877 GB, free: 5.27 MB / 0.9356 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002209/0.01178, allocations: 158.8 kB / 0.9878 GB, free: 5.09 MB / 0.9356 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002748/0.01206, allocations: 224.2 kB / 0.988 GB, free: 4.824 MB / 0.9356 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004087/0.01247, allocations: 309 kB / 0.9883 GB, free: 4.461 MB / 0.9356 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.262e-06/0.01247, allocations: 4 kB / 0.9883 GB, free: 4.457 MB / 0.9356 GB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0006965/0.01317, allocations: 462.9 kB / 0.9888 GB, free: 3.949 MB / 0.9356 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001025/0.01327, allocations: 122.8 kB / 0.9889 GB, free: 3.805 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.909e-06/0.01328, allocations: 0 / 0.9889 GB, free: 3.805 MB / 0.9356 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.524e-05/0.01329, allocations: 4 kB / 0.9889 GB, free: 3.801 MB / 0.9356 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001164/0.01341, allocations: 19.92 kB / 0.9889 GB, free: 3.781 MB / 0.9356 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.556e-06/0.01342, allocations: 4 kB / 0.9889 GB, free: 3.777 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001081/0.01352, allocations: 15.94 kB / 0.9889 GB, free: 3.762 MB / 0.9356 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.608e-05/0.01355, allocations: 12.25 kB / 0.9889 GB, free: 3.75 MB / 0.9356 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.0001948/0.01375, allocations: 203.6 kB / 0.9891 GB, free: 3.531 MB / 0.9356 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.941e-05/0.01378, allocations: 19.84 kB / 0.9892 GB, free: 3.512 MB / 0.9356 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.041e-05/0.01383, allocations: 17.45 kB / 0.9892 GB, free: 3.496 MB / 0.9356 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.733e-06/0.01383, allocations: 0 / 0.9892 GB, free: 3.496 MB / 0.9356 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.416e-06/0.01383, allocations: 0 / 0.9892 GB, free: 3.496 MB / 0.9356 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.136e-06/0.01383, allocations: 7.938 kB / 0.9892 GB, free: 3.488 MB / 0.9356 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008475/0.01468, allocations: 0.5711 MB / 0.9897 GB, free: 2.855 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.563e-06/0.01468, allocations: 0 / 0.9897 GB, free: 2.855 MB / 0.9356 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.279e-05/0.01476, allocations: 19.92 kB / 0.9898 GB, free: 2.836 MB / 0.9356 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.048e-06/0.01476, allocations: 4 kB / 0.9898 GB, free: 2.832 MB / 0.9356 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.213e-05/0.01478, allocations: 11.94 kB / 0.9898 GB, free: 2.82 MB / 0.9356 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.272e-06/0.01478, allocations: 0 / 0.9898 GB, free: 2.82 MB / 0.9356 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.012e-06/0.01478, allocations: 0 / 0.9898 GB, free: 2.82 MB / 0.9356 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006886/0.01547, allocations: 477.9 kB / 0.9902 GB, free: 2.312 MB / 0.9356 GB Notification: Performance of postOpt removeConstants (simulation): time 1.937e-05/0.01549, allocations: 11.91 kB / 0.9902 GB, free: 2.301 MB / 0.9356 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.276e-05/0.01553, allocations: 4 kB / 0.9902 GB, free: 2.297 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001253/0.01566, allocations: 11.98 kB / 0.9903 GB, free: 2.285 MB / 0.9356 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.889e-05/0.01571, allocations: 15.98 kB / 0.9903 GB, free: 2.27 MB / 0.9356 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.99e-05/0.01573, allocations: 8 kB / 0.9903 GB, free: 2.262 MB / 0.9356 GB Notification: Performance of sorting global known variables: time 0.0001191/0.01585, allocations: 132.1 kB / 0.9904 GB, free: 2.133 MB / 0.9356 GB Notification: Performance of sort global known variables: time 1e-07/0.01585, allocations: 0 / 0.9904 GB, free: 2.133 MB / 0.9356 GB Notification: Performance of remove unused functions: time 0.0003059/0.01615, allocations: 35.94 kB / 0.9904 GB, free: 2.098 MB / 0.9356 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.0002602/0.01641, allocations: 124.6 kB / 0.9906 GB, free: 1.969 MB / 0.9356 GB Notification: Performance of simCode: created initialization part: time 0.0006752/0.01709, allocations: 0.5155 MB / 0.9911 GB, free: 1.367 MB / 0.9356 GB Notification: Performance of simCode: created event and clocks part: time 1.773e-06/0.01709, allocations: 0 / 0.9911 GB, free: 1.367 MB / 0.9356 GB Notification: Performance of simCode: created simulation system equations: time 0.0003232/0.01741, allocations: 246.1 kB / 0.9913 GB, free: 1.09 MB / 0.9356 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003275/0.01774, allocations: 30.38 kB / 0.9913 GB, free: 1.062 MB / 0.9356 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006769/0.01842, allocations: 345.9 kB / 0.9917 GB, free: 0.6875 MB / 0.9356 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001084/0.01853, allocations: 101.3 kB / 0.9918 GB, free: 0.5664 MB / 0.9356 GB Notification: Performance of simCode: alias equations: time 6.735e-05/0.01859, allocations: 20.47 kB / 0.9918 GB, free: 0.5469 MB / 0.9356 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.828e-05/0.01863, allocations: 16.5 kB / 0.9918 GB, free: 0.5312 MB / 0.9356 GB Notification: Performance of SimCode: time 4.01e-07/0.01863, allocations: 0 / 0.9918 GB, free: 0.5312 MB / 0.9356 GB Notification: Performance of Templates: time 0.006097/0.02473, allocations: 2.178 MB / 0.9939 GB, free: 14.39 MB / 0.9512 GB " [Timeout remaining time 300] make -j1 -f Buildings_12_Buildings.Utilities.IO.Files.Examples.CSVWriter.makefile [Timeout 300] (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 & ./Buildings_12_Buildings.Utilities.IO.Files.Examples.CSVWriter -abortSlowSimulation -alarm=400 -emit_protected -lv LOG_STATS > Buildings_12_Buildings.Utilities.IO.Files.Examples.CSVWriter.pipe 2>&1) [Timeout 400] 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: 8.23630679026246]