Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_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 9.1.2-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-maint.9.1.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_9_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_9_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.001193/0.001193, allocations: 105.2 kB / 16.35 MB, free: 5.824 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.001146/0.001146, allocations: 193.1 kB / 17.29 MB, free: 5.48 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.212/1.212, 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 9.1.2-maint.9.1.x/package.mo): time 1.991/1.991, allocations: 390.3 MB / 0.6655 GB, free: 0.5977 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.00105/0.00105, allocations: 63.17 kB / 0.814 GB, free: 32.62 MB / 0.6231 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2411/0.2421, allocations: 140.4 MB / 0.9511 GB, free: 8.062 MB / 0.7325 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.IO.Files.Examples.CSVWriter): time 0.002711/0.2449, allocations: 1.617 MB / 0.9527 GB, free: 6.438 MB / 0.7325 GB Notification: Performance of NFInst.instExpressions: time 0.0009223/0.2458, allocations: 0.6157 MB / 0.9533 GB, free: 5.816 MB / 0.7325 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.252e-05/0.2459, allocations: 0 / 0.9533 GB, free: 5.816 MB / 0.7325 GB Notification: Performance of NFTyping.typeComponents: time 0.0001075/0.246, allocations: 15.8 kB / 0.9533 GB, free: 5.801 MB / 0.7325 GB Notification: Performance of NFTyping.typeBindings: time 0.0001682/0.2462, allocations: 47.64 kB / 0.9534 GB, free: 5.758 MB / 0.7325 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004301/0.2466, allocations: 115.7 kB / 0.9535 GB, free: 5.645 MB / 0.7325 GB Notification: Performance of NFFlatten.flatten: time 0.0002634/0.2469, allocations: 191.6 kB / 0.9536 GB, free: 5.457 MB / 0.7325 GB Notification: Performance of NFFlatten.resolveConnections: time 8.84e-05/0.247, allocations: 33.11 kB / 0.9537 GB, free: 5.422 MB / 0.7325 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001233/0.2471, allocations: 87.69 kB / 0.9538 GB, free: 5.336 MB / 0.7325 GB Notification: Performance of NFSimplifyModel.simplify: time 0.000109/0.2472, allocations: 87.66 kB / 0.9538 GB, free: 5.25 MB / 0.7325 GB Notification: Performance of NFPackage.collectConstants: time 3.597e-05/0.2473, allocations: 12 kB / 0.9539 GB, free: 5.238 MB / 0.7325 GB Notification: Performance of NFFlatten.collectFunctions: time 5.521e-05/0.2473, allocations: 27.98 kB / 0.9539 GB, free: 5.211 MB / 0.7325 GB Notification: Performance of NFScalarize.scalarize: time 6.854e-05/0.2474, allocations: 23.92 kB / 0.9539 GB, free: 5.188 MB / 0.7325 GB Notification: Performance of NFVerifyModel.verify: time 8.502e-05/0.2475, allocations: 83.64 kB / 0.954 GB, free: 5.105 MB / 0.7325 GB Notification: Performance of NFConvertDAE.convert: time 0.0002054/0.2477, allocations: 163.5 kB / 0.9541 GB, free: 4.945 MB / 0.7325 GB Notification: Performance of FrontEnd - DAE generated: time 3.186e-06/0.2477, allocations: 0 / 0.9541 GB, free: 4.945 MB / 0.7325 GB Notification: Performance of FrontEnd: time 9.72e-07/0.2477, allocations: 0 / 0.9541 GB, free: 4.945 MB / 0.7325 GB Notification: Performance of Transformations before backend: time 6.402e-06/0.2477, allocations: 4 kB / 0.9541 GB, free: 4.941 MB / 0.7325 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.0006896/0.2484, allocations: 0.56 MB / 0.9547 GB, free: 4.309 MB / 0.7325 GB Notification: Performance of prepare preOptimizeDAE: time 3.9e-05/0.2485, allocations: 8.031 kB / 0.9547 GB, free: 4.301 MB / 0.7325 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.186e-05/0.2485, allocations: 20.75 kB / 0.9547 GB, free: 4.281 MB / 0.7325 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002823/0.2488, allocations: 232.8 kB / 0.9549 GB, free: 4.016 MB / 0.7325 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.383e-05/0.2489, allocations: 12.31 kB / 0.955 GB, free: 4.004 MB / 0.7325 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.018e-05/0.2489, allocations: 12.38 kB / 0.955 GB, free: 3.992 MB / 0.7325 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002306/0.2491, allocations: 121.7 kB / 0.9551 GB, free: 3.867 MB / 0.7325 GB Notification: Performance of preOpt findStateOrder (simulation): time 5.851e-06/0.2491, allocations: 0 / 0.9551 GB, free: 3.867 MB / 0.7325 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.563e-05/0.2492, allocations: 4 kB / 0.9551 GB, free: 3.863 MB / 0.7325 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.487e-06/0.2492, allocations: 0 / 0.9551 GB, free: 3.863 MB / 0.7325 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001782/0.2494, allocations: 75.94 kB / 0.9552 GB, free: 3.789 MB / 0.7325 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005859/0.2499, allocations: 416.5 kB / 0.9556 GB, free: 3.332 MB / 0.7325 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001628/0.2501, allocations: 86.53 kB / 0.9556 GB, free: 3.238 MB / 0.7325 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001339/0.2503, allocations: 72.81 kB / 0.9557 GB, free: 3.164 MB / 0.7325 GB Notification: Performance of preOpt evalFunc (simulation): time 1.796e-05/0.2503, allocations: 8 kB / 0.9557 GB, free: 3.156 MB / 0.7325 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000259/0.2506, allocations: 178.9 kB / 0.9559 GB, free: 2.957 MB / 0.7325 GB Notification: Performance of pre-optimization done (n=10): time 2.995e-06/0.2506, allocations: 96 / 0.9559 GB, free: 2.957 MB / 0.7325 GB Notification: Performance of matching and sorting (n=10): time 0.0006141/0.2512, allocations: 349 kB / 0.9562 GB, free: 2.598 MB / 0.7325 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001007/0.2513, allocations: 166.2 kB / 0.9564 GB, free: 2.398 MB / 0.7325 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001462/0.2515, allocations: 191.1 kB / 0.9566 GB, free: 2.199 MB / 0.7325 GB Notification: Performance of collectPreVariables (initialization): time 2.166e-05/0.2515, allocations: 37.64 kB / 0.9566 GB, free: 2.156 MB / 0.7325 GB Notification: Performance of collectInitialEqns (initialization): time 5.997e-05/0.2515, allocations: 108.4 kB / 0.9567 GB, free: 2.043 MB / 0.7325 GB Notification: Performance of collectInitialBindings (initialization): time 2.556e-05/0.2516, allocations: 23.7 kB / 0.9567 GB, free: 2.02 MB / 0.7325 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.47e-05/0.2517, allocations: 37.7 kB / 0.9568 GB, free: 1.977 MB / 0.7325 GB Notification: Performance of setup shared object (initialization): time 0.0001123/0.2518, allocations: 330.8 kB / 0.9571 GB, free: 1.645 MB / 0.7325 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000119/0.2519, allocations: 51.95 kB / 0.9571 GB, free: 1.594 MB / 0.7325 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001879/0.2521, allocations: 106.8 kB / 0.9572 GB, free: 1.465 MB / 0.7325 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002838/0.2524, allocations: 312.9 kB / 0.9575 GB, free: 1.098 MB / 0.7325 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.154e-06/0.2524, allocations: 0 / 0.9575 GB, free: 1.098 MB / 0.7325 GB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0005138/0.2529, allocations: 348.1 kB / 0.9579 GB, free: 0.7266 MB / 0.7325 GB Notification: Performance of prepare postOptimizeDAE: time 5.969e-05/0.253, allocations: 118.8 kB / 0.958 GB, free: 0.5859 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.821e-06/0.253, allocations: 4 kB / 0.958 GB, free: 0.582 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.355e-05/0.253, allocations: 0 / 0.958 GB, free: 0.582 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001074/0.2531, allocations: 19.92 kB / 0.958 GB, free: 0.5625 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.763e-06/0.2531, allocations: 4 kB / 0.958 GB, free: 0.5586 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.164e-05/0.2532, allocations: 19.84 kB / 0.958 GB, free: 0.5391 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.754e-05/0.2533, allocations: 12.25 kB / 0.958 GB, free: 0.5273 MB / 0.7325 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.0001314/0.2534, allocations: 202.7 kB / 0.9582 GB, free: 316 kB / 0.7325 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.983e-05/0.2534, allocations: 19.75 kB / 0.9582 GB, free: 296 kB / 0.7325 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.136e-05/0.2535, allocations: 17.41 kB / 0.9583 GB, free: 276 kB / 0.7325 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.775e-06/0.2535, allocations: 4 kB / 0.9583 GB, free: 272 kB / 0.7325 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.747e-06/0.2535, allocations: 0 / 0.9583 GB, free: 272 kB / 0.7325 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.545e-06/0.2535, allocations: 0 / 0.9583 GB, free: 272 kB / 0.7325 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007386/0.2542, allocations: 0.5875 MB / 0.9588 GB, free: 15.61 MB / 0.7481 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.472e-06/0.2543, allocations: 0 / 0.9588 GB, free: 15.61 MB / 0.7481 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.094e-05/0.2543, allocations: 15.98 kB / 0.9588 GB, free: 15.59 MB / 0.7481 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.653e-06/0.2543, allocations: 0 / 0.9588 GB, free: 15.59 MB / 0.7481 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.68e-05/0.2543, allocations: 4 kB / 0.9588 GB, free: 15.59 MB / 0.7481 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.342e-06/0.2544, allocations: 0 / 0.9588 GB, free: 15.59 MB / 0.7481 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.933e-06/0.2544, allocations: 3.938 kB / 0.9589 GB, free: 15.59 MB / 0.7481 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005176/0.2549, allocations: 414.5 kB / 0.9592 GB, free: 15.15 MB / 0.7481 GB Notification: Performance of postOpt removeConstants (simulation): time 3.881e-05/0.2549, allocations: 89 kB / 0.9593 GB, free: 15.05 MB / 0.7481 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.155e-05/0.255, allocations: 8 kB / 0.9593 GB, free: 15.04 MB / 0.7481 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001054/0.2551, allocations: 8 kB / 0.9593 GB, free: 15.03 MB / 0.7481 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.767e-05/0.2551, allocations: 11.92 kB / 0.9594 GB, free: 15.02 MB / 0.7481 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.611e-05/0.2551, allocations: 8 kB / 0.9594 GB, free: 15.01 MB / 0.7481 GB Notification: Performance of sorting global known variables: time 8.955e-05/0.2552, allocations: 127.2 kB / 0.9595 GB, free: 14.89 MB / 0.7481 GB Notification: Performance of sort global known variables: time 1.1e-07/0.2552, allocations: 0 / 0.9595 GB, free: 14.89 MB / 0.7481 GB Notification: Performance of remove unused functions: time 0.0002667/0.2555, allocations: 40 kB / 0.9595 GB, free: 14.85 MB / 0.7481 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.0001809/0.2557, allocations: 135.9 kB / 0.9597 GB, free: 14.72 MB / 0.7481 GB Notification: Performance of simCode: created initialization part: time 0.0004287/0.2561, allocations: 361.8 kB / 0.96 GB, free: 14.32 MB / 0.7481 GB Notification: Performance of simCode: created event and clocks part: time 1.543e-06/0.2561, allocations: 4.062 kB / 0.96 GB, free: 14.31 MB / 0.7481 GB Notification: Performance of simCode: created simulation system equations: time 0.0002377/0.2564, allocations: 210.7 kB / 0.9602 GB, free: 14.08 MB / 0.7481 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002652/0.2567, allocations: 20 kB / 0.9602 GB, free: 14.06 MB / 0.7481 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005677/0.2572, allocations: 296 kB / 0.9605 GB, free: 13.75 MB / 0.7481 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002819/0.2575, allocations: 0.7117 MB / 0.9612 GB, free: 13.01 MB / 0.7481 GB Notification: Performance of simCode: alias equations: time 5.542e-05/0.2576, allocations: 24.47 kB / 0.9612 GB, free: 12.99 MB / 0.7481 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.9e-05/0.2576, allocations: 15.44 kB / 0.9612 GB, free: 12.97 MB / 0.7481 GB Notification: Performance of SimCode: time 2.1e-07/0.2576, allocations: 0 / 0.9612 GB, free: 12.97 MB / 0.7481 GB Notification: Performance of Templates: time 0.004532/0.2622, allocations: 2.054 MB / 0.9632 GB, free: 10.93 MB / 0.7481 GB make -j1 -f Buildings_9_Buildings.Utilities.IO.Files.Examples.CSVWriter.makefile (rm -f Buildings_9_Buildings.Utilities.IO.Files.Examples.CSVWriter.pipe ; mkfifo Buildings_9_Buildings.Utilities.IO.Files.Examples.CSVWriter.pipe ; head -c 1048576 < Buildings_9_Buildings.Utilities.IO.Files.Examples.CSVWriter.pipe >> ../files/Buildings_9_Buildings.Utilities.IO.Files.Examples.CSVWriter.sim & ./Buildings_9_Buildings.Utilities.IO.Files.Examples.CSVWriter -abortSlowSimulation -alarm=480 -s cvode -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Utilities.IO.Files.Examples.CSVWriter.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Utilities.IO.Files.Examples.CSVWriter_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Utilities_IO_Files_Examples_CSVWriter.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Utilities.IO.Files.Examples.CSVWriter.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches