Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_12_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.001365/0.001365, allocations: 110 kB / 16.46 MB, free: 6.453 MB / 14.72 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.001463/0.001463, allocations: 213.7 kB / 19.43 MB, free: 3.625 MB / 14.72 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 1.556/1.556, allocations: 230.6 MB / 252.8 MB, free: 8.98 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.1-maint.12.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.1-maint.12.x/package.mo): time 3.153/3.153, allocations: 0.49 GB / 0.7916 GB, free: 33.33 MB / 0.6231 GB " [Timeout remaining time 176] Using package Buildings with version 12.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.1-maint.12.x/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_12_Buildings_Utilities_IO_Files_Examples_CSVWriter",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Utilities.IO.Files.Examples.CSVWriter,fileNamePrefix="Buildings_12_Buildings_Utilities_IO_Files_Examples_CSVWriter",fmuType="me",version="2.0",platforms={"static"}) [Timeout 300] "Notification: Buildings requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.002064/0.002064, allocations: 71.92 kB / 1.149 GB, free: 26.38 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3478/0.3498, allocations: 176.1 MB / 1.321 GB, free: 3.324 MB / 1.014 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.IO.Files.Examples.CSVWriter): time 0.003501/0.3533, allocations: 1.632 MB / 1.322 GB, free: 1.684 MB / 1.014 GB Notification: Performance of NFInst.instExpressions: time 0.001356/0.3547, allocations: 0.6896 MB / 1.323 GB, free: 0.9883 MB / 1.014 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001041/0.3548, allocations: 0 / 1.323 GB, free: 0.9883 MB / 1.014 GB Notification: Performance of NFTyping.typeComponents: time 0.0002038/0.355, allocations: 27.78 kB / 1.323 GB, free: 0.9609 MB / 1.014 GB Notification: Performance of NFTyping.typeBindings: time 0.0002594/0.3553, allocations: 47.75 kB / 1.323 GB, free: 0.9141 MB / 1.014 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005562/0.3558, allocations: 123.7 kB / 1.323 GB, free: 0.793 MB / 1.014 GB Notification: Performance of NFFlatten.flatten: time 0.0003243/0.3561, allocations: 183.6 kB / 1.323 GB, free: 0.6133 MB / 1.014 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001714/0.3563, allocations: 21.7 kB / 1.323 GB, free: 0.5859 MB / 1.014 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002544/0.3566, allocations: 91.73 kB / 1.324 GB, free: 0.4961 MB / 1.014 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001795/0.3568, allocations: 87.66 kB / 1.324 GB, free: 420 kB / 1.014 GB Notification: Performance of NFPackage.collectConstants: time 4.9e-05/0.3568, allocations: 19.94 kB / 1.324 GB, free: 400 kB / 1.014 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001163/0.3569, allocations: 32 kB / 1.324 GB, free: 368 kB / 1.014 GB Notification: Performance of NFScalarize.scalarize: time 0.0001134/0.357, allocations: 27.92 kB / 1.324 GB, free: 340 kB / 1.014 GB Notification: Performance of NFVerifyModel.verify: time 0.0001134/0.3571, allocations: 75.64 kB / 1.324 GB, free: 264 kB / 1.014 GB Notification: Performance of NFConvertDAE.convert: time 0.0003255/0.3575, allocations: 179.3 kB / 1.324 GB, free: 84 kB / 1.014 GB Notification: Performance of FrontEnd - DAE generated: time 3.586e-06/0.3575, allocations: 0 / 1.324 GB, free: 84 kB / 1.014 GB Notification: Performance of FrontEnd: time 1.663e-06/0.3575, allocations: 0 / 1.324 GB, free: 84 kB / 1.014 GB Notification: Performance of Transformations before backend: time 1.462e-05/0.3575, allocations: 3.984 kB / 1.324 GB, free: 80 kB / 1.014 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.0008658/0.3584, allocations: 0.56 MB / 1.325 GB, free: 15.45 MB / 1.029 GB Notification: Performance of prepare preOptimizeDAE: time 5.718e-05/0.3584, allocations: 15.97 kB / 1.325 GB, free: 15.43 MB / 1.029 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.012e-05/0.3585, allocations: 42.73 kB / 1.325 GB, free: 15.38 MB / 1.029 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001981/0.3587, allocations: 28.83 kB / 1.325 GB, free: 15.35 MB / 1.029 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003789/0.359, allocations: 244.3 kB / 1.325 GB, free: 15.07 MB / 1.029 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.671e-05/0.3591, allocations: 4.375 kB / 1.325 GB, free: 15.07 MB / 1.029 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.566e-05/0.3591, allocations: 16.38 kB / 1.325 GB, free: 15.05 MB / 1.029 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003139/0.3594, allocations: 117.5 kB / 1.325 GB, free: 14.93 MB / 1.029 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.776e-06/0.3594, allocations: 0 / 1.325 GB, free: 14.93 MB / 1.029 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.658e-05/0.3594, allocations: 0 / 1.325 GB, free: 14.93 MB / 1.029 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.705e-06/0.3594, allocations: 4 kB / 1.325 GB, free: 14.93 MB / 1.029 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002233/0.3597, allocations: 71.94 kB / 1.325 GB, free: 14.86 MB / 1.029 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008016/0.3605, allocations: 416.5 kB / 1.325 GB, free: 14.4 MB / 1.029 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002297/0.3607, allocations: 78.53 kB / 1.325 GB, free: 14.32 MB / 1.029 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001991/0.3609, allocations: 72.81 kB / 1.326 GB, free: 14.24 MB / 1.029 GB Notification: Performance of preOpt evalFunc (simulation): time 2.896e-05/0.3609, allocations: 4.141 kB / 1.326 GB, free: 14.24 MB / 1.029 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003387/0.3613, allocations: 182.8 kB / 1.326 GB, free: 14.04 MB / 1.029 GB Notification: Performance of pre-optimization done (n=10): time 1.753e-06/0.3613, allocations: 0 / 1.326 GB, free: 14.04 MB / 1.029 GB Notification: Performance of matching and sorting (n=10): time 0.0008656/0.3621, allocations: 353.1 kB / 1.326 GB, free: 13.67 MB / 1.029 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001479/0.3623, allocations: 170.2 kB / 1.326 GB, free: 13.47 MB / 1.029 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000241/0.3625, allocations: 183.4 kB / 1.326 GB, free: 13.28 MB / 1.029 GB Notification: Performance of collectPreVariables (initialization): time 3.79e-05/0.3626, allocations: 29.7 kB / 1.326 GB, free: 13.24 MB / 1.029 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001036/0.3627, allocations: 112.3 kB / 1.327 GB, free: 13.12 MB / 1.029 GB Notification: Performance of collectInitialBindings (initialization): time 4.979e-05/0.3627, allocations: 35.73 kB / 1.327 GB, free: 13.09 MB / 1.029 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.473e-05/0.3628, allocations: 37.7 kB / 1.327 GB, free: 13.05 MB / 1.029 GB Notification: Performance of setup shared object (initialization): time 0.0001815/0.363, allocations: 326.8 kB / 1.327 GB, free: 12.72 MB / 1.029 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001532/0.3631, allocations: 47.97 kB / 1.327 GB, free: 12.67 MB / 1.029 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002033/0.3633, allocations: 108.1 kB / 1.327 GB, free: 12.54 MB / 1.029 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004202/0.3638, allocations: 312.9 kB / 1.327 GB, free: 12.18 MB / 1.029 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.115e-06/0.3638, allocations: 0 / 1.327 GB, free: 12.18 MB / 1.029 GB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0006407/0.3644, allocations: 352.1 kB / 1.328 GB, free: 11.8 MB / 1.029 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001157/0.3645, allocations: 121.5 kB / 1.328 GB, free: 11.66 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.508e-06/0.3645, allocations: 4.078 kB / 1.328 GB, free: 11.66 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.127e-05/0.3646, allocations: 4 kB / 1.328 GB, free: 11.65 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001396/0.3647, allocations: 15.98 kB / 1.328 GB, free: 11.64 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.287e-06/0.3647, allocations: 3.984 kB / 1.328 GB, free: 11.63 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001156/0.3648, allocations: 20.19 kB / 1.328 GB, free: 11.61 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.753e-05/0.3649, allocations: 16 kB / 1.328 GB, free: 11.6 MB / 1.029 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.0002175/0.3651, allocations: 198.8 kB / 1.328 GB, free: 11.38 MB / 1.029 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.75e-05/0.3651, allocations: 15.95 kB / 1.328 GB, free: 11.37 MB / 1.029 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.071e-05/0.3652, allocations: 21.39 kB / 1.328 GB, free: 11.34 MB / 1.029 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.966e-06/0.3652, allocations: 0 / 1.328 GB, free: 11.34 MB / 1.029 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.58e-06/0.3652, allocations: 0 / 1.328 GB, free: 11.34 MB / 1.029 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.356e-06/0.3652, allocations: 0 / 1.328 GB, free: 11.34 MB / 1.029 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000926/0.3661, allocations: 0.5954 MB / 1.329 GB, free: 10.68 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.549e-06/0.3661, allocations: 4 kB / 1.329 GB, free: 10.67 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.051e-05/0.3662, allocations: 8 kB / 1.329 GB, free: 10.66 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.879e-06/0.3662, allocations: 0 / 1.329 GB, free: 10.66 MB / 1.029 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.63e-05/0.3662, allocations: 11.98 kB / 1.329 GB, free: 10.65 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.029e-06/0.3662, allocations: 4 kB / 1.329 GB, free: 10.65 MB / 1.029 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.407e-06/0.3662, allocations: 7.875 kB / 1.329 GB, free: 10.64 MB / 1.029 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006932/0.3669, allocations: 418.6 kB / 1.329 GB, free: 10.2 MB / 1.029 GB Notification: Performance of postOpt removeConstants (simulation): time 7.175e-05/0.367, allocations: 89.02 kB / 1.329 GB, free: 10.1 MB / 1.029 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.826e-05/0.367, allocations: 4 kB / 1.329 GB, free: 10.09 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001216/0.3671, allocations: 7.984 kB / 1.329 GB, free: 10.09 MB / 1.029 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.106e-05/0.3672, allocations: 11.94 kB / 1.329 GB, free: 10.07 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.191e-05/0.3672, allocations: 11.98 kB / 1.329 GB, free: 10.06 MB / 1.029 GB Notification: Performance of sorting global known variables: time 0.0001428/0.3674, allocations: 137.1 kB / 1.329 GB, free: 9.93 MB / 1.029 GB Notification: Performance of sort global known variables: time 7.1e-08/0.3674, allocations: 0 / 1.329 GB, free: 9.93 MB / 1.029 GB Notification: Performance of remove unused functions: time 0.0003303/0.3677, allocations: 39.94 kB / 1.329 GB, free: 9.891 MB / 1.029 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.001279/0.369, allocations: 0.9586 MB / 1.33 GB, free: 8.898 MB / 1.029 GB Notification: Performance of simCode: created initialization part: time 0.0006211/0.3696, allocations: 357.4 kB / 1.331 GB, free: 8.5 MB / 1.029 GB Notification: Performance of simCode: created event and clocks part: time 2.254e-06/0.3696, allocations: 0 / 1.331 GB, free: 8.5 MB / 1.029 GB Notification: Performance of simCode: created simulation system equations: time 0.0002736/0.3699, allocations: 182.8 kB / 1.331 GB, free: 8.297 MB / 1.029 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003471/0.3702, allocations: 28.31 kB / 1.331 GB, free: 8.27 MB / 1.029 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003247/0.3735, allocations: 2.128 MB / 1.333 GB, free: 6 MB / 1.029 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004075/0.3739, allocations: 0.7119 MB / 1.334 GB, free: 5.262 MB / 1.029 GB Notification: Performance of simCode: alias equations: time 8.224e-05/0.374, allocations: 20.53 kB / 1.334 GB, free: 5.242 MB / 1.029 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.808e-05/0.374, allocations: 39.42 kB / 1.334 GB, free: 5.203 MB / 1.029 GB Notification: Performance of SimCode: time 4.31e-07/0.374, allocations: 0 / 1.334 GB, free: 5.203 MB / 1.029 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03157/0.4056, allocations: 3.669 MB / 1.337 GB, free: 1.637 MB / 1.029 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.456/8.862, allocations: 14.73 kB / 1.337 GB, free: 1.625 MB / 1.029 GB " [Timeout remaining time 291] (rm -f Buildings_12_Buildings.Utilities.IO.Files.Examples.CSVWriter.pipe ; mkfifo Buildings_12_Buildings.Utilities.IO.Files.Examples.CSVWriter.pipe ; head -c 1048576 < Buildings_12_Buildings.Utilities.IO.Files.Examples.CSVWriter.pipe >> ../files/Buildings_12_Buildings.Utilities.IO.Files.Examples.CSVWriter.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_12_Buildings.Utilities.IO.Files.Examples.CSVWriter_res.mat --tempDir=temp_Buildings_12_Buildings_Utilities_IO_Files_Examples_CSVWriter_fmu --startTime=-1.21 --stopTime=10 --stepSize=0.004484 --timeout=400 --tolerance=1e-06 Buildings_12_Buildings_Utilities_IO_Files_Examples_CSVWriter.fmu > Buildings_12_Buildings.Utilities.IO.Files.Examples.CSVWriter.pipe 2>&1) [Timeout 420.0] diffSimulationResults("Buildings_12_Buildings.Utilities.IO.Files.Examples.CSVWriter_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_12.x/Buildings_Utilities_IO_Files_Examples_CSVWriter.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_12_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: 15.514845400117338]