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.001359/0.001359, allocations: 113.5 kB / 19.73 MB, free: 2.242 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.001489/0.001489, allocations: 219.2 kB / 23.05 MB, free: 5.074 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.442/1.442, allocations: 230.6 MB / 256.8 MB, free: 7.973 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.303/3.303, allocations: 0.49 GB / 0.7959 GB, free: 33.54 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.001928/0.001928, allocations: 67.78 kB / 1.155 GB, free: 25.72 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3092/0.3112, allocations: 176.1 MB / 1.327 GB, free: 1.938 MB / 1.014 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.IO.Files.Examples.CSVWriter): time 0.003204/0.3144, allocations: 1.657 MB / 1.328 GB, free: 284 kB / 1.014 GB Notification: Performance of NFInst.instExpressions: time 0.001306/0.3157, allocations: 0.7013 MB / 1.329 GB, free: 15.57 MB / 1.029 GB Notification: Performance of NFInst.updateImplicitVariability: time 7.469e-05/0.3157, allocations: 7.938 kB / 1.329 GB, free: 15.56 MB / 1.029 GB Notification: Performance of NFTyping.typeComponents: time 0.0001686/0.3159, allocations: 15.86 kB / 1.329 GB, free: 15.55 MB / 1.029 GB Notification: Performance of NFTyping.typeBindings: time 0.0002544/0.3162, allocations: 51.69 kB / 1.329 GB, free: 15.5 MB / 1.029 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004714/0.3166, allocations: 123.7 kB / 1.329 GB, free: 15.38 MB / 1.029 GB Notification: Performance of NFFlatten.flatten: time 0.0003087/0.3169, allocations: 191.6 kB / 1.329 GB, free: 15.19 MB / 1.029 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001216/0.3171, allocations: 21.91 kB / 1.329 GB, free: 15.16 MB / 1.029 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002247/0.3173, allocations: 83.81 kB / 1.329 GB, free: 15.08 MB / 1.029 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001602/0.3175, allocations: 87.66 kB / 1.33 GB, free: 14.99 MB / 1.029 GB Notification: Performance of NFPackage.collectConstants: time 3.836e-05/0.3175, allocations: 16 kB / 1.33 GB, free: 14.98 MB / 1.029 GB Notification: Performance of NFFlatten.collectFunctions: time 8.746e-05/0.3176, allocations: 28 kB / 1.33 GB, free: 14.95 MB / 1.029 GB Notification: Performance of NFScalarize.scalarize: time 9.601e-05/0.3177, allocations: 39.83 kB / 1.33 GB, free: 14.91 MB / 1.029 GB Notification: Performance of NFVerifyModel.verify: time 0.0001138/0.3178, allocations: 75.66 kB / 1.33 GB, free: 14.84 MB / 1.029 GB Notification: Performance of NFConvertDAE.convert: time 0.000268/0.3181, allocations: 175.3 kB / 1.33 GB, free: 14.66 MB / 1.029 GB Notification: Performance of FrontEnd - DAE generated: time 4.479e-06/0.3181, allocations: 0 / 1.33 GB, free: 14.66 MB / 1.029 GB Notification: Performance of FrontEnd: time 1.503e-06/0.3181, allocations: 4 kB / 1.33 GB, free: 14.66 MB / 1.029 GB Notification: Performance of Transformations before backend: time 6.071e-06/0.3181, allocations: 0 / 1.33 GB, free: 14.66 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.000787/0.3189, allocations: 0.4886 MB / 1.33 GB, free: 14.12 MB / 1.029 GB Notification: Performance of prepare preOptimizeDAE: time 4.511e-05/0.3189, allocations: 12.03 kB / 1.33 GB, free: 14.11 MB / 1.029 GB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 1.291e-05/0.3189, allocations: 192 / 1.33 GB, free: 14.11 MB / 1.029 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.218e-05/0.319, allocations: 34.75 kB / 1.33 GB, free: 14.06 MB / 1.029 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001798/0.3191, allocations: 32.83 kB / 1.33 GB, free: 14.03 MB / 1.029 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003823/0.3195, allocations: 186.9 kB / 1.331 GB, free: 13.82 MB / 1.029 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.732e-05/0.3195, allocations: 12.38 kB / 1.331 GB, free: 13.81 MB / 1.029 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.456e-05/0.3196, allocations: 16.12 kB / 1.331 GB, free: 13.8 MB / 1.029 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002982/0.3199, allocations: 113.5 kB / 1.331 GB, free: 13.68 MB / 1.029 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.657e-06/0.3199, allocations: 0 / 1.331 GB, free: 13.68 MB / 1.029 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.839e-05/0.3199, allocations: 4 kB / 1.331 GB, free: 13.68 MB / 1.029 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.439e-06/0.3199, allocations: 0 / 1.331 GB, free: 13.68 MB / 1.029 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002104/0.3201, allocations: 79.88 kB / 1.331 GB, free: 13.6 MB / 1.029 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007085/0.3208, allocations: 383.7 kB / 1.331 GB, free: 13.18 MB / 1.029 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001946/0.321, allocations: 82.56 kB / 1.331 GB, free: 13.09 MB / 1.029 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001602/0.3212, allocations: 68.81 kB / 1.331 GB, free: 13.02 MB / 1.029 GB Notification: Performance of preOpt evalFunc (simulation): time 1.816e-05/0.3212, allocations: 4 kB / 1.331 GB, free: 13.02 MB / 1.029 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002919/0.3215, allocations: 182.8 kB / 1.331 GB, free: 12.81 MB / 1.029 GB Notification: Performance of pre-optimization done (n=10): time 1.492e-06/0.3215, allocations: 0 / 1.331 GB, free: 12.81 MB / 1.029 GB Notification: Performance of matching and sorting (n=10): time 0.0007983/0.3223, allocations: 352.8 kB / 1.332 GB, free: 12.45 MB / 1.029 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001292/0.3224, allocations: 170.2 kB / 1.332 GB, free: 12.25 MB / 1.029 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001965/0.3226, allocations: 175.6 kB / 1.332 GB, free: 12.06 MB / 1.029 GB Notification: Performance of collectPreVariables (initialization): time 4.02e-05/0.3226, allocations: 33.7 kB / 1.332 GB, free: 12.02 MB / 1.029 GB Notification: Performance of collectInitialEqns (initialization): time 8.884e-05/0.3227, allocations: 112.3 kB / 1.332 GB, free: 11.91 MB / 1.029 GB Notification: Performance of collectInitialBindings (initialization): time 3.529e-05/0.3228, allocations: 27.75 kB / 1.332 GB, free: 11.88 MB / 1.029 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.18e-05/0.3229, allocations: 45.69 kB / 1.332 GB, free: 11.83 MB / 1.029 GB Notification: Performance of setup shared object (initialization): time 0.0001795/0.323, allocations: 330.8 kB / 1.333 GB, free: 11.5 MB / 1.029 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001435/0.3232, allocations: 51.95 kB / 1.333 GB, free: 11.45 MB / 1.029 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001949/0.3234, allocations: 106.8 kB / 1.333 GB, free: 11.32 MB / 1.029 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003908/0.3238, allocations: 313 kB / 1.333 GB, free: 10.95 MB / 1.029 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.755e-06/0.3238, allocations: 0 / 1.333 GB, free: 10.95 MB / 1.029 GB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0006374/0.3244, allocations: 360.1 kB / 1.333 GB, free: 10.57 MB / 1.029 GB Notification: Performance of prepare postOptimizeDAE: time 8.965e-05/0.3245, allocations: 114.8 kB / 1.334 GB, free: 10.43 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.354e-06/0.3245, allocations: 4.281 kB / 1.334 GB, free: 10.43 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.42e-05/0.3245, allocations: 0 / 1.334 GB, free: 10.43 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001333/0.3246, allocations: 31.91 kB / 1.334 GB, free: 10.39 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.871e-06/0.3247, allocations: 3.938 kB / 1.334 GB, free: 10.39 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.941e-05/0.3248, allocations: 12.19 kB / 1.334 GB, free: 10.38 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.564e-05/0.3248, allocations: 15.94 kB / 1.334 GB, free: 10.36 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.0001865/0.325, allocations: 198.2 kB / 1.334 GB, free: 10.15 MB / 1.029 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.8e-05/0.325, allocations: 15.91 kB / 1.334 GB, free: 10.13 MB / 1.029 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.782e-05/0.325, allocations: 13.41 kB / 1.334 GB, free: 10.11 MB / 1.029 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.818e-06/0.325, allocations: 4 kB / 1.334 GB, free: 10.11 MB / 1.029 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.907e-06/0.325, allocations: 0 / 1.334 GB, free: 10.11 MB / 1.029 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.849e-06/0.3251, allocations: 3.984 kB / 1.334 GB, free: 10.11 MB / 1.029 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008197/0.3259, allocations: 0.5671 MB / 1.334 GB, free: 9.477 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.493e-06/0.3259, allocations: 0 / 1.334 GB, free: 9.477 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.738e-05/0.3259, allocations: 15.92 kB / 1.334 GB, free: 9.461 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.455e-06/0.3259, allocations: 0 / 1.334 GB, free: 9.461 MB / 1.029 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.234e-05/0.326, allocations: 4 kB / 1.334 GB, free: 9.457 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.547e-06/0.326, allocations: 3.938 kB / 1.334 GB, free: 9.453 MB / 1.029 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.005e-06/0.326, allocations: 3.984 kB / 1.334 GB, free: 9.449 MB / 1.029 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000615/0.3266, allocations: 414.7 kB / 1.335 GB, free: 9.016 MB / 1.029 GB Notification: Performance of postOpt removeConstants (simulation): time 1.839e-05/0.3266, allocations: 11.89 kB / 1.335 GB, free: 9.004 MB / 1.029 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.844e-05/0.3266, allocations: 8 kB / 1.335 GB, free: 8.996 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001162/0.3268, allocations: 7.938 kB / 1.335 GB, free: 8.988 MB / 1.029 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.597e-05/0.3268, allocations: 7.984 kB / 1.335 GB, free: 8.98 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.082e-05/0.3268, allocations: 11.98 kB / 1.335 GB, free: 8.969 MB / 1.029 GB Notification: Performance of sorting global known variables: time 0.0001168/0.3269, allocations: 124.1 kB / 1.335 GB, free: 8.848 MB / 1.029 GB Notification: Performance of sort global known variables: time 8e-08/0.3269, allocations: 0 / 1.335 GB, free: 8.848 MB / 1.029 GB Notification: Performance of remove unused functions: time 0.0003058/0.3273, allocations: 47.89 kB / 1.335 GB, free: 8.801 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.001138/0.3284, allocations: 0.9647 MB / 1.336 GB, free: 7.805 MB / 1.029 GB Notification: Performance of simCode: created initialization part: time 0.000553/0.3289, allocations: 357.5 kB / 1.336 GB, free: 7.406 MB / 1.029 GB Notification: Performance of simCode: created event and clocks part: time 1.973e-06/0.3289, allocations: 0 / 1.336 GB, free: 7.406 MB / 1.029 GB Notification: Performance of simCode: created simulation system equations: time 0.0002621/0.3292, allocations: 182.7 kB / 1.336 GB, free: 7.203 MB / 1.029 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003161/0.3295, allocations: 25.84 kB / 1.337 GB, free: 7.18 MB / 1.029 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002821/0.3323, allocations: 2.12 MB / 1.339 GB, free: 4.91 MB / 1.029 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003689/0.3327, allocations: 0.7158 MB / 1.339 GB, free: 4.168 MB / 1.029 GB Notification: Performance of simCode: alias equations: time 7.19e-05/0.3328, allocations: 16.48 kB / 1.339 GB, free: 4.152 MB / 1.029 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.293e-05/0.3329, allocations: 39.42 kB / 1.339 GB, free: 4.113 MB / 1.029 GB Notification: Performance of SimCode: time 4.31e-07/0.3329, allocations: 0 / 1.339 GB, free: 4.113 MB / 1.029 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02588/0.3587, allocations: 3.877 MB / 1.343 GB, free: 420 kB / 1.029 GB Notification: Performance of buildModelFMU: Generate platform static: time 11.81/12.17, allocations: 6.469 kB / 1.343 GB, free: 416 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 & /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: 18.999388169962913] Failed to read output from testmodel.py, exit status != 0: 12.327608476043679 12.343853665 12.022682036 Calling exit ...