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.001457/0.001457, allocations: 102.2 kB / 16.27 MB, free: 6 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.001779/0.001779, allocations: 193.3 kB / 17.2 MB, free: 5.609 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.368/1.368, allocations: 222.9 MB / 240.9 MB, free: 15.26 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.445/2.445, allocations: 437 MB / 0.711 GB, free: 4.484 MB / 0.5762 GB Notification: Performance of FrontEnd - loaded program: time 0.001411/0.001411, allocations: 72.02 kB / 0.8699 GB, free: 2.18 MB / 0.6387 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2916/0.293, allocations: 151.6 MB / 1.018 GB, free: 10.64 MB / 0.795 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.IO.Files.Examples.CSVWriter): time 0.00302/0.2961, allocations: 1.611 MB / 1.02 GB, free: 9.016 MB / 0.795 GB Notification: Performance of NFInst.instExpressions: time 0.0009943/0.2971, allocations: 0.6209 MB / 1.02 GB, free: 8.391 MB / 0.795 GB Notification: Performance of NFInst.updateImplicitVariability: time 8.157e-05/0.2972, allocations: 0 / 1.02 GB, free: 8.391 MB / 0.795 GB Notification: Performance of NFTyping.typeComponents: time 0.000155/0.2974, allocations: 19.88 kB / 1.02 GB, free: 8.371 MB / 0.795 GB Notification: Performance of NFTyping.typeBindings: time 0.0002097/0.2976, allocations: 44.25 kB / 1.02 GB, free: 8.328 MB / 0.795 GB Notification: Performance of NFTyping.typeClassSections: time 0.000423/0.298, allocations: 111.7 kB / 1.02 GB, free: 8.219 MB / 0.795 GB Notification: Performance of NFFlatten.flatten: time 0.0002372/0.2983, allocations: 199.5 kB / 1.02 GB, free: 8.023 MB / 0.795 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001187/0.2984, allocations: 25.09 kB / 1.021 GB, free: 7.996 MB / 0.795 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001555/0.2986, allocations: 79.81 kB / 1.021 GB, free: 7.918 MB / 0.795 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001555/0.2987, allocations: 95.66 kB / 1.021 GB, free: 7.824 MB / 0.795 GB Notification: Performance of NFPackage.collectConstants: time 4.599e-05/0.2988, allocations: 12 kB / 1.021 GB, free: 7.812 MB / 0.795 GB Notification: Performance of NFFlatten.collectFunctions: time 7.697e-05/0.2989, allocations: 28 kB / 1.021 GB, free: 7.785 MB / 0.795 GB Notification: Performance of NFScalarize.scalarize: time 8.78e-05/0.299, allocations: 35.89 kB / 1.021 GB, free: 7.75 MB / 0.795 GB Notification: Performance of NFVerifyModel.verify: time 9.452e-05/0.2991, allocations: 67.67 kB / 1.021 GB, free: 7.684 MB / 0.795 GB Notification: Performance of NFConvertDAE.convert: time 0.0002273/0.2993, allocations: 167.8 kB / 1.021 GB, free: 7.52 MB / 0.795 GB Notification: Performance of FrontEnd - DAE generated: time 4.648e-06/0.2993, allocations: 3.984 kB / 1.021 GB, free: 7.516 MB / 0.795 GB Notification: Performance of FrontEnd: time 1.232e-06/0.2993, allocations: 0 / 1.021 GB, free: 7.516 MB / 0.795 GB Notification: Performance of Transformations before backend: time 5.571e-06/0.2993, allocations: 0 / 1.021 GB, free: 7.516 MB / 0.795 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.0006642/0.3, allocations: 0.5524 MB / 1.022 GB, free: 6.891 MB / 0.795 GB Notification: Performance of prepare preOptimizeDAE: time 3.556e-05/0.3001, allocations: 12.92 kB / 1.022 GB, free: 6.879 MB / 0.795 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.743e-05/0.3001, allocations: 24.73 kB / 1.022 GB, free: 6.855 MB / 0.795 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002915/0.3004, allocations: 236.7 kB / 1.022 GB, free: 6.586 MB / 0.795 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.761e-05/0.3005, allocations: 12.38 kB / 1.022 GB, free: 6.574 MB / 0.795 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.967e-05/0.3005, allocations: 16.25 kB / 1.022 GB, free: 6.559 MB / 0.795 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002757/0.3008, allocations: 117.7 kB / 1.022 GB, free: 6.438 MB / 0.795 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.674e-06/0.3008, allocations: 0 / 1.022 GB, free: 6.438 MB / 0.795 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.915e-05/0.3008, allocations: 8 kB / 1.022 GB, free: 6.43 MB / 0.795 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.839e-06/0.3008, allocations: 0 / 1.022 GB, free: 6.43 MB / 0.795 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002107/0.301, allocations: 63.95 kB / 1.022 GB, free: 6.367 MB / 0.795 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006335/0.3017, allocations: 424.5 kB / 1.022 GB, free: 5.902 MB / 0.795 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001915/0.3019, allocations: 90.53 kB / 1.022 GB, free: 5.805 MB / 0.795 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001583/0.3021, allocations: 68.81 kB / 1.023 GB, free: 5.734 MB / 0.795 GB Notification: Performance of preOpt evalFunc (simulation): time 2.492e-05/0.3021, allocations: 8.094 kB / 1.023 GB, free: 5.727 MB / 0.795 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002563/0.3024, allocations: 178.7 kB / 1.023 GB, free: 5.527 MB / 0.795 GB Notification: Performance of pre-optimization done (n=10): time 3.166e-06/0.3024, allocations: 4 kB / 1.023 GB, free: 5.523 MB / 0.795 GB Notification: Performance of matching and sorting (n=10): time 0.0007206/0.3031, allocations: 352.8 kB / 1.023 GB, free: 5.16 MB / 0.795 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.272e-05/0.3032, allocations: 166.2 kB / 1.023 GB, free: 4.961 MB / 0.795 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001661/0.3034, allocations: 171.7 kB / 1.023 GB, free: 4.785 MB / 0.795 GB Notification: Performance of collectPreVariables (initialization): time 2.349e-05/0.3034, allocations: 29.7 kB / 1.023 GB, free: 4.75 MB / 0.795 GB Notification: Performance of collectInitialEqns (initialization): time 7.06e-05/0.3035, allocations: 108.4 kB / 1.024 GB, free: 4.637 MB / 0.795 GB Notification: Performance of collectInitialBindings (initialization): time 3.356e-05/0.3035, allocations: 27.61 kB / 1.024 GB, free: 4.609 MB / 0.795 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.11e-05/0.3036, allocations: 41.7 kB / 1.024 GB, free: 4.562 MB / 0.795 GB Notification: Performance of setup shared object (initialization): time 0.0001023/0.3037, allocations: 330.8 kB / 1.024 GB, free: 4.23 MB / 0.795 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001377/0.3038, allocations: 55.95 kB / 1.024 GB, free: 4.176 MB / 0.795 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001654/0.304, allocations: 99.58 kB / 1.024 GB, free: 4.055 MB / 0.795 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000341/0.3044, allocations: 308.9 kB / 1.024 GB, free: 3.691 MB / 0.795 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.484e-06/0.3044, allocations: 0 / 1.024 GB, free: 3.691 MB / 0.795 GB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0005379/0.3049, allocations: 348.1 kB / 1.025 GB, free: 3.32 MB / 0.795 GB Notification: Performance of prepare postOptimizeDAE: time 7.073e-05/0.305, allocations: 115.1 kB / 1.025 GB, free: 3.184 MB / 0.795 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.486e-06/0.305, allocations: 4.25 kB / 1.025 GB, free: 3.18 MB / 0.795 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.304e-05/0.305, allocations: 4 kB / 1.025 GB, free: 3.176 MB / 0.795 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001146/0.3051, allocations: 23.92 kB / 1.025 GB, free: 3.152 MB / 0.795 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.698e-06/0.3052, allocations: 11.88 kB / 1.025 GB, free: 3.141 MB / 0.795 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001055/0.3053, allocations: 19.83 kB / 1.025 GB, free: 3.121 MB / 0.795 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.042e-05/0.3053, allocations: 8 kB / 1.025 GB, free: 3.113 MB / 0.795 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.0001502/0.3055, allocations: 205.9 kB / 1.025 GB, free: 2.895 MB / 0.795 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.547e-05/0.3055, allocations: 15.81 kB / 1.025 GB, free: 2.879 MB / 0.795 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.624e-05/0.3055, allocations: 17.39 kB / 1.025 GB, free: 2.863 MB / 0.795 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.697e-06/0.3056, allocations: 8 kB / 1.025 GB, free: 2.855 MB / 0.795 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.877e-06/0.3056, allocations: 0 / 1.025 GB, free: 2.855 MB / 0.795 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.328e-06/0.3056, allocations: 3.984 kB / 1.025 GB, free: 2.852 MB / 0.795 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006969/0.3063, allocations: 0.5798 MB / 1.026 GB, free: 2.203 MB / 0.795 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.034e-06/0.3063, allocations: 0 / 1.026 GB, free: 2.203 MB / 0.795 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.579e-05/0.3064, allocations: 15.98 kB / 1.026 GB, free: 2.188 MB / 0.795 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.064e-06/0.3064, allocations: 0 / 1.026 GB, free: 2.188 MB / 0.795 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.139e-05/0.3064, allocations: 15.98 kB / 1.026 GB, free: 2.172 MB / 0.795 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.549e-06/0.3064, allocations: 8.016 kB / 1.026 GB, free: 2.164 MB / 0.795 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.238e-06/0.3064, allocations: 7.922 kB / 1.026 GB, free: 2.156 MB / 0.795 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000542/0.307, allocations: 402.7 kB / 1.026 GB, free: 1.734 MB / 0.795 GB Notification: Performance of postOpt removeConstants (simulation): time 3.859e-05/0.307, allocations: 81.02 kB / 1.026 GB, free: 1.637 MB / 0.795 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.698e-05/0.3071, allocations: 4 kB / 1.026 GB, free: 1.633 MB / 0.795 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000118/0.3072, allocations: 11.98 kB / 1.026 GB, free: 1.621 MB / 0.795 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.541e-05/0.3072, allocations: 15.94 kB / 1.026 GB, free: 1.605 MB / 0.795 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.704e-05/0.3073, allocations: 7.984 kB / 1.026 GB, free: 1.598 MB / 0.795 GB Notification: Performance of sorting global known variables: time 0.0001038/0.3074, allocations: 136.8 kB / 1.026 GB, free: 1.465 MB / 0.795 GB Notification: Performance of sort global known variables: time 1.3e-07/0.3074, allocations: 0 / 1.026 GB, free: 1.465 MB / 0.795 GB Notification: Performance of remove unused functions: time 0.0002963/0.3077, allocations: 35.91 kB / 1.026 GB, free: 1.43 MB / 0.795 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.0002192/0.3079, allocations: 140.9 kB / 1.027 GB, free: 1.285 MB / 0.795 GB Notification: Performance of simCode: created initialization part: time 0.0004798/0.3084, allocations: 361.4 kB / 1.027 GB, free: 0.8828 MB / 0.795 GB Notification: Performance of simCode: created event and clocks part: time 8.276e-06/0.3084, allocations: 4 kB / 1.027 GB, free: 0.8789 MB / 0.795 GB Notification: Performance of simCode: created simulation system equations: time 0.0002282/0.3086, allocations: 202.7 kB / 1.027 GB, free: 0.6562 MB / 0.795 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003129/0.309, allocations: 20.48 kB / 1.027 GB, free: 0.6367 MB / 0.795 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005923/0.3096, allocations: 321.7 kB / 1.027 GB, free: 300 kB / 0.795 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002743/0.3099, allocations: 0.7118 MB / 1.028 GB, free: 15.55 MB / 0.8106 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.801e-05/0.3099, allocations: 15.44 kB / 1.028 GB, free: 15.54 MB / 0.8106 GB Notification: Performance of SimCode: time 2.3e-07/0.3099, allocations: 0 / 1.028 GB, free: 15.54 MB / 0.8106 GB Notification: Performance of Templates: time 0.003919/0.3138, allocations: 2.157 MB / 1.03 GB, free: 13.39 MB / 0.8106 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