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.001059/0.001059, allocations: 98.64 kB / 16.02 MB, free: 76 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001442/0.001442, allocations: 182.8 kB / 16.92 MB, free: 6.918 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.347/1.347, allocations: 223.3 MB / 241 MB, free: 5.273 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.764/2.764, allocations: 462.7 MB / 0.737 GB, free: 15.62 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.0003545/0.0003542, allocations: 11.98 kB / 0.9034 GB, free: 36.5 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2919/0.2923, allocations: 159.6 MB / 1.059 GB, free: 5.051 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.IO.Files.Examples.CSVWriter): time 0.001906/0.2942, allocations: 1.33 MB / 1.061 GB, free: 3.711 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.0009202/0.2952, allocations: 0.6273 MB / 1.061 GB, free: 3.078 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.523e-05/0.2952, allocations: 0 / 1.061 GB, free: 3.078 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 0.0001319/0.2954, allocations: 15.94 kB / 1.061 GB, free: 3.062 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 0.0001799/0.2956, allocations: 42.39 kB / 1.061 GB, free: 3.023 MB / 0.8106 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003865/0.2959, allocations: 107.8 kB / 1.061 GB, free: 2.918 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 0.0001683/0.2961, allocations: 167.5 kB / 1.062 GB, free: 2.754 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001148/0.2962, allocations: 29.09 kB / 1.062 GB, free: 2.727 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001553/0.2964, allocations: 71.75 kB / 1.062 GB, free: 2.656 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001265/0.2965, allocations: 71.73 kB / 1.062 GB, free: 2.586 MB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 2.964e-05/0.2966, allocations: 8 kB / 1.062 GB, free: 2.578 MB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 6.114e-05/0.2966, allocations: 23.98 kB / 1.062 GB, free: 2.555 MB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 7.513e-05/0.2967, allocations: 27.92 kB / 1.062 GB, free: 2.527 MB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 9.511e-05/0.2968, allocations: 93.34 kB / 1.062 GB, free: 2.43 MB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 0.0001498/0.297, allocations: 108 kB / 1.062 GB, free: 2.324 MB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 3.827e-06/0.297, allocations: 0 / 1.062 GB, free: 2.324 MB / 0.8106 GB Notification: Performance of FrontEnd: time 1.533e-06/0.297, allocations: 0 / 1.062 GB, free: 2.324 MB / 0.8106 GB Notification: Performance of Transformations before backend: time 4.158e-06/0.297, allocations: 0 / 1.062 GB, free: 2.324 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.0005934/0.2976, allocations: 0.529 MB / 1.062 GB, free: 1.723 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 3.508e-05/0.2977, allocations: 15.97 kB / 1.062 GB, free: 1.707 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.554e-05/0.2977, allocations: 20.75 kB / 1.063 GB, free: 1.688 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002646/0.298, allocations: 232.2 kB / 1.063 GB, free: 1.422 MB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.651e-05/0.298, allocations: 8.375 kB / 1.063 GB, free: 1.414 MB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.142e-05/0.298, allocations: 12.38 kB / 1.063 GB, free: 1.402 MB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002661/0.2983, allocations: 121.7 kB / 1.063 GB, free: 1.277 MB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.823e-06/0.2983, allocations: 0 / 1.063 GB, free: 1.277 MB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.552e-05/0.2984, allocations: 0 / 1.063 GB, free: 1.277 MB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.26e-06/0.2984, allocations: 8 kB / 1.063 GB, free: 1.27 MB / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002038/0.2986, allocations: 75.89 kB / 1.063 GB, free: 1.195 MB / 0.8106 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000602/0.2992, allocations: 420.5 kB / 1.063 GB, free: 0.7344 MB / 0.8106 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001935/0.2994, allocations: 98.56 kB / 1.063 GB, free: 0.6289 MB / 0.8106 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001591/0.2996, allocations: 76.81 kB / 1.064 GB, free: 0.5508 MB / 0.8106 GB Notification: Performance of preOpt evalFunc (simulation): time 2.419e-05/0.2996, allocations: 8.141 kB / 1.064 GB, free: 0.543 MB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002597/0.2999, allocations: 174.7 kB / 1.064 GB, free: 356 kB / 0.8106 GB Notification: Performance of pre-optimization done (n=10): time 1.613e-06/0.2999, allocations: 0 / 1.064 GB, free: 356 kB / 0.8106 GB Notification: Performance of matching and sorting (n=10): time 0.0007602/0.3006, allocations: 380.6 kB / 1.064 GB, free: 15.96 MB / 0.8262 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.919e-05/0.3007, allocations: 162.2 kB / 1.064 GB, free: 15.76 MB / 0.8262 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001655/0.3009, allocations: 183.1 kB / 1.064 GB, free: 15.57 MB / 0.8262 GB Notification: Performance of collectPreVariables (initialization): time 2.557e-05/0.3009, allocations: 25.7 kB / 1.064 GB, free: 15.54 MB / 0.8262 GB Notification: Performance of collectInitialEqns (initialization): time 6.463e-05/0.301, allocations: 108.4 kB / 1.065 GB, free: 15.43 MB / 0.8262 GB Notification: Performance of collectInitialBindings (initialization): time 2.918e-05/0.301, allocations: 23.7 kB / 1.065 GB, free: 15.4 MB / 0.8262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.918e-05/0.3011, allocations: 25.72 kB / 1.065 GB, free: 15.37 MB / 0.8262 GB Notification: Performance of setup shared object (initialization): time 0.0001043/0.3012, allocations: 334.8 kB / 1.065 GB, free: 15.04 MB / 0.8262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000157/0.3014, allocations: 51.97 kB / 1.065 GB, free: 14.98 MB / 0.8262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001745/0.3015, allocations: 118.8 kB / 1.065 GB, free: 14.84 MB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003429/0.3019, allocations: 313 kB / 1.065 GB, free: 14.48 MB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.655e-06/0.3019, allocations: 0 / 1.065 GB, free: 14.48 MB / 0.8262 GB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0005469/0.3025, allocations: 360 kB / 1.066 GB, free: 14.09 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 7.477e-05/0.3025, allocations: 114.8 kB / 1.066 GB, free: 13.96 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.544e-06/0.3026, allocations: 4 kB / 1.066 GB, free: 13.95 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.392e-05/0.3026, allocations: 4 kB / 1.066 GB, free: 13.95 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001171/0.3027, allocations: 20.23 kB / 1.066 GB, free: 13.93 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.396e-06/0.3027, allocations: 7.938 kB / 1.066 GB, free: 13.92 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001118/0.3028, allocations: 23.84 kB / 1.066 GB, free: 13.9 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.322e-05/0.3029, allocations: 11.98 kB / 1.066 GB, free: 13.89 MB / 0.8262 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.0001526/0.303, allocations: 198.8 kB / 1.066 GB, free: 13.67 MB / 0.8262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.216e-05/0.3031, allocations: 19.81 kB / 1.066 GB, free: 13.65 MB / 0.8262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.689e-05/0.3031, allocations: 13.41 kB / 1.066 GB, free: 13.64 MB / 0.8262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.355e-06/0.3031, allocations: 0 / 1.066 GB, free: 13.64 MB / 0.8262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.509e-06/0.3031, allocations: 4 kB / 1.066 GB, free: 13.64 MB / 0.8262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.859e-06/0.3031, allocations: 3.984 kB / 1.066 GB, free: 13.63 MB / 0.8262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007176/0.3039, allocations: 0.5954 MB / 1.067 GB, free: 12.97 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.934e-06/0.3039, allocations: 0 / 1.067 GB, free: 12.97 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.155e-05/0.3039, allocations: 19.92 kB / 1.067 GB, free: 12.95 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.705e-06/0.304, allocations: 0 / 1.067 GB, free: 12.95 MB / 0.8262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.063e-05/0.304, allocations: 12 kB / 1.067 GB, free: 12.94 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.723e-06/0.304, allocations: 368 / 1.067 GB, free: 12.94 MB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.681e-06/0.304, allocations: 11.91 kB / 1.067 GB, free: 12.93 MB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005532/0.3046, allocations: 418.5 kB / 1.067 GB, free: 12.49 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 4.731e-05/0.3046, allocations: 85.02 kB / 1.067 GB, free: 12.39 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.658e-05/0.3047, allocations: 4 kB / 1.067 GB, free: 12.38 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000123/0.3048, allocations: 15.92 kB / 1.067 GB, free: 12.37 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.659e-05/0.3048, allocations: 11.94 kB / 1.067 GB, free: 12.36 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.874e-05/0.3049, allocations: 7.984 kB / 1.067 GB, free: 12.35 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 9.795e-05/0.305, allocations: 127.2 kB / 1.067 GB, free: 12.22 MB / 0.8262 GB Notification: Performance of sort global known variables: time 1.21e-07/0.305, allocations: 0 / 1.067 GB, free: 12.22 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.0003066/0.3053, allocations: 39.91 kB / 1.067 GB, free: 12.18 MB / 0.8262 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.0002243/0.3055, allocations: 119.8 kB / 1.068 GB, free: 12.06 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.0004794/0.306, allocations: 377.4 kB / 1.068 GB, free: 11.64 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 2.004e-06/0.306, allocations: 0 / 1.068 GB, free: 11.64 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 0.0002367/0.3063, allocations: 202.8 kB / 1.068 GB, free: 11.42 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003149/0.3066, allocations: 20.48 kB / 1.068 GB, free: 11.4 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005976/0.3072, allocations: 351.7 kB / 1.068 GB, free: 11.02 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002377/0.3074, allocations: 0.7122 MB / 1.069 GB, free: 10.29 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.033e-05/0.3075, allocations: 15.44 kB / 1.069 GB, free: 10.27 MB / 0.8262 GB Notification: Performance of SimCode: time 2.6e-07/0.3075, allocations: 7.875 kB / 1.069 GB, free: 10.26 MB / 0.8262 GB Notification: Performance of Templates: time 0.004067/0.3116, allocations: 2.136 MB / 1.071 GB, free: 8.137 MB / 0.8262 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 -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