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.0017/0.0017, allocations: 116.7 kB / 17.17 MB, free: 5.977 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.002148/0.002148, allocations: 209.6 kB / 20.13 MB, free: 3.035 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.544/1.544, allocations: 230.6 MB / 253.5 MB, free: 15.09 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 2.913/2.913, allocations: 0.49 GB / 0.7923 GB, free: 1.309 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="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Utilities.IO.Files.Examples.CSVWriter,fileNamePrefix="Buildings_12_Buildings_Utilities_IO_Files_Examples_CSVWriter",fmuType="cs",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.002304/0.002304, allocations: 67.89 kB / 1.15 GB, free: 15.34 MB / 0.9356 GB Notification: Performance of FrontEnd - Absyn->SCode: time 1.181/1.184, allocations: 176.1 MB / 1.321 GB, free: 24.74 MB / 1.061 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.IO.Files.Examples.CSVWriter): time 0.002539/1.186, allocations: 1.644 MB / 1.323 GB, free: 23.6 MB / 1.061 GB Notification: Performance of NFInst.instExpressions: time 0.0009064/1.187, allocations: 0.6966 MB / 1.324 GB, free: 23.12 MB / 1.061 GB Notification: Performance of NFInst.updateImplicitVariability: time 7.225e-05/1.187, allocations: 2.719 kB / 1.324 GB, free: 23.12 MB / 1.061 GB Notification: Performance of NFTyping.typeComponents: time 0.0001564/1.187, allocations: 24.69 kB / 1.324 GB, free: 23.1 MB / 1.061 GB Notification: Performance of NFTyping.typeBindings: time 0.0002016/1.188, allocations: 46.23 kB / 1.324 GB, free: 23.07 MB / 1.061 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003831/1.188, allocations: 124.6 kB / 1.324 GB, free: 23 MB / 1.061 GB Notification: Performance of NFFlatten.flatten: time 0.0002113/1.188, allocations: 185 kB / 1.324 GB, free: 22.93 MB / 1.061 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001061/1.188, allocations: 20.47 kB / 1.324 GB, free: 22.91 MB / 1.061 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001646/1.188, allocations: 89.77 kB / 1.324 GB, free: 22.88 MB / 1.061 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001054/1.189, allocations: 90.86 kB / 1.324 GB, free: 22.84 MB / 1.061 GB Notification: Performance of NFPackage.collectConstants: time 3.064e-05/1.189, allocations: 11.81 kB / 1.324 GB, free: 22.84 MB / 1.061 GB Notification: Performance of NFFlatten.collectFunctions: time 7.472e-05/1.189, allocations: 31.78 kB / 1.324 GB, free: 22.83 MB / 1.061 GB Notification: Performance of NFScalarize.scalarize: time 7.79e-05/1.189, allocations: 38.12 kB / 1.324 GB, free: 22.81 MB / 1.061 GB Notification: Performance of NFVerifyModel.verify: time 7.309e-05/1.189, allocations: 73.62 kB / 1.324 GB, free: 22.77 MB / 1.061 GB Notification: Performance of NFConvertDAE.convert: time 0.0002023/1.189, allocations: 173.7 kB / 1.325 GB, free: 22.7 MB / 1.061 GB Notification: Performance of FrontEnd - DAE generated: time 4.568e-06/1.189, allocations: 2.688 kB / 1.325 GB, free: 22.7 MB / 1.061 GB Notification: Performance of FrontEnd: time 1.633e-06/1.189, allocations: 3.938 kB / 1.325 GB, free: 22.7 MB / 1.061 GB Notification: Performance of Transformations before backend: time 5.871e-06/1.189, allocations: 0 / 1.325 GB, free: 22.7 MB / 1.061 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.0005785/1.19, allocations: 0.5609 MB / 1.325 GB, free: 22.14 MB / 1.061 GB Notification: Performance of prepare preOptimizeDAE: time 3.648e-05/1.19, allocations: 15.36 kB / 1.325 GB, free: 22.14 MB / 1.061 GB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 1.605e-05/1.19, allocations: 4.188 kB / 1.325 GB, free: 22.14 MB / 1.061 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.683e-05/1.19, allocations: 40.34 kB / 1.325 GB, free: 22.09 MB / 1.061 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001648/1.19, allocations: 28.34 kB / 1.325 GB, free: 22.09 MB / 1.061 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002466/1.19, allocations: 236.2 kB / 1.325 GB, free: 21.86 MB / 1.061 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.822e-05/1.19, allocations: 13.09 kB / 1.325 GB, free: 21.86 MB / 1.061 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.658e-05/1.19, allocations: 12.75 kB / 1.326 GB, free: 21.85 MB / 1.061 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002417/1.19, allocations: 119.8 kB / 1.326 GB, free: 21.79 MB / 1.061 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.056e-05/1.19, allocations: 0 / 1.326 GB, free: 21.79 MB / 1.061 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.602e-05/1.19, allocations: 6.844 kB / 1.326 GB, free: 21.79 MB / 1.061 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.609e-06/1.19, allocations: 2.906 kB / 1.326 GB, free: 21.79 MB / 1.061 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001803/1.191, allocations: 68.48 kB / 1.326 GB, free: 21.77 MB / 1.061 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005503/1.191, allocations: 417.7 kB / 1.326 GB, free: 21.45 MB / 1.061 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001708/1.191, allocations: 81.05 kB / 1.326 GB, free: 21.4 MB / 1.061 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001335/1.191, allocations: 69.05 kB / 1.326 GB, free: 21.38 MB / 1.061 GB Notification: Performance of preOpt evalFunc (simulation): time 2.828e-05/1.192, allocations: 0 / 1.326 GB, free: 21.38 MB / 1.061 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000219/1.192, allocations: 178.1 kB / 1.326 GB, free: 21.25 MB / 1.061 GB Notification: Performance of pre-optimization done (n=10): time 1.332e-06/1.192, allocations: 0 / 1.326 GB, free: 21.25 MB / 1.061 GB Notification: Performance of matching and sorting (n=10): time 0.0006546/1.192, allocations: 364.2 kB / 1.327 GB, free: 21.07 MB / 1.061 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.663e-05/1.192, allocations: 163.5 kB / 1.327 GB, free: 20.88 MB / 1.061 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001582/1.193, allocations: 180.1 kB / 1.327 GB, free: 20.75 MB / 1.061 GB Notification: Performance of collectPreVariables (initialization): time 2.149e-05/1.193, allocations: 29.42 kB / 1.327 GB, free: 20.72 MB / 1.061 GB Notification: Performance of collectInitialEqns (initialization): time 5.24e-05/1.193, allocations: 107.2 kB / 1.327 GB, free: 20.62 MB / 1.061 GB Notification: Performance of collectInitialBindings (initialization): time 2.783e-05/1.193, allocations: 31.61 kB / 1.327 GB, free: 20.6 MB / 1.061 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.316e-05/1.193, allocations: 43.22 kB / 1.327 GB, free: 20.57 MB / 1.061 GB Notification: Performance of setup shared object (initialization): time 7.847e-05/1.193, allocations: 329.8 kB / 1.328 GB, free: 20.25 MB / 1.061 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001615/1.193, allocations: 50.92 kB / 1.328 GB, free: 20.23 MB / 1.061 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001954/1.193, allocations: 102.5 kB / 1.328 GB, free: 20.16 MB / 1.061 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000324/1.194, allocations: 311.3 kB / 1.328 GB, free: 19.86 MB / 1.061 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.405e-06/1.194, allocations: 0 / 1.328 GB, free: 19.86 MB / 1.061 GB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0005472/1.194, allocations: 352 kB / 1.328 GB, free: 19.64 MB / 1.061 GB Notification: Performance of prepare postOptimizeDAE: time 5.672e-05/1.194, allocations: 120.7 kB / 1.328 GB, free: 19.52 MB / 1.061 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.903e-06/1.194, allocations: 1.562 kB / 1.328 GB, free: 19.52 MB / 1.061 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.081e-05/1.194, allocations: 10.89 kB / 1.329 GB, free: 19.51 MB / 1.061 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001235/1.194, allocations: 19.45 kB / 1.329 GB, free: 19.51 MB / 1.061 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.987e-06/1.194, allocations: 2.094 kB / 1.329 GB, free: 19.51 MB / 1.061 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001036/1.194, allocations: 16.92 kB / 1.329 GB, free: 19.5 MB / 1.061 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.835e-05/1.194, allocations: 16.31 kB / 1.329 GB, free: 19.49 MB / 1.061 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.0001548/1.195, allocations: 201 kB / 1.329 GB, free: 19.3 MB / 1.061 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.05e-05/1.195, allocations: 13.64 kB / 1.329 GB, free: 19.3 MB / 1.061 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.076e-05/1.195, allocations: 20.59 kB / 1.329 GB, free: 19.28 MB / 1.061 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.106e-06/1.195, allocations: 5.344 kB / 1.329 GB, free: 19.27 MB / 1.061 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.566e-06/1.195, allocations: 8.812 kB / 1.329 GB, free: 19.27 MB / 1.061 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.551e-06/1.195, allocations: 0 / 1.329 GB, free: 19.27 MB / 1.061 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001097/1.196, allocations: 0.5925 MB / 1.329 GB, free: 18.82 MB / 1.061 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.404e-06/1.196, allocations: 1.156 kB / 1.329 GB, free: 18.82 MB / 1.061 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001044/1.196, allocations: 11.33 kB / 1.329 GB, free: 18.82 MB / 1.061 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.589e-06/1.196, allocations: 0.875 kB / 1.329 GB, free: 18.82 MB / 1.061 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.036e-05/1.196, allocations: 5.281 kB / 1.329 GB, free: 18.82 MB / 1.061 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.757e-06/1.196, allocations: 8.438 kB / 1.329 GB, free: 18.81 MB / 1.061 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.202e-06/1.196, allocations: 0 / 1.329 GB, free: 18.81 MB / 1.061 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008507/1.197, allocations: 413.9 kB / 1.33 GB, free: 18.55 MB / 1.061 GB Notification: Performance of postOpt removeConstants (simulation): time 3.944e-05/1.197, allocations: 88.67 kB / 1.33 GB, free: 18.45 MB / 1.061 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.293e-05/1.197, allocations: 3.812 kB / 1.33 GB, free: 18.45 MB / 1.061 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001823/1.197, allocations: 13.42 kB / 1.33 GB, free: 18.45 MB / 1.061 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.876e-05/1.197, allocations: 14.69 kB / 1.33 GB, free: 18.44 MB / 1.061 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.985e-05/1.197, allocations: 5.781 kB / 1.33 GB, free: 18.44 MB / 1.061 GB Notification: Performance of sorting global known variables: time 0.0001379/1.197, allocations: 135.2 kB / 1.33 GB, free: 18.34 MB / 1.061 GB Notification: Performance of sort global known variables: time 1.3e-07/1.197, allocations: 0 / 1.33 GB, free: 18.34 MB / 1.061 GB Notification: Performance of remove unused functions: time 0.0004502/1.198, allocations: 31.34 kB / 1.33 GB, free: 18.34 MB / 1.061 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.001178/1.199, allocations: 0.976 MB / 1.331 GB, free: 17.54 MB / 1.061 GB Notification: Performance of simCode: created initialization part: time 0.0005135/1.199, allocations: 359.6 kB / 1.331 GB, free: 17.25 MB / 1.061 GB Notification: Performance of simCode: created event and clocks part: time 3.337e-06/1.199, allocations: 4.062 kB / 1.331 GB, free: 17.25 MB / 1.061 GB Notification: Performance of simCode: created simulation system equations: time 0.0002136/1.2, allocations: 180.6 kB / 1.332 GB, free: 17.1 MB / 1.061 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003223/1.2, allocations: 24.03 kB / 1.332 GB, free: 17.09 MB / 1.061 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002466/1.202, allocations: 2.124 MB / 1.334 GB, free: 15.43 MB / 1.061 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001664/1.203, allocations: 0.7137 MB / 1.334 GB, free: 14.72 MB / 1.061 GB Notification: Performance of simCode: alias equations: time 8.471e-05/1.203, allocations: 20.66 kB / 1.334 GB, free: 14.72 MB / 1.061 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.193e-05/1.203, allocations: 37.8 kB / 1.334 GB, free: 14.7 MB / 1.061 GB Notification: Performance of SimCode: time 2.8e-07/1.203, allocations: 0 / 1.334 GB, free: 14.7 MB / 1.061 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02989/1.233, allocations: 3.716 MB / 1.338 GB, free: 14.02 MB / 1.061 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.913/10.15, allocations: 17.45 kB / 1.338 GB, free: 14.02 MB / 1.061 GB " [Timeout remaining time 290] (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] [Calling os._exit(0), Time elapsed: 16.58192126004724] Failed to read output from testmodel.py, exit status != 0: 10.273963120009284 10.291449982 9.098588212 Calling exit ...