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.001412/0.001412, allocations: 99.75 kB / 18.94 MB, free: 2.832 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.00151/0.00151, allocations: 215.7 kB / 22.25 MB, free: 5.102 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.459/1.459, allocations: 230.6 MB / 256 MB, free: 7.824 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.246/3.246, allocations: 0.49 GB / 0.7951 GB, free: 35.36 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.002026/0.002026, allocations: 69.77 kB / 1.154 GB, free: 25.42 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3095/0.3115, allocations: 176.1 MB / 1.326 GB, free: 1.523 MB / 1.014 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.IO.Files.Examples.CSVWriter): time 0.003163/0.3147, allocations: 1.622 MB / 1.327 GB, free: 15.89 MB / 1.029 GB Notification: Performance of NFInst.instExpressions: time 0.001152/0.3159, allocations: 0.6545 MB / 1.328 GB, free: 15.23 MB / 1.029 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.712e-05/0.3159, allocations: 7.938 kB / 1.328 GB, free: 15.23 MB / 1.029 GB Notification: Performance of NFTyping.typeComponents: time 0.0001435/0.3161, allocations: 19.8 kB / 1.328 GB, free: 15.21 MB / 1.029 GB Notification: Performance of NFTyping.typeBindings: time 0.0002189/0.3163, allocations: 47.75 kB / 1.328 GB, free: 15.16 MB / 1.029 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004571/0.3167, allocations: 123.7 kB / 1.328 GB, free: 15.04 MB / 1.029 GB Notification: Performance of NFFlatten.flatten: time 0.0002794/0.317, allocations: 195.5 kB / 1.328 GB, free: 14.85 MB / 1.029 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001201/0.3171, allocations: 21.91 kB / 1.328 GB, free: 14.82 MB / 1.029 GB Notification: Performance of NFEvalConstants.evaluate: time 0.000201/0.3173, allocations: 91.75 kB / 1.329 GB, free: 14.73 MB / 1.029 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001557/0.3175, allocations: 87.66 kB / 1.329 GB, free: 14.64 MB / 1.029 GB Notification: Performance of NFPackage.collectConstants: time 3.609e-05/0.3175, allocations: 16 kB / 1.329 GB, free: 14.63 MB / 1.029 GB Notification: Performance of NFFlatten.collectFunctions: time 7.851e-05/0.3176, allocations: 24 kB / 1.329 GB, free: 14.61 MB / 1.029 GB Notification: Performance of NFScalarize.scalarize: time 8.986e-05/0.3177, allocations: 35.89 kB / 1.329 GB, free: 14.57 MB / 1.029 GB Notification: Performance of NFVerifyModel.verify: time 9.734e-05/0.3178, allocations: 67.72 kB / 1.329 GB, free: 14.5 MB / 1.029 GB Notification: Performance of NFConvertDAE.convert: time 0.0002674/0.3181, allocations: 175.3 kB / 1.329 GB, free: 14.33 MB / 1.029 GB Notification: Performance of FrontEnd - DAE generated: time 3.676e-06/0.3181, allocations: 4 kB / 1.329 GB, free: 14.33 MB / 1.029 GB Notification: Performance of FrontEnd: time 1.163e-06/0.3181, allocations: 4 kB / 1.329 GB, free: 14.32 MB / 1.029 GB Notification: Performance of Transformations before backend: time 4.909e-06/0.3181, allocations: 0 / 1.329 GB, free: 14.32 MB / 1.029 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.0007365/0.3188, allocations: 490.3 kB / 1.329 GB, free: 13.79 MB / 1.029 GB Notification: Performance of prepare preOptimizeDAE: time 4.336e-05/0.3189, allocations: 12.03 kB / 1.329 GB, free: 13.78 MB / 1.029 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.859e-05/0.3189, allocations: 42.69 kB / 1.329 GB, free: 13.73 MB / 1.029 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001698/0.3191, allocations: 28.83 kB / 1.329 GB, free: 13.7 MB / 1.029 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003468/0.3194, allocations: 182.9 kB / 1.33 GB, free: 13.5 MB / 1.029 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.808e-05/0.3194, allocations: 12.38 kB / 1.33 GB, free: 13.49 MB / 1.029 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.386e-05/0.3195, allocations: 12.38 kB / 1.33 GB, free: 13.48 MB / 1.029 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003344/0.3198, allocations: 184.9 kB / 1.33 GB, free: 13.28 MB / 1.029 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.416e-06/0.3198, allocations: 0 / 1.33 GB, free: 13.28 MB / 1.029 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.831e-05/0.3198, allocations: 4 kB / 1.33 GB, free: 13.27 MB / 1.029 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.928e-06/0.3198, allocations: 0 / 1.33 GB, free: 13.27 MB / 1.029 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002445/0.3201, allocations: 123.3 kB / 1.33 GB, free: 13.14 MB / 1.029 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006943/0.3208, allocations: 363.7 kB / 1.33 GB, free: 12.74 MB / 1.029 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002549/0.321, allocations: 145.9 kB / 1.33 GB, free: 12.58 MB / 1.029 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002026/0.3212, allocations: 120.2 kB / 1.331 GB, free: 12.45 MB / 1.029 GB Notification: Performance of preOpt evalFunc (simulation): time 2.493e-05/0.3213, allocations: 4 kB / 1.331 GB, free: 12.44 MB / 1.029 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003356/0.3216, allocations: 238.1 kB / 1.331 GB, free: 12.17 MB / 1.029 GB Notification: Performance of pre-optimization done (n=10): time 1.593e-06/0.3216, allocations: 7.938 kB / 1.331 GB, free: 12.16 MB / 1.029 GB Notification: Performance of matching and sorting (n=10): time 0.000881/0.3225, allocations: 479.8 kB / 1.331 GB, free: 11.65 MB / 1.029 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001077/0.3226, allocations: 166.2 kB / 1.331 GB, free: 11.45 MB / 1.029 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001917/0.3228, allocations: 179.6 kB / 1.332 GB, free: 11.27 MB / 1.029 GB Notification: Performance of collectPreVariables (initialization): time 3.212e-05/0.3228, allocations: 33.7 kB / 1.332 GB, free: 11.23 MB / 1.029 GB Notification: Performance of collectInitialEqns (initialization): time 9.112e-05/0.3229, allocations: 112.3 kB / 1.332 GB, free: 11.11 MB / 1.029 GB Notification: Performance of collectInitialBindings (initialization): time 3.553e-05/0.3229, allocations: 31.73 kB / 1.332 GB, free: 11.08 MB / 1.029 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.621e-05/0.323, allocations: 37.7 kB / 1.332 GB, free: 11.04 MB / 1.029 GB Notification: Performance of setup shared object (initialization): time 0.0001592/0.3232, allocations: 326.8 kB / 1.332 GB, free: 10.71 MB / 1.029 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000206/0.3234, allocations: 166.8 kB / 1.332 GB, free: 10.52 MB / 1.029 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002599/0.3236, allocations: 212.5 kB / 1.332 GB, free: 10.27 MB / 1.029 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003825/0.324, allocations: 320.9 kB / 1.333 GB, free: 9.891 MB / 1.029 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.334e-06/0.324, allocations: 0 / 1.333 GB, free: 9.891 MB / 1.029 GB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0006603/0.3247, allocations: 470.9 kB / 1.333 GB, free: 9.375 MB / 1.029 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001063/0.3248, allocations: 118.8 kB / 1.333 GB, free: 9.234 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.133e-06/0.3248, allocations: 4 kB / 1.333 GB, free: 9.23 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.754e-05/0.3248, allocations: 0 / 1.333 GB, free: 9.23 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001158/0.3249, allocations: 23.92 kB / 1.333 GB, free: 9.207 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.242e-06/0.3249, allocations: 0 / 1.333 GB, free: 9.207 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001062/0.325, allocations: 16.19 kB / 1.333 GB, free: 9.191 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.405e-05/0.3251, allocations: 15.97 kB / 1.333 GB, free: 9.176 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.0001855/0.3253, allocations: 205 kB / 1.334 GB, free: 8.957 MB / 1.029 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.867e-05/0.3253, allocations: 19.91 kB / 1.334 GB, free: 8.938 MB / 1.029 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.246e-05/0.3253, allocations: 13.41 kB / 1.334 GB, free: 8.918 MB / 1.029 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.465e-06/0.3253, allocations: 0 / 1.334 GB, free: 8.918 MB / 1.029 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.41e-06/0.3253, allocations: 3.984 kB / 1.334 GB, free: 8.914 MB / 1.029 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.805e-06/0.3253, allocations: 0 / 1.334 GB, free: 8.914 MB / 1.029 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008173/0.3262, allocations: 0.6095 MB / 1.334 GB, free: 8.23 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.663e-06/0.3262, allocations: 0 / 1.334 GB, free: 8.23 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.737e-05/0.3262, allocations: 8.281 kB / 1.334 GB, free: 8.223 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.512e-06/0.3262, allocations: 7.984 kB / 1.334 GB, free: 8.215 MB / 1.029 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.378e-05/0.3263, allocations: 7.984 kB / 1.334 GB, free: 8.207 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.302e-06/0.3263, allocations: 3.938 kB / 1.334 GB, free: 8.203 MB / 1.029 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.865e-06/0.3263, allocations: 3.938 kB / 1.334 GB, free: 8.199 MB / 1.029 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000654/0.3269, allocations: 466.1 kB / 1.335 GB, free: 7.703 MB / 1.029 GB Notification: Performance of postOpt removeConstants (simulation): time 2.363e-05/0.3269, allocations: 7.953 kB / 1.335 GB, free: 7.695 MB / 1.029 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.037e-05/0.327, allocations: 12 kB / 1.335 GB, free: 7.684 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001266/0.3271, allocations: 15.92 kB / 1.335 GB, free: 7.668 MB / 1.029 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.299e-05/0.3272, allocations: 3.938 kB / 1.335 GB, free: 7.664 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.556e-05/0.3272, allocations: 15.98 kB / 1.335 GB, free: 7.648 MB / 1.029 GB Notification: Performance of sorting global known variables: time 0.0001119/0.3273, allocations: 124.1 kB / 1.335 GB, free: 7.527 MB / 1.029 GB Notification: Performance of sort global known variables: time 7.1e-08/0.3273, allocations: 0 / 1.335 GB, free: 7.527 MB / 1.029 GB Notification: Performance of remove unused functions: time 0.0003098/0.3276, allocations: 47.88 kB / 1.335 GB, free: 7.48 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.001121/0.3287, allocations: 1.018 MB / 1.336 GB, free: 6.418 MB / 1.029 GB Notification: Performance of simCode: created initialization part: time 0.0006472/0.3294, allocations: 0.5191 MB / 1.336 GB, free: 5.812 MB / 1.029 GB Notification: Performance of simCode: created event and clocks part: time 2.034e-06/0.3294, allocations: 0 / 1.336 GB, free: 5.812 MB / 1.029 GB Notification: Performance of simCode: created simulation system equations: time 0.0002941/0.3297, allocations: 238.7 kB / 1.337 GB, free: 5.543 MB / 1.029 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003375/0.33, allocations: 37.42 kB / 1.337 GB, free: 5.508 MB / 1.029 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003197/0.3332, allocations: 2.613 MB / 1.339 GB, free: 2.637 MB / 1.029 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001045/0.3333, allocations: 101.2 kB / 1.339 GB, free: 2.516 MB / 1.029 GB Notification: Performance of simCode: alias equations: time 7.942e-05/0.3334, allocations: 20.47 kB / 1.339 GB, free: 2.496 MB / 1.029 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.957e-05/0.3335, allocations: 35.42 kB / 1.339 GB, free: 2.461 MB / 1.029 GB Notification: Performance of SimCode: time 4.01e-07/0.3335, allocations: 0 / 1.339 GB, free: 2.461 MB / 1.029 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03099/0.3645, allocations: 4.358 MB / 1.344 GB, free: 14.27 MB / 1.045 GB Notification: Performance of buildModelFMU: Generate platform static: time 11.51/11.87, allocations: 9.875 kB / 1.344 GB, free: 14.26 MB / 1.045 GB " [Timeout remaining time 288] (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: 18.570154739019927]