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.005402/0.005402, allocations: 102 kB / 15.73 MB, free: 6.039 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001248/0.001248, allocations: 194.2 kB / 16.67 MB, free: 5.961 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.292/1.292, allocations: 222.9 MB / 240.4 MB, free: 15.14 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ExternData 3.0.4-master/package.mo): time 0.01613/0.01613, allocations: 2.959 MB / 293.5 MB, free: 11.76 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001174/0.001175, allocations: 59.91 kB / 405.8 MB, free: 29.24 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07795/0.07914, allocations: 50.34 MB / 456.1 MB, free: 10.86 MB / 334.1 MB Notification: Performance of NFInst.instantiate(ExternData.Examples.CSVTest): time 0.002672/0.08186, allocations: 1.504 MB / 457.6 MB, free: 9.344 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001616/0.0835, allocations: 1.276 MB / 458.9 MB, free: 8.059 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.351e-05/0.08357, allocations: 7.938 kB / 458.9 MB, free: 8.051 MB / 334.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.0003504/0.08393, allocations: 47.77 kB / 458.9 MB, free: 8.004 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 8.836e-05/0.08403, allocations: 35.78 kB / 459 MB, free: 7.969 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002542/0.08429, allocations: 75.8 kB / 459 MB, free: 7.895 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001114/0.08441, allocations: 59.84 kB / 459.1 MB, free: 7.836 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.161e-05/0.08446, allocations: 10.8 kB / 459.1 MB, free: 7.828 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 5.584e-05/0.08452, allocations: 31.86 kB / 459.1 MB, free: 7.797 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004187/0.08495, allocations: 23.86 kB / 459.2 MB, free: 7.773 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 1.512e-05/0.08497, allocations: 8 kB / 459.2 MB, free: 7.766 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001662/0.08515, allocations: 107.8 kB / 459.3 MB, free: 7.66 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 5.924e-05/0.08521, allocations: 19.92 kB / 459.3 MB, free: 7.641 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 4.863e-05/0.08527, allocations: 23.88 kB / 459.3 MB, free: 7.617 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002148/0.08549, allocations: 143.6 kB / 459.5 MB, free: 7.477 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.928e-06/0.0855, allocations: 0 / 459.5 MB, free: 7.477 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.393e-06/0.08551, allocations: 0 / 459.5 MB, free: 7.477 MB / 334.1 MB Notification: Performance of Transformations before backend: time 5.12e-06/0.08552, allocations: 0 / 459.5 MB, free: 7.477 MB / 334.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.0004813/0.08601, allocations: 421.8 kB / 459.9 MB, free: 7.012 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.613e-05/0.08605, allocations: 15.89 kB / 459.9 MB, free: 6.996 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.646e-05/0.0861, allocations: 34.75 kB / 459.9 MB, free: 6.953 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.013e-05/0.08614, allocations: 16.83 kB / 459.9 MB, free: 6.938 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002584/0.08641, allocations: 200 kB / 460.1 MB, free: 6.703 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.016e-05/0.08642, allocations: 4.375 kB / 460.1 MB, free: 6.699 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.176e-05/0.08644, allocations: 4.375 kB / 460.1 MB, free: 6.695 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001274/0.08657, allocations: 61.8 kB / 460.2 MB, free: 6.629 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.326e-06/0.08659, allocations: 4 kB / 460.2 MB, free: 6.625 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.796e-06/0.08661, allocations: 3.938 kB / 460.2 MB, free: 6.621 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.977e-06/0.08661, allocations: 0 / 460.2 MB, free: 6.621 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.342e-05/0.08669, allocations: 35.98 kB / 460.2 MB, free: 6.586 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00018/0.08687, allocations: 185.6 kB / 460.4 MB, free: 6.355 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 9.402e-05/0.08697, allocations: 54.5 kB / 460.5 MB, free: 6.293 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.639e-05/0.08705, allocations: 40.89 kB / 460.5 MB, free: 6.25 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.084e-06/0.08706, allocations: 0 / 460.5 MB, free: 6.25 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001668/0.08723, allocations: 113 kB / 460.6 MB, free: 6.121 MB / 334.1 MB Notification: Performance of pre-optimization done (n=8): time 1.162e-06/0.08725, allocations: 4 kB / 460.6 MB, free: 6.117 MB / 334.1 MB Notification: Performance of matching and sorting (n=8): time 0.0003539/0.08761, allocations: 187.2 kB / 460.8 MB, free: 5.922 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.835e-05/0.08769, allocations: 81.11 kB / 460.9 MB, free: 5.824 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001398/0.08783, allocations: 152.2 kB / 461 MB, free: 5.668 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 1.706e-05/0.08786, allocations: 29.7 kB / 461.1 MB, free: 5.633 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.944e-05/0.08793, allocations: 92.14 kB / 461.2 MB, free: 5.539 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.409e-05/0.08797, allocations: 19.66 kB / 461.2 MB, free: 5.52 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.624e-05/0.08803, allocations: 25.7 kB / 461.2 MB, free: 5.488 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001158/0.08815, allocations: 326.8 kB / 461.5 MB, free: 5.16 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.75e-05/0.08821, allocations: 24 kB / 461.5 MB, free: 5.137 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.352e-05/0.08826, allocations: 31.92 kB / 461.6 MB, free: 5.105 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001147/0.08838, allocations: 116.2 kB / 461.7 MB, free: 4.977 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.124e-06/0.08839, allocations: 0 / 461.7 MB, free: 4.977 MB / 334.1 MB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0002172/0.08861, allocations: 167.1 kB / 461.9 MB, free: 4.801 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.295e-05/0.08867, allocations: 37.7 kB / 461.9 MB, free: 4.758 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.062e-06/0.08868, allocations: 0 / 461.9 MB, free: 4.758 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.903e-05/0.0887, allocations: 3.984 kB / 461.9 MB, free: 4.754 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.242e-05/0.08878, allocations: 8 kB / 461.9 MB, free: 4.746 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.18e-06/0.08879, allocations: 0 / 461.9 MB, free: 4.746 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.379e-05/0.08886, allocations: 7.906 kB / 461.9 MB, free: 4.738 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.145e-05/0.08888, allocations: 4 kB / 461.9 MB, free: 4.734 MB / 334.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.0001153/0.089, allocations: 156.3 kB / 462.1 MB, free: 4.566 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.692e-05/0.08904, allocations: 19.78 kB / 462.1 MB, free: 4.547 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.246e-05/0.08907, allocations: 8.719 kB / 462.1 MB, free: 4.535 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.168e-06/0.08907, allocations: 7.984 kB / 462.1 MB, free: 4.527 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.306e-06/0.08908, allocations: 0 / 462.1 MB, free: 4.527 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.234e-06/0.08909, allocations: 4 kB / 462.1 MB, free: 4.523 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001381/0.08923, allocations: 193.5 kB / 462.3 MB, free: 4.285 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.092e-06/0.08924, allocations: 0 / 462.3 MB, free: 4.285 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.817e-05/0.08926, allocations: 0 / 462.3 MB, free: 4.285 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.753e-06/0.08928, allocations: 4 kB / 462.3 MB, free: 4.281 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.287e-05/0.08929, allocations: 3.984 kB / 462.3 MB, free: 4.277 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.062e-06/0.0893, allocations: 0 / 462.3 MB, free: 4.277 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.91e-07/0.0893, allocations: 0 / 462.3 MB, free: 4.277 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002654/0.08958, allocations: 218.6 kB / 462.5 MB, free: 4.039 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.204e-05/0.08965, allocations: 93.03 kB / 462.6 MB, free: 3.93 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.755e-05/0.08968, allocations: 15.94 kB / 462.6 MB, free: 3.914 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.103e-05/0.08974, allocations: 4 kB / 462.6 MB, free: 3.91 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.823e-05/0.08978, allocations: 3.938 kB / 462.6 MB, free: 3.906 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.676e-05/0.0898, allocations: 4 kB / 462.6 MB, free: 3.902 MB / 334.1 MB Notification: Performance of sorting global known variables: time 9.113e-05/0.0899, allocations: 122.4 kB / 462.8 MB, free: 3.785 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.0899, allocations: 0 / 462.8 MB, free: 3.785 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0002458/0.09015, allocations: 39.98 kB / 462.8 MB, free: 3.746 MB / 334.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.001468/0.09163, allocations: 0.8817 MB / 463.7 MB, free: 2.879 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0002545/0.09189, allocations: 167.3 kB / 463.8 MB, free: 2.703 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.725e-06/0.09191, allocations: 3.938 kB / 463.8 MB, free: 2.699 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001075/0.09202, allocations: 123.4 kB / 464 MB, free: 2.566 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002039/0.09223, allocations: 8 kB / 464 MB, free: 2.559 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001777/0.09402, allocations: 1.69 MB / 465.7 MB, free: 0.7812 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002421/0.09428, allocations: 0.6963 MB / 466.4 MB, free: 60 kB / 334.1 MB Notification: Performance of simCode: alias equations: time 4.041e-05/0.09433, allocations: 12 kB / 466.4 MB, free: 48 kB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.174e-05/0.09439, allocations: 23.42 kB / 466.4 MB, free: 24 kB / 334.1 MB Notification: Performance of SimCode: time 3.2e-07/0.09439, allocations: 0 / 466.4 MB, free: 24 kB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02076/0.1152, allocations: 3.023 MB / 469.4 MB, free: 13.07 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.633/7.748, allocations: 6.344 kB / 469.4 MB, free: 13.07 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)