Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ExternData_ExternData.Examples.CSVTest.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ExternData 3.0.4-master/package.mo", uses=false) Using package ExternData with version 3.0.4 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ExternData 3.0.4-master/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(ExternData.Examples.CSVTest,fileNamePrefix="ExternData_ExternData_Examples_CSVTest",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ExternData.Examples.CSVTest,fileNamePrefix="ExternData_ExternData_Examples_CSVTest",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001331/0.001331, allocations: 108 kB / 15.61 MB, free: 152 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001273/0.001273, allocations: 197 kB / 16.53 MB, free: 6.664 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.539/1.539, allocations: 222.9 MB / 240.2 MB, free: 4.406 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ExternData 3.0.4-master/package.mo): time 0.2471/0.2471, allocations: 2.925 MB / 293.3 MB, free: 3.215 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001543/0.001543, allocations: 64.12 kB / 354.8 MB, free: 3.656 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1366/0.1382, allocations: 50.34 MB / 405.1 MB, free: 1.266 MB / 334.1 MB Notification: Performance of NFInst.instantiate(ExternData.Examples.CSVTest): time 0.003997/0.1423, allocations: 1.501 MB / 406.6 MB, free: 15.75 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.002225/0.1445, allocations: 1.272 MB / 407.9 MB, free: 14.47 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001081/0.1446, allocations: 4 kB / 407.9 MB, free: 14.47 MB / 350.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ExternData 3.0.4-master/package.mo:53:3-77:14:writable] Warning: Pure function 'ExternData.CSVFile' contains a call to impure function 'ExternData.Types.ExternCSVFile.constructor'. Notification: Performance of NFTyping.typeComponents: time 0.0005291/0.1452, allocations: 43.78 kB / 407.9 MB, free: 14.43 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001358/0.1453, allocations: 31.84 kB / 408 MB, free: 14.39 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003698/0.1457, allocations: 79.78 kB / 408 MB, free: 14.32 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001718/0.1459, allocations: 63.78 kB / 408.1 MB, free: 14.25 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 6.148e-05/0.146, allocations: 7.984 kB / 408.1 MB, free: 14.25 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 9.644e-05/0.1461, allocations: 35.86 kB / 408.1 MB, free: 14.21 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01446/0.1605, allocations: 23.91 kB / 408.2 MB, free: 14.19 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 3.907e-05/0.1606, allocations: 4 kB / 408.2 MB, free: 14.18 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003275/0.1609, allocations: 103.8 kB / 408.3 MB, free: 14.08 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 8.663e-05/0.161, allocations: 15.94 kB / 408.3 MB, free: 14.07 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001043/0.1612, allocations: 35.78 kB / 408.3 MB, free: 14.03 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000422/0.1616, allocations: 135.9 kB / 408.5 MB, free: 13.9 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.105e-06/0.1616, allocations: 4 kB / 408.5 MB, free: 13.89 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.643e-06/0.1616, allocations: 0 / 408.5 MB, free: 13.89 MB / 350.1 MB Notification: Performance of Transformations before backend: time 7.183e-06/0.1616, allocations: 4 kB / 408.5 MB, free: 13.89 MB / 350.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 7 * Number of variables: 7 Notification: Performance of Generate backend data structure: time 0.000835/0.1625, allocations: 428.8 kB / 408.9 MB, free: 13.42 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.296e-05/0.1625, allocations: 11.89 kB / 408.9 MB, free: 13.41 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.812e-05/0.1626, allocations: 42.69 kB / 408.9 MB, free: 13.36 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.987e-05/0.1627, allocations: 8.844 kB / 409 MB, free: 13.35 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002971/0.163, allocations: 200 kB / 409.1 MB, free: 13.11 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.071e-05/0.163, allocations: 384 / 409.1 MB, free: 13.11 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.096e-05/0.163, allocations: 4.375 kB / 409.2 MB, free: 13.11 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001987/0.1632, allocations: 61.8 kB / 409.2 MB, free: 13.04 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.114e-05/0.1632, allocations: 7.984 kB / 409.2 MB, free: 13.04 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.303e-05/0.1633, allocations: 4 kB / 409.2 MB, free: 13.03 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.232e-06/0.1633, allocations: 0 / 409.2 MB, free: 13.03 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.405e-05/0.1634, allocations: 31.98 kB / 409.3 MB, free: 13 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002843/0.1637, allocations: 177.6 kB / 409.4 MB, free: 12.78 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 9.281e-05/0.1638, allocations: 58.5 kB / 409.5 MB, free: 12.71 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.004e-05/0.1639, allocations: 40.89 kB / 409.5 MB, free: 12.67 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.361e-05/0.1639, allocations: 0 / 409.5 MB, free: 12.67 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003284/0.1642, allocations: 117 kB / 409.6 MB, free: 12.54 MB / 350.1 MB Notification: Performance of pre-optimization done (n=8): time 2.334e-06/0.1642, allocations: 0 / 409.6 MB, free: 12.54 MB / 350.1 MB Notification: Performance of matching and sorting (n=8): time 0.0004489/0.1647, allocations: 191.3 kB / 409.8 MB, free: 12.34 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.658e-05/0.1648, allocations: 81.11 kB / 409.9 MB, free: 12.24 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001852/0.1649, allocations: 153.7 kB / 410.1 MB, free: 12.08 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.886e-05/0.165, allocations: 25.7 kB / 410.1 MB, free: 12.05 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.64e-05/0.165, allocations: 96.14 kB / 410.2 MB, free: 11.95 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.928e-05/0.1651, allocations: 23.73 kB / 410.2 MB, free: 11.93 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.99e-05/0.1652, allocations: 21.72 kB / 410.2 MB, free: 11.9 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001699/0.1653, allocations: 322.8 kB / 410.5 MB, free: 11.57 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.474e-05/0.1654, allocations: 27.98 kB / 410.6 MB, free: 11.55 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.887e-05/0.1655, allocations: 31.92 kB / 410.6 MB, free: 11.52 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001713/0.1657, allocations: 116.2 kB / 410.7 MB, free: 11.39 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.234e-06/0.1657, allocations: 0 / 410.7 MB, free: 11.39 MB / 350.1 MB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0002671/0.1659, allocations: 167.2 kB / 410.9 MB, free: 11.21 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.471e-05/0.166, allocations: 41.69 kB / 410.9 MB, free: 11.16 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.256e-06/0.166, allocations: 4 kB / 410.9 MB, free: 11.16 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.152e-05/0.1661, allocations: 0 / 410.9 MB, free: 11.16 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.635e-05/0.1661, allocations: 4 kB / 410.9 MB, free: 11.16 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.183e-06/0.1662, allocations: 0 / 410.9 MB, free: 11.16 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.126e-05/0.1662, allocations: 7.906 kB / 410.9 MB, free: 11.15 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.32e-05/0.1663, allocations: 4 kB / 410.9 MB, free: 11.14 MB / 350.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 7 (timeTable.nextEventScaled,timeTable.nextEvent,$PRE.timeTable.nextEvent,timeTable.last,timeTable.b,timeTable.a,$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (4): * Single equations (assignments): 3 * Array equations: 0 * Algorithm blocks: 1 * 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.0001356/0.1664, allocations: 157.7 kB / 411.1 MB, free: 10.98 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.067e-05/0.1664, allocations: 15.84 kB / 411.1 MB, free: 10.96 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.032e-05/0.1665, allocations: 12.7 kB / 411.1 MB, free: 10.95 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.713e-05/0.1665, allocations: 8 kB / 411.1 MB, free: 10.94 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.36e-06/0.1665, allocations: 0 / 411.1 MB, free: 10.94 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.707e-06/0.1665, allocations: 0 / 411.1 MB, free: 10.94 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001745/0.1667, allocations: 193.6 kB / 411.3 MB, free: 10.7 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.024e-06/0.1667, allocations: 0 / 411.3 MB, free: 10.7 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.439e-05/0.1667, allocations: 3.984 kB / 411.3 MB, free: 10.7 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.224e-06/0.1668, allocations: 4 kB / 411.3 MB, free: 10.7 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.531e-05/0.1668, allocations: 3.984 kB / 411.3 MB, free: 10.69 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.523e-06/0.1668, allocations: 0 / 411.3 MB, free: 10.69 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.273e-06/0.1668, allocations: 0 / 411.3 MB, free: 10.69 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002995/0.1671, allocations: 218.6 kB / 411.5 MB, free: 10.45 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.336e-05/0.1672, allocations: 92.94 kB / 411.6 MB, free: 10.34 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.126e-05/0.1672, allocations: 4 kB / 411.6 MB, free: 10.34 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.811e-05/0.1673, allocations: 8 kB / 411.6 MB, free: 10.33 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.147e-05/0.1673, allocations: 3.938 kB / 411.6 MB, free: 10.33 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.951e-05/0.1673, allocations: 7.984 kB / 411.6 MB, free: 10.32 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001093/0.1675, allocations: 115.3 kB / 411.8 MB, free: 10.21 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.21e-07/0.1675, allocations: 3.938 kB / 411.8 MB, free: 10.2 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002631/0.1677, allocations: 43.98 kB / 411.8 MB, free: 10.16 MB / 350.1 MB 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,timeTable.a,timeTable.b,timeTable.last,timeTable.nextEvent,timeTable.nextEventScaled) * Number of discrete states: 6 (timeTable.nextEvent,timeTable.last,timeTable.nextEventScaled,timeTable.b,timeTable.a,$whenCondition1) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (3): * Single equations (assignments): 2 * Array equations: 0 * Algorithm blocks: 1 * 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.00149/0.1692, allocations: 0.8713 MB / 412.7 MB, free: 9.305 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0002913/0.1695, allocations: 179.3 kB / 412.9 MB, free: 9.117 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.946e-06/0.1696, allocations: 0 / 412.9 MB, free: 9.117 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001295/0.1697, allocations: 119.4 kB / 413 MB, free: 8.988 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002299/0.1699, allocations: 12 kB / 413 MB, free: 8.977 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001967/0.1719, allocations: 1.67 MB / 414.7 MB, free: 7.219 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004861/0.1724, allocations: 0.7002 MB / 415.4 MB, free: 6.492 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 5.325e-05/0.1725, allocations: 15.92 kB / 415.4 MB, free: 6.477 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.054e-05/0.1725, allocations: 19.44 kB / 415.4 MB, free: 6.457 MB / 350.1 MB Notification: Performance of SimCode: time 7.71e-07/0.1725, allocations: 0 / 415.4 MB, free: 6.457 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02711/0.1997, allocations: 2.941 MB / 418.3 MB, free: 3.57 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.621/7.82, allocations: 6.562 kB / 418.3 MB, free: 3.566 MB / 350.1 MB (rm -f ExternData_ExternData.Examples.CSVTest.pipe ; mkfifo ExternData_ExternData.Examples.CSVTest.pipe ; head -c 1048576 < ExternData_ExternData.Examples.CSVTest.pipe >> ../files/ExternData_ExternData.Examples.CSVTest.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_ExternData_ExternData_Examples_CSVTest_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 ExternData_ExternData_Examples_CSVTest.fmu > ExternData_ExternData.Examples.CSVTest.pipe 2>&1)