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.0-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.0-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.001018/0.001018, allocations: 92.23 kB / 16.02 MB, free: 80 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.0009819/0.0009818, allocations: 181.1 kB / 16.92 MB, free: 6.652 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.315/1.315, allocations: 223.3 MB / 241 MB, free: 5.281 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.0-maint.10.0.x/package.mo): time 2.561/2.561, allocations: 437.8 MB / 0.7128 GB, free: 6.965 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.0003643/0.0003645, allocations: 8 kB / 0.8735 GB, free: 3.301 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7185/0.7189, allocations: 153.8 MB / 1.024 GB, free: 15.85 MB / 0.7794 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.IO.Files.Examples.CSVWriter): time 0.002039/0.721, allocations: 1.324 MB / 1.025 GB, free: 14.52 MB / 0.7794 GB Notification: Performance of NFInst.instExpressions: time 0.0011/0.7221, allocations: 0.6237 MB / 1.026 GB, free: 13.89 MB / 0.7794 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001083/0.7222, allocations: 7.938 kB / 1.026 GB, free: 13.89 MB / 0.7794 GB Notification: Performance of NFTyping.typeComponents: time 0.0001693/0.7224, allocations: 19.91 kB / 1.026 GB, free: 13.87 MB / 0.7794 GB Notification: Performance of NFTyping.typeBindings: time 0.0002216/0.7227, allocations: 39.83 kB / 1.026 GB, free: 13.83 MB / 0.7794 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004679/0.7231, allocations: 99.84 kB / 1.026 GB, free: 13.73 MB / 0.7794 GB Notification: Performance of NFFlatten.flatten: time 0.000213/0.7234, allocations: 167.5 kB / 1.026 GB, free: 13.57 MB / 0.7794 GB Notification: Performance of NFFlatten.resolveConnections: time 0.00013/0.7235, allocations: 17.12 kB / 1.026 GB, free: 13.55 MB / 0.7794 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001788/0.7237, allocations: 71.81 kB / 1.026 GB, free: 13.48 MB / 0.7794 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001431/0.7238, allocations: 83.72 kB / 1.026 GB, free: 13.39 MB / 0.7794 GB Notification: Performance of NFPackage.collectConstants: time 3.711e-05/0.7239, allocations: 4 kB / 1.026 GB, free: 13.39 MB / 0.7794 GB Notification: Performance of NFFlatten.collectFunctions: time 7.217e-05/0.724, allocations: 16 kB / 1.026 GB, free: 13.38 MB / 0.7794 GB Notification: Performance of NFScalarize.scalarize: time 8.154e-05/0.724, allocations: 27.84 kB / 1.026 GB, free: 13.35 MB / 0.7794 GB Notification: Performance of NFVerifyModel.verify: time 0.0001047/0.7242, allocations: 93.36 kB / 1.026 GB, free: 13.25 MB / 0.7794 GB Notification: Performance of NFConvertDAE.convert: time 0.0001793/0.7243, allocations: 113.7 kB / 1.026 GB, free: 13.14 MB / 0.7794 GB Notification: Performance of FrontEnd - DAE generated: time 2.915e-06/0.7244, allocations: 0 / 1.026 GB, free: 13.14 MB / 0.7794 GB Notification: Performance of FrontEnd: time 1.953e-06/0.7244, allocations: 7.938 kB / 1.026 GB, free: 13.13 MB / 0.7794 GB Notification: Performance of Transformations before backend: time 7.705e-06/0.7244, allocations: 0 / 1.026 GB, free: 13.13 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.0006733/0.7251, allocations: 0.5251 MB / 1.027 GB, free: 12.54 MB / 0.7794 GB Notification: Performance of prepare preOptimizeDAE: time 3.801e-05/0.7251, allocations: 12.03 kB / 1.027 GB, free: 12.52 MB / 0.7794 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.222e-05/0.7252, allocations: 12.84 kB / 1.027 GB, free: 12.51 MB / 0.7794 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002939/0.7255, allocations: 240.1 kB / 1.027 GB, free: 12.24 MB / 0.7794 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.714e-05/0.7255, allocations: 8.375 kB / 1.027 GB, free: 12.23 MB / 0.7794 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.449e-05/0.7255, allocations: 12.38 kB / 1.027 GB, free: 12.22 MB / 0.7794 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002889/0.7258, allocations: 125.5 kB / 1.027 GB, free: 12.09 MB / 0.7794 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.496e-06/0.7259, allocations: 0 / 1.027 GB, free: 12.09 MB / 0.7794 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.817e-05/0.7259, allocations: 4 kB / 1.027 GB, free: 12.09 MB / 0.7794 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.027e-05/0.7259, allocations: 4 kB / 1.027 GB, free: 12.08 MB / 0.7794 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002022/0.7261, allocations: 71.94 kB / 1.027 GB, free: 12.01 MB / 0.7794 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000673/0.7268, allocations: 428.5 kB / 1.028 GB, free: 11.54 MB / 0.7794 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002018/0.727, allocations: 94.53 kB / 1.028 GB, free: 11.44 MB / 0.7794 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001629/0.7272, allocations: 76.81 kB / 1.028 GB, free: 11.36 MB / 0.7794 GB Notification: Performance of preOpt evalFunc (simulation): time 2.565e-05/0.7272, allocations: 4 kB / 1.028 GB, free: 11.36 MB / 0.7794 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002607/0.7275, allocations: 178.8 kB / 1.028 GB, free: 11.16 MB / 0.7794 GB Notification: Performance of pre-optimization done (n=10): time 1.813e-06/0.7275, allocations: 4 kB / 1.028 GB, free: 11.16 MB / 0.7794 GB Notification: Performance of matching and sorting (n=10): time 0.0007318/0.7282, allocations: 364.9 kB / 1.028 GB, free: 10.78 MB / 0.7794 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.872e-05/0.7283, allocations: 170.1 kB / 1.029 GB, free: 10.58 MB / 0.7794 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001699/0.7285, allocations: 179.1 kB / 1.029 GB, free: 10.39 MB / 0.7794 GB Notification: Performance of collectPreVariables (initialization): time 2.641e-05/0.7285, allocations: 37.7 kB / 1.029 GB, free: 10.35 MB / 0.7794 GB Notification: Performance of collectInitialEqns (initialization): time 7.545e-05/0.7286, allocations: 108.4 kB / 1.029 GB, free: 10.23 MB / 0.7794 GB Notification: Performance of collectInitialBindings (initialization): time 2.919e-05/0.7287, allocations: 23.66 kB / 1.029 GB, free: 10.21 MB / 0.7794 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.925e-05/0.7287, allocations: 21.98 kB / 1.029 GB, free: 10.18 MB / 0.7794 GB Notification: Performance of setup shared object (initialization): time 0.0001138/0.7288, allocations: 330.8 kB / 1.029 GB, free: 9.852 MB / 0.7794 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001409/0.729, allocations: 51.95 kB / 1.029 GB, free: 9.801 MB / 0.7794 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001748/0.7292, allocations: 114.8 kB / 1.029 GB, free: 9.664 MB / 0.7794 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003501/0.7295, allocations: 324.9 kB / 1.03 GB, free: 9.285 MB / 0.7794 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.166e-06/0.7295, allocations: 0 / 1.03 GB, free: 9.285 MB / 0.7794 GB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0005442/0.7301, allocations: 348 kB / 1.03 GB, free: 8.914 MB / 0.7794 GB Notification: Performance of prepare postOptimizeDAE: time 7.604e-05/0.7302, allocations: 123 kB / 1.03 GB, free: 8.77 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.061e-06/0.7302, allocations: 4 kB / 1.03 GB, free: 8.766 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.601e-05/0.7302, allocations: 4 kB / 1.03 GB, free: 8.762 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001155/0.7303, allocations: 15.98 kB / 1.03 GB, free: 8.746 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.976e-06/0.7303, allocations: 4 kB / 1.03 GB, free: 8.742 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001139/0.7305, allocations: 27.83 kB / 1.03 GB, free: 8.715 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.267e-05/0.7305, allocations: 15.97 kB / 1.03 GB, free: 8.699 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.0001551/0.7306, allocations: 194.6 kB / 1.03 GB, free: 8.488 MB / 0.7794 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.038e-05/0.7307, allocations: 19.91 kB / 1.03 GB, free: 8.469 MB / 0.7794 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.15e-05/0.7307, allocations: 21.39 kB / 1.03 GB, free: 8.449 MB / 0.7794 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.054e-06/0.7308, allocations: 0 / 1.03 GB, free: 8.449 MB / 0.7794 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.569e-06/0.7308, allocations: 0 / 1.03 GB, free: 8.449 MB / 0.7794 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.055e-06/0.7308, allocations: 0 / 1.03 GB, free: 8.449 MB / 0.7794 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000725/0.7315, allocations: 0.5992 MB / 1.031 GB, free: 7.781 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.935e-06/0.7315, allocations: 0 / 1.031 GB, free: 7.781 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.776e-05/0.7316, allocations: 8 kB / 1.031 GB, free: 7.773 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (simulation): time 7.263e-06/0.7316, allocations: 8 kB / 1.031 GB, free: 7.766 MB / 0.7794 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.996e-05/0.7316, allocations: 7.984 kB / 1.031 GB, free: 7.758 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.563e-06/0.7316, allocations: 0 / 1.031 GB, free: 7.758 MB / 0.7794 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.845e-06/0.7316, allocations: 3.938 kB / 1.031 GB, free: 7.754 MB / 0.7794 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005552/0.7322, allocations: 414.5 kB / 1.031 GB, free: 7.32 MB / 0.7794 GB Notification: Performance of postOpt removeConstants (simulation): time 4.997e-05/0.7323, allocations: 93 kB / 1.032 GB, free: 7.211 MB / 0.7794 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.438e-05/0.7323, allocations: 4 kB / 1.032 GB, free: 7.207 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001218/0.7324, allocations: 8 kB / 1.032 GB, free: 7.199 MB / 0.7794 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.899e-05/0.7325, allocations: 11.92 kB / 1.032 GB, free: 7.188 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.916e-05/0.7325, allocations: 16 kB / 1.032 GB, free: 7.172 MB / 0.7794 GB Notification: Performance of sorting global known variables: time 9.87e-05/0.7326, allocations: 128.2 kB / 1.032 GB, free: 7.047 MB / 0.7794 GB Notification: Performance of sort global known variables: time 1.4e-07/0.7326, allocations: 0 / 1.032 GB, free: 7.047 MB / 0.7794 GB Notification: Performance of remove unused functions: time 0.0003021/0.7329, allocations: 43.94 kB / 1.032 GB, free: 7.004 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.0002402/0.7332, allocations: 134.9 kB / 1.032 GB, free: 6.867 MB / 0.7794 GB Notification: Performance of simCode: created initialization part: time 0.0004935/0.7337, allocations: 361.5 kB / 1.032 GB, free: 6.465 MB / 0.7794 GB Notification: Performance of simCode: created event and clocks part: time 2.484e-06/0.7337, allocations: 0 / 1.032 GB, free: 6.465 MB / 0.7794 GB Notification: Performance of simCode: created simulation system equations: time 0.0002427/0.7339, allocations: 219.2 kB / 1.032 GB, free: 6.227 MB / 0.7794 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000317/0.7343, allocations: 16 kB / 1.032 GB, free: 6.211 MB / 0.7794 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006466/0.7349, allocations: 355.6 kB / 1.033 GB, free: 5.832 MB / 0.7794 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002849/0.7352, allocations: 0.7082 MB / 1.033 GB, free: 5.098 MB / 0.7794 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.429e-05/0.7353, allocations: 15.44 kB / 1.033 GB, free: 5.082 MB / 0.7794 GB Notification: Performance of SimCode: time 3.1e-07/0.7353, allocations: 0 / 1.033 GB, free: 5.082 MB / 0.7794 GB Notification: Performance of Templates: time 0.004601/0.7399, allocations: 2.148 MB / 1.036 GB, free: 2.945 MB / 0.7794 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 -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