Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_latest_Buildings.Utilities.IO.Files.Examples.CSVWriter.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/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 Buildings with version 10.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/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_latest_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_latest_Buildings.Utilities.IO.Files.Examples.CSVWriter") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/package.mo): time 2.356/2.356, allocations: 390.5 MB / 398 MB, free: 10.98 MB / 314.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001071/0.001071, allocations: 182.6 kB / 491.2 MB, free: 1.598 MB / 394.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.648/1.648, allocations: 221.5 MB / 0.7868 GB, free: 13.34 MB / 0.5573 GB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008856/0.0008857, allocations: 97.7 kB / 0.9269 GB, free: 13.84 MB / 0.698 GB Notification: Performance of FrontEnd - loaded program: time 1.802e-05/1.793e-05, allocations: 4 kB / 1.073 GB, free: 182 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2908/0.2909, allocations: 143 MB / 1.212 GB, free: 39.54 MB / 0.7605 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.9784/1.269, allocations: 151.4 MB / 1.36 GB, free: 17.59 MB / 0.823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002177/1.27, allocations: 85.53 kB / 1.36 GB, free: 17.59 MB / 0.823 GB Notification: Performance of FrontEnd - DAE generated: time 0.01238/1.282, allocations: 5.025 MB / 1.365 GB, free: 32.96 MB / 0.8386 GB Notification: Performance of FrontEnd: time 1.783e-06/1.282, allocations: 0 / 1.365 GB, free: 32.96 MB / 0.8386 GB Notification: Performance of Transformations before backend: time 2.194e-05/1.282, allocations: 7.812 kB / 1.365 GB, free: 32.96 MB / 0.8386 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.0006724/1.283, allocations: 0.5168 MB / 1.366 GB, free: 32.45 MB / 0.8386 GB Notification: Performance of prepare preOptimizeDAE: time 5.233e-05/1.283, allocations: 11.06 kB / 1.366 GB, free: 32.45 MB / 0.8386 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.916e-05/1.283, allocations: 15.53 kB / 1.366 GB, free: 32.45 MB / 0.8386 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00031/1.283, allocations: 231.8 kB / 1.366 GB, free: 32.23 MB / 0.8386 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.882e-05/1.283, allocations: 3.969 kB / 1.366 GB, free: 32.23 MB / 0.8386 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.765e-05/1.283, allocations: 11.53 kB / 1.366 GB, free: 32.23 MB / 0.8386 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001662/1.283, allocations: 49.89 kB / 1.366 GB, free: 32.23 MB / 0.8386 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001694/1.284, allocations: 93.2 kB / 1.366 GB, free: 32.2 MB / 0.8386 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.117e-05/1.284, allocations: 0 / 1.366 GB, free: 32.2 MB / 0.8386 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.883e-05/1.284, allocations: 3.844 kB / 1.366 GB, free: 32.2 MB / 0.8386 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.622e-06/1.284, allocations: 0 / 1.366 GB, free: 32.2 MB / 0.8386 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007125/1.284, allocations: 404.3 kB / 1.366 GB, free: 31.95 MB / 0.8386 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001224/1.285, allocations: 68.45 kB / 1.367 GB, free: 31.93 MB / 0.8386 GB Notification: Performance of preOpt resolveLoops (simulation): time 8.659e-05/1.285, allocations: 66.06 kB / 1.367 GB, free: 31.92 MB / 0.8386 GB Notification: Performance of preOpt evalFunc (simulation): time 3.086e-05/1.285, allocations: 0 / 1.367 GB, free: 31.92 MB / 0.8386 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001741/1.285, allocations: 169.9 kB / 1.367 GB, free: 31.8 MB / 0.8386 GB Notification: Performance of pre-optimization done (n=10): time 3.727e-06/1.285, allocations: 96 / 1.367 GB, free: 31.8 MB / 0.8386 GB Notification: Performance of matching and sorting (n=10): time 0.0004197/1.285, allocations: 212.2 kB / 1.367 GB, free: 31.76 MB / 0.8386 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.26e-05/1.285, allocations: 168.8 kB / 1.367 GB, free: 31.57 MB / 0.8386 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001548/1.286, allocations: 150.1 kB / 1.367 GB, free: 31.47 MB / 0.8386 GB Notification: Performance of collectPreVariables (initialization): time 4.469e-05/1.286, allocations: 29.55 kB / 1.367 GB, free: 31.44 MB / 0.8386 GB Notification: Performance of collectInitialEqns (initialization): time 7.594e-05/1.286, allocations: 109.1 kB / 1.367 GB, free: 31.35 MB / 0.8386 GB Notification: Performance of collectInitialBindings (initialization): time 2.582e-05/1.286, allocations: 25.73 kB / 1.367 GB, free: 31.33 MB / 0.8386 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.613e-05/1.286, allocations: 7.594 kB / 1.367 GB, free: 31.33 MB / 0.8386 GB Notification: Performance of setup shared object (initialization): time 0.0001174/1.286, allocations: 323.8 kB / 1.368 GB, free: 31.02 MB / 0.8386 GB Notification: Performance of preBalanceInitialSystem (initialization): time 7.136e-05/1.286, allocations: 35.66 kB / 1.368 GB, free: 31.02 MB / 0.8386 GB Notification: Performance of partitionIndependentBlocks (initialization): time 9.354e-05/1.286, allocations: 89.78 kB / 1.368 GB, free: 30.95 MB / 0.8386 GB Notification: Performance of analyzeInitialSystem (initialization): time 9.16e-05/1.286, allocations: 52.14 kB / 1.368 GB, free: 30.95 MB / 0.8386 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.474e-06/1.286, allocations: 0 / 1.368 GB, free: 30.95 MB / 0.8386 GB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0002954/1.286, allocations: 198 kB / 1.368 GB, free: 30.89 MB / 0.8386 GB Notification: Performance of prepare postOptimizeDAE: time 6.183e-05/1.287, allocations: 124.7 kB / 1.368 GB, free: 30.77 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.947e-06/1.287, allocations: 3.844 kB / 1.368 GB, free: 30.77 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.758e-05/1.287, allocations: 0 / 1.368 GB, free: 30.77 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001175/1.287, allocations: 21.89 kB / 1.368 GB, free: 30.77 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.464e-06/1.287, allocations: 3.812 kB / 1.368 GB, free: 30.77 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.7e-05/1.287, allocations: 14.58 kB / 1.368 GB, free: 30.76 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.335e-05/1.287, allocations: 11.41 kB / 1.368 GB, free: 30.76 MB / 0.8386 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 ($PRE.combiTimeTableWriter.str,combiTimeTableWriter.str,$PRE.csvWriter.str,csvWriter.str,$whenCondition2,combiTimeTableWriter.sampleTrigger,$whenCondition1,csvWriter.sampleTrigger) * Number of discrete 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001351/1.287, allocations: 183.2 kB / 1.368 GB, free: 30.58 MB / 0.8386 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.461e-05/1.287, allocations: 15.44 kB / 1.368 GB, free: 30.57 MB / 0.8386 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.383e-05/1.287, allocations: 19.58 kB / 1.368 GB, free: 30.57 MB / 0.8386 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.314e-06/1.287, allocations: 0 / 1.368 GB, free: 30.57 MB / 0.8386 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.463e-06/1.287, allocations: 3.906 kB / 1.368 GB, free: 30.57 MB / 0.8386 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.608e-06/1.287, allocations: 0 / 1.368 GB, free: 30.57 MB / 0.8386 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004766/1.288, allocations: 475.2 kB / 1.369 GB, free: 30.3 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.186e-06/1.288, allocations: 7.141 kB / 1.369 GB, free: 30.3 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.114e-05/1.288, allocations: 15.38 kB / 1.369 GB, free: 30.29 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.156e-06/1.288, allocations: 2.953 kB / 1.369 GB, free: 30.29 MB / 0.8386 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.88e-05/1.288, allocations: 7.75 kB / 1.369 GB, free: 30.29 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.296e-06/1.288, allocations: 3.812 kB / 1.369 GB, free: 30.29 MB / 0.8386 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.687e-06/1.288, allocations: 3.938 kB / 1.369 GB, free: 30.29 MB / 0.8386 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000323/1.288, allocations: 307.7 kB / 1.369 GB, free: 30.14 MB / 0.8386 GB Notification: Performance of postOpt removeConstants (simulation): time 3.74e-05/1.288, allocations: 91.59 kB / 1.369 GB, free: 30.04 MB / 0.8386 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.365e-05/1.288, allocations: 7.844 kB / 1.369 GB, free: 30.04 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001054/1.288, allocations: 7.844 kB / 1.369 GB, free: 30.04 MB / 0.8386 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.176e-05/1.288, allocations: 6.672 kB / 1.369 GB, free: 30.04 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.871e-05/1.288, allocations: 14.06 kB / 1.369 GB, free: 30.04 MB / 0.8386 GB Notification: Performance of sorting global known variables: time 7.652e-05/1.288, allocations: 124.5 kB / 1.37 GB, free: 29.96 MB / 0.8386 GB Notification: Performance of sort global known variables: time 1.7e-07/1.288, allocations: 0 / 1.37 GB, free: 29.96 MB / 0.8386 GB Notification: Performance of remove unused functions: time 0.0002706/1.289, allocations: 35.03 kB / 1.37 GB, free: 29.96 MB / 0.8386 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) * 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0002731/1.289, allocations: 134.2 kB / 1.37 GB, free: 29.86 MB / 0.8386 GB Notification: Performance of simCode: created initialization part: time 0.0003155/1.289, allocations: 327.8 kB / 1.37 GB, free: 29.6 MB / 0.8386 GB Notification: Performance of simCode: created event and clocks part: time 2.695e-06/1.289, allocations: 0 / 1.37 GB, free: 29.6 MB / 0.8386 GB Notification: Performance of simCode: created simulation system equations: time 0.0001394/1.289, allocations: 189.6 kB / 1.37 GB, free: 29.47 MB / 0.8386 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000252/1.29, allocations: 20.5 kB / 1.37 GB, free: 29.46 MB / 0.8386 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004225/1.29, allocations: 208.3 kB / 1.37 GB, free: 29.37 MB / 0.8386 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002802/1.29, allocations: 0.7126 MB / 1.371 GB, free: 28.67 MB / 0.8386 GB Notification: Performance of simCode: alias equations: time 6.275e-05/1.291, allocations: 19.11 kB / 1.371 GB, free: 28.67 MB / 0.8386 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.764e-05/1.291, allocations: 11.38 kB / 1.371 GB, free: 28.66 MB / 0.8386 GB Notification: Performance of SimCode: time 2.71e-07/1.291, allocations: 4 kB / 1.371 GB, free: 28.66 MB / 0.8386 GB Notification: Performance of Templates: time 0.004171/1.295, allocations: 1.828 MB / 1.373 GB, free: 28.39 MB / 0.8386 GB make -j1 -f Buildings_latest_Buildings.Utilities.IO.Files.Examples.CSVWriter.makefile (rm -f Buildings_latest_Buildings.Utilities.IO.Files.Examples.CSVWriter.pipe ; mkfifo Buildings_latest_Buildings.Utilities.IO.Files.Examples.CSVWriter.pipe ; head -c 1048576 < Buildings_latest_Buildings.Utilities.IO.Files.Examples.CSVWriter.pipe >> ../files/Buildings_latest_Buildings.Utilities.IO.Files.Examples.CSVWriter.sim & ./Buildings_latest_Buildings.Utilities.IO.Files.Examples.CSVWriter -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Utilities.IO.Files.Examples.CSVWriter.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Utilities.IO.Files.Examples.CSVWriter_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Utilities_IO_Files_Examples_CSVWriter.csv","../files/Buildings_latest_Buildings.Utilities.IO.Files.Examples.CSVWriter.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches