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.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001128/0.001128, allocations: 80.44 kB / 19.17 MB, free: 0.7422 MB / 13.93 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001207/0.001207, allocations: 169.9 kB / 22.46 MB, free: 2.105 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 0.8926/0.8926, allocations: 177.1 MB / 202.8 MB, free: 5.742 MB / 186.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/package.mo): time 1.746/1.746, allocations: 389 MB / 0.633 GB, free: 12.71 MB / 0.6042 GB " [Timeout remaining time 178] Using package Buildings with version 13.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.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"}) [Timeout 300] "Notification: Performance of FrontEnd - loaded program: time 1.553e-06/1.553e-06, allocations: 0 / 0.9997 GB, free: 13.54 MB / 0.9636 GB Notification: Performance of FrontEnd - Absyn->SCode: time 1.369e-05/1.524e-05, allocations: 2.281 kB / 0.9997 GB, free: 13.53 MB / 0.9636 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.IO.Files.Examples.CSVWriter): time 0.002/0.002015, allocations: 1.619 MB / 1.001 GB, free: 11.9 MB / 0.9636 GB Notification: Performance of NFInst.instExpressions: time 0.0007303/0.002745, allocations: 0.6621 MB / 1.002 GB, free: 11.23 MB / 0.9636 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.476e-05/0.00281, allocations: 3.938 kB / 1.002 GB, free: 11.23 MB / 0.9636 GB Notification: Performance of NFTyping.typeComponents: time 0.0001296/0.00294, allocations: 19.8 kB / 1.002 GB, free: 11.21 MB / 0.9636 GB Notification: Performance of NFTyping.typeBindings: time 0.0001813/0.003121, allocations: 39.77 kB / 1.002 GB, free: 11.17 MB / 0.9636 GB Notification: Performance of NFTyping.typeClassSections: time 0.000301/0.003422, allocations: 135.6 kB / 1.002 GB, free: 11.04 MB / 0.9636 GB Notification: Performance of NFFlatten.flatten: time 0.0002007/0.003623, allocations: 187.5 kB / 1.002 GB, free: 10.86 MB / 0.9636 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001014/0.003724, allocations: 17.62 kB / 1.002 GB, free: 10.83 MB / 0.9636 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002542/0.003978, allocations: 123.8 kB / 1.002 GB, free: 10.71 MB / 0.9636 GB Notification: Performance of NFSimplifyModel.simplify: time 9.684e-05/0.004075, allocations: 67.84 kB / 1.002 GB, free: 10.64 MB / 0.9636 GB Notification: Performance of NFPackage.collectConstants: time 2.558e-05/0.004101, allocations: 12 kB / 1.002 GB, free: 10.63 MB / 0.9636 GB Notification: Performance of NFFlatten.collectFunctions: time 6.195e-05/0.004163, allocations: 35.88 kB / 1.003 GB, free: 10.6 MB / 0.9636 GB Notification: Performance of NFScalarize.scalarize: time 7.142e-05/0.004234, allocations: 31.91 kB / 1.003 GB, free: 10.57 MB / 0.9636 GB Notification: Performance of NFVerifyModel.verify: time 6.059e-05/0.004295, allocations: 59.84 kB / 1.003 GB, free: 10.51 MB / 0.9636 GB Notification: Performance of NFConvertDAE.convert: time 0.0002108/0.004505, allocations: 191.5 kB / 1.003 GB, free: 10.32 MB / 0.9636 GB Notification: Performance of FrontEnd - DAE generated: time 2.455e-06/0.004508, allocations: 4 kB / 1.003 GB, free: 10.32 MB / 0.9636 GB Notification: Performance of FrontEnd: time 1.513e-06/0.004509, allocations: 0 / 1.003 GB, free: 10.32 MB / 0.9636 GB Notification: Performance of Transformations before backend: time 3.717e-06/0.004513, allocations: 0 / 1.003 GB, free: 10.32 MB / 0.9636 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.0005246/0.005038, allocations: 496.3 kB / 1.003 GB, free: 9.777 MB / 0.9636 GB Notification: Performance of prepare preOptimizeDAE: time 3.56e-05/0.005073, allocations: 12.75 kB / 1.003 GB, free: 9.766 MB / 0.9636 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.242e-05/0.005106, allocations: 42.73 kB / 1.003 GB, free: 9.715 MB / 0.9636 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001175/0.005223, allocations: 24.84 kB / 1.003 GB, free: 9.691 MB / 0.9636 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002325/0.005456, allocations: 177.7 kB / 1.003 GB, free: 9.492 MB / 0.9636 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.358e-05/0.005469, allocations: 12.38 kB / 1.004 GB, free: 9.48 MB / 0.9636 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.815e-05/0.005487, allocations: 12.31 kB / 1.004 GB, free: 9.469 MB / 0.9636 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002152/0.005703, allocations: 173.6 kB / 1.004 GB, free: 9.281 MB / 0.9636 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.054e-06/0.00571, allocations: 192 / 1.004 GB, free: 9.281 MB / 0.9636 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.348e-05/0.005723, allocations: 11.94 kB / 1.004 GB, free: 9.27 MB / 0.9636 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.689e-06/0.005728, allocations: 0 / 1.004 GB, free: 9.27 MB / 0.9636 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00013/0.005858, allocations: 127.3 kB / 1.004 GB, free: 9.133 MB / 0.9636 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004288/0.006287, allocations: 363.8 kB / 1.004 GB, free: 8.734 MB / 0.9636 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000135/0.006422, allocations: 137.9 kB / 1.004 GB, free: 8.578 MB / 0.9636 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000157/0.006579, allocations: 128.2 kB / 1.004 GB, free: 8.438 MB / 0.9636 GB Notification: Performance of preOpt evalFunc (simulation): time 2.564e-05/0.006604, allocations: 7.938 kB / 1.004 GB, free: 8.43 MB / 0.9636 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002213/0.006825, allocations: 234.1 kB / 1.005 GB, free: 8.164 MB / 0.9636 GB Notification: Performance of pre-optimization done (n=10): time 1.583e-06/0.006827, allocations: 4 kB / 1.005 GB, free: 8.16 MB / 0.9636 GB Notification: Performance of matching and sorting (n=10): time 0.0005335/0.007361, allocations: 483.8 kB / 1.005 GB, free: 7.645 MB / 0.9636 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.393e-05/0.007424, allocations: 162.2 kB / 1.005 GB, free: 7.449 MB / 0.9636 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000133/0.007558, allocations: 184.6 kB / 1.005 GB, free: 7.258 MB / 0.9636 GB Notification: Performance of collectPreVariables (initialization): time 1.709e-05/0.007575, allocations: 29.7 kB / 1.005 GB, free: 7.223 MB / 0.9636 GB Notification: Performance of collectInitialEqns (initialization): time 5.412e-05/0.007629, allocations: 108.4 kB / 1.006 GB, free: 7.109 MB / 0.9636 GB Notification: Performance of collectInitialBindings (initialization): time 2.188e-05/0.007651, allocations: 27.8 kB / 1.006 GB, free: 7.082 MB / 0.9636 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.866e-05/0.007699, allocations: 37.7 kB / 1.006 GB, free: 7.039 MB / 0.9636 GB Notification: Performance of setup shared object (initialization): time 7.407e-05/0.007773, allocations: 326.8 kB / 1.006 GB, free: 6.711 MB / 0.9636 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001074/0.007881, allocations: 166.8 kB / 1.006 GB, free: 6.523 MB / 0.9636 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001219/0.008003, allocations: 213.6 kB / 1.006 GB, free: 6.266 MB / 0.9636 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001967/0.008199, allocations: 316.8 kB / 1.007 GB, free: 5.895 MB / 0.9636 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.274e-06/0.008202, allocations: 4 kB / 1.007 GB, free: 5.891 MB / 0.9636 GB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0003312/0.008533, allocations: 458.9 kB / 1.007 GB, free: 5.387 MB / 0.9636 GB Notification: Performance of prepare postOptimizeDAE: time 4.979e-05/0.008583, allocations: 118.8 kB / 1.007 GB, free: 5.246 MB / 0.9636 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.52e-06/0.008588, allocations: 4 kB / 1.007 GB, free: 5.242 MB / 0.9636 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.082e-05/0.008599, allocations: 0 / 1.007 GB, free: 5.242 MB / 0.9636 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.211e-05/0.008671, allocations: 20.23 kB / 1.007 GB, free: 5.223 MB / 0.9636 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.222e-06/0.008677, allocations: 7.938 kB / 1.007 GB, free: 5.215 MB / 0.9636 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.491e-05/0.008732, allocations: 19.92 kB / 1.007 GB, free: 5.195 MB / 0.9636 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.297e-05/0.008745, allocations: 8 kB / 1.007 GB, free: 5.188 MB / 0.9636 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 9.805e-05/0.008843, allocations: 198.4 kB / 1.007 GB, free: 4.973 MB / 0.9636 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.143e-05/0.008865, allocations: 23.91 kB / 1.007 GB, free: 4.949 MB / 0.9636 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.638e-05/0.008891, allocations: 21.44 kB / 1.007 GB, free: 4.926 MB / 0.9636 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.014e-06/0.008893, allocations: 288 / 1.007 GB, free: 4.926 MB / 0.9636 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.867e-06/0.008897, allocations: 0 / 1.007 GB, free: 4.926 MB / 0.9636 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.146e-06/0.0089, allocations: 0 / 1.007 GB, free: 4.926 MB / 0.9636 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004517/0.009352, allocations: 0.6172 MB / 1.008 GB, free: 4.234 MB / 0.9636 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.162e-06/0.009353, allocations: 0 / 1.008 GB, free: 4.234 MB / 0.9636 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.884e-05/0.009382, allocations: 11.98 kB / 1.008 GB, free: 4.223 MB / 0.9636 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.298e-06/0.009386, allocations: 8 kB / 1.008 GB, free: 4.215 MB / 0.9636 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.794e-05/0.009404, allocations: 8 kB / 1.008 GB, free: 4.207 MB / 0.9636 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.62e-07/0.009405, allocations: 0 / 1.008 GB, free: 4.207 MB / 0.9636 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.41e-07/0.009406, allocations: 3.938 kB / 1.008 GB, free: 4.203 MB / 0.9636 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003291/0.009735, allocations: 462.1 kB / 1.009 GB, free: 3.711 MB / 0.9636 GB Notification: Performance of postOpt removeConstants (simulation): time 1.097e-05/0.009746, allocations: 15.95 kB / 1.009 GB, free: 3.695 MB / 0.9636 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.254e-05/0.009768, allocations: 4 kB / 1.009 GB, free: 3.691 MB / 0.9636 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.677e-05/0.009825, allocations: 11.98 kB / 1.009 GB, free: 3.68 MB / 0.9636 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.767e-05/0.009863, allocations: 7.984 kB / 1.009 GB, free: 3.672 MB / 0.9636 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.062e-05/0.009873, allocations: 8 kB / 1.009 GB, free: 3.664 MB / 0.9636 GB Notification: Performance of sorting global known variables: time 6.788e-05/0.009941, allocations: 133.1 kB / 1.009 GB, free: 3.535 MB / 0.9636 GB Notification: Performance of sort global known variables: time 6e-08/0.009941, allocations: 3.938 kB / 1.009 GB, free: 3.531 MB / 0.9636 GB Notification: Performance of remove unused functions: time 0.0002022/0.01014, allocations: 43.89 kB / 1.009 GB, free: 3.488 MB / 0.9636 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.0006142/0.01076, allocations: 1.024 MB / 1.01 GB, free: 2.418 MB / 0.9636 GB Notification: Performance of simCode: created initialization part: time 0.0003427/0.0111, allocations: 0.5114 MB / 1.01 GB, free: 1.82 MB / 0.9636 GB Notification: Performance of simCode: created event and clocks part: time 1.423e-06/0.0111, allocations: 0.5 kB / 1.01 GB, free: 1.82 MB / 0.9636 GB Notification: Performance of simCode: created simulation system equations: time 0.0001431/0.01124, allocations: 254.1 kB / 1.01 GB, free: 1.535 MB / 0.9636 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002057/0.01145, allocations: 13.88 kB / 1.011 GB, free: 1.523 MB / 0.9636 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00175/0.0132, allocations: 2.627 MB / 1.013 GB, free: 14.64 MB / 0.9792 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 6.234e-05/0.01326, allocations: 93.91 kB / 1.013 GB, free: 14.52 MB / 0.9792 GB Notification: Performance of simCode: alias equations: time 4.682e-05/0.01331, allocations: 20.47 kB / 1.013 GB, free: 14.5 MB / 0.9792 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.355e-05/0.01336, allocations: 32.48 kB / 1.013 GB, free: 14.47 MB / 0.9792 GB Notification: Performance of SimCode: time 4.81e-07/0.01336, allocations: 4 kB / 1.013 GB, free: 14.47 MB / 0.9792 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0152/0.02856, allocations: 4.485 MB / 1.018 GB, free: 10.15 MB / 0.9792 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.286/7.314, allocations: 16.48 kB / 1.018 GB, free: 10.14 MB / 0.9792 GB " [Timeout remaining time 293] (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 800 --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) [Timeout 840.0] 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/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Utilities.IO.Files.Examples.CSVWriter.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 300] "Error: Could not read variable cos.y in file Buildings_latest_Buildings.Utilities.IO.Files.Examples.CSVWriter_res.csv. Warning: Get data of variable cos.y from file Buildings_latest_Buildings.Utilities.IO.Files.Examples.CSVWriter_res.csv failed! Error: Could not read variable step.y in file Buildings_latest_Buildings.Utilities.IO.Files.Examples.CSVWriter_res.csv. Warning: Get data of variable step.y from file Buildings_latest_Buildings.Utilities.IO.Files.Examples.CSVWriter_res.csv failed! " [Timeout remaining time 300] Reference file matches [Calling sys.exit(0), Time elapsed: 11.401082700118423]