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.1-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-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.001386/0.001386, allocations: 110.3 kB / 16.41 MB, free: 6.504 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.001411/0.001411, allocations: 185.2 kB / 17.34 MB, free: 5.738 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.293/1.293, allocations: 222.9 MB / 241 MB, free: 15.14 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/package.mo): time 2.342/2.342, allocations: 437 MB / 0.7112 GB, free: 4.418 MB / 0.5762 GB Notification: Performance of FrontEnd - loaded program: time 0.001758/0.001758, allocations: 63.91 kB / 1.019 GB, free: 9.398 MB / 0.795 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7/0.7018, allocations: 151.6 MB / 1.167 GB, free: 3.84 MB / 0.8887 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.IO.Files.Examples.CSVWriter): time 0.002642/0.7044, allocations: 1.627 MB / 1.169 GB, free: 2.203 MB / 0.8887 GB Notification: Performance of NFInst.instExpressions: time 0.0009126/0.7054, allocations: 0.6118 MB / 1.17 GB, free: 1.586 MB / 0.8887 GB Notification: Performance of NFInst.updateImplicitVariability: time 7.054e-05/0.7055, allocations: 7.938 kB / 1.17 GB, free: 1.578 MB / 0.8887 GB Notification: Performance of NFTyping.typeComponents: time 0.000125/0.7056, allocations: 11.86 kB / 1.17 GB, free: 1.566 MB / 0.8887 GB Notification: Performance of NFTyping.typeBindings: time 0.0001912/0.7058, allocations: 49.14 kB / 1.17 GB, free: 1.52 MB / 0.8887 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003538/0.7062, allocations: 115.7 kB / 1.17 GB, free: 1.406 MB / 0.8887 GB Notification: Performance of NFFlatten.flatten: time 0.0002518/0.7064, allocations: 195.6 kB / 1.17 GB, free: 1.215 MB / 0.8887 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001049/0.7065, allocations: 29.09 kB / 1.17 GB, free: 1.184 MB / 0.8887 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001382/0.7067, allocations: 87.75 kB / 1.17 GB, free: 1.098 MB / 0.8887 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001271/0.7068, allocations: 87.66 kB / 1.17 GB, free: 1.012 MB / 0.8887 GB Notification: Performance of NFPackage.collectConstants: time 3.143e-05/0.7068, allocations: 12 kB / 1.17 GB, free: 1 MB / 0.8887 GB Notification: Performance of NFFlatten.collectFunctions: time 6.372e-05/0.7069, allocations: 27.98 kB / 1.17 GB, free: 0.9727 MB / 0.8887 GB Notification: Performance of NFScalarize.scalarize: time 7.289e-05/0.707, allocations: 27.92 kB / 1.17 GB, free: 0.9453 MB / 0.8887 GB Notification: Performance of NFVerifyModel.verify: time 9.801e-05/0.7071, allocations: 75.64 kB / 1.17 GB, free: 0.8711 MB / 0.8887 GB Notification: Performance of NFConvertDAE.convert: time 0.0002259/0.7073, allocations: 164 kB / 1.17 GB, free: 0.7148 MB / 0.8887 GB Notification: Performance of FrontEnd - DAE generated: time 3.115e-06/0.7073, allocations: 0 / 1.17 GB, free: 0.7148 MB / 0.8887 GB Notification: Performance of FrontEnd: time 1.072e-06/0.7073, allocations: 4 kB / 1.17 GB, free: 0.7109 MB / 0.8887 GB Notification: Performance of Transformations before backend: time 4.468e-06/0.7073, allocations: 0 / 1.17 GB, free: 0.7109 MB / 0.8887 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.0006785/0.708, allocations: 0.564 MB / 1.171 GB, free: 76 kB / 0.8887 GB Notification: Performance of prepare preOptimizeDAE: time 2.967e-05/0.7081, allocations: 8.625 kB / 1.171 GB, free: 68 kB / 0.8887 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.599e-05/0.7081, allocations: 20.84 kB / 1.171 GB, free: 48 kB / 0.8887 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003147/0.7084, allocations: 240.2 kB / 1.171 GB, free: 15.77 MB / 0.9044 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.404e-05/0.7085, allocations: 8.375 kB / 1.171 GB, free: 15.77 MB / 0.9044 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.943e-05/0.7085, allocations: 20.31 kB / 1.171 GB, free: 15.75 MB / 0.9044 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000265/0.7088, allocations: 121.7 kB / 1.171 GB, free: 15.62 MB / 0.9044 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.945e-06/0.7088, allocations: 0 / 1.171 GB, free: 15.62 MB / 0.9044 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.332e-05/0.7088, allocations: 0 / 1.171 GB, free: 15.62 MB / 0.9044 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.77e-06/0.7088, allocations: 4 kB / 1.171 GB, free: 15.62 MB / 0.9044 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001897/0.709, allocations: 67.94 kB / 1.171 GB, free: 15.55 MB / 0.9044 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006023/0.7096, allocations: 416.5 kB / 1.172 GB, free: 15.09 MB / 0.9044 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001906/0.7098, allocations: 86.53 kB / 1.172 GB, free: 15 MB / 0.9044 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001538/0.71, allocations: 80.84 kB / 1.172 GB, free: 14.92 MB / 0.9044 GB Notification: Performance of preOpt evalFunc (simulation): time 2.313e-05/0.71, allocations: 4 kB / 1.172 GB, free: 14.91 MB / 0.9044 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000261/0.7103, allocations: 182.8 kB / 1.172 GB, free: 14.71 MB / 0.9044 GB Notification: Performance of pre-optimization done (n=10): time 1.402e-06/0.7103, allocations: 0 / 1.172 GB, free: 14.71 MB / 0.9044 GB Notification: Performance of matching and sorting (n=10): time 0.0006952/0.711, allocations: 348.8 kB / 1.172 GB, free: 14.35 MB / 0.9044 GB Notification: Performance of inlineWhenForInitialization (initialization): time 9.749e-05/0.7111, allocations: 162.2 kB / 1.173 GB, free: 14.16 MB / 0.9044 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001672/0.7113, allocations: 179.7 kB / 1.173 GB, free: 13.97 MB / 0.9044 GB Notification: Performance of collectPreVariables (initialization): time 2.633e-05/0.7113, allocations: 29.7 kB / 1.173 GB, free: 13.93 MB / 0.9044 GB Notification: Performance of collectInitialEqns (initialization): time 7.661e-05/0.7114, allocations: 108.4 kB / 1.173 GB, free: 13.82 MB / 0.9044 GB Notification: Performance of collectInitialBindings (initialization): time 2.813e-05/0.7114, allocations: 31.75 kB / 1.173 GB, free: 13.79 MB / 0.9044 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.169e-05/0.7115, allocations: 45.69 kB / 1.173 GB, free: 13.74 MB / 0.9044 GB Notification: Performance of setup shared object (initialization): time 0.0001367/0.7116, allocations: 330.8 kB / 1.173 GB, free: 13.41 MB / 0.9044 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001337/0.7118, allocations: 47.97 kB / 1.173 GB, free: 13.36 MB / 0.9044 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001645/0.712, allocations: 110.8 kB / 1.173 GB, free: 13.23 MB / 0.9044 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003456/0.7123, allocations: 312.9 kB / 1.174 GB, free: 12.86 MB / 0.9044 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.094e-06/0.7123, allocations: 0 / 1.174 GB, free: 12.86 MB / 0.9044 GB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0005332/0.7129, allocations: 344.1 kB / 1.174 GB, free: 12.49 MB / 0.9044 GB Notification: Performance of prepare postOptimizeDAE: time 9.027e-05/0.713, allocations: 127.3 kB / 1.174 GB, free: 12.34 MB / 0.9044 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.328e-06/0.713, allocations: 0 / 1.174 GB, free: 12.34 MB / 0.9044 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.443e-05/0.713, allocations: 4 kB / 1.174 GB, free: 12.34 MB / 0.9044 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001019/0.7131, allocations: 19.92 kB / 1.174 GB, free: 12.32 MB / 0.9044 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.338e-06/0.7131, allocations: 7.938 kB / 1.174 GB, free: 12.31 MB / 0.9044 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.636e-05/0.7132, allocations: 8 kB / 1.174 GB, free: 12.3 MB / 0.9044 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.345e-05/0.7132, allocations: 12 kB / 1.174 GB, free: 12.29 MB / 0.9044 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.000165/0.7134, allocations: 213 kB / 1.174 GB, free: 12.06 MB / 0.9044 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.284e-05/0.7134, allocations: 19.91 kB / 1.174 GB, free: 12.04 MB / 0.9044 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.38e-05/0.7135, allocations: 13.41 kB / 1.174 GB, free: 12.03 MB / 0.9044 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.793e-06/0.7135, allocations: 0 / 1.174 GB, free: 12.03 MB / 0.9044 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.797e-06/0.7135, allocations: 0 / 1.174 GB, free: 12.03 MB / 0.9044 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.885e-06/0.7135, allocations: 4 kB / 1.174 GB, free: 12.02 MB / 0.9044 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000722/0.7142, allocations: 0.5836 MB / 1.175 GB, free: 11.37 MB / 0.9044 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.593e-06/0.7142, allocations: 0 / 1.175 GB, free: 11.37 MB / 0.9044 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.383e-05/0.7143, allocations: 15.92 kB / 1.175 GB, free: 11.36 MB / 0.9044 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.793e-06/0.7143, allocations: 4 kB / 1.175 GB, free: 11.35 MB / 0.9044 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.905e-05/0.7144, allocations: 12 kB / 1.175 GB, free: 11.34 MB / 0.9044 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.293e-06/0.7144, allocations: 0 / 1.175 GB, free: 11.34 MB / 0.9044 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.996e-06/0.7144, allocations: 3.938 kB / 1.175 GB, free: 11.34 MB / 0.9044 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000549/0.7149, allocations: 402.7 kB / 1.175 GB, free: 10.91 MB / 0.9044 GB Notification: Performance of postOpt removeConstants (simulation): time 5.37e-05/0.715, allocations: 85.06 kB / 1.176 GB, free: 10.81 MB / 0.9044 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.189e-05/0.715, allocations: 4 kB / 1.176 GB, free: 10.81 MB / 0.9044 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001052/0.7151, allocations: 12 kB / 1.176 GB, free: 10.8 MB / 0.9044 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.648e-05/0.7152, allocations: 19.86 kB / 1.176 GB, free: 10.78 MB / 0.9044 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.512e-05/0.7152, allocations: 4 kB / 1.176 GB, free: 10.77 MB / 0.9044 GB Notification: Performance of sorting global known variables: time 0.0001074/0.7153, allocations: 136.8 kB / 1.176 GB, free: 10.64 MB / 0.9044 GB Notification: Performance of sort global known variables: time 1.3e-07/0.7153, allocations: 0 / 1.176 GB, free: 10.64 MB / 0.9044 GB Notification: Performance of remove unused functions: time 0.0002721/0.7156, allocations: 35.94 kB / 1.176 GB, free: 10.61 MB / 0.9044 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.000227/0.7158, allocations: 132.7 kB / 1.176 GB, free: 10.48 MB / 0.9044 GB Notification: Performance of simCode: created initialization part: time 0.0004934/0.7163, allocations: 361.5 kB / 1.176 GB, free: 10.07 MB / 0.9044 GB Notification: Performance of simCode: created event and clocks part: time 1.723e-06/0.7163, allocations: 3.938 kB / 1.176 GB, free: 10.07 MB / 0.9044 GB Notification: Performance of simCode: created simulation system equations: time 0.0002426/0.7166, allocations: 203.2 kB / 1.176 GB, free: 9.848 MB / 0.9044 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000274/0.7169, allocations: 20 kB / 1.176 GB, free: 9.828 MB / 0.9044 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005584/0.7174, allocations: 296 kB / 1.177 GB, free: 9.512 MB / 0.9044 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003075/0.7178, allocations: 0.7079 MB / 1.177 GB, free: 8.777 MB / 0.9044 GB Notification: Performance of simCode: alias equations: time 6.003e-05/0.7178, allocations: 20.53 kB / 1.177 GB, free: 8.758 MB / 0.9044 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.822e-05/0.7179, allocations: 23.44 kB / 1.177 GB, free: 8.734 MB / 0.9044 GB Notification: Performance of SimCode: time 2.41e-07/0.7179, allocations: 3.938 kB / 1.177 GB, free: 8.73 MB / 0.9044 GB Notification: Performance of Templates: time 0.005028/0.7229, allocations: 2.071 MB / 1.179 GB, free: 6.688 MB / 0.9044 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 cvode -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