Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_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 10.1.0-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.0-maint.10.0.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_10_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_10_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.001393/0.001393, allocations: 103.9 kB / 16.35 MB, free: 5.824 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.001302/0.001302, allocations: 190.5 kB / 17.29 MB, free: 5.48 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.335/1.335, allocations: 222.9 MB / 241 MB, free: 15.16 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.0-maint.10.0.x/package.mo): time 2.419/2.419, allocations: 437.1 MB / 0.7112 GB, free: 4.34 MB / 0.5762 GB Notification: Performance of FrontEnd - loaded program: time 0.001428/0.001428, allocations: 68.25 kB / 0.8707 GB, free: 1.441 MB / 0.6387 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2736/0.275, allocations: 151.6 MB / 1.019 GB, free: 9.84 MB / 0.795 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.IO.Files.Examples.CSVWriter): time 0.003111/0.2782, allocations: 1.62 MB / 1.02 GB, free: 8.203 MB / 0.795 GB Notification: Performance of NFInst.instExpressions: time 0.0009783/0.2792, allocations: 0.6131 MB / 1.021 GB, free: 7.586 MB / 0.795 GB Notification: Performance of NFInst.updateImplicitVariability: time 7.452e-05/0.2793, allocations: 8 kB / 1.021 GB, free: 7.578 MB / 0.795 GB Notification: Performance of NFTyping.typeComponents: time 0.0001554/0.2794, allocations: 19.8 kB / 1.021 GB, free: 7.559 MB / 0.795 GB Notification: Performance of NFTyping.typeBindings: time 0.0002271/0.2797, allocations: 52.48 kB / 1.021 GB, free: 7.508 MB / 0.795 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003529/0.28, allocations: 103.8 kB / 1.021 GB, free: 7.406 MB / 0.795 GB Notification: Performance of NFFlatten.flatten: time 0.0002457/0.2803, allocations: 199.5 kB / 1.021 GB, free: 7.211 MB / 0.795 GB Notification: Performance of NFFlatten.resolveConnections: time 0.000116/0.2804, allocations: 25.12 kB / 1.021 GB, free: 7.184 MB / 0.795 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001469/0.2806, allocations: 91.73 kB / 1.021 GB, free: 7.094 MB / 0.795 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001218/0.2807, allocations: 83.72 kB / 1.022 GB, free: 7.012 MB / 0.795 GB Notification: Performance of NFPackage.collectConstants: time 3.62e-05/0.2807, allocations: 12 kB / 1.022 GB, free: 7 MB / 0.795 GB Notification: Performance of NFFlatten.collectFunctions: time 6.8e-05/0.2808, allocations: 28 kB / 1.022 GB, free: 6.973 MB / 0.795 GB Notification: Performance of NFScalarize.scalarize: time 7.821e-05/0.2809, allocations: 27.91 kB / 1.022 GB, free: 6.945 MB / 0.795 GB Notification: Performance of NFVerifyModel.verify: time 8.585e-05/0.281, allocations: 71.66 kB / 1.022 GB, free: 6.875 MB / 0.795 GB Notification: Performance of NFConvertDAE.convert: time 0.0002075/0.2812, allocations: 175.5 kB / 1.022 GB, free: 6.703 MB / 0.795 GB Notification: Performance of FrontEnd - DAE generated: time 3.557e-06/0.2812, allocations: 0 / 1.022 GB, free: 6.703 MB / 0.795 GB Notification: Performance of FrontEnd: time 1.463e-06/0.2812, allocations: 0 / 1.022 GB, free: 6.703 MB / 0.795 GB Notification: Performance of Transformations before backend: time 4.699e-06/0.2812, allocations: 0 / 1.022 GB, free: 6.703 MB / 0.795 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.0006225/0.2819, allocations: 0.5562 MB / 1.022 GB, free: 6.074 MB / 0.795 GB Notification: Performance of prepare preOptimizeDAE: time 3.23e-05/0.2819, allocations: 8.922 kB / 1.022 GB, free: 6.066 MB / 0.795 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.411e-05/0.282, allocations: 20.75 kB / 1.022 GB, free: 6.047 MB / 0.795 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003069/0.2823, allocations: 245.2 kB / 1.023 GB, free: 5.77 MB / 0.795 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.438e-05/0.2823, allocations: 4.375 kB / 1.023 GB, free: 5.766 MB / 0.795 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.986e-05/0.2823, allocations: 16.38 kB / 1.023 GB, free: 5.75 MB / 0.795 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002545/0.2826, allocations: 117.7 kB / 1.023 GB, free: 5.629 MB / 0.795 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.472e-06/0.2826, allocations: 0 / 1.023 GB, free: 5.629 MB / 0.795 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.634e-05/0.2826, allocations: 4 kB / 1.023 GB, free: 5.625 MB / 0.795 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.922e-06/0.2827, allocations: 4 kB / 1.023 GB, free: 5.621 MB / 0.795 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002028/0.2829, allocations: 63.89 kB / 1.023 GB, free: 5.559 MB / 0.795 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006143/0.2835, allocations: 424.5 kB / 1.023 GB, free: 5.094 MB / 0.795 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001866/0.2837, allocations: 90.56 kB / 1.023 GB, free: 4.996 MB / 0.795 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001494/0.2838, allocations: 76.81 kB / 1.023 GB, free: 4.918 MB / 0.795 GB Notification: Performance of preOpt evalFunc (simulation): time 2.821e-05/0.2839, allocations: 8 kB / 1.023 GB, free: 4.91 MB / 0.795 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000244/0.2841, allocations: 170.7 kB / 1.024 GB, free: 4.719 MB / 0.795 GB Notification: Performance of pre-optimization done (n=10): time 2.956e-06/0.2841, allocations: 3.984 kB / 1.024 GB, free: 4.715 MB / 0.795 GB Notification: Performance of matching and sorting (n=10): time 0.0007058/0.2849, allocations: 356.8 kB / 1.024 GB, free: 4.348 MB / 0.795 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.589e-05/0.2849, allocations: 166.2 kB / 1.024 GB, free: 4.148 MB / 0.795 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00015/0.2851, allocations: 175.7 kB / 1.024 GB, free: 3.965 MB / 0.795 GB Notification: Performance of collectPreVariables (initialization): time 3.106e-05/0.2851, allocations: 37.69 kB / 1.024 GB, free: 3.922 MB / 0.795 GB Notification: Performance of collectInitialEqns (initialization): time 6.269e-05/0.2852, allocations: 104.4 kB / 1.024 GB, free: 3.812 MB / 0.795 GB Notification: Performance of collectInitialBindings (initialization): time 2.894e-05/0.2852, allocations: 27.61 kB / 1.024 GB, free: 3.785 MB / 0.795 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.828e-05/0.2853, allocations: 37.7 kB / 1.024 GB, free: 3.742 MB / 0.795 GB Notification: Performance of setup shared object (initialization): time 0.0001113/0.2854, allocations: 330.8 kB / 1.025 GB, free: 3.41 MB / 0.795 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001318/0.2856, allocations: 51.95 kB / 1.025 GB, free: 3.359 MB / 0.795 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001614/0.2857, allocations: 112.6 kB / 1.025 GB, free: 3.227 MB / 0.795 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003113/0.2861, allocations: 305 kB / 1.025 GB, free: 2.867 MB / 0.795 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.485e-06/0.2861, allocations: 0 / 1.025 GB, free: 2.867 MB / 0.795 GB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0005133/0.2866, allocations: 344.2 kB / 1.026 GB, free: 2.5 MB / 0.795 GB Notification: Performance of prepare postOptimizeDAE: time 7.486e-05/0.2867, allocations: 122.8 kB / 1.026 GB, free: 2.355 MB / 0.795 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.32e-06/0.2867, allocations: 0 / 1.026 GB, free: 2.355 MB / 0.795 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.614e-05/0.2867, allocations: 4 kB / 1.026 GB, free: 2.352 MB / 0.795 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001284/0.2868, allocations: 19.92 kB / 1.026 GB, free: 2.332 MB / 0.795 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.265e-06/0.2869, allocations: 4 kB / 1.026 GB, free: 2.328 MB / 0.795 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001075/0.287, allocations: 23.83 kB / 1.026 GB, free: 2.305 MB / 0.795 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.231e-05/0.287, allocations: 8 kB / 1.026 GB, free: 2.297 MB / 0.795 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.0001461/0.2872, allocations: 200.7 kB / 1.026 GB, free: 2.082 MB / 0.795 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.884e-05/0.2872, allocations: 19.81 kB / 1.026 GB, free: 2.062 MB / 0.795 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.712e-05/0.2872, allocations: 17.39 kB / 1.026 GB, free: 2.051 MB / 0.795 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.345e-06/0.2873, allocations: 3.938 kB / 1.026 GB, free: 2.047 MB / 0.795 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.949e-06/0.2873, allocations: 0 / 1.026 GB, free: 2.047 MB / 0.795 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.277e-06/0.2873, allocations: 288 / 1.026 GB, free: 2.047 MB / 0.795 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006955/0.288, allocations: 0.5836 MB / 1.026 GB, free: 1.395 MB / 0.795 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.096e-06/0.288, allocations: 11.92 kB / 1.026 GB, free: 1.383 MB / 0.795 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.871e-05/0.2881, allocations: 8 kB / 1.027 GB, free: 1.375 MB / 0.795 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.933e-06/0.2881, allocations: 0 / 1.027 GB, free: 1.375 MB / 0.795 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.272e-05/0.2881, allocations: 15.97 kB / 1.027 GB, free: 1.359 MB / 0.795 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.402e-06/0.2881, allocations: 0 / 1.027 GB, free: 1.359 MB / 0.795 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.435e-06/0.2881, allocations: 3.938 kB / 1.027 GB, free: 1.355 MB / 0.795 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000518/0.2886, allocations: 406.6 kB / 1.027 GB, free: 0.9297 MB / 0.795 GB Notification: Performance of postOpt removeConstants (simulation): time 4.534e-05/0.2887, allocations: 85.02 kB / 1.027 GB, free: 0.8281 MB / 0.795 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.668e-05/0.2887, allocations: 12 kB / 1.027 GB, free: 0.8164 MB / 0.795 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001194/0.2889, allocations: 11.98 kB / 1.027 GB, free: 0.8047 MB / 0.795 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4e-05/0.2889, allocations: 3.938 kB / 1.027 GB, free: 0.8008 MB / 0.795 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.148e-05/0.2889, allocations: 15.98 kB / 1.027 GB, free: 0.7852 MB / 0.795 GB Notification: Performance of sorting global known variables: time 9.469e-05/0.289, allocations: 128.8 kB / 1.027 GB, free: 0.6602 MB / 0.795 GB Notification: Performance of sort global known variables: time 1.533e-06/0.289, allocations: 0 / 1.027 GB, free: 0.6602 MB / 0.795 GB Notification: Performance of remove unused functions: time 0.0002909/0.2893, allocations: 39.84 kB / 1.027 GB, free: 0.6211 MB / 0.795 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.0002089/0.2895, allocations: 130.6 kB / 1.027 GB, free: 500 kB / 0.795 GB Notification: Performance of simCode: created initialization part: time 0.0004662/0.29, allocations: 369.8 kB / 1.028 GB, free: 80 kB / 0.795 GB Notification: Performance of simCode: created event and clocks part: time 3.577e-06/0.29, allocations: 4.062 kB / 1.028 GB, free: 76 kB / 0.795 GB Notification: Performance of simCode: created simulation system equations: time 0.0002352/0.2903, allocations: 194.8 kB / 1.028 GB, free: 15.86 MB / 0.8106 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003021/0.2906, allocations: 27.86 kB / 1.028 GB, free: 15.83 MB / 0.8106 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000551/0.2912, allocations: 296 kB / 1.028 GB, free: 15.52 MB / 0.8106 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002406/0.2914, allocations: 0.7119 MB / 1.029 GB, free: 14.78 MB / 0.8106 GB Notification: Performance of simCode: alias equations: time 6.34e-05/0.2915, allocations: 20.53 kB / 1.029 GB, free: 14.76 MB / 0.8106 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.298e-05/0.2915, allocations: 11.44 kB / 1.029 GB, free: 14.75 MB / 0.8106 GB Notification: Performance of SimCode: time 2.61e-07/0.2915, allocations: 0 / 1.029 GB, free: 14.75 MB / 0.8106 GB Notification: Performance of Templates: time 0.00492/0.2964, allocations: 2.07 MB / 1.031 GB, free: 12.7 MB / 0.8106 GB make -j1 -f Buildings_10_Buildings.Utilities.IO.Files.Examples.CSVWriter.makefile (rm -f Buildings_10_Buildings.Utilities.IO.Files.Examples.CSVWriter.pipe ; mkfifo Buildings_10_Buildings.Utilities.IO.Files.Examples.CSVWriter.pipe ; head -c 1048576 < Buildings_10_Buildings.Utilities.IO.Files.Examples.CSVWriter.pipe >> ../files/Buildings_10_Buildings.Utilities.IO.Files.Examples.CSVWriter.sim & ./Buildings_10_Buildings.Utilities.IO.Files.Examples.CSVWriter -abortSlowSimulation -alarm=480 -s gbode -emit_protected -lv LOG_STATS > Buildings_10_Buildings.Utilities.IO.Files.Examples.CSVWriter.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Utilities.IO.Files.Examples.CSVWriter_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Utilities_IO_Files_Examples_CSVWriter.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Utilities.IO.Files.Examples.CSVWriter.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches