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/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 11.0.1-master/package.mo", uses=false) Using package Buildings with version 11.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/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: "" <> buildModelFMU(Buildings.Utilities.IO.Files.Examples.CSVWriter,fileNamePrefix="Buildings_latest_Buildings_Utilities_IO_Files_Examples_CSVWriter",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Utilities.IO.Files.Examples.CSVWriter,fileNamePrefix="Buildings_latest_Buildings_Utilities_IO_Files_Examples_CSVWriter",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001217/0.001217, allocations: 108 kB / 15.61 MB, free: 152 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.001162/0.001163, allocations: 196.7 kB / 16.53 MB, free: 6.664 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.292/1.292, allocations: 222.9 MB / 240.2 MB, free: 4.402 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.63/2.63, allocations: 469.4 MB / 0.742 GB, free: 7.75 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.00124/0.00124, allocations: 65.16 kB / 0.9083 GB, free: 34.48 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.252/0.2532, allocations: 159.1 MB / 1.064 GB, free: 14.52 MB / 0.8262 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.IO.Files.Examples.CSVWriter): time 0.002541/0.2558, allocations: 1.615 MB / 1.065 GB, free: 12.89 MB / 0.8262 GB Notification: Performance of NFInst.instExpressions: time 0.0008222/0.2567, allocations: 0.6118 MB / 1.066 GB, free: 12.27 MB / 0.8262 GB Notification: Performance of NFInst.updateImplicitVariability: time 7.574e-05/0.2567, allocations: 7.938 kB / 1.066 GB, free: 12.26 MB / 0.8262 GB Notification: Performance of NFTyping.typeComponents: time 0.0001282/0.2569, allocations: 15.84 kB / 1.066 GB, free: 12.25 MB / 0.8262 GB Notification: Performance of NFTyping.typeBindings: time 0.0001803/0.2571, allocations: 47.77 kB / 1.066 GB, free: 12.2 MB / 0.8262 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003747/0.2575, allocations: 111.8 kB / 1.066 GB, free: 12.09 MB / 0.8262 GB Notification: Performance of NFFlatten.flatten: time 0.0002137/0.2577, allocations: 199.5 kB / 1.066 GB, free: 11.89 MB / 0.8262 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001029/0.2578, allocations: 25.12 kB / 1.066 GB, free: 11.87 MB / 0.8262 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001516/0.2579, allocations: 83.81 kB / 1.066 GB, free: 11.79 MB / 0.8262 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001259/0.2581, allocations: 83.72 kB / 1.066 GB, free: 11.71 MB / 0.8262 GB Notification: Performance of NFPackage.collectConstants: time 5.528e-05/0.2581, allocations: 12 kB / 1.066 GB, free: 11.7 MB / 0.8262 GB Notification: Performance of NFFlatten.collectFunctions: time 7.439e-05/0.2582, allocations: 31.98 kB / 1.066 GB, free: 11.66 MB / 0.8262 GB Notification: Performance of NFScalarize.scalarize: time 7.963e-05/0.2583, allocations: 27.91 kB / 1.066 GB, free: 11.64 MB / 0.8262 GB Notification: Performance of NFVerifyModel.verify: time 9.648e-05/0.2584, allocations: 79.59 kB / 1.067 GB, free: 11.56 MB / 0.8262 GB Notification: Performance of NFConvertDAE.convert: time 0.0002161/0.2586, allocations: 167.7 kB / 1.067 GB, free: 11.39 MB / 0.8262 GB Notification: Performance of FrontEnd - DAE generated: time 3.196e-06/0.2586, allocations: 0 / 1.067 GB, free: 11.39 MB / 0.8262 GB Notification: Performance of FrontEnd: time 1.012e-06/0.2587, allocations: 0 / 1.067 GB, free: 11.39 MB / 0.8262 GB Notification: Performance of Transformations before backend: time 5.58e-06/0.2587, allocations: 4 kB / 1.067 GB, free: 11.39 MB / 0.8262 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.0006077/0.2593, allocations: 0.5486 MB / 1.067 GB, free: 10.77 MB / 0.8262 GB Notification: Performance of prepare preOptimizeDAE: time 3.273e-05/0.2593, allocations: 8.031 kB / 1.067 GB, free: 10.76 MB / 0.8262 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.726e-05/0.2594, allocations: 38.75 kB / 1.067 GB, free: 10.71 MB / 0.8262 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.689e-05/0.2594, allocations: 20.75 kB / 1.067 GB, free: 10.7 MB / 0.8262 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000261/0.2597, allocations: 229.4 kB / 1.068 GB, free: 10.43 MB / 0.8262 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.699e-05/0.2597, allocations: 12.38 kB / 1.068 GB, free: 10.42 MB / 0.8262 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.297e-05/0.2598, allocations: 16.38 kB / 1.068 GB, free: 10.41 MB / 0.8262 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002532/0.26, allocations: 121.5 kB / 1.068 GB, free: 10.28 MB / 0.8262 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.372e-06/0.26, allocations: 0 / 1.068 GB, free: 10.28 MB / 0.8262 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.629e-05/0.2601, allocations: 7.938 kB / 1.068 GB, free: 10.27 MB / 0.8262 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.988e-06/0.2601, allocations: 0 / 1.068 GB, free: 10.27 MB / 0.8262 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001979/0.2603, allocations: 71.94 kB / 1.068 GB, free: 10.2 MB / 0.8262 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005854/0.2609, allocations: 424.5 kB / 1.068 GB, free: 9.738 MB / 0.8262 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001836/0.261, allocations: 86.53 kB / 1.068 GB, free: 9.645 MB / 0.8262 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000148/0.2612, allocations: 72.81 kB / 1.068 GB, free: 9.57 MB / 0.8262 GB Notification: Performance of preOpt evalFunc (simulation): time 2.142e-05/0.2612, allocations: 4 kB / 1.068 GB, free: 9.566 MB / 0.8262 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002574/0.2615, allocations: 186.8 kB / 1.068 GB, free: 9.359 MB / 0.8262 GB Notification: Performance of pre-optimization done (n=10): time 1.502e-06/0.2615, allocations: 0 / 1.068 GB, free: 9.359 MB / 0.8262 GB Notification: Performance of matching and sorting (n=10): time 0.0006853/0.2622, allocations: 356.8 kB / 1.069 GB, free: 8.992 MB / 0.8262 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.904e-05/0.2623, allocations: 158.2 kB / 1.069 GB, free: 8.801 MB / 0.8262 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001424/0.2624, allocations: 183.1 kB / 1.069 GB, free: 8.613 MB / 0.8262 GB Notification: Performance of collectPreVariables (initialization): time 2.127e-05/0.2625, allocations: 25.7 kB / 1.069 GB, free: 8.582 MB / 0.8262 GB Notification: Performance of collectInitialEqns (initialization): time 6.087e-05/0.2625, allocations: 116.3 kB / 1.069 GB, free: 8.461 MB / 0.8262 GB Notification: Performance of collectInitialBindings (initialization): time 2.588e-05/0.2626, allocations: 27.64 kB / 1.069 GB, free: 8.434 MB / 0.8262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.707e-05/0.2626, allocations: 45.7 kB / 1.069 GB, free: 8.383 MB / 0.8262 GB Notification: Performance of setup shared object (initialization): time 9.255e-05/0.2627, allocations: 326.8 kB / 1.07 GB, free: 8.055 MB / 0.8262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001316/0.2629, allocations: 51.97 kB / 1.07 GB, free: 8.004 MB / 0.8262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001565/0.263, allocations: 110.1 kB / 1.07 GB, free: 7.875 MB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003082/0.2633, allocations: 308.9 kB / 1.07 GB, free: 7.512 MB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.044e-06/0.2634, allocations: 0 / 1.07 GB, free: 7.512 MB / 0.8262 GB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0004965/0.2639, allocations: 352.2 kB / 1.07 GB, free: 7.137 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 5.968e-05/0.2639, allocations: 114.8 kB / 1.071 GB, free: 7 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.903e-06/0.2639, allocations: 4 kB / 1.071 GB, free: 6.996 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.161e-05/0.264, allocations: 7.938 kB / 1.071 GB, free: 6.988 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001057/0.2641, allocations: 19.98 kB / 1.071 GB, free: 6.969 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.672e-06/0.2641, allocations: 4 kB / 1.071 GB, free: 6.965 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.597e-05/0.2642, allocations: 8 kB / 1.071 GB, free: 6.957 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.123e-05/0.2642, allocations: 11.98 kB / 1.071 GB, free: 6.945 MB / 0.8262 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.0001338/0.2643, allocations: 201.1 kB / 1.071 GB, free: 6.727 MB / 0.8262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.56e-05/0.2644, allocations: 20.09 kB / 1.071 GB, free: 6.707 MB / 0.8262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.037e-05/0.2644, allocations: 13.41 kB / 1.071 GB, free: 6.695 MB / 0.8262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.974e-06/0.2644, allocations: 0 / 1.071 GB, free: 6.695 MB / 0.8262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.06e-06/0.2644, allocations: 7.922 kB / 1.071 GB, free: 6.688 MB / 0.8262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.615e-06/0.2644, allocations: 0 / 1.071 GB, free: 6.688 MB / 0.8262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000659/0.2651, allocations: 0.5875 MB / 1.071 GB, free: 6.031 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.653e-06/0.2651, allocations: 0 / 1.071 GB, free: 6.031 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.671e-05/0.2652, allocations: 15.98 kB / 1.071 GB, free: 6.016 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.074e-06/0.2652, allocations: 0 / 1.071 GB, free: 6.016 MB / 0.8262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.015e-05/0.2652, allocations: 8 kB / 1.071 GB, free: 6.008 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.066e-06/0.2652, allocations: 8.141 kB / 1.071 GB, free: 6 MB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.174e-06/0.2652, allocations: 3.938 kB / 1.071 GB, free: 5.996 MB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005184/0.2658, allocations: 406.6 kB / 1.072 GB, free: 5.57 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 4.051e-05/0.2658, allocations: 88.92 kB / 1.072 GB, free: 5.465 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.621e-05/0.2659, allocations: 12 kB / 1.072 GB, free: 5.453 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001141/0.266, allocations: 4 kB / 1.072 GB, free: 5.449 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.468e-05/0.266, allocations: 15.92 kB / 1.072 GB, free: 5.434 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.826e-05/0.2661, allocations: 11.98 kB / 1.072 GB, free: 5.422 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 9.541e-05/0.2662, allocations: 128.3 kB / 1.072 GB, free: 5.297 MB / 0.8262 GB Notification: Performance of sort global known variables: time 1.11e-07/0.2662, allocations: 0 / 1.072 GB, free: 5.297 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.0002863/0.2665, allocations: 28 kB / 1.072 GB, free: 5.27 MB / 0.8262 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.0008355/0.2673, allocations: 0.9656 MB / 1.073 GB, free: 4.27 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.0004395/0.2677, allocations: 369.4 kB / 1.073 GB, free: 3.859 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 1.864e-06/0.2678, allocations: 0 / 1.073 GB, free: 3.859 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 0.0002166/0.268, allocations: 206.7 kB / 1.074 GB, free: 3.633 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002962/0.2683, allocations: 27.86 kB / 1.074 GB, free: 3.605 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002192/0.2705, allocations: 2.098 MB / 1.076 GB, free: 1.359 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002222/0.2707, allocations: 0.708 MB / 1.076 GB, free: 0.625 MB / 0.8262 GB Notification: Performance of simCode: alias equations: time 5.635e-05/0.2708, allocations: 16.55 kB / 1.076 GB, free: 0.6094 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.682e-05/0.2708, allocations: 39.42 kB / 1.076 GB, free: 0.5703 MB / 0.8262 GB Notification: Performance of SimCode: time 2.41e-07/0.2709, allocations: 4 kB / 1.076 GB, free: 0.5664 MB / 0.8262 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02012/0.291, allocations: 3.605 MB / 1.08 GB, free: 13.06 MB / 0.8419 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.352/7.643, allocations: 12.52 kB / 1.08 GB, free: 13.05 MB / 0.8419 GB (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 & python3 -m fmpy simulate --output-file Buildings_latest_Buildings.Utilities.IO.Files.Examples.CSVWriter_res.csv --start-time -1.21 --stop-time 10 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.004484 Buildings_latest_Buildings_Utilities_IO_Files_Examples_CSVWriter.fmu > Buildings_latest_Buildings.Utilities.IO.Files.Examples.CSVWriter.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Utilities.IO.Files.Examples.CSVWriter_res.csv","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Utilities_IO_Files_Examples_CSVWriter.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Utilities.IO.Files.Examples.CSVWriter.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches