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.001473/0.001473, allocations: 108 kB / 15.61 MB, free: 144 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.001185/0.001186, allocations: 194 kB / 16.53 MB, free: 6.66 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.275/1.275, allocations: 222.9 MB / 240.2 MB, free: 4.395 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.411/2.411, allocations: 437 MB / 0.7104 GB, free: 5.121 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.001302/0.001302, allocations: 67.91 kB / 0.8693 GB, free: 4.566 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6112/0.6125, allocations: 151.6 MB / 1.017 GB, free: 2.5 MB / 0.7637 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.IO.Files.Examples.CSVWriter): time 0.003055/0.6156, allocations: 1.616 MB / 1.019 GB, free: 0.875 MB / 0.7637 GB Notification: Performance of NFInst.instExpressions: time 0.0009899/0.6166, allocations: 0.6156 MB / 1.02 GB, free: 260 kB / 0.7637 GB Notification: Performance of NFInst.updateImplicitVariability: time 8.201e-05/0.6167, allocations: 0 / 1.02 GB, free: 260 kB / 0.7637 GB Notification: Performance of NFTyping.typeComponents: time 0.0001428/0.6169, allocations: 23.8 kB / 1.02 GB, free: 236 kB / 0.7637 GB Notification: Performance of NFTyping.typeBindings: time 0.0001905/0.6171, allocations: 43.75 kB / 1.02 GB, free: 192 kB / 0.7637 GB Notification: Performance of NFTyping.typeClassSections: time 0.000427/0.6176, allocations: 111.8 kB / 1.02 GB, free: 80 kB / 0.7637 GB Notification: Performance of NFFlatten.flatten: time 0.0002642/0.6178, allocations: 191.6 kB / 1.02 GB, free: 15.89 MB / 0.7794 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001239/0.618, allocations: 33.05 kB / 1.02 GB, free: 15.86 MB / 0.7794 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001529/0.6181, allocations: 87.75 kB / 1.02 GB, free: 15.77 MB / 0.7794 GB Notification: Performance of NFSimplifyModel.simplify: time 0.000145/0.6183, allocations: 83.72 kB / 1.02 GB, free: 15.69 MB / 0.7794 GB Notification: Performance of NFPackage.collectConstants: time 4.544e-05/0.6183, allocations: 16 kB / 1.02 GB, free: 15.67 MB / 0.7794 GB Notification: Performance of NFFlatten.collectFunctions: time 7.395e-05/0.6184, allocations: 20 kB / 1.02 GB, free: 15.65 MB / 0.7794 GB Notification: Performance of NFScalarize.scalarize: time 8.209e-05/0.6185, allocations: 27.92 kB / 1.02 GB, free: 15.62 MB / 0.7794 GB Notification: Performance of NFVerifyModel.verify: time 8.991e-05/0.6186, allocations: 75.64 kB / 1.02 GB, free: 15.55 MB / 0.7794 GB Notification: Performance of NFConvertDAE.convert: time 0.0002262/0.6188, allocations: 169.8 kB / 1.02 GB, free: 15.39 MB / 0.7794 GB Notification: Performance of FrontEnd - DAE generated: time 3.517e-06/0.6188, allocations: 4 kB / 1.02 GB, free: 15.38 MB / 0.7794 GB Notification: Performance of FrontEnd: time 1.142e-06/0.6188, allocations: 0 / 1.02 GB, free: 15.38 MB / 0.7794 GB Notification: Performance of Transformations before backend: time 5.991e-06/0.6189, allocations: 0 / 1.02 GB, free: 15.38 MB / 0.7794 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.0006695/0.6195, allocations: 0.5524 MB / 1.021 GB, free: 14.76 MB / 0.7794 GB Notification: Performance of prepare preOptimizeDAE: time 3.887e-05/0.6196, allocations: 12.03 kB / 1.021 GB, free: 14.75 MB / 0.7794 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.286e-05/0.6196, allocations: 46.67 kB / 1.021 GB, free: 14.69 MB / 0.7794 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.874e-05/0.6197, allocations: 16.75 kB / 1.021 GB, free: 14.68 MB / 0.7794 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002798/0.62, allocations: 232.2 kB / 1.021 GB, free: 14.41 MB / 0.7794 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.739e-05/0.62, allocations: 16.31 kB / 1.021 GB, free: 14.39 MB / 0.7794 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.421e-05/0.62, allocations: 12.38 kB / 1.021 GB, free: 14.38 MB / 0.7794 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002556/0.6203, allocations: 121.5 kB / 1.021 GB, free: 14.26 MB / 0.7794 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.273e-06/0.6203, allocations: 0 / 1.021 GB, free: 14.26 MB / 0.7794 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.497e-05/0.6203, allocations: 0 / 1.021 GB, free: 14.26 MB / 0.7794 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.339e-06/0.6203, allocations: 4 kB / 1.021 GB, free: 14.25 MB / 0.7794 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000188/0.6205, allocations: 63.95 kB / 1.021 GB, free: 14.19 MB / 0.7794 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006011/0.6211, allocations: 424.5 kB / 1.022 GB, free: 13.73 MB / 0.7794 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000184/0.6213, allocations: 86.53 kB / 1.022 GB, free: 13.63 MB / 0.7794 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001538/0.6215, allocations: 72.81 kB / 1.022 GB, free: 13.56 MB / 0.7794 GB Notification: Performance of preOpt evalFunc (simulation): time 2.216e-05/0.6215, allocations: 8.156 kB / 1.022 GB, free: 13.55 MB / 0.7794 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002423/0.6218, allocations: 182.7 kB / 1.022 GB, free: 13.35 MB / 0.7794 GB Notification: Performance of pre-optimization done (n=10): time 2.895e-06/0.6218, allocations: 96 / 1.022 GB, free: 13.35 MB / 0.7794 GB Notification: Performance of matching and sorting (n=10): time 0.0006846/0.6225, allocations: 348.7 kB / 1.023 GB, free: 12.99 MB / 0.7794 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.914e-05/0.6226, allocations: 166.2 kB / 1.023 GB, free: 12.79 MB / 0.7794 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001531/0.6227, allocations: 174.7 kB / 1.023 GB, free: 12.61 MB / 0.7794 GB Notification: Performance of collectPreVariables (initialization): time 2.539e-05/0.6228, allocations: 37.64 kB / 1.023 GB, free: 12.57 MB / 0.7794 GB Notification: Performance of collectInitialEqns (initialization): time 6.505e-05/0.6228, allocations: 104.4 kB / 1.023 GB, free: 12.46 MB / 0.7794 GB Notification: Performance of collectInitialBindings (initialization): time 3.274e-05/0.6229, allocations: 31.62 kB / 1.023 GB, free: 12.43 MB / 0.7794 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.277e-05/0.623, allocations: 37.7 kB / 1.023 GB, free: 12.38 MB / 0.7794 GB Notification: Performance of setup shared object (initialization): time 0.0001089/0.6231, allocations: 326.8 kB / 1.023 GB, free: 12.05 MB / 0.7794 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001417/0.6232, allocations: 55.95 kB / 1.023 GB, free: 12 MB / 0.7794 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000172/0.6234, allocations: 102.9 kB / 1.024 GB, free: 11.88 MB / 0.7794 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003182/0.6237, allocations: 308.9 kB / 1.024 GB, free: 11.51 MB / 0.7794 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.816e-06/0.6237, allocations: 0 / 1.024 GB, free: 11.51 MB / 0.7794 GB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0005151/0.6243, allocations: 348.1 kB / 1.024 GB, free: 11.14 MB / 0.7794 GB Notification: Performance of prepare postOptimizeDAE: time 7.788e-05/0.6243, allocations: 118.8 kB / 1.024 GB, free: 11 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.817e-06/0.6244, allocations: 3.984 kB / 1.024 GB, free: 11 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.685e-05/0.6244, allocations: 7.984 kB / 1.024 GB, free: 10.99 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001088/0.6245, allocations: 23.92 kB / 1.024 GB, free: 10.96 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.416e-06/0.6245, allocations: 4 kB / 1.024 GB, free: 10.96 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001019/0.6246, allocations: 19.83 kB / 1.024 GB, free: 10.94 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.112e-05/0.6247, allocations: 12.22 kB / 1.024 GB, free: 10.93 MB / 0.7794 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.00015/0.6248, allocations: 202.9 kB / 1.025 GB, free: 10.71 MB / 0.7794 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.385e-05/0.6249, allocations: 19.75 kB / 1.025 GB, free: 10.69 MB / 0.7794 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.396e-05/0.6249, allocations: 17.39 kB / 1.025 GB, free: 10.68 MB / 0.7794 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.256e-06/0.6249, allocations: 4 kB / 1.025 GB, free: 10.67 MB / 0.7794 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.949e-06/0.6249, allocations: 0 / 1.025 GB, free: 10.67 MB / 0.7794 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.206e-06/0.6249, allocations: 0 / 1.025 GB, free: 10.67 MB / 0.7794 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000685/0.6256, allocations: 0.584 MB / 1.025 GB, free: 10.02 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.605e-06/0.6256, allocations: 0 / 1.025 GB, free: 10.02 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.474e-05/0.6257, allocations: 12 kB / 1.025 GB, free: 10.01 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.835e-06/0.6257, allocations: 3.938 kB / 1.025 GB, free: 10 MB / 0.7794 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.008e-05/0.6257, allocations: 11.98 kB / 1.025 GB, free: 9.992 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.713e-06/0.6257, allocations: 0 / 1.025 GB, free: 9.992 MB / 0.7794 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.585e-06/0.6257, allocations: 3.938 kB / 1.025 GB, free: 9.988 MB / 0.7794 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005241/0.6263, allocations: 406.6 kB / 1.026 GB, free: 9.562 MB / 0.7794 GB Notification: Performance of postOpt removeConstants (simulation): time 3.527e-05/0.6263, allocations: 85.02 kB / 1.026 GB, free: 9.461 MB / 0.7794 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.475e-05/0.6264, allocations: 4 kB / 1.026 GB, free: 9.457 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001149/0.6265, allocations: 11.98 kB / 1.026 GB, free: 9.445 MB / 0.7794 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.039e-05/0.6265, allocations: 11.94 kB / 1.026 GB, free: 9.434 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.641e-05/0.6265, allocations: 7.984 kB / 1.026 GB, free: 9.426 MB / 0.7794 GB Notification: Performance of sorting global known variables: time 9.409e-05/0.6266, allocations: 132.3 kB / 1.026 GB, free: 9.297 MB / 0.7794 GB Notification: Performance of sort global known variables: time 1.4e-07/0.6267, allocations: 0 / 1.026 GB, free: 9.297 MB / 0.7794 GB Notification: Performance of remove unused functions: time 0.0002894/0.6269, allocations: 39.94 kB / 1.026 GB, free: 9.258 MB / 0.7794 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.0008695/0.6278, allocations: 0.9546 MB / 1.027 GB, free: 8.266 MB / 0.7794 GB Notification: Performance of simCode: created initialization part: time 0.0004515/0.6283, allocations: 365.4 kB / 1.027 GB, free: 7.859 MB / 0.7794 GB Notification: Performance of simCode: created event and clocks part: time 2.124e-06/0.6283, allocations: 0 / 1.027 GB, free: 7.859 MB / 0.7794 GB Notification: Performance of simCode: created simulation system equations: time 0.0002232/0.6285, allocations: 210.7 kB / 1.027 GB, free: 7.629 MB / 0.7794 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003019/0.6288, allocations: 33.56 kB / 1.027 GB, free: 7.598 MB / 0.7794 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002264/0.6311, allocations: 2.105 MB / 1.029 GB, free: 5.344 MB / 0.7794 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002337/0.6314, allocations: 0.7078 MB / 1.03 GB, free: 4.609 MB / 0.7794 GB Notification: Performance of simCode: alias equations: time 6.23e-05/0.6314, allocations: 24.53 kB / 1.03 GB, free: 4.586 MB / 0.7794 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.855e-05/0.6315, allocations: 35.42 kB / 1.03 GB, free: 4.551 MB / 0.7794 GB Notification: Performance of SimCode: time 2.81e-07/0.6315, allocations: 0 / 1.03 GB, free: 4.551 MB / 0.7794 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01915/0.6507, allocations: 3.599 MB / 1.034 GB, free: 1.039 MB / 0.7794 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.2/7.85, allocations: 8.656 kB / 1.034 GB, free: 1.031 MB / 0.7794 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=50 --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