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.001372/0.001372, allocations: 108.6 kB / 16.41 MB, free: 6.465 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.001293/0.001293, allocations: 189.7 kB / 17.35 MB, free: 5.715 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.321/1.321, allocations: 222.9 MB / 241 MB, free: 15.19 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.429/2.429, allocations: 437 MB / 0.7112 GB, free: 4.375 MB / 0.5762 GB Notification: Performance of FrontEnd - loaded program: time 0.001409/0.001409, allocations: 63.91 kB / 1.019 GB, free: 9.414 MB / 0.795 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7474/0.7488, allocations: 151.6 MB / 1.167 GB, free: 3.855 MB / 0.8887 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.IO.Files.Examples.CSVWriter): time 0.002912/0.7517, allocations: 1.615 MB / 1.169 GB, free: 2.23 MB / 0.8887 GB Notification: Performance of NFInst.instExpressions: time 0.001006/0.7528, allocations: 0.6156 MB / 1.169 GB, free: 1.609 MB / 0.8887 GB Notification: Performance of NFInst.updateImplicitVariability: time 8.241e-05/0.7529, allocations: 4 kB / 1.169 GB, free: 1.605 MB / 0.8887 GB Notification: Performance of NFTyping.typeComponents: time 0.0001457/0.753, allocations: 11.86 kB / 1.169 GB, free: 1.594 MB / 0.8887 GB Notification: Performance of NFTyping.typeBindings: time 0.0002194/0.7533, allocations: 51.69 kB / 1.17 GB, free: 1.543 MB / 0.8887 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003909/0.7537, allocations: 103.8 kB / 1.17 GB, free: 1.441 MB / 0.8887 GB Notification: Performance of NFFlatten.flatten: time 0.0002331/0.7539, allocations: 203.6 kB / 1.17 GB, free: 1.242 MB / 0.8887 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001128/0.754, allocations: 25.11 kB / 1.17 GB, free: 1.215 MB / 0.8887 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001346/0.7542, allocations: 95.69 kB / 1.17 GB, free: 1.121 MB / 0.8887 GB Notification: Performance of NFSimplifyModel.simplify: time 0.000122/0.7543, allocations: 83.72 kB / 1.17 GB, free: 1.039 MB / 0.8887 GB Notification: Performance of NFPackage.collectConstants: time 3.377e-05/0.7544, allocations: 15.98 kB / 1.17 GB, free: 1.023 MB / 0.8887 GB Notification: Performance of NFFlatten.collectFunctions: time 5.881e-05/0.7544, allocations: 20 kB / 1.17 GB, free: 1.004 MB / 0.8887 GB Notification: Performance of NFScalarize.scalarize: time 8.324e-05/0.7545, allocations: 27.92 kB / 1.17 GB, free: 0.9766 MB / 0.8887 GB Notification: Performance of NFVerifyModel.verify: time 8.217e-05/0.7546, allocations: 75.64 kB / 1.17 GB, free: 0.9023 MB / 0.8887 GB Notification: Performance of NFConvertDAE.convert: time 0.000212/0.7548, allocations: 171.5 kB / 1.17 GB, free: 0.7344 MB / 0.8887 GB Notification: Performance of FrontEnd - DAE generated: time 3.858e-06/0.7548, allocations: 0 / 1.17 GB, free: 0.7344 MB / 0.8887 GB Notification: Performance of FrontEnd: time 1.232e-06/0.7548, allocations: 0 / 1.17 GB, free: 0.7344 MB / 0.8887 GB Notification: Performance of Transformations before backend: time 5.029e-06/0.7548, allocations: 0 / 1.17 GB, free: 0.7344 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.0006382/0.7555, allocations: 0.558 MB / 1.171 GB, free: 112 kB / 0.8887 GB Notification: Performance of prepare preOptimizeDAE: time 3.255e-05/0.7555, allocations: 8.922 kB / 1.171 GB, free: 104 kB / 0.8887 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.698e-05/0.7556, allocations: 20.75 kB / 1.171 GB, free: 84 kB / 0.8887 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000321/0.7559, allocations: 252 kB / 1.171 GB, free: 15.8 MB / 0.9044 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.267e-05/0.7559, allocations: 8.375 kB / 1.171 GB, free: 15.79 MB / 0.9044 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.023e-05/0.756, allocations: 12.38 kB / 1.171 GB, free: 15.78 MB / 0.9044 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002455/0.7562, allocations: 121.7 kB / 1.171 GB, free: 15.65 MB / 0.9044 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.104e-06/0.7562, allocations: 0 / 1.171 GB, free: 15.65 MB / 0.9044 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.582e-05/0.7563, allocations: 0 / 1.171 GB, free: 15.65 MB / 0.9044 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.101e-06/0.7563, allocations: 4 kB / 1.171 GB, free: 15.65 MB / 0.9044 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001861/0.7565, allocations: 67.89 kB / 1.171 GB, free: 15.58 MB / 0.9044 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006077/0.7571, allocations: 412.6 kB / 1.172 GB, free: 15.13 MB / 0.9044 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001888/0.7573, allocations: 94.56 kB / 1.172 GB, free: 15.03 MB / 0.9044 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001486/0.7574, allocations: 76.81 kB / 1.172 GB, free: 14.95 MB / 0.9044 GB Notification: Performance of preOpt evalFunc (simulation): time 1.787e-05/0.7575, allocations: 0 / 1.172 GB, free: 14.95 MB / 0.9044 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002411/0.7577, allocations: 178.9 kB / 1.172 GB, free: 14.75 MB / 0.9044 GB Notification: Performance of pre-optimization done (n=10): time 1.543e-06/0.7577, allocations: 0 / 1.172 GB, free: 14.75 MB / 0.9044 GB Notification: Performance of matching and sorting (n=10): time 0.0006998/0.7584, allocations: 356.7 kB / 1.172 GB, free: 14.38 MB / 0.9044 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.608e-05/0.7585, allocations: 166.2 kB / 1.173 GB, free: 14.18 MB / 0.9044 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001458/0.7587, allocations: 167.8 kB / 1.173 GB, free: 14.01 MB / 0.9044 GB Notification: Performance of collectPreVariables (initialization): time 3.316e-05/0.7587, allocations: 33.7 kB / 1.173 GB, free: 13.97 MB / 0.9044 GB Notification: Performance of collectInitialEqns (initialization): time 7.436e-05/0.7588, allocations: 112.5 kB / 1.173 GB, free: 13.85 MB / 0.9044 GB Notification: Performance of collectInitialBindings (initialization): time 3.099e-05/0.7588, allocations: 27.64 kB / 1.173 GB, free: 13.82 MB / 0.9044 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.927e-05/0.7589, allocations: 45.69 kB / 1.173 GB, free: 13.77 MB / 0.9044 GB Notification: Performance of setup shared object (initialization): time 0.0001144/0.759, allocations: 330.7 kB / 1.173 GB, free: 13.44 MB / 0.9044 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001309/0.7592, allocations: 51.95 kB / 1.173 GB, free: 13.39 MB / 0.9044 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001629/0.7593, allocations: 108.4 kB / 1.173 GB, free: 13.26 MB / 0.9044 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003144/0.7597, allocations: 309 kB / 1.174 GB, free: 12.9 MB / 0.9044 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.264e-06/0.7597, allocations: 0 / 1.174 GB, free: 12.9 MB / 0.9044 GB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0005118/0.7602, allocations: 344 kB / 1.174 GB, free: 12.53 MB / 0.9044 GB Notification: Performance of prepare postOptimizeDAE: time 7.261e-05/0.7603, allocations: 122.8 kB / 1.174 GB, free: 12.39 MB / 0.9044 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.172e-06/0.7603, allocations: 4 kB / 1.174 GB, free: 12.38 MB / 0.9044 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.595e-05/0.7603, allocations: 8.25 kB / 1.174 GB, free: 12.38 MB / 0.9044 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001094/0.7604, allocations: 19.92 kB / 1.174 GB, free: 12.36 MB / 0.9044 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.107e-06/0.7604, allocations: 7.938 kB / 1.174 GB, free: 12.35 MB / 0.9044 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001034/0.7606, allocations: 15.92 kB / 1.174 GB, free: 12.33 MB / 0.9044 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.078e-05/0.7606, allocations: 12 kB / 1.174 GB, free: 12.32 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.0001426/0.7607, allocations: 195.4 kB / 1.174 GB, free: 12.11 MB / 0.9044 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.05e-05/0.7608, allocations: 15.81 kB / 1.174 GB, free: 12.09 MB / 0.9044 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.145e-05/0.7608, allocations: 21.39 kB / 1.174 GB, free: 12.07 MB / 0.9044 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.084e-06/0.7608, allocations: 4 kB / 1.174 GB, free: 12.07 MB / 0.9044 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.079e-06/0.7608, allocations: 0 / 1.174 GB, free: 12.07 MB / 0.9044 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.586e-06/0.7609, allocations: 3.938 kB / 1.174 GB, free: 12.06 MB / 0.9044 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006947/0.7616, allocations: 0.5759 MB / 1.175 GB, free: 11.42 MB / 0.9044 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.216e-06/0.7616, allocations: 3.984 kB / 1.175 GB, free: 11.41 MB / 0.9044 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.508e-05/0.7616, allocations: 11.94 kB / 1.175 GB, free: 11.4 MB / 0.9044 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.993e-06/0.7616, allocations: 0 / 1.175 GB, free: 11.4 MB / 0.9044 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.855e-05/0.7617, allocations: 11.98 kB / 1.175 GB, free: 11.39 MB / 0.9044 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.393e-06/0.7617, allocations: 4 kB / 1.175 GB, free: 11.39 MB / 0.9044 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.355e-06/0.7617, allocations: 3.938 kB / 1.175 GB, free: 11.38 MB / 0.9044 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005184/0.7622, allocations: 402.6 kB / 1.175 GB, free: 10.96 MB / 0.9044 GB Notification: Performance of postOpt removeConstants (simulation): time 5.2e-05/0.7623, allocations: 92.91 kB / 1.176 GB, free: 10.85 MB / 0.9044 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.19e-05/0.7623, allocations: 4 kB / 1.176 GB, free: 10.85 MB / 0.9044 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000116/0.7624, allocations: 15.98 kB / 1.176 GB, free: 10.83 MB / 0.9044 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.605e-05/0.7625, allocations: 11.88 kB / 1.176 GB, free: 10.82 MB / 0.9044 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.7e-05/0.7625, allocations: 11.98 kB / 1.176 GB, free: 10.81 MB / 0.9044 GB Notification: Performance of sorting global known variables: time 0.0001175/0.7626, allocations: 132.8 kB / 1.176 GB, free: 10.68 MB / 0.9044 GB Notification: Performance of sort global known variables: time 1.51e-07/0.7626, allocations: 0 / 1.176 GB, free: 10.68 MB / 0.9044 GB Notification: Performance of remove unused functions: time 0.0002874/0.7629, allocations: 39.94 kB / 1.176 GB, free: 10.64 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.0002239/0.7632, allocations: 119.6 kB / 1.176 GB, free: 10.52 MB / 0.9044 GB Notification: Performance of simCode: created initialization part: time 0.0004796/0.7637, allocations: 365.4 kB / 1.176 GB, free: 10.11 MB / 0.9044 GB Notification: Performance of simCode: created event and clocks part: time 3.557e-06/0.7637, allocations: 4 kB / 1.176 GB, free: 10.11 MB / 0.9044 GB Notification: Performance of simCode: created simulation system equations: time 0.0002366/0.7639, allocations: 202.9 kB / 1.176 GB, free: 9.887 MB / 0.9044 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002933/0.7642, allocations: 23.14 kB / 1.176 GB, free: 9.867 MB / 0.9044 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005968/0.7648, allocations: 321.6 kB / 1.177 GB, free: 9.52 MB / 0.9044 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002707/0.7651, allocations: 0.7041 MB / 1.177 GB, free: 8.789 MB / 0.9044 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.428e-05/0.7651, allocations: 15.44 kB / 1.177 GB, free: 8.773 MB / 0.9044 GB Notification: Performance of SimCode: time 2.21e-07/0.7652, allocations: 0 / 1.177 GB, free: 8.773 MB / 0.9044 GB Notification: Performance of Templates: time 0.003819/0.769, allocations: 2.174 MB / 1.18 GB, free: 6.613 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 -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