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: "" <> buildModelFMU(Buildings.Utilities.IO.Files.Examples.CSVWriter,fileNamePrefix="Buildings_10_Buildings_Utilities_IO_Files_Examples_CSVWriter",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Utilities.IO.Files.Examples.CSVWriter,fileNamePrefix="Buildings_10_Buildings_Utilities_IO_Files_Examples_CSVWriter",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.004966/0.004966, allocations: 98.17 kB / 15.73 MB, free: 6.051 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.001403/0.001404, allocations: 190.7 kB / 16.67 MB, free: 5.973 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.362/1.362, allocations: 222.9 MB / 240.4 MB, free: 4.328 MB / 190.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.591/2.591, allocations: 437.1 MB / 0.7105 GB, free: 4.992 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.001808/0.001808, allocations: 67.89 kB / 1.018 GB, free: 15.17 MB / 0.7794 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2502/0.252, allocations: 151.6 MB / 1.166 GB, free: 7.426 MB / 0.92 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.IO.Files.Examples.CSVWriter): time 0.002575/0.2546, allocations: 1.617 MB / 1.168 GB, free: 5.789 MB / 0.92 GB Notification: Performance of NFInst.instExpressions: time 0.0008644/0.2555, allocations: 0.6117 MB / 1.168 GB, free: 5.172 MB / 0.92 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.576e-05/0.2556, allocations: 8 kB / 1.168 GB, free: 5.164 MB / 0.92 GB Notification: Performance of NFTyping.typeComponents: time 0.0001207/0.2557, allocations: 15.84 kB / 1.168 GB, free: 5.148 MB / 0.92 GB Notification: Performance of NFTyping.typeBindings: time 0.0001775/0.2559, allocations: 47.77 kB / 1.168 GB, free: 5.102 MB / 0.92 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003227/0.2562, allocations: 111.7 kB / 1.169 GB, free: 4.992 MB / 0.92 GB Notification: Performance of NFFlatten.flatten: time 0.0002335/0.2565, allocations: 191.6 kB / 1.169 GB, free: 4.805 MB / 0.92 GB Notification: Performance of NFFlatten.resolveConnections: time 9.465e-05/0.2566, allocations: 29.11 kB / 1.169 GB, free: 4.773 MB / 0.92 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001413/0.2567, allocations: 87.75 kB / 1.169 GB, free: 4.688 MB / 0.92 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001214/0.2568, allocations: 87.66 kB / 1.169 GB, free: 4.602 MB / 0.92 GB Notification: Performance of NFPackage.collectConstants: time 3.346e-05/0.2569, allocations: 12 kB / 1.169 GB, free: 4.59 MB / 0.92 GB Notification: Performance of NFFlatten.collectFunctions: time 6.261e-05/0.2569, allocations: 27.98 kB / 1.169 GB, free: 4.562 MB / 0.92 GB Notification: Performance of NFScalarize.scalarize: time 7.234e-05/0.257, allocations: 31.91 kB / 1.169 GB, free: 4.531 MB / 0.92 GB Notification: Performance of NFVerifyModel.verify: time 8.599e-05/0.2571, allocations: 75.66 kB / 1.169 GB, free: 4.457 MB / 0.92 GB Notification: Performance of NFConvertDAE.convert: time 0.0002193/0.2573, allocations: 171.7 kB / 1.169 GB, free: 4.289 MB / 0.92 GB Notification: Performance of FrontEnd - DAE generated: time 2.525e-06/0.2573, allocations: 0 / 1.169 GB, free: 4.289 MB / 0.92 GB Notification: Performance of FrontEnd: time 1.293e-06/0.2574, allocations: 0 / 1.169 GB, free: 4.289 MB / 0.92 GB Notification: Performance of Transformations before backend: time 4.047e-06/0.2574, allocations: 0 / 1.169 GB, free: 4.289 MB / 0.92 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.0006233/0.258, allocations: 0.5639 MB / 1.17 GB, free: 3.652 MB / 0.92 GB Notification: Performance of prepare preOptimizeDAE: time 2.778e-05/0.258, allocations: 8.031 kB / 1.17 GB, free: 3.645 MB / 0.92 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.991e-05/0.2581, allocations: 38.75 kB / 1.17 GB, free: 3.598 MB / 0.92 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.021e-05/0.2581, allocations: 20.84 kB / 1.17 GB, free: 3.578 MB / 0.92 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002922/0.2584, allocations: 249.2 kB / 1.17 GB, free: 3.297 MB / 0.92 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.503e-05/0.2584, allocations: 8.375 kB / 1.17 GB, free: 3.289 MB / 0.92 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.328e-05/0.2585, allocations: 12.38 kB / 1.17 GB, free: 3.277 MB / 0.92 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002415/0.2587, allocations: 117.5 kB / 1.17 GB, free: 3.156 MB / 0.92 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.313e-06/0.2587, allocations: 0 / 1.17 GB, free: 3.156 MB / 0.92 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.192e-05/0.2588, allocations: 0 / 1.17 GB, free: 3.156 MB / 0.92 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.149e-06/0.2588, allocations: 4 kB / 1.17 GB, free: 3.152 MB / 0.92 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00019/0.259, allocations: 71.89 kB / 1.17 GB, free: 3.082 MB / 0.92 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000562/0.2595, allocations: 412.6 kB / 1.171 GB, free: 2.629 MB / 0.92 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001826/0.2597, allocations: 94.56 kB / 1.171 GB, free: 2.527 MB / 0.92 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001499/0.2599, allocations: 76.81 kB / 1.171 GB, free: 2.449 MB / 0.92 GB Notification: Performance of preOpt evalFunc (simulation): time 1.871e-05/0.2599, allocations: 8 kB / 1.171 GB, free: 2.441 MB / 0.92 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002458/0.2602, allocations: 174.7 kB / 1.171 GB, free: 2.246 MB / 0.92 GB Notification: Performance of pre-optimization done (n=10): time 1.292e-06/0.2602, allocations: 0 / 1.171 GB, free: 2.246 MB / 0.92 GB Notification: Performance of matching and sorting (n=10): time 0.000678/0.2608, allocations: 353 kB / 1.171 GB, free: 1.883 MB / 0.92 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.984e-05/0.2609, allocations: 158.2 kB / 1.171 GB, free: 1.691 MB / 0.92 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001561/0.2611, allocations: 182.6 kB / 1.172 GB, free: 1.5 MB / 0.92 GB Notification: Performance of collectPreVariables (initialization): time 2.623e-05/0.2611, allocations: 29.7 kB / 1.172 GB, free: 1.465 MB / 0.92 GB Notification: Performance of collectInitialEqns (initialization): time 7.085e-05/0.2612, allocations: 112.3 kB / 1.172 GB, free: 1.348 MB / 0.92 GB Notification: Performance of collectInitialBindings (initialization): time 2.75e-05/0.2612, allocations: 27.8 kB / 1.172 GB, free: 1.32 MB / 0.92 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.542e-05/0.2613, allocations: 37.7 kB / 1.172 GB, free: 1.277 MB / 0.92 GB Notification: Performance of setup shared object (initialization): time 0.0001302/0.2615, allocations: 331 kB / 1.172 GB, free: 0.9453 MB / 0.92 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001261/0.2616, allocations: 47.97 kB / 1.172 GB, free: 0.8984 MB / 0.92 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001607/0.2618, allocations: 110.8 kB / 1.172 GB, free: 0.7656 MB / 0.92 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003262/0.2621, allocations: 308.9 kB / 1.173 GB, free: 412 kB / 0.92 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.707e-06/0.2621, allocations: 4 kB / 1.173 GB, free: 408 kB / 0.92 GB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0005065/0.2626, allocations: 352.1 kB / 1.173 GB, free: 24 kB / 0.92 GB Notification: Performance of prepare postOptimizeDAE: time 8.498e-05/0.2627, allocations: 118.8 kB / 1.173 GB, free: 15.88 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.747e-06/0.2627, allocations: 0 / 1.173 GB, free: 15.88 MB / 0.9356 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.157e-05/0.2627, allocations: 4 kB / 1.173 GB, free: 15.88 MB / 0.9356 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.489e-05/0.2628, allocations: 23.92 kB / 1.173 GB, free: 15.86 MB / 0.9356 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.688e-06/0.2628, allocations: 4 kB / 1.173 GB, free: 15.85 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.607e-05/0.2629, allocations: 20.16 kB / 1.173 GB, free: 15.83 MB / 0.9356 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.967e-05/0.263, allocations: 12 kB / 1.173 GB, free: 15.82 MB / 0.9356 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.0001542/0.2631, allocations: 209.3 kB / 1.173 GB, free: 15.6 MB / 0.9356 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.216e-05/0.2632, allocations: 15.91 kB / 1.173 GB, free: 15.58 MB / 0.9356 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.214e-05/0.2632, allocations: 21.33 kB / 1.173 GB, free: 15.56 MB / 0.9356 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.283e-06/0.2632, allocations: 0 / 1.173 GB, free: 15.56 MB / 0.9356 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.515e-06/0.2632, allocations: 0 / 1.173 GB, free: 15.56 MB / 0.9356 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.46e-06/0.2632, allocations: 4 kB / 1.173 GB, free: 15.55 MB / 0.9356 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006907/0.2639, allocations: 0.5836 MB / 1.174 GB, free: 14.9 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.462e-06/0.2639, allocations: 0 / 1.174 GB, free: 14.9 MB / 0.9356 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.12e-05/0.264, allocations: 11.98 kB / 1.174 GB, free: 14.89 MB / 0.9356 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.482e-06/0.264, allocations: 0 / 1.174 GB, free: 14.89 MB / 0.9356 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.401e-05/0.264, allocations: 15.98 kB / 1.174 GB, free: 14.88 MB / 0.9356 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.292e-06/0.264, allocations: 0 / 1.174 GB, free: 14.88 MB / 0.9356 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.445e-06/0.2641, allocations: 3.938 kB / 1.174 GB, free: 14.87 MB / 0.9356 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000528/0.2646, allocations: 402.7 kB / 1.174 GB, free: 14.45 MB / 0.9356 GB Notification: Performance of postOpt removeConstants (simulation): time 5.439e-05/0.2646, allocations: 89 kB / 1.174 GB, free: 14.34 MB / 0.9356 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.064e-05/0.2647, allocations: 4 kB / 1.174 GB, free: 14.34 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001061/0.2648, allocations: 11.98 kB / 1.174 GB, free: 14.33 MB / 0.9356 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.321e-05/0.2648, allocations: 7.938 kB / 1.174 GB, free: 14.32 MB / 0.9356 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.784e-05/0.2649, allocations: 11.98 kB / 1.174 GB, free: 14.31 MB / 0.9356 GB Notification: Performance of sorting global known variables: time 0.0001022/0.265, allocations: 132.8 kB / 1.175 GB, free: 14.18 MB / 0.9356 GB Notification: Performance of sort global known variables: time 1.6e-07/0.265, allocations: 3.938 kB / 1.175 GB, free: 14.18 MB / 0.9356 GB Notification: Performance of remove unused functions: time 0.0002584/0.2652, allocations: 36 kB / 1.175 GB, free: 14.14 MB / 0.9356 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.0009063/0.2661, allocations: 0.9618 MB / 1.176 GB, free: 13.14 MB / 0.9356 GB Notification: Performance of simCode: created initialization part: time 0.0004616/0.2666, allocations: 357.5 kB / 1.176 GB, free: 12.75 MB / 0.9356 GB Notification: Performance of simCode: created event and clocks part: time 1.533e-06/0.2666, allocations: 0 / 1.176 GB, free: 12.75 MB / 0.9356 GB Notification: Performance of simCode: created simulation system equations: time 0.0002367/0.2669, allocations: 206.7 kB / 1.176 GB, free: 12.52 MB / 0.9356 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002664/0.2671, allocations: 33.92 kB / 1.176 GB, free: 12.49 MB / 0.9356 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002299/0.2695, allocations: 2.108 MB / 1.178 GB, free: 10.23 MB / 0.9356 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000294/0.2698, allocations: 0.7119 MB / 1.179 GB, free: 9.496 MB / 0.9356 GB Notification: Performance of simCode: alias equations: time 6.166e-05/0.2698, allocations: 20.53 kB / 1.179 GB, free: 9.477 MB / 0.9356 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.62e-05/0.2699, allocations: 39.36 kB / 1.179 GB, free: 9.438 MB / 0.9356 GB Notification: Performance of SimCode: time 2.5e-07/0.2699, allocations: 0 / 1.179 GB, free: 9.438 MB / 0.9356 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 1.411/1.681, allocations: 3.648 MB / 1.183 GB, free: 5.898 MB / 0.9356 GB Notification: Performance of buildModelFMU: Generate platform static: time 10.57/12.26, allocations: 3.938 kB / 1.183 GB, free: 5.895 MB / 0.9356 GB (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_10_Buildings.Utilities.IO.Files.Examples.CSVWriter_res.mat --tempDir=temp_Buildings_10_Buildings_Utilities_IO_Files_Examples_CSVWriter_fmu --startTime=-1.21 --stopTime=10 --timeout=400 --tolerance=1e-06 Buildings_10_Buildings_Utilities_IO_Files_Examples_CSVWriter.fmu > 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