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.5/package.mo", uses=false) Using package ExternData with version 3.0.5 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ExternData 3.0.5/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.005055/0.005054, allocations: 101 kB / 15.73 MB, free: 6.055 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.001345/0.001345, allocations: 192.8 kB / 16.67 MB, free: 5.969 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.436/1.436, allocations: 222.9 MB / 240.4 MB, free: 15.09 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ExternData 3.0.5/package.mo): time 0.03881/0.03881, allocations: 2.964 MB / 293.5 MB, free: 11.74 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001853/0.001853, allocations: 68.09 kB / 405.8 MB, free: 29.23 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0965/0.09836, allocations: 50.33 MB / 456.1 MB, free: 10.85 MB / 334.1 MB Notification: Performance of NFInst.instantiate(ExternData.Examples.CSVTest): time 0.003186/0.1016, allocations: 1.508 MB / 457.6 MB, free: 9.336 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002246/0.1039, allocations: 1.28 MB / 458.9 MB, free: 8.047 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.145e-05/0.104, allocations: 7.938 kB / 458.9 MB, free: 8.039 MB / 334.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ExternData 3.0.5/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.0004599/0.1044, allocations: 47.78 kB / 458.9 MB, free: 7.992 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 9.392e-05/0.1045, allocations: 27.84 kB / 459 MB, free: 7.965 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002939/0.1048, allocations: 75.8 kB / 459 MB, free: 7.891 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001528/0.105, allocations: 63.84 kB / 459.1 MB, free: 7.828 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 5.039e-05/0.1051, allocations: 16.25 kB / 459.1 MB, free: 7.812 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 6.702e-05/0.1051, allocations: 15.94 kB / 459.1 MB, free: 7.797 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003658/0.1055, allocations: 35.84 kB / 459.2 MB, free: 7.762 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 2.509e-05/0.1055, allocations: 7.938 kB / 459.2 MB, free: 7.754 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002676/0.1058, allocations: 95.91 kB / 459.3 MB, free: 7.66 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 7.548e-05/0.1059, allocations: 19.92 kB / 459.3 MB, free: 7.641 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001041/0.106, allocations: 31.8 kB / 459.3 MB, free: 7.609 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003493/0.1064, allocations: 139.5 kB / 459.5 MB, free: 7.473 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.23e-06/0.1064, allocations: 0 / 459.5 MB, free: 7.473 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.854e-06/0.1064, allocations: 3.938 kB / 459.5 MB, free: 7.469 MB / 334.1 MB Notification: Performance of Transformations before backend: time 6.222e-06/0.1064, allocations: 4 kB / 459.5 MB, free: 7.465 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.0007865/0.1072, allocations: 428.7 kB / 459.9 MB, free: 6.992 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.587e-05/0.1073, allocations: 11.89 kB / 459.9 MB, free: 6.98 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.056e-05/0.1074, allocations: 34.73 kB / 459.9 MB, free: 6.938 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.445e-05/0.1074, allocations: 12.89 kB / 459.9 MB, free: 6.926 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004978/0.1079, allocations: 200.2 kB / 460.1 MB, free: 6.691 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.396e-05/0.108, allocations: 384 / 460.1 MB, free: 6.691 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.564e-05/0.108, allocations: 4.375 kB / 460.1 MB, free: 6.688 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002116/0.1082, allocations: 65.73 kB / 460.2 MB, free: 6.617 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.263e-05/0.1082, allocations: 7.938 kB / 460.2 MB, free: 6.609 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.285e-05/0.1083, allocations: 4 kB / 460.2 MB, free: 6.605 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.016e-06/0.1083, allocations: 3.984 kB / 460.2 MB, free: 6.602 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001092/0.1084, allocations: 35.97 kB / 460.3 MB, free: 6.566 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003126/0.1087, allocations: 177.6 kB / 460.4 MB, free: 6.344 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001226/0.1089, allocations: 50.56 kB / 460.5 MB, free: 6.285 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001006/0.109, allocations: 40.89 kB / 460.5 MB, free: 6.242 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.032e-05/0.109, allocations: 4 kB / 460.5 MB, free: 6.238 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002505/0.1093, allocations: 117 kB / 460.6 MB, free: 6.105 MB / 334.1 MB Notification: Performance of pre-optimization done (n=8): time 2.014e-06/0.1093, allocations: 0 / 460.6 MB, free: 6.105 MB / 334.1 MB Notification: Performance of matching and sorting (n=8): time 0.0005361/0.1098, allocations: 183.3 kB / 460.8 MB, free: 5.914 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.179e-05/0.1099, allocations: 81.11 kB / 460.9 MB, free: 5.816 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002476/0.1102, allocations: 156.1 kB / 461.1 MB, free: 5.656 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.447e-05/0.1102, allocations: 25.7 kB / 461.1 MB, free: 5.625 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.497e-05/0.1103, allocations: 100.1 kB / 461.2 MB, free: 5.523 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.762e-05/0.1103, allocations: 15.84 kB / 461.2 MB, free: 5.508 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.642e-05/0.1104, allocations: 29.64 kB / 461.2 MB, free: 5.473 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001968/0.1106, allocations: 322.8 kB / 461.5 MB, free: 5.148 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.79e-05/0.1107, allocations: 24 kB / 461.6 MB, free: 5.125 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.918e-05/0.1108, allocations: 27.98 kB / 461.6 MB, free: 5.098 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000224/0.111, allocations: 128.3 kB / 461.7 MB, free: 4.957 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.314e-06/0.111, allocations: 0 / 461.7 MB, free: 4.957 MB / 334.1 MB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0003299/0.1114, allocations: 163.2 kB / 461.9 MB, free: 4.785 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.406e-05/0.1115, allocations: 45.69 kB / 461.9 MB, free: 4.734 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.951e-06/0.1115, allocations: 0 / 461.9 MB, free: 4.734 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.654e-05/0.1115, allocations: 0 / 461.9 MB, free: 4.734 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.892e-05/0.1116, allocations: 4 kB / 461.9 MB, free: 4.73 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.382e-06/0.1116, allocations: 0 / 461.9 MB, free: 4.73 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.901e-05/0.1117, allocations: 7.953 kB / 461.9 MB, free: 4.723 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.173e-05/0.1117, allocations: 4 kB / 461.9 MB, free: 4.719 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.000166/0.1119, allocations: 160.1 kB / 462.1 MB, free: 4.547 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.754e-05/0.1119, allocations: 15.89 kB / 462.1 MB, free: 4.531 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.201e-05/0.112, allocations: 16.7 kB / 462.1 MB, free: 4.512 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.523e-06/0.112, allocations: 0 / 462.1 MB, free: 4.512 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.898e-06/0.112, allocations: 4 kB / 462.1 MB, free: 4.508 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.455e-06/0.112, allocations: 0 / 462.1 MB, free: 4.508 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001762/0.1122, allocations: 189.6 kB / 462.3 MB, free: 4.273 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.252e-06/0.1122, allocations: 0 / 462.3 MB, free: 4.273 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.045e-05/0.1122, allocations: 0 / 462.3 MB, free: 4.273 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.891e-06/0.1122, allocations: 11.94 kB / 462.3 MB, free: 4.262 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.53e-05/0.1123, allocations: 3.984 kB / 462.3 MB, free: 4.258 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.392e-06/0.1123, allocations: 0 / 462.3 MB, free: 4.258 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.21e-07/0.1123, allocations: 0 / 462.3 MB, free: 4.258 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003087/0.1126, allocations: 218.7 kB / 462.5 MB, free: 4.02 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.682e-05/0.1127, allocations: 92.98 kB / 462.6 MB, free: 3.91 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.825e-05/0.1127, allocations: 4 kB / 462.6 MB, free: 3.906 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.611e-05/0.1128, allocations: 0 / 462.6 MB, free: 3.906 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.338e-05/0.1128, allocations: 8 kB / 462.6 MB, free: 3.898 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.63e-05/0.1128, allocations: 4 kB / 462.6 MB, free: 3.895 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0001199/0.1129, allocations: 122.4 kB / 462.8 MB, free: 3.777 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.7e-07/0.113, allocations: 4 kB / 462.8 MB, free: 3.773 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0002534/0.1132, allocations: 39.92 kB / 462.8 MB, free: 3.734 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.001564/0.1148, allocations: 0.8833 MB / 463.7 MB, free: 2.855 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0002919/0.1151, allocations: 171.3 kB / 463.9 MB, free: 2.676 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.124e-06/0.1151, allocations: 0 / 463.9 MB, free: 2.676 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001409/0.1152, allocations: 123.3 kB / 464 MB, free: 2.543 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002386/0.1155, allocations: 15.98 kB / 464 MB, free: 2.527 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002266/0.1178, allocations: 1.686 MB / 465.7 MB, free: 0.7539 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004124/0.1182, allocations: 0.6885 MB / 466.4 MB, free: 40 kB / 334.1 MB Notification: Performance of simCode: alias equations: time 5.377e-05/0.1183, allocations: 8 kB / 466.4 MB, free: 32 kB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.831e-05/0.1183, allocations: 27.61 kB / 466.4 MB, free: 4 kB / 334.1 MB Notification: Performance of SimCode: time 5.91e-07/0.1184, allocations: 4.047 kB / 466.4 MB, free: 16 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02674/0.1451, allocations: 2.986 MB / 469.4 MB, free: 13.08 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.189/8.335, allocations: 5.922 kB / 469.4 MB, free: 13.08 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)