Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_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 9.1.2-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-maint.9.1.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_9_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_9_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.00159/0.00159, allocations: 106.2 kB / 16.36 MB, free: 6.289 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.001825/0.001825, allocations: 192.5 kB / 17.29 MB, free: 5.863 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.343/1.343, allocations: 222.9 MB / 241 MB, free: 15.19 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-maint.9.1.x/package.mo): time 2.216/2.216, allocations: 390.3 MB / 0.6655 GB, free: 0.5469 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.001262/0.001262, allocations: 61.47 kB / 0.814 GB, free: 32.62 MB / 0.6231 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.266/0.2672, allocations: 140.4 MB / 0.9511 GB, free: 8.047 MB / 0.7325 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.IO.Files.Examples.CSVWriter): time 0.003073/0.2704, allocations: 1.61 MB / 0.9527 GB, free: 6.43 MB / 0.7325 GB Notification: Performance of NFInst.instExpressions: time 0.0009946/0.2714, allocations: 0.6118 MB / 0.9533 GB, free: 5.812 MB / 0.7325 GB Notification: Performance of NFInst.updateImplicitVariability: time 9.647e-05/0.2715, allocations: 3.938 kB / 0.9533 GB, free: 5.809 MB / 0.7325 GB Notification: Performance of NFTyping.typeComponents: time 0.0001524/0.2717, allocations: 23.78 kB / 0.9533 GB, free: 5.785 MB / 0.7325 GB Notification: Performance of NFTyping.typeBindings: time 0.0002149/0.2719, allocations: 43.77 kB / 0.9534 GB, free: 5.742 MB / 0.7325 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004157/0.2723, allocations: 115.7 kB / 0.9535 GB, free: 5.629 MB / 0.7325 GB Notification: Performance of NFFlatten.flatten: time 0.0002943/0.2726, allocations: 191.6 kB / 0.9536 GB, free: 5.441 MB / 0.7325 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001396/0.2728, allocations: 33.11 kB / 0.9537 GB, free: 5.406 MB / 0.7325 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001828/0.273, allocations: 87.69 kB / 0.9538 GB, free: 5.32 MB / 0.7325 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001511/0.2731, allocations: 83.72 kB / 0.9538 GB, free: 5.238 MB / 0.7325 GB Notification: Performance of NFPackage.collectConstants: time 4.559e-05/0.2732, allocations: 16 kB / 0.9539 GB, free: 5.223 MB / 0.7325 GB Notification: Performance of NFFlatten.collectFunctions: time 7.918e-05/0.2733, allocations: 23.98 kB / 0.9539 GB, free: 5.199 MB / 0.7325 GB Notification: Performance of NFScalarize.scalarize: time 0.0001052/0.2734, allocations: 31.91 kB / 0.9539 GB, free: 5.168 MB / 0.7325 GB Notification: Performance of NFVerifyModel.verify: time 0.0001042/0.2735, allocations: 71.66 kB / 0.954 GB, free: 5.098 MB / 0.7325 GB Notification: Performance of NFConvertDAE.convert: time 0.0002378/0.2737, allocations: 175.4 kB / 0.9541 GB, free: 4.926 MB / 0.7325 GB Notification: Performance of FrontEnd - DAE generated: time 3.757e-06/0.2737, allocations: 0 / 0.9541 GB, free: 4.926 MB / 0.7325 GB Notification: Performance of FrontEnd: time 1.412e-06/0.2738, allocations: 4 kB / 0.9542 GB, free: 4.922 MB / 0.7325 GB Notification: Performance of Transformations before backend: time 7.624e-06/0.2738, allocations: 0 / 0.9542 GB, free: 4.922 MB / 0.7325 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.0006767/0.2744, allocations: 0.5523 MB / 0.9547 GB, free: 4.297 MB / 0.7325 GB Notification: Performance of prepare preOptimizeDAE: time 3.675e-05/0.2745, allocations: 12.03 kB / 0.9547 GB, free: 4.285 MB / 0.7325 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.407e-05/0.2746, allocations: 16.75 kB / 0.9547 GB, free: 4.27 MB / 0.7325 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003212/0.2749, allocations: 228.8 kB / 0.9549 GB, free: 4.008 MB / 0.7325 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.914e-05/0.2749, allocations: 16.31 kB / 0.955 GB, free: 3.992 MB / 0.7325 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.17e-05/0.275, allocations: 16.38 kB / 0.955 GB, free: 3.977 MB / 0.7325 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002683/0.2752, allocations: 117.7 kB / 0.9551 GB, free: 3.855 MB / 0.7325 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.157e-06/0.2752, allocations: 0 / 0.9551 GB, free: 3.855 MB / 0.7325 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.765e-05/0.2753, allocations: 4 kB / 0.9551 GB, free: 3.852 MB / 0.7325 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.638e-06/0.2753, allocations: 0 / 0.9551 GB, free: 3.852 MB / 0.7325 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002039/0.2755, allocations: 71.94 kB / 0.9552 GB, free: 3.781 MB / 0.7325 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000626/0.2761, allocations: 420.5 kB / 0.9556 GB, free: 3.32 MB / 0.7325 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000189/0.2763, allocations: 86.53 kB / 0.9556 GB, free: 3.227 MB / 0.7325 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001434/0.2765, allocations: 76.81 kB / 0.9557 GB, free: 3.148 MB / 0.7325 GB Notification: Performance of preOpt evalFunc (simulation): time 2.128e-05/0.2765, allocations: 0 / 0.9557 GB, free: 3.148 MB / 0.7325 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002409/0.2768, allocations: 182.8 kB / 0.9559 GB, free: 2.945 MB / 0.7325 GB Notification: Performance of pre-optimization done (n=10): time 1.603e-06/0.2768, allocations: 0 / 0.9559 GB, free: 2.945 MB / 0.7325 GB Notification: Performance of matching and sorting (n=10): time 0.0007959/0.2776, allocations: 356.8 kB / 0.9562 GB, free: 2.578 MB / 0.7325 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.636e-05/0.2777, allocations: 174.1 kB / 0.9564 GB, free: 2.371 MB / 0.7325 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001569/0.2778, allocations: 179.1 kB / 0.9566 GB, free: 2.184 MB / 0.7325 GB Notification: Performance of collectPreVariables (initialization): time 2.756e-05/0.2779, allocations: 33.7 kB / 0.9566 GB, free: 2.145 MB / 0.7325 GB Notification: Performance of collectInitialEqns (initialization): time 6.64e-05/0.2779, allocations: 112.4 kB / 0.9567 GB, free: 2.027 MB / 0.7325 GB Notification: Performance of collectInitialBindings (initialization): time 2.614e-05/0.278, allocations: 19.72 kB / 0.9567 GB, free: 2.008 MB / 0.7325 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.758e-05/0.278, allocations: 41.7 kB / 0.9568 GB, free: 1.961 MB / 0.7325 GB Notification: Performance of setup shared object (initialization): time 0.0001029/0.2781, allocations: 330.8 kB / 0.9571 GB, free: 1.629 MB / 0.7325 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001264/0.2783, allocations: 47.97 kB / 0.9571 GB, free: 1.582 MB / 0.7325 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001492/0.2784, allocations: 102.8 kB / 0.9572 GB, free: 1.457 MB / 0.7325 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003068/0.2788, allocations: 316.9 kB / 0.9575 GB, free: 1.086 MB / 0.7325 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.805e-06/0.2788, allocations: 0 / 0.9575 GB, free: 1.086 MB / 0.7325 GB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0004979/0.2793, allocations: 344.2 kB / 0.9578 GB, free: 0.7188 MB / 0.7325 GB Notification: Performance of prepare postOptimizeDAE: time 7.068e-05/0.2794, allocations: 122.8 kB / 0.958 GB, free: 0.5742 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.143e-06/0.2794, allocations: 4 kB / 0.958 GB, free: 0.5703 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.59e-05/0.2794, allocations: 4 kB / 0.958 GB, free: 0.5664 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001095/0.2795, allocations: 15.98 kB / 0.958 GB, free: 0.5508 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.292e-06/0.2795, allocations: 0 / 0.958 GB, free: 0.5508 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.893e-05/0.2796, allocations: 19.84 kB / 0.958 GB, free: 0.5312 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.206e-05/0.2797, allocations: 12 kB / 0.958 GB, free: 0.5195 MB / 0.7325 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.0001442/0.2798, allocations: 201.1 kB / 0.9582 GB, free: 308 kB / 0.7325 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.448e-05/0.2798, allocations: 27.75 kB / 0.9582 GB, free: 280 kB / 0.7325 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.657e-05/0.2799, allocations: 17.41 kB / 0.9583 GB, free: 260 kB / 0.7325 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.873e-06/0.2799, allocations: 0 / 0.9583 GB, free: 260 kB / 0.7325 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.32e-06/0.2799, allocations: 0 / 0.9583 GB, free: 260 kB / 0.7325 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.518e-06/0.2799, allocations: 3.984 kB / 0.9583 GB, free: 256 kB / 0.7325 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000689/0.2806, allocations: 0.5797 MB / 0.9588 GB, free: 15.6 MB / 0.7481 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.783e-06/0.2806, allocations: 0 / 0.9588 GB, free: 15.6 MB / 0.7481 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.643e-05/0.2807, allocations: 15.98 kB / 0.9588 GB, free: 15.59 MB / 0.7481 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.805e-06/0.2807, allocations: 4.281 kB / 0.9588 GB, free: 15.58 MB / 0.7481 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.289e-05/0.2807, allocations: 8 kB / 0.9589 GB, free: 15.57 MB / 0.7481 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.064e-06/0.2807, allocations: 0 / 0.9589 GB, free: 15.57 MB / 0.7481 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.116e-06/0.2808, allocations: 11.88 kB / 0.9589 GB, free: 15.56 MB / 0.7481 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005335/0.2813, allocations: 406.6 kB / 0.9593 GB, free: 15.14 MB / 0.7481 GB Notification: Performance of postOpt removeConstants (simulation): time 4.883e-05/0.2813, allocations: 85.02 kB / 0.9593 GB, free: 15.04 MB / 0.7481 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.507e-05/0.2814, allocations: 4 kB / 0.9593 GB, free: 15.03 MB / 0.7481 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001132/0.2815, allocations: 12 kB / 0.9593 GB, free: 15.02 MB / 0.7481 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.028e-05/0.2816, allocations: 11.92 kB / 0.9594 GB, free: 15.01 MB / 0.7481 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.822e-05/0.2816, allocations: 8 kB / 0.9594 GB, free: 15 MB / 0.7481 GB Notification: Performance of sorting global known variables: time 9.899e-05/0.2817, allocations: 127.2 kB / 0.9595 GB, free: 14.88 MB / 0.7481 GB Notification: Performance of sort global known variables: time 1.4e-07/0.2817, allocations: 0 / 0.9595 GB, free: 14.88 MB / 0.7481 GB Notification: Performance of remove unused functions: time 0.0002978/0.282, allocations: 40 kB / 0.9595 GB, free: 14.84 MB / 0.7481 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.0002155/0.2822, allocations: 135.2 kB / 0.9597 GB, free: 14.71 MB / 0.7481 GB Notification: Performance of simCode: created initialization part: time 0.0004676/0.2827, allocations: 353.5 kB / 0.96 GB, free: 14.31 MB / 0.7481 GB Notification: Performance of simCode: created event and clocks part: time 1.934e-06/0.2827, allocations: 0 / 0.96 GB, free: 14.31 MB / 0.7481 GB Notification: Performance of simCode: created simulation system equations: time 0.0002334/0.283, allocations: 211.2 kB / 0.9602 GB, free: 14.08 MB / 0.7481 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003045/0.2833, allocations: 20 kB / 0.9602 GB, free: 14.06 MB / 0.7481 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005743/0.2839, allocations: 295.9 kB / 0.9605 GB, free: 13.75 MB / 0.7481 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002424/0.2841, allocations: 0.7117 MB / 0.9612 GB, free: 13.01 MB / 0.7481 GB Notification: Performance of simCode: alias equations: time 6.084e-05/0.2842, allocations: 28.41 kB / 0.9612 GB, free: 12.98 MB / 0.7481 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.504e-05/0.2842, allocations: 19.44 kB / 0.9612 GB, free: 12.96 MB / 0.7481 GB Notification: Performance of SimCode: time 2.7e-07/0.2842, allocations: 0 / 0.9612 GB, free: 12.96 MB / 0.7481 GB Notification: Performance of Templates: time 0.005237/0.2895, allocations: 2.063 MB / 0.9632 GB, free: 10.92 MB / 0.7481 GB make -j1 -f Buildings_9_Buildings.Utilities.IO.Files.Examples.CSVWriter.makefile (rm -f Buildings_9_Buildings.Utilities.IO.Files.Examples.CSVWriter.pipe ; mkfifo Buildings_9_Buildings.Utilities.IO.Files.Examples.CSVWriter.pipe ; head -c 1048576 < Buildings_9_Buildings.Utilities.IO.Files.Examples.CSVWriter.pipe >> ../files/Buildings_9_Buildings.Utilities.IO.Files.Examples.CSVWriter.sim & ./Buildings_9_Buildings.Utilities.IO.Files.Examples.CSVWriter -abortSlowSimulation -alarm=480 -s gbode -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Utilities.IO.Files.Examples.CSVWriter.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Utilities.IO.Files.Examples.CSVWriter_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Utilities_IO_Files_Examples_CSVWriter.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Utilities.IO.Files.Examples.CSVWriter.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches