Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr BuildingSystems_BuildingSystems.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.001207/0.001207, allocations: 80.44 kB / 19.17 MB, free: 0.7422 MB / 13.93 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.0009907/0.0009907, allocations: 169.9 kB / 22.46 MB, free: 2.105 MB / 18.57 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 0.8505/0.8505, allocations: 177.1 MB / 202.8 MB, free: 5.73 MB / 186.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 master/package.mo): time 0.001556/0.001556, allocations: 240.6 kB / 259.4 MB, free: 13.01 MB / 250.7 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems master/package.mo): time 0.6996/0.6996, allocations: 138.4 MB / 454.3 MB, free: 29.97 MB / 410.7 MB " [Timeout remaining time 179] Using package BuildingSystems with version 2.0.0-beta (/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems master/package.mo) Using package NcDataReader2 with version 2.5.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 master/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(BuildingSystems.Utilities.IO.Files.Examples.CSVWriter,fileNamePrefix="BuildingSystems_BuildingSystems_Utilities_IO_Files_Examples_CSVWriter",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(BuildingSystems.Utilities.IO.Files.Examples.CSVWriter,fileNamePrefix="BuildingSystems_BuildingSystems_Utilities_IO_Files_Examples_CSVWriter",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.533e-06/1.533e-06, allocations: 0 / 0.6463 GB, free: 1.848 MB / 0.5573 GB Notification: Performance of FrontEnd - Absyn->SCode: time 1.825e-05/1.978e-05, allocations: 6.219 kB / 0.6463 GB, free: 1.84 MB / 0.5573 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Utilities.IO.Files.Examples.CSVWriter): time 0.002184/0.002204, allocations: 1.642 MB / 0.6479 GB, free: 188 kB / 0.5573 GB Notification: Performance of NFInst.instExpressions: time 0.2286/0.2308, allocations: 0.6314 MB / 0.6485 GB, free: 55.86 MB / 0.5573 GB Notification: Performance of NFInst.updateImplicitVariability: time 9.994e-05/0.2309, allocations: 3.688 kB / 0.6485 GB, free: 55.86 MB / 0.5573 GB Notification: Performance of NFTyping.typeComponents: time 0.0001742/0.2311, allocations: 29.28 kB / 0.6485 GB, free: 55.84 MB / 0.5573 GB Notification: Performance of NFTyping.typeBindings: time 0.0002294/0.2313, allocations: 36.67 kB / 0.6486 GB, free: 55.84 MB / 0.5573 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004557/0.2318, allocations: 127.9 kB / 0.6487 GB, free: 55.82 MB / 0.5573 GB Notification: Performance of NFFlatten.flatten: time 0.0003125/0.2321, allocations: 194.8 kB / 0.6489 GB, free: 55.81 MB / 0.5573 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001191/0.2322, allocations: 15.69 kB / 0.6489 GB, free: 55.81 MB / 0.5573 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002359/0.2324, allocations: 122 kB / 0.649 GB, free: 55.8 MB / 0.5573 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001127/0.2325, allocations: 73.41 kB / 0.6491 GB, free: 55.79 MB / 0.5573 GB Notification: Performance of NFPackage.collectConstants: time 3.789e-05/0.2326, allocations: 14.41 kB / 0.6491 GB, free: 55.79 MB / 0.5573 GB Notification: Performance of NFFlatten.collectFunctions: time 8.368e-05/0.2327, allocations: 32.53 kB / 0.6491 GB, free: 55.79 MB / 0.5573 GB Notification: Performance of NFScalarize.scalarize: time 8.243e-05/0.2327, allocations: 34.19 kB / 0.6492 GB, free: 55.78 MB / 0.5573 GB Notification: Performance of NFVerifyModel.verify: time 6.674e-05/0.2328, allocations: 53.06 kB / 0.6492 GB, free: 55.78 MB / 0.5573 GB Notification: Performance of NFConvertDAE.convert: time 0.0002735/0.2331, allocations: 193.8 kB / 0.6494 GB, free: 55.76 MB / 0.5573 GB Notification: Performance of FrontEnd - DAE generated: time 4.799e-06/0.2331, allocations: 0.5625 kB / 0.6494 GB, free: 55.76 MB / 0.5573 GB Notification: Performance of FrontEnd: time 1.543e-06/0.2331, allocations: 1.312 kB / 0.6494 GB, free: 55.76 MB / 0.5573 GB Notification: Performance of Transformations before backend: time 5.871e-06/0.2331, allocations: 1.391 kB / 0.6494 GB, free: 55.76 MB / 0.5573 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.0005298/0.2336, allocations: 496 kB / 0.6499 GB, free: 55.33 MB / 0.5573 GB Notification: Performance of prepare preOptimizeDAE: time 4.425e-05/0.2337, allocations: 15.28 kB / 0.6499 GB, free: 55.33 MB / 0.5573 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.895e-05/0.2337, allocations: 38.97 kB / 0.6499 GB, free: 55.29 MB / 0.5573 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001454/0.2338, allocations: 33.3 kB / 0.6499 GB, free: 55.28 MB / 0.5573 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003177/0.2342, allocations: 179.1 kB / 0.6501 GB, free: 55.14 MB / 0.5573 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.649e-05/0.2342, allocations: 7.656 kB / 0.6501 GB, free: 55.14 MB / 0.5573 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.339e-05/0.2342, allocations: 15.5 kB / 0.6501 GB, free: 55.14 MB / 0.5573 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002436/0.2344, allocations: 167.2 kB / 0.6503 GB, free: 55.05 MB / 0.5573 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.626e-06/0.2344, allocations: 3.906 kB / 0.6503 GB, free: 55.05 MB / 0.5573 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.443e-05/0.2345, allocations: 11.97 kB / 0.6503 GB, free: 55.04 MB / 0.5573 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.13e-06/0.2345, allocations: 0 / 0.6503 GB, free: 55.04 MB / 0.5573 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000144/0.2346, allocations: 133.7 kB / 0.6504 GB, free: 54.98 MB / 0.5573 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004894/0.2351, allocations: 358 kB / 0.6508 GB, free: 54.75 MB / 0.5573 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001509/0.2353, allocations: 146.4 kB / 0.6509 GB, free: 54.65 MB / 0.5573 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.596e-05/0.2353, allocations: 125.2 kB / 0.651 GB, free: 54.58 MB / 0.5573 GB Notification: Performance of preOpt evalFunc (simulation): time 2.501e-05/0.2354, allocations: 2.656 kB / 0.651 GB, free: 54.58 MB / 0.5573 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001851/0.2356, allocations: 242.4 kB / 0.6513 GB, free: 54.41 MB / 0.5573 GB Notification: Performance of pre-optimization done (n=10): time 2.114e-06/0.2356, allocations: 2.469 kB / 0.6513 GB, free: 54.41 MB / 0.5573 GB Notification: Performance of matching and sorting (n=10): time 0.000492/0.2361, allocations: 477.2 kB / 0.6517 GB, free: 54.18 MB / 0.5573 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.603e-05/0.2361, allocations: 166.5 kB / 0.6519 GB, free: 53.99 MB / 0.5573 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001132/0.2362, allocations: 181 kB / 0.6521 GB, free: 53.88 MB / 0.5573 GB Notification: Performance of collectPreVariables (initialization): time 1.367e-05/0.2362, allocations: 33.95 kB / 0.6521 GB, free: 53.85 MB / 0.5573 GB Notification: Performance of collectInitialEqns (initialization): time 4.144e-05/0.2363, allocations: 110.1 kB / 0.6522 GB, free: 53.76 MB / 0.5573 GB Notification: Performance of collectInitialBindings (initialization): time 1.981e-05/0.2363, allocations: 22.98 kB / 0.6522 GB, free: 53.75 MB / 0.5573 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.059e-05/0.2363, allocations: 41.23 kB / 0.6523 GB, free: 53.73 MB / 0.5573 GB Notification: Performance of setup shared object (initialization): time 4.05e-05/0.2364, allocations: 327.9 kB / 0.6526 GB, free: 53.42 MB / 0.5573 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001123/0.2365, allocations: 163.2 kB / 0.6527 GB, free: 53.29 MB / 0.5573 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001168/0.2366, allocations: 223.4 kB / 0.6529 GB, free: 53.1 MB / 0.5573 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001737/0.2368, allocations: 317.3 kB / 0.6532 GB, free: 52.83 MB / 0.5573 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.414e-06/0.2368, allocations: 1.969 kB / 0.6533 GB, free: 52.83 MB / 0.5573 GB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0003242/0.2371, allocations: 456 kB / 0.6537 GB, free: 52.49 MB / 0.5573 GB Notification: Performance of prepare postOptimizeDAE: time 4.995e-05/0.2372, allocations: 121.9 kB / 0.6538 GB, free: 52.36 MB / 0.5573 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.004e-06/0.2372, allocations: 1.906 kB / 0.6538 GB, free: 52.36 MB / 0.5573 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.617e-05/0.2372, allocations: 3.125 kB / 0.6538 GB, free: 52.36 MB / 0.5573 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.775e-05/0.2373, allocations: 21.3 kB / 0.6538 GB, free: 52.36 MB / 0.5573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.123e-06/0.2373, allocations: 5.469 kB / 0.6538 GB, free: 52.36 MB / 0.5573 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.488e-05/0.2373, allocations: 21.77 kB / 0.6539 GB, free: 52.34 MB / 0.5573 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.67e-05/0.2373, allocations: 8.641 kB / 0.6539 GB, free: 52.34 MB / 0.5573 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.0001007/0.2374, allocations: 201.9 kB / 0.6541 GB, free: 52.15 MB / 0.5573 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.212e-05/0.2375, allocations: 18.92 kB / 0.6541 GB, free: 52.14 MB / 0.5573 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.275e-05/0.2375, allocations: 19.08 kB / 0.6541 GB, free: 52.13 MB / 0.5573 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.288e-06/0.2375, allocations: 5.75 kB / 0.6541 GB, free: 52.13 MB / 0.5573 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.079e-06/0.2375, allocations: 0 / 0.6541 GB, free: 52.13 MB / 0.5573 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.858e-06/0.2375, allocations: 1.078 kB / 0.6541 GB, free: 52.13 MB / 0.5573 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004448/0.238, allocations: 0.5991 MB / 0.6547 GB, free: 51.67 MB / 0.5573 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.615e-06/0.238, allocations: 0.6562 kB / 0.6547 GB, free: 51.67 MB / 0.5573 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.838e-05/0.238, allocations: 12.94 kB / 0.6547 GB, free: 51.67 MB / 0.5573 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.639e-06/0.238, allocations: 1.812 kB / 0.6547 GB, free: 51.67 MB / 0.5573 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.446e-05/0.238, allocations: 9.375 kB / 0.6547 GB, free: 51.67 MB / 0.5573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.755e-06/0.238, allocations: 3.344 kB / 0.6547 GB, free: 51.67 MB / 0.5573 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.294e-06/0.238, allocations: 1.031 kB / 0.6547 GB, free: 51.67 MB / 0.5573 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003231/0.2383, allocations: 471.5 kB / 0.6552 GB, free: 51.34 MB / 0.5573 GB Notification: Performance of postOpt removeConstants (simulation): time 1.423e-05/0.2384, allocations: 17.95 kB / 0.6552 GB, free: 51.33 MB / 0.5573 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.395e-05/0.2384, allocations: 10.09 kB / 0.6552 GB, free: 51.33 MB / 0.5573 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.787e-05/0.2384, allocations: 10.55 kB / 0.6552 GB, free: 51.33 MB / 0.5573 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.16e-05/0.2385, allocations: 6.594 kB / 0.6552 GB, free: 51.33 MB / 0.5573 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.369e-05/0.2385, allocations: 11.69 kB / 0.6552 GB, free: 51.32 MB / 0.5573 GB Notification: Performance of sorting global known variables: time 6.185e-05/0.2386, allocations: 127 kB / 0.6553 GB, free: 51.24 MB / 0.5573 GB Notification: Performance of sort global known variables: time 7e-08/0.2386, allocations: 4.812 kB / 0.6553 GB, free: 51.24 MB / 0.5573 GB Notification: Performance of remove unused functions: time 0.0002049/0.2388, allocations: 37.5 kB / 0.6554 GB, free: 51.23 MB / 0.5573 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.0006081/0.2394, allocations: 1.031 MB / 0.6564 GB, free: 50.38 MB / 0.5573 GB Notification: Performance of simCode: created initialization part: time 0.0003242/0.2397, allocations: 0.515 MB / 0.6569 GB, free: 49.89 MB / 0.5573 GB Notification: Performance of simCode: created event and clocks part: time 2.244e-06/0.2397, allocations: 0 / 0.6569 GB, free: 49.89 MB / 0.5573 GB Notification: Performance of simCode: created simulation system equations: time 0.0001251/0.2398, allocations: 239.3 kB / 0.6571 GB, free: 49.69 MB / 0.5573 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002417/0.2401, allocations: 21 kB / 0.6571 GB, free: 49.68 MB / 0.5573 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001651/0.2417, allocations: 2.622 MB / 0.6597 GB, free: 47.46 MB / 0.5573 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 6.578e-05/0.2418, allocations: 105.5 kB / 0.6598 GB, free: 47.38 MB / 0.5573 GB Notification: Performance of simCode: alias equations: time 6.551e-05/0.2419, allocations: 19.42 kB / 0.6598 GB, free: 47.38 MB / 0.5573 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.534e-05/0.2419, allocations: 34.89 kB / 0.6598 GB, free: 47.36 MB / 0.5573 GB Notification: Performance of SimCode: time 1.082e-06/0.2419, allocations: 0 / 0.6598 GB, free: 47.36 MB / 0.5573 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01645/0.2584, allocations: 4.486 MB / 0.6642 GB, free: 46.22 MB / 0.5573 GB Notification: Performance of buildModelFMU: Generate platform static: time 6.471/6.729, allocations: 15.38 kB / 0.6642 GB, free: 46.21 MB / 0.5573 GB " [Timeout remaining time 653] (rm -f BuildingSystems_BuildingSystems.Utilities.IO.Files.Examples.CSVWriter.pipe ; mkfifo BuildingSystems_BuildingSystems.Utilities.IO.Files.Examples.CSVWriter.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Utilities.IO.Files.Examples.CSVWriter.pipe >> ../files/BuildingSystems_BuildingSystems.Utilities.IO.Files.Examples.CSVWriter.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_BuildingSystems_BuildingSystems_Utilities_IO_Files_Examples_CSVWriter_fmu --startTime=-1.21 --stopTime=10 --stepSize=0.004484 --timeout=50 --tolerance=1e-06 BuildingSystems_BuildingSystems_Utilities_IO_Files_Examples_CSVWriter.fmu > BuildingSystems_BuildingSystems.Utilities.IO.Files.Examples.CSVWriter.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 9.234087371267378] Failed to read output from testmodel.py, exit status != 0: 6.806806771084666 6.814391163 6.579433359 Calling exit ...