Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr IDEAS_IDEAS.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.001858/0.001858, allocations: 110.4 kB / 18.94 MB, free: 2.949 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.002575/0.002575, allocations: 220.3 kB / 22.26 MB, free: 5.125 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.508/1.508, allocations: 230.6 MB / 256 MB, free: 7.992 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0/package.mo): time 0.8633/0.8633, allocations: 134 MB / 446.4 MB, free: 10.27 MB / 350.1 MB " [Timeout remaining time 179] Using package IDEAS with version 3.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0/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(IDEAS.Utilities.IO.Files.Examples.CSVWriter,fileNamePrefix="IDEAS_IDEAS_Utilities_IO_Files_Examples_CSVWriter",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(IDEAS.Utilities.IO.Files.Examples.CSVWriter,fileNamePrefix="IDEAS_IDEAS_Utilities_IO_Files_Examples_CSVWriter",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: IDEAS 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.002003/0.002003, allocations: 63.59 kB / 0.6185 GB, free: 7.281 MB / 446.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1744/0.1764, allocations: 85.9 MB / 0.7024 GB, free: 1.457 MB / 0.5137 GB Notification: Performance of NFInst.instantiate(IDEAS.Utilities.IO.Files.Examples.CSVWriter): time 0.003472/0.1799, allocations: 1.635 MB / 0.704 GB, free: 15.81 MB / 0.5294 GB Notification: Performance of NFInst.instExpressions: time 0.001295/0.1812, allocations: 0.709 MB / 0.7047 GB, free: 15.1 MB / 0.5294 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001077/0.1813, allocations: 0 / 0.7047 GB, free: 15.1 MB / 0.5294 GB Notification: Performance of NFTyping.typeComponents: time 0.000177/0.1815, allocations: 19.8 kB / 0.7047 GB, free: 15.08 MB / 0.5294 GB Notification: Performance of NFTyping.typeBindings: time 0.0002733/0.1817, allocations: 50.75 kB / 0.7048 GB, free: 15.03 MB / 0.5294 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004879/0.1822, allocations: 127.7 kB / 0.7049 GB, free: 14.91 MB / 0.5294 GB Notification: Performance of NFFlatten.flatten: time 0.0003321/0.1825, allocations: 195.6 kB / 0.7051 GB, free: 14.71 MB / 0.5294 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001211/0.1827, allocations: 17.91 kB / 0.7051 GB, free: 14.7 MB / 0.5294 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002599/0.1829, allocations: 91.73 kB / 0.7052 GB, free: 14.61 MB / 0.5294 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001745/0.1831, allocations: 91.66 kB / 0.7053 GB, free: 14.52 MB / 0.5294 GB Notification: Performance of NFPackage.collectConstants: time 3.752e-05/0.1831, allocations: 16 kB / 0.7053 GB, free: 14.5 MB / 0.5294 GB Notification: Performance of NFFlatten.collectFunctions: time 9.506e-05/0.1832, allocations: 31.98 kB / 0.7053 GB, free: 14.47 MB / 0.5294 GB Notification: Performance of NFScalarize.scalarize: time 9.012e-05/0.1833, allocations: 27.92 kB / 0.7054 GB, free: 14.44 MB / 0.5294 GB Notification: Performance of NFVerifyModel.verify: time 0.0001223/0.1834, allocations: 83.64 kB / 0.7054 GB, free: 14.36 MB / 0.5294 GB Notification: Performance of NFConvertDAE.convert: time 0.0002869/0.1837, allocations: 171.3 kB / 0.7056 GB, free: 14.19 MB / 0.5294 GB Notification: Performance of FrontEnd - DAE generated: time 3.867e-06/0.1837, allocations: 0 / 0.7056 GB, free: 14.19 MB / 0.5294 GB Notification: Performance of FrontEnd: time 1.313e-06/0.1837, allocations: 4 kB / 0.7056 GB, free: 14.19 MB / 0.5294 GB Notification: Performance of Transformations before backend: time 8.796e-06/0.1837, allocations: 0 / 0.7056 GB, free: 14.19 MB / 0.5294 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.0007493/0.1845, allocations: 496.4 kB / 0.7061 GB, free: 13.65 MB / 0.5294 GB Notification: Performance of prepare preOptimizeDAE: time 4.338e-05/0.1845, allocations: 12.03 kB / 0.7061 GB, free: 13.64 MB / 0.5294 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.057e-05/0.1846, allocations: 46.67 kB / 0.7061 GB, free: 13.58 MB / 0.5294 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001791/0.1848, allocations: 28.84 kB / 0.7062 GB, free: 13.55 MB / 0.5294 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004026/0.1852, allocations: 182.4 kB / 0.7063 GB, free: 13.35 MB / 0.5294 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.027e-05/0.1852, allocations: 12.38 kB / 0.7064 GB, free: 13.34 MB / 0.5294 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.722e-05/0.1852, allocations: 8.375 kB / 0.7064 GB, free: 13.33 MB / 0.5294 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002958/0.1855, allocations: 121.5 kB / 0.7065 GB, free: 13.21 MB / 0.5294 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.729e-06/0.1855, allocations: 0 / 0.7065 GB, free: 13.21 MB / 0.5294 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.645e-05/0.1855, allocations: 4 kB / 0.7065 GB, free: 13.2 MB / 0.5294 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.428e-06/0.1855, allocations: 0 / 0.7065 GB, free: 13.2 MB / 0.5294 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002014/0.1857, allocations: 71.89 kB / 0.7065 GB, free: 13.13 MB / 0.5294 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007295/0.1865, allocations: 387.6 kB / 0.7069 GB, free: 12.71 MB / 0.5294 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000198/0.1867, allocations: 82.56 kB / 0.707 GB, free: 12.62 MB / 0.5294 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001579/0.1868, allocations: 64.81 kB / 0.7071 GB, free: 12.55 MB / 0.5294 GB Notification: Performance of preOpt evalFunc (simulation): time 2.057e-05/0.1869, allocations: 0 / 0.7071 GB, free: 12.55 MB / 0.5294 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002886/0.1871, allocations: 186.9 kB / 0.7072 GB, free: 12.35 MB / 0.5294 GB Notification: Performance of pre-optimization done (n=10): time 1.362e-06/0.1871, allocations: 0 / 0.7072 GB, free: 12.35 MB / 0.5294 GB Notification: Performance of matching and sorting (n=10): time 0.0007986/0.1879, allocations: 360.7 kB / 0.7076 GB, free: 11.98 MB / 0.5294 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.00011/0.1881, allocations: 162.2 kB / 0.7077 GB, free: 11.78 MB / 0.5294 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001942/0.1882, allocations: 176.8 kB / 0.7079 GB, free: 11.6 MB / 0.5294 GB Notification: Performance of collectPreVariables (initialization): time 3.029e-05/0.1883, allocations: 33.7 kB / 0.7079 GB, free: 11.56 MB / 0.5294 GB Notification: Performance of collectInitialEqns (initialization): time 8.514e-05/0.1884, allocations: 112.3 kB / 0.708 GB, free: 11.44 MB / 0.5294 GB Notification: Performance of collectInitialBindings (initialization): time 4.113e-05/0.1884, allocations: 31.77 kB / 0.7081 GB, free: 11.41 MB / 0.5294 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.708e-05/0.1885, allocations: 41.7 kB / 0.7081 GB, free: 11.36 MB / 0.5294 GB Notification: Performance of setup shared object (initialization): time 0.0001426/0.1886, allocations: 326.8 kB / 0.7084 GB, free: 11.04 MB / 0.5294 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001377/0.1888, allocations: 55.89 kB / 0.7085 GB, free: 10.98 MB / 0.5294 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001834/0.1889, allocations: 110.8 kB / 0.7086 GB, free: 10.85 MB / 0.5294 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003688/0.1893, allocations: 305 kB / 0.7089 GB, free: 10.49 MB / 0.5294 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.504e-06/0.1893, allocations: 3.938 kB / 0.7089 GB, free: 10.48 MB / 0.5294 GB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0005779/0.1899, allocations: 348.3 kB / 0.7092 GB, free: 10.11 MB / 0.5294 GB Notification: Performance of prepare postOptimizeDAE: time 9.383e-05/0.19, allocations: 122.8 kB / 0.7093 GB, free: 9.969 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.773e-06/0.19, allocations: 0 / 0.7093 GB, free: 9.969 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.887e-05/0.19, allocations: 4 kB / 0.7093 GB, free: 9.965 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001103/0.1901, allocations: 19.92 kB / 0.7093 GB, free: 9.945 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.285e-06/0.1901, allocations: 4 kB / 0.7094 GB, free: 9.941 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001076/0.1902, allocations: 19.88 kB / 0.7094 GB, free: 9.922 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.196e-05/0.1903, allocations: 12 kB / 0.7094 GB, free: 9.91 MB / 0.5294 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.0001838/0.1904, allocations: 204.5 kB / 0.7096 GB, free: 9.691 MB / 0.5294 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.699e-05/0.1905, allocations: 15.91 kB / 0.7096 GB, free: 9.676 MB / 0.5294 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.45e-05/0.1905, allocations: 21.39 kB / 0.7096 GB, free: 9.652 MB / 0.5294 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.745e-06/0.1905, allocations: 0 / 0.7096 GB, free: 9.652 MB / 0.5294 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.459e-06/0.1905, allocations: 0 / 0.7096 GB, free: 9.652 MB / 0.5294 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.641e-06/0.1905, allocations: 4 kB / 0.7096 GB, free: 9.648 MB / 0.5294 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008123/0.1913, allocations: 0.5554 MB / 0.7102 GB, free: 9.031 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.124e-06/0.1914, allocations: 4 kB / 0.7102 GB, free: 9.027 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.748e-05/0.1914, allocations: 11.98 kB / 0.7102 GB, free: 9.016 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.13e-06/0.1914, allocations: 4 kB / 0.7102 GB, free: 9.012 MB / 0.5294 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.451e-05/0.1914, allocations: 15.98 kB / 0.7102 GB, free: 8.996 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.773e-06/0.1915, allocations: 288 / 0.7102 GB, free: 8.996 MB / 0.5294 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.945e-06/0.1915, allocations: 3.938 kB / 0.7102 GB, free: 8.992 MB / 0.5294 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006074/0.1921, allocations: 414.5 kB / 0.7106 GB, free: 8.559 MB / 0.5294 GB Notification: Performance of postOpt removeConstants (simulation): time 2.252e-05/0.1921, allocations: 15.91 kB / 0.7106 GB, free: 8.543 MB / 0.5294 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.688e-05/0.1921, allocations: 4 kB / 0.7106 GB, free: 8.539 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001182/0.1922, allocations: 11.98 kB / 0.7106 GB, free: 8.527 MB / 0.5294 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.97e-05/0.1923, allocations: 15.92 kB / 0.7106 GB, free: 8.512 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.539e-05/0.1923, allocations: 4 kB / 0.7106 GB, free: 8.508 MB / 0.5294 GB Notification: Performance of sorting global known variables: time 0.0001299/0.1924, allocations: 137.1 kB / 0.7108 GB, free: 8.375 MB / 0.5294 GB Notification: Performance of sort global known variables: time 9e-08/0.1924, allocations: 0 / 0.7108 GB, free: 8.375 MB / 0.5294 GB Notification: Performance of remove unused functions: time 0.0003206/0.1928, allocations: 39.94 kB / 0.7108 GB, free: 8.336 MB / 0.5294 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.00113/0.1939, allocations: 0.9538 MB / 0.7117 GB, free: 7.352 MB / 0.5294 GB Notification: Performance of simCode: created initialization part: time 0.0005635/0.1944, allocations: 361.4 kB / 0.7121 GB, free: 6.949 MB / 0.5294 GB Notification: Performance of simCode: created event and clocks part: time 2.545e-06/0.1944, allocations: 0 / 0.7121 GB, free: 6.949 MB / 0.5294 GB Notification: Performance of simCode: created simulation system equations: time 0.0002447/0.1947, allocations: 182.8 kB / 0.7123 GB, free: 6.746 MB / 0.5294 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003416/0.195, allocations: 27.67 kB / 0.7123 GB, free: 6.719 MB / 0.5294 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003014/0.1981, allocations: 2.123 MB / 0.7144 GB, free: 4.453 MB / 0.5294 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003768/0.1984, allocations: 0.7124 MB / 0.7151 GB, free: 3.715 MB / 0.5294 GB Notification: Performance of simCode: alias equations: time 8.729e-05/0.1985, allocations: 20.47 kB / 0.7151 GB, free: 3.691 MB / 0.5294 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.39e-05/0.1986, allocations: 35.42 kB / 0.7151 GB, free: 3.656 MB / 0.5294 GB Notification: Performance of SimCode: time 9.01e-07/0.1986, allocations: 3.938 kB / 0.7151 GB, free: 3.652 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03403/0.2326, allocations: 3.847 MB / 0.7189 GB, free: 15.96 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate platform static: time 10.79/11.02, allocations: 2.188 kB / 0.7189 GB, free: 15.96 MB / 0.545 GB " [Timeout remaining time 649] (rm -f IDEAS_IDEAS.Utilities.IO.Files.Examples.CSVWriter.pipe ; mkfifo IDEAS_IDEAS.Utilities.IO.Files.Examples.CSVWriter.pipe ; head -c 1048576 < IDEAS_IDEAS.Utilities.IO.Files.Examples.CSVWriter.pipe >> ../files/IDEAS_IDEAS.Utilities.IO.Files.Examples.CSVWriter.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_IDEAS_IDEAS_Utilities_IO_Files_Examples_CSVWriter_fmu --startTime=-1.21 --stopTime=10 --stepSize=0.004484 --timeout=50 --tolerance=1e-06 IDEAS_IDEAS_Utilities_IO_Files_Examples_CSVWriter.fmu > IDEAS_IDEAS.Utilities.IO.Files.Examples.CSVWriter.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 14.763088717125356] Failed to read output from testmodel.py, exit status != 0: 11.130761932116002 11.148268541 10.961259288 Calling exit ...