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.001654/0.001654, allocations: 114.3 kB / 18.94 MB, free: 2.957 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.002014/0.002014, allocations: 217.3 kB / 22.26 MB, free: 5.113 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.483/1.483, allocations: 230.6 MB / 256 MB, free: 8.012 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.249/3.249, allocations: 0.49 GB / 0.7951 GB, free: 33.23 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.002044/0.002044, allocations: 61.59 kB / 1.154 GB, free: 25.77 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3519/0.354, allocations: 176.1 MB / 1.326 GB, free: 1.992 MB / 1.014 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.IO.Files.Examples.CSVWriter): time 0.003036/0.357, allocations: 1.666 MB / 1.328 GB, free: 328 kB / 1.014 GB Notification: Performance of NFInst.instExpressions: time 0.001208/0.3582, allocations: 0.7012 MB / 1.328 GB, free: 15.61 MB / 1.029 GB Notification: Performance of NFInst.updateImplicitVariability: time 7.582e-05/0.3583, allocations: 4 kB / 1.328 GB, free: 15.61 MB / 1.029 GB Notification: Performance of NFTyping.typeComponents: time 0.0001616/0.3584, allocations: 15.8 kB / 1.328 GB, free: 15.59 MB / 1.029 GB Notification: Performance of NFTyping.typeBindings: time 0.0002407/0.3587, allocations: 47.77 kB / 1.328 GB, free: 15.55 MB / 1.029 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004419/0.3591, allocations: 131.7 kB / 1.328 GB, free: 15.42 MB / 1.029 GB Notification: Performance of NFFlatten.flatten: time 0.0003294/0.3595, allocations: 187.6 kB / 1.329 GB, free: 15.23 MB / 1.029 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001149/0.3596, allocations: 13.92 kB / 1.329 GB, free: 15.21 MB / 1.029 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002195/0.3598, allocations: 95.73 kB / 1.329 GB, free: 15.12 MB / 1.029 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001512/0.3599, allocations: 87.66 kB / 1.329 GB, free: 15.04 MB / 1.029 GB Notification: Performance of NFPackage.collectConstants: time 3.821e-05/0.36, allocations: 16 kB / 1.329 GB, free: 15.02 MB / 1.029 GB Notification: Performance of NFFlatten.collectFunctions: time 9.136e-05/0.3601, allocations: 32 kB / 1.329 GB, free: 14.99 MB / 1.029 GB Notification: Performance of NFScalarize.scalarize: time 9.926e-05/0.3602, allocations: 31.89 kB / 1.329 GB, free: 14.96 MB / 1.029 GB Notification: Performance of NFVerifyModel.verify: time 9.995e-05/0.3603, allocations: 71.67 kB / 1.329 GB, free: 14.89 MB / 1.029 GB Notification: Performance of NFConvertDAE.convert: time 0.0002761/0.3605, allocations: 183.3 kB / 1.329 GB, free: 14.71 MB / 1.029 GB Notification: Performance of FrontEnd - DAE generated: time 4.147e-06/0.3605, allocations: 0 / 1.329 GB, free: 14.71 MB / 1.029 GB Notification: Performance of FrontEnd: time 1.313e-06/0.3606, allocations: 0 / 1.329 GB, free: 14.71 MB / 1.029 GB Notification: Performance of Transformations before backend: time 1.116e-05/0.3606, allocations: 0 / 1.329 GB, free: 14.71 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.0007565/0.3613, allocations: 496.4 kB / 1.33 GB, free: 14.17 MB / 1.029 GB Notification: Performance of prepare preOptimizeDAE: time 4.674e-05/0.3614, allocations: 12.03 kB / 1.33 GB, free: 14.16 MB / 1.029 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.112e-05/0.3614, allocations: 38.75 kB / 1.33 GB, free: 14.11 MB / 1.029 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001893/0.3616, allocations: 28.83 kB / 1.33 GB, free: 14.08 MB / 1.029 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004036/0.362, allocations: 190.9 kB / 1.33 GB, free: 13.87 MB / 1.029 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.606e-05/0.362, allocations: 8.375 kB / 1.33 GB, free: 13.86 MB / 1.029 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.362e-05/0.3621, allocations: 12.38 kB / 1.33 GB, free: 13.85 MB / 1.029 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002883/0.3623, allocations: 117.5 kB / 1.33 GB, free: 13.73 MB / 1.029 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.003e-05/0.3624, allocations: 0 / 1.33 GB, free: 13.73 MB / 1.029 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.858e-05/0.3624, allocations: 4 kB / 1.33 GB, free: 13.73 MB / 1.029 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.829e-06/0.3624, allocations: 3.938 kB / 1.33 GB, free: 13.72 MB / 1.029 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001991/0.3626, allocations: 71.95 kB / 1.33 GB, free: 13.65 MB / 1.029 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007075/0.3633, allocations: 387.7 kB / 1.33 GB, free: 13.23 MB / 1.029 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002031/0.3635, allocations: 86.45 kB / 1.33 GB, free: 13.14 MB / 1.029 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001697/0.3637, allocations: 68.81 kB / 1.331 GB, free: 13.07 MB / 1.029 GB Notification: Performance of preOpt evalFunc (simulation): time 2.891e-05/0.3637, allocations: 4 kB / 1.331 GB, free: 13.06 MB / 1.029 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002777/0.364, allocations: 174.7 kB / 1.331 GB, free: 12.87 MB / 1.029 GB Notification: Performance of pre-optimization done (n=10): time 1.473e-06/0.364, allocations: 0 / 1.331 GB, free: 12.87 MB / 1.029 GB Notification: Performance of matching and sorting (n=10): time 0.000778/0.3647, allocations: 364.9 kB / 1.331 GB, free: 12.49 MB / 1.029 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001258/0.3649, allocations: 162.2 kB / 1.331 GB, free: 12.3 MB / 1.029 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001844/0.3651, allocations: 183.6 kB / 1.331 GB, free: 12.11 MB / 1.029 GB Notification: Performance of collectPreVariables (initialization): time 2.705e-05/0.3651, allocations: 29.7 kB / 1.331 GB, free: 12.07 MB / 1.029 GB Notification: Performance of collectInitialEqns (initialization): time 8.424e-05/0.3652, allocations: 112.4 kB / 1.332 GB, free: 11.95 MB / 1.029 GB Notification: Performance of collectInitialBindings (initialization): time 3.45e-05/0.3652, allocations: 31.69 kB / 1.332 GB, free: 11.92 MB / 1.029 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.477e-05/0.3653, allocations: 37.7 kB / 1.332 GB, free: 11.88 MB / 1.029 GB Notification: Performance of setup shared object (initialization): time 0.0001502/0.3654, allocations: 326.8 kB / 1.332 GB, free: 11.55 MB / 1.029 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001425/0.3656, allocations: 59.89 kB / 1.332 GB, free: 11.49 MB / 1.029 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001831/0.3658, allocations: 110.1 kB / 1.332 GB, free: 11.36 MB / 1.029 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003762/0.3661, allocations: 312.9 kB / 1.332 GB, free: 11 MB / 1.029 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.625e-06/0.3661, allocations: 0 / 1.332 GB, free: 11 MB / 1.029 GB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0005616/0.3667, allocations: 352.2 kB / 1.333 GB, free: 10.62 MB / 1.029 GB Notification: Performance of prepare postOptimizeDAE: time 9.816e-05/0.3668, allocations: 122.8 kB / 1.333 GB, free: 10.48 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.521e-06/0.3668, allocations: 0 / 1.333 GB, free: 10.48 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.814e-05/0.3668, allocations: 4.281 kB / 1.333 GB, free: 10.47 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001167/0.3669, allocations: 19.92 kB / 1.333 GB, free: 10.45 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.598e-06/0.3669, allocations: 4 kB / 1.333 GB, free: 10.45 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001026/0.367, allocations: 24.12 kB / 1.333 GB, free: 10.43 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.135e-05/0.3671, allocations: 12 kB / 1.333 GB, free: 10.41 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.0001878/0.3673, allocations: 201.1 kB / 1.333 GB, free: 10.2 MB / 1.029 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.611e-05/0.3673, allocations: 15.91 kB / 1.333 GB, free: 10.18 MB / 1.029 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.401e-05/0.3673, allocations: 17.41 kB / 1.333 GB, free: 10.16 MB / 1.029 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.514e-06/0.3673, allocations: 0 / 1.333 GB, free: 10.16 MB / 1.029 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.693e-06/0.3674, allocations: 4 kB / 1.333 GB, free: 10.15 MB / 1.029 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.276e-06/0.3674, allocations: 0 / 1.333 GB, free: 10.15 MB / 1.029 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007701/0.3681, allocations: 0.5632 MB / 1.334 GB, free: 9.527 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.452e-06/0.3681, allocations: 0 / 1.334 GB, free: 9.527 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.293e-05/0.3682, allocations: 11.98 kB / 1.334 GB, free: 9.516 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.229e-06/0.3682, allocations: 4 kB / 1.334 GB, free: 9.512 MB / 1.029 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.296e-05/0.3682, allocations: 8 kB / 1.334 GB, free: 9.504 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.583e-06/0.3682, allocations: 0 / 1.334 GB, free: 9.504 MB / 1.029 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.946e-06/0.3682, allocations: 3.938 kB / 1.334 GB, free: 9.5 MB / 1.029 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005884/0.3688, allocations: 414.6 kB / 1.334 GB, free: 9.066 MB / 1.029 GB Notification: Performance of postOpt removeConstants (simulation): time 1.801e-05/0.3688, allocations: 7.953 kB / 1.334 GB, free: 9.059 MB / 1.029 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.629e-05/0.3689, allocations: 4 kB / 1.334 GB, free: 9.055 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001139/0.369, allocations: 12 kB / 1.334 GB, free: 9.043 MB / 1.029 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.755e-05/0.369, allocations: 15.91 kB / 1.334 GB, free: 9.027 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.747e-05/0.3691, allocations: 7.984 kB / 1.334 GB, free: 9.02 MB / 1.029 GB Notification: Performance of sorting global known variables: time 0.000124/0.3692, allocations: 128.1 kB / 1.334 GB, free: 8.895 MB / 1.029 GB Notification: Performance of sort global known variables: time 7e-08/0.3692, allocations: 0 / 1.334 GB, free: 8.895 MB / 1.029 GB Notification: Performance of remove unused functions: time 0.0003055/0.3695, allocations: 43.89 kB / 1.334 GB, free: 8.852 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.001101/0.3706, allocations: 0.963 MB / 1.335 GB, free: 7.855 MB / 1.029 GB Notification: Performance of simCode: created initialization part: time 0.0005403/0.3711, allocations: 357.4 kB / 1.336 GB, free: 7.457 MB / 1.029 GB Notification: Performance of simCode: created event and clocks part: time 1.974e-06/0.3711, allocations: 0 / 1.336 GB, free: 7.457 MB / 1.029 GB Notification: Performance of simCode: created simulation system equations: time 0.0002526/0.3714, allocations: 178.8 kB / 1.336 GB, free: 7.258 MB / 1.029 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003221/0.3717, allocations: 26.12 kB / 1.336 GB, free: 7.234 MB / 1.029 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00271/0.3744, allocations: 2.122 MB / 1.338 GB, free: 4.965 MB / 1.029 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003414/0.3748, allocations: 0.7118 MB / 1.339 GB, free: 4.227 MB / 1.029 GB Notification: Performance of simCode: alias equations: time 6.885e-05/0.3748, allocations: 20.47 kB / 1.339 GB, free: 4.207 MB / 1.029 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.794e-05/0.3749, allocations: 39.42 kB / 1.339 GB, free: 4.168 MB / 1.029 GB Notification: Performance of SimCode: time 3.1e-07/0.3749, allocations: 0 / 1.339 GB, free: 4.168 MB / 1.029 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03237/0.4073, allocations: 3.845 MB / 1.342 GB, free: 488 kB / 1.029 GB Notification: Performance of buildModelFMU: Generate platform static: time 11.4/11.8, allocations: 14.09 kB / 1.342 GB, free: 480 kB / 1.029 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 & python3 -m fmpy simulate --output-file Buildings_12_Buildings.Utilities.IO.Files.Examples.CSVWriter_res.csv --start-time -1.21 --stop-time 10 --timeout 400 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.004484 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.csv","/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] "Error: Could not read variable cos.y in file Buildings_12_Buildings.Utilities.IO.Files.Examples.CSVWriter_res.csv. Warning: Get data of variable cos.y from file Buildings_12_Buildings.Utilities.IO.Files.Examples.CSVWriter_res.csv failed! Error: Could not read variable step.y in file Buildings_12_Buildings.Utilities.IO.Files.Examples.CSVWriter_res.csv. Warning: Get data of variable step.y from file Buildings_12_Buildings.Utilities.IO.Files.Examples.CSVWriter_res.csv failed! " [Timeout remaining time 300] Reference file matches [Calling sys.exit(0), Time elapsed: 18.69095507500242]