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.0009267/0.0009267, 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.001581/0.001581, 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.9023/0.9023, allocations: 177.1 MB / 202.8 MB, free: 5.73 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.818/1.818, allocations: 389.1 MB / 0.633 GB, free: 12.7 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.784e-06/1.784e-06, allocations: 0 / 0.9997 GB, free: 13.53 MB / 0.9636 GB Notification: Performance of FrontEnd - Absyn->SCode: time 2.166e-05/2.344e-05, allocations: 6.219 kB / 0.9997 GB, free: 13.52 MB / 0.9636 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.IO.Files.Examples.CSVWriter): time 0.002304/0.002327, allocations: 1.626 MB / 1.001 GB, free: 11.89 MB / 0.9636 GB Notification: Performance of NFInst.instExpressions: time 0.0007749/0.003102, allocations: 0.6503 MB / 1.002 GB, free: 11.23 MB / 0.9636 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.448e-05/0.003167, allocations: 0 / 1.002 GB, free: 11.23 MB / 0.9636 GB Notification: Performance of NFTyping.typeComponents: time 0.0001447/0.003311, allocations: 27.73 kB / 1.002 GB, free: 11.21 MB / 0.9636 GB Notification: Performance of NFTyping.typeBindings: time 0.0001783/0.00349, allocations: 35.83 kB / 1.002 GB, free: 11.17 MB / 0.9636 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003099/0.0038, allocations: 135.5 kB / 1.002 GB, free: 11.04 MB / 0.9636 GB Notification: Performance of NFFlatten.flatten: time 0.0001975/0.003997, allocations: 187.5 kB / 1.002 GB, free: 10.86 MB / 0.9636 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001003/0.004097, allocations: 21.61 kB / 1.002 GB, free: 10.83 MB / 0.9636 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001806/0.004278, allocations: 119.8 kB / 1.002 GB, free: 10.71 MB / 0.9636 GB Notification: Performance of NFSimplifyModel.simplify: time 8.986e-05/0.004368, allocations: 67.84 kB / 1.002 GB, free: 10.64 MB / 0.9636 GB Notification: Performance of NFPackage.collectConstants: time 2.634e-05/0.004394, allocations: 16 kB / 1.002 GB, free: 10.63 MB / 0.9636 GB Notification: Performance of NFFlatten.collectFunctions: time 6.395e-05/0.004458, allocations: 24 kB / 1.002 GB, free: 10.61 MB / 0.9636 GB Notification: Performance of NFScalarize.scalarize: time 6.925e-05/0.004527, allocations: 35.84 kB / 1.003 GB, free: 10.57 MB / 0.9636 GB Notification: Performance of NFVerifyModel.verify: time 5.824e-05/0.004586, allocations: 55.89 kB / 1.003 GB, free: 10.52 MB / 0.9636 GB Notification: Performance of NFConvertDAE.convert: time 0.0002233/0.004809, allocations: 199.4 kB / 1.003 GB, free: 10.32 MB / 0.9636 GB Notification: Performance of FrontEnd - DAE generated: time 2.364e-06/0.004811, allocations: 0 / 1.003 GB, free: 10.32 MB / 0.9636 GB Notification: Performance of FrontEnd: time 9.22e-07/0.004812, allocations: 0 / 1.003 GB, free: 10.32 MB / 0.9636 GB Notification: Performance of Transformations before backend: time 4.167e-06/0.004816, 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.0005532/0.00537, allocations: 492.4 kB / 1.003 GB, free: 9.785 MB / 0.9636 GB Notification: Performance of prepare preOptimizeDAE: time 4.381e-05/0.005413, allocations: 12.75 kB / 1.003 GB, free: 9.773 MB / 0.9636 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.39e-05/0.005447, allocations: 42.67 kB / 1.003 GB, free: 9.723 MB / 0.9636 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000135/0.005582, allocations: 28.84 kB / 1.003 GB, free: 9.695 MB / 0.9636 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000275/0.005857, allocations: 185.6 kB / 1.004 GB, free: 9.488 MB / 0.9636 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.421e-05/0.005872, allocations: 8.375 kB / 1.004 GB, free: 9.48 MB / 0.9636 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.12e-05/0.005893, allocations: 12.38 kB / 1.004 GB, free: 9.469 MB / 0.9636 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002347/0.006128, allocations: 173.6 kB / 1.004 GB, free: 9.281 MB / 0.9636 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.327e-06/0.006137, allocations: 4.125 kB / 1.004 GB, free: 9.277 MB / 0.9636 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.486e-05/0.006152, allocations: 11.88 kB / 1.004 GB, free: 9.266 MB / 0.9636 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.691e-06/0.006157, allocations: 0 / 1.004 GB, free: 9.266 MB / 0.9636 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001351/0.006292, allocations: 131.3 kB / 1.004 GB, free: 9.125 MB / 0.9636 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004678/0.00676, allocations: 363.8 kB / 1.004 GB, free: 8.727 MB / 0.9636 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001413/0.006902, allocations: 137.9 kB / 1.004 GB, free: 8.57 MB / 0.9636 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001051/0.007007, allocations: 124.2 kB / 1.004 GB, free: 8.434 MB / 0.9636 GB Notification: Performance of preOpt evalFunc (simulation): time 2.192e-05/0.007029, allocations: 4 kB / 1.004 GB, free: 8.43 MB / 0.9636 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001839/0.007213, allocations: 238.1 kB / 1.005 GB, free: 8.16 MB / 0.9636 GB Notification: Performance of pre-optimization done (n=10): time 1.183e-06/0.007214, allocations: 0 / 1.005 GB, free: 8.16 MB / 0.9636 GB Notification: Performance of matching and sorting (n=10): time 0.0005226/0.007736, allocations: 483.8 kB / 1.005 GB, free: 7.645 MB / 0.9636 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.459e-05/0.007801, allocations: 166.2 kB / 1.005 GB, free: 7.445 MB / 0.9636 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001174/0.007918, allocations: 172.7 kB / 1.005 GB, free: 7.266 MB / 0.9636 GB Notification: Performance of collectPreVariables (initialization): time 1.94e-05/0.007938, allocations: 37.69 kB / 1.005 GB, free: 7.223 MB / 0.9636 GB Notification: Performance of collectInitialEqns (initialization): time 4.964e-05/0.007987, allocations: 104.4 kB / 1.006 GB, free: 7.113 MB / 0.9636 GB Notification: Performance of collectInitialBindings (initialization): time 2.375e-05/0.008011, allocations: 31.73 kB / 1.006 GB, free: 7.082 MB / 0.9636 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.925e-05/0.00806, allocations: 41.7 kB / 1.006 GB, free: 7.035 MB / 0.9636 GB Notification: Performance of setup shared object (initialization): time 8.03e-05/0.008141, allocations: 330.8 kB / 1.006 GB, free: 6.703 MB / 0.9636 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001144/0.008255, allocations: 158.8 kB / 1.006 GB, free: 6.523 MB / 0.9636 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001305/0.008385, allocations: 217.6 kB / 1.006 GB, free: 6.262 MB / 0.9636 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002058/0.008591, allocations: 316.8 kB / 1.007 GB, free: 5.891 MB / 0.9636 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.474e-06/0.008594, allocations: 4 kB / 1.007 GB, free: 5.887 MB / 0.9636 GB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0003603/0.008954, allocations: 459 kB / 1.007 GB, free: 5.383 MB / 0.9636 GB Notification: Performance of prepare postOptimizeDAE: time 5.792e-05/0.009012, allocations: 118.8 kB / 1.007 GB, free: 5.242 MB / 0.9636 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.563e-06/0.009019, allocations: 4 kB / 1.007 GB, free: 5.238 MB / 0.9636 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.257e-05/0.009031, allocations: 0 / 1.007 GB, free: 5.238 MB / 0.9636 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.792e-05/0.009109, allocations: 28.17 kB / 1.007 GB, free: 5.211 MB / 0.9636 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.51e-06/0.009115, allocations: 0 / 1.007 GB, free: 5.211 MB / 0.9636 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.712e-05/0.009172, allocations: 19.92 kB / 1.007 GB, free: 5.191 MB / 0.9636 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.355e-05/0.009185, allocations: 8 kB / 1.007 GB, free: 5.184 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 0.0001155/0.009301, allocations: 198.3 kB / 1.007 GB, free: 4.969 MB / 0.9636 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.097e-05/0.009322, allocations: 23.84 kB / 1.007 GB, free: 4.945 MB / 0.9636 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.045e-05/0.009352, allocations: 21.45 kB / 1.007 GB, free: 4.922 MB / 0.9636 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.294e-06/0.009354, allocations: 4.266 kB / 1.007 GB, free: 4.918 MB / 0.9636 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.697e-06/0.009358, allocations: 0 / 1.007 GB, free: 4.918 MB / 0.9636 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.916e-06/0.009361, allocations: 0 / 1.007 GB, free: 4.918 MB / 0.9636 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004786/0.00984, allocations: 0.6095 MB / 1.008 GB, free: 4.234 MB / 0.9636 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.613e-06/0.009841, allocations: 0 / 1.008 GB, free: 4.234 MB / 0.9636 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.049e-05/0.009872, allocations: 11.98 kB / 1.008 GB, free: 4.223 MB / 0.9636 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.326e-06/0.009875, allocations: 4 kB / 1.008 GB, free: 4.219 MB / 0.9636 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.335e-05/0.009888, allocations: 4 kB / 1.008 GB, free: 4.215 MB / 0.9636 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.014e-06/0.00989, allocations: 4 kB / 1.008 GB, free: 4.211 MB / 0.9636 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.71e-07/0.009891, allocations: 0 / 1.008 GB, free: 4.211 MB / 0.9636 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000339/0.01023, allocations: 474 kB / 1.009 GB, free: 3.707 MB / 0.9636 GB Notification: Performance of postOpt removeConstants (simulation): time 1.247e-05/0.01024, allocations: 11.89 kB / 1.009 GB, free: 3.695 MB / 0.9636 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.284e-05/0.01027, allocations: 8 kB / 1.009 GB, free: 3.688 MB / 0.9636 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.579e-05/0.01032, allocations: 11.98 kB / 1.009 GB, free: 3.676 MB / 0.9636 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.59e-05/0.01036, allocations: 7.969 kB / 1.009 GB, free: 3.668 MB / 0.9636 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.163e-05/0.01037, allocations: 12 kB / 1.009 GB, free: 3.656 MB / 0.9636 GB Notification: Performance of sorting global known variables: time 6.959e-05/0.01044, allocations: 133.1 kB / 1.009 GB, free: 3.527 MB / 0.9636 GB Notification: Performance of sort global known variables: time 6e-08/0.01044, allocations: 0 / 1.009 GB, free: 3.527 MB / 0.9636 GB Notification: Performance of remove unused functions: time 0.0002067/0.01065, allocations: 39.94 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.0006317/0.01128, allocations: 1.021 MB / 1.01 GB, free: 2.422 MB / 0.9636 GB Notification: Performance of simCode: created initialization part: time 0.000362/0.01164, allocations: 0.5157 MB / 1.01 GB, free: 1.82 MB / 0.9636 GB Notification: Performance of simCode: created event and clocks part: time 1.533e-06/0.01164, allocations: 0 / 1.01 GB, free: 1.82 MB / 0.9636 GB Notification: Performance of simCode: created simulation system equations: time 0.0001451/0.01179, allocations: 250.2 kB / 1.01 GB, free: 1.539 MB / 0.9636 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002095/0.01199, allocations: 14.03 kB / 1.011 GB, free: 1.527 MB / 0.9636 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001806/0.0138, allocations: 2.635 MB / 1.013 GB, free: 14.63 MB / 0.9792 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 6.333e-05/0.01386, allocations: 89.91 kB / 1.013 GB, free: 14.52 MB / 0.9792 GB Notification: Performance of simCode: alias equations: time 4.914e-05/0.01391, 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.263e-05/0.01397, allocations: 36.48 kB / 1.013 GB, free: 14.47 MB / 0.9792 GB Notification: Performance of SimCode: time 5.92e-07/0.01397, allocations: 4 kB / 1.013 GB, free: 14.46 MB / 0.9792 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01747/0.03143, allocations: 4.487 MB / 1.018 GB, free: 10.15 MB / 0.9792 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.078/7.109, allocations: 4.062 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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_latest_Buildings.Utilities.IO.Files.Examples.CSVWriter_res.mat --tempDir=temp_Buildings_latest_Buildings_Utilities_IO_Files_Examples_CSVWriter_fmu --startTime=-1.21 --stopTime=10 --stepSize=0.004484 --timeout=800 --tolerance=1e-06 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.mat","/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] "" [Timeout remaining time 300] Reference file matches [Calling sys.exit(0), Time elapsed: 11.233802040107548]