Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_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 11.0.0-master/package.mo", uses=false) Using package Buildings with version 11.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/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_latest_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_latest_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.001017/0.001018, allocations: 109.1 kB / 16.37 MB, free: 6.469 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.001028/0.001028, allocations: 194.5 kB / 17.31 MB, free: 5.824 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.192/1.192, allocations: 222.9 MB / 241 MB, free: 15.18 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.217/2.217, allocations: 442.6 MB / 0.7165 GB, free: 14.7 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001133/0.001133, allocations: 63.25 kB / 0.8773 GB, free: 11.04 MB / 0.6544 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.257/0.2581, allocations: 153 MB / 1.027 GB, free: 2.117 MB / 0.795 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.IO.Files.Examples.CSVWriter): time 0.002722/0.2609, allocations: 1.633 MB / 1.028 GB, free: 492 kB / 0.795 GB Notification: Performance of NFInst.instExpressions: time 0.0008169/0.2617, allocations: 0.6155 MB / 1.029 GB, free: 15.86 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.099e-05/0.2618, allocations: 7.938 kB / 1.029 GB, free: 15.85 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 0.000118/0.2619, allocations: 19.86 kB / 1.029 GB, free: 15.83 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 0.0001701/0.2621, allocations: 39.77 kB / 1.029 GB, free: 15.79 MB / 0.8106 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003511/0.2625, allocations: 115.7 kB / 1.029 GB, free: 15.68 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 0.0002363/0.2627, allocations: 199.6 kB / 1.029 GB, free: 15.48 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001211/0.2628, allocations: 25.11 kB / 1.029 GB, free: 15.46 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 0.000121/0.263, allocations: 79.81 kB / 1.029 GB, free: 15.38 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001156/0.2631, allocations: 83.72 kB / 1.029 GB, free: 15.3 MB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 3.291e-05/0.2631, allocations: 15.94 kB / 1.029 GB, free: 15.28 MB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 6.761e-05/0.2632, allocations: 39.92 kB / 1.03 GB, free: 15.24 MB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 7.532e-05/0.2633, allocations: 23.92 kB / 1.03 GB, free: 15.22 MB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 9.063e-05/0.2634, allocations: 79.7 kB / 1.03 GB, free: 15.14 MB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 0.0002114/0.2636, allocations: 159.5 kB / 1.03 GB, free: 14.98 MB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 4.849e-06/0.2636, allocations: 4 kB / 1.03 GB, free: 14.98 MB / 0.8106 GB Notification: Performance of FrontEnd: time 1.373e-06/0.2636, allocations: 0 / 1.03 GB, free: 14.98 MB / 0.8106 GB Notification: Performance of Transformations before backend: time 6.321e-06/0.2636, allocations: 0 / 1.03 GB, free: 14.98 MB / 0.8106 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.0005859/0.2642, allocations: 0.5601 MB / 1.03 GB, free: 14.35 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 2.717e-05/0.2643, allocations: 8.031 kB / 1.03 GB, free: 14.34 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.472e-05/0.2643, allocations: 20.75 kB / 1.03 GB, free: 14.32 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002637/0.2646, allocations: 229.3 kB / 1.031 GB, free: 14.06 MB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.819e-05/0.2646, allocations: 20.3 kB / 1.031 GB, free: 14.04 MB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.786e-05/0.2646, allocations: 12.38 kB / 1.031 GB, free: 14.03 MB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002244/0.2649, allocations: 117.7 kB / 1.031 GB, free: 13.91 MB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 5.601e-06/0.2649, allocations: 0 / 1.031 GB, free: 13.91 MB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.51e-05/0.2649, allocations: 4 kB / 1.031 GB, free: 13.9 MB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.367e-06/0.2649, allocations: 0 / 1.031 GB, free: 13.9 MB / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001729/0.2651, allocations: 71.94 kB / 1.031 GB, free: 13.83 MB / 0.8106 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005458/0.2656, allocations: 416.5 kB / 1.031 GB, free: 13.38 MB / 0.8106 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001628/0.2658, allocations: 86.53 kB / 1.031 GB, free: 13.28 MB / 0.8106 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000134/0.266, allocations: 72.91 kB / 1.031 GB, free: 13.21 MB / 0.8106 GB Notification: Performance of preOpt evalFunc (simulation): time 2.085e-05/0.266, allocations: 15.81 kB / 1.031 GB, free: 13.19 MB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000226/0.2662, allocations: 178.9 kB / 1.032 GB, free: 12.99 MB / 0.8106 GB Notification: Performance of pre-optimization done (n=10): time 1.282e-06/0.2662, allocations: 0 / 1.032 GB, free: 12.99 MB / 0.8106 GB Notification: Performance of matching and sorting (n=10): time 0.0006308/0.2669, allocations: 352.7 kB / 1.032 GB, free: 12.63 MB / 0.8106 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.26e-05/0.2669, allocations: 166.2 kB / 1.032 GB, free: 12.43 MB / 0.8106 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001369/0.2671, allocations: 183.9 kB / 1.032 GB, free: 12.24 MB / 0.8106 GB Notification: Performance of collectPreVariables (initialization): time 2.398e-05/0.2671, allocations: 29.7 kB / 1.032 GB, free: 12.2 MB / 0.8106 GB Notification: Performance of collectInitialEqns (initialization): time 5.673e-05/0.2672, allocations: 108.4 kB / 1.032 GB, free: 12.09 MB / 0.8106 GB Notification: Performance of collectInitialBindings (initialization): time 2.492e-05/0.2672, allocations: 23.62 kB / 1.032 GB, free: 12.07 MB / 0.8106 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.264e-05/0.2673, allocations: 45.69 kB / 1.032 GB, free: 12.02 MB / 0.8106 GB Notification: Performance of setup shared object (initialization): time 9.766e-05/0.2674, allocations: 330.8 kB / 1.033 GB, free: 11.68 MB / 0.8106 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000116/0.2675, allocations: 51.97 kB / 1.033 GB, free: 11.63 MB / 0.8106 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001441/0.2677, allocations: 106.6 kB / 1.033 GB, free: 11.51 MB / 0.8106 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002872/0.268, allocations: 308.9 kB / 1.033 GB, free: 11.14 MB / 0.8106 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.717e-06/0.268, allocations: 4 kB / 1.033 GB, free: 11.14 MB / 0.8106 GB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0004628/0.2684, allocations: 348.2 kB / 1.033 GB, free: 10.77 MB / 0.8106 GB Notification: Performance of prepare postOptimizeDAE: time 6.217e-05/0.2685, allocations: 114.8 kB / 1.034 GB, free: 10.63 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.031e-06/0.2685, allocations: 4 kB / 1.034 GB, free: 10.63 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.084e-05/0.2685, allocations: 0 / 1.034 GB, free: 10.63 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.803e-05/0.2686, allocations: 23.98 kB / 1.034 GB, free: 10.61 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.512e-06/0.2686, allocations: 3.938 kB / 1.034 GB, free: 10.6 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.444e-05/0.2687, allocations: 19.84 kB / 1.034 GB, free: 10.58 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.861e-05/0.2688, allocations: 8.219 kB / 1.034 GB, free: 10.57 MB / 0.8106 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.0001336/0.2689, allocations: 209.1 kB / 1.034 GB, free: 10.35 MB / 0.8106 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.041e-05/0.2689, allocations: 19.81 kB / 1.034 GB, free: 10.33 MB / 0.8106 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.883e-05/0.269, allocations: 9.406 kB / 1.034 GB, free: 10.32 MB / 0.8106 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.655e-06/0.269, allocations: 4 kB / 1.034 GB, free: 10.32 MB / 0.8106 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.156e-06/0.269, allocations: 0 / 1.034 GB, free: 10.32 MB / 0.8106 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.597e-06/0.269, allocations: 3.984 kB / 1.034 GB, free: 10.31 MB / 0.8106 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006128/0.2696, allocations: 0.5838 MB / 1.034 GB, free: 9.66 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.453e-06/0.2696, allocations: 8 kB / 1.034 GB, free: 9.652 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.332e-05/0.2697, allocations: 11.98 kB / 1.034 GB, free: 9.641 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.005e-06/0.2697, allocations: 3.938 kB / 1.034 GB, free: 9.637 MB / 0.8106 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.865e-05/0.2697, allocations: 11.94 kB / 1.034 GB, free: 9.625 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.352e-06/0.2697, allocations: 0 / 1.034 GB, free: 9.625 MB / 0.8106 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.003e-06/0.2697, allocations: 3.938 kB / 1.034 GB, free: 9.621 MB / 0.8106 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004699/0.2702, allocations: 414.6 kB / 1.035 GB, free: 9.188 MB / 0.8106 GB Notification: Performance of postOpt removeConstants (simulation): time 4.07e-05/0.2703, allocations: 84.92 kB / 1.035 GB, free: 9.086 MB / 0.8106 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.095e-05/0.2703, allocations: 11.98 kB / 1.035 GB, free: 9.074 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001027/0.2704, allocations: 4 kB / 1.035 GB, free: 9.07 MB / 0.8106 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.175e-05/0.2705, allocations: 15.92 kB / 1.035 GB, free: 9.055 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.477e-05/0.2705, allocations: 7.938 kB / 1.035 GB, free: 9.047 MB / 0.8106 GB Notification: Performance of sorting global known variables: time 8.687e-05/0.2706, allocations: 127.2 kB / 1.035 GB, free: 8.922 MB / 0.8106 GB Notification: Performance of sort global known variables: time 1.2e-07/0.2706, allocations: 0 / 1.035 GB, free: 8.922 MB / 0.8106 GB Notification: Performance of remove unused functions: time 0.0002687/0.2709, allocations: 36 kB / 1.035 GB, free: 8.887 MB / 0.8106 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.0001841/0.271, allocations: 122.3 kB / 1.035 GB, free: 8.758 MB / 0.8106 GB Notification: Performance of simCode: created initialization part: time 0.0004108/0.2715, allocations: 361.8 kB / 1.036 GB, free: 8.355 MB / 0.8106 GB Notification: Performance of simCode: created event and clocks part: time 2.004e-06/0.2715, allocations: 8.062 kB / 1.036 GB, free: 8.348 MB / 0.8106 GB Notification: Performance of simCode: created simulation system equations: time 0.0001986/0.2717, allocations: 210.7 kB / 1.036 GB, free: 8.117 MB / 0.8106 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002623/0.272, allocations: 18.12 kB / 1.036 GB, free: 8.102 MB / 0.8106 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000479/0.2724, allocations: 292 kB / 1.036 GB, free: 7.789 MB / 0.8106 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002235/0.2727, allocations: 0.708 MB / 1.037 GB, free: 7.055 MB / 0.8106 GB Notification: Performance of simCode: alias equations: time 5.573e-05/0.2727, allocations: 20.53 kB / 1.037 GB, free: 7.035 MB / 0.8106 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.914e-05/0.2728, allocations: 19.42 kB / 1.037 GB, free: 7.02 MB / 0.8106 GB Notification: Performance of SimCode: time 2.3e-07/0.2728, allocations: 0 / 1.037 GB, free: 7.02 MB / 0.8106 GB Notification: Performance of Templates: time 0.004336/0.2771, allocations: 2.066 MB / 1.039 GB, free: 4.98 MB / 0.8106 GB make -j1 -f Buildings_latest_Buildings.Utilities.IO.Files.Examples.CSVWriter.makefile (rm -f Buildings_latest_Buildings.Utilities.IO.Files.Examples.CSVWriter.pipe ; mkfifo Buildings_latest_Buildings.Utilities.IO.Files.Examples.CSVWriter.pipe ; head -c 1048576 < Buildings_latest_Buildings.Utilities.IO.Files.Examples.CSVWriter.pipe >> ../files/Buildings_latest_Buildings.Utilities.IO.Files.Examples.CSVWriter.sim & ./Buildings_latest_Buildings.Utilities.IO.Files.Examples.CSVWriter -abortSlowSimulation -alarm=480 -s cvode -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Utilities.IO.Files.Examples.CSVWriter.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Utilities.IO.Files.Examples.CSVWriter_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Utilities_IO_Files_Examples_CSVWriter.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Utilities.IO.Files.Examples.CSVWriter.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches