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.01014/0.01014, allocations: 99.56 kB / 15.73 MB, free: 5.996 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.001745/0.001745, allocations: 199.7 kB / 16.68 MB, free: 5.918 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.453/1.453, allocations: 222.9 MB / 240.4 MB, free: 15.08 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ExternData 3.0.4-master/package.mo): time 0.01899/0.01899, allocations: 2.957 MB / 293.5 MB, free: 11.77 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001233/0.001233, allocations: 67.88 kB / 405.8 MB, free: 29.24 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09462/0.09587, allocations: 50.34 MB / 456.1 MB, free: 10.86 MB / 334.1 MB Notification: Performance of NFInst.instantiate(ExternData.Examples.CSVTest): time 0.00355/0.09945, allocations: 1.504 MB / 457.6 MB, free: 9.344 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002011/0.1015, allocations: 1.272 MB / 458.9 MB, free: 8.062 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.942e-05/0.1016, allocations: 0 / 458.9 MB, free: 8.062 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.0004409/0.1021, allocations: 47.72 kB / 458.9 MB, free: 8.016 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000137/0.1022, allocations: 39.72 kB / 459 MB, free: 7.977 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000331/0.1025, allocations: 79.77 kB / 459 MB, free: 7.898 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001384/0.1027, allocations: 59.84 kB / 459.1 MB, free: 7.84 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 5.035e-05/0.1028, allocations: 14.81 kB / 459.1 MB, free: 7.828 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 7.967e-05/0.1028, allocations: 23.92 kB / 459.1 MB, free: 7.805 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004195/0.1033, allocations: 27.84 kB / 459.2 MB, free: 7.777 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 1.768e-05/0.1033, allocations: 4 kB / 459.2 MB, free: 7.773 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001913/0.1035, allocations: 99.86 kB / 459.3 MB, free: 7.676 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 6.477e-05/0.1036, allocations: 19.92 kB / 459.3 MB, free: 7.656 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 6.856e-05/0.1036, allocations: 31.84 kB / 459.3 MB, free: 7.625 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002997/0.104, allocations: 143.6 kB / 459.5 MB, free: 7.484 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.039e-06/0.104, allocations: 0 / 459.5 MB, free: 7.484 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.513e-06/0.104, allocations: 0 / 459.5 MB, free: 7.484 MB / 334.1 MB Notification: Performance of Transformations before backend: time 6.472e-06/0.104, allocations: 4 kB / 459.5 MB, free: 7.48 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.0006209/0.1046, allocations: 421.8 kB / 459.9 MB, free: 7.016 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.928e-05/0.1047, allocations: 11.89 kB / 459.9 MB, free: 7.004 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.95e-05/0.1047, allocations: 38.73 kB / 459.9 MB, free: 6.957 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.727e-05/0.1048, allocations: 8.844 kB / 459.9 MB, free: 6.949 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003097/0.1051, allocations: 207.5 kB / 460.1 MB, free: 6.711 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.354e-05/0.1051, allocations: 4.375 kB / 460.1 MB, free: 6.707 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.254e-05/0.1051, allocations: 4.359 kB / 460.1 MB, free: 6.703 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001549/0.1053, allocations: 69.8 kB / 460.2 MB, free: 6.629 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.636e-06/0.1053, allocations: 3.938 kB / 460.2 MB, free: 6.625 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.188e-05/0.1053, allocations: 0 / 460.2 MB, free: 6.625 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.559e-06/0.1053, allocations: 3.938 kB / 460.2 MB, free: 6.621 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.774e-05/0.1054, allocations: 27.98 kB / 460.2 MB, free: 6.594 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000204/0.1056, allocations: 177.6 kB / 460.4 MB, free: 6.371 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 8.03e-05/0.1057, allocations: 50.56 kB / 460.5 MB, free: 6.312 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.337e-05/0.1058, allocations: 40.89 kB / 460.5 MB, free: 6.27 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.17e-05/0.1058, allocations: 4 kB / 460.5 MB, free: 6.266 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001732/0.106, allocations: 117 kB / 460.6 MB, free: 6.133 MB / 334.1 MB Notification: Performance of pre-optimization done (n=8): time 1.302e-06/0.106, allocations: 0 / 460.6 MB, free: 6.133 MB / 334.1 MB Notification: Performance of matching and sorting (n=8): time 0.0003656/0.1064, allocations: 195.4 kB / 460.8 MB, free: 5.93 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.464e-05/0.1064, allocations: 81.11 kB / 460.9 MB, free: 5.832 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001588/0.1066, allocations: 156.3 kB / 461.1 MB, free: 5.672 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 1.775e-05/0.1066, allocations: 25.7 kB / 461.1 MB, free: 5.641 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.815e-05/0.1067, allocations: 96.14 kB / 461.2 MB, free: 5.543 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.897e-05/0.1067, allocations: 23.64 kB / 461.2 MB, free: 5.52 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.758e-05/0.1068, allocations: 21.72 kB / 461.2 MB, free: 5.492 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001059/0.1069, allocations: 318.8 kB / 461.5 MB, free: 5.172 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.068e-05/0.1069, allocations: 27.98 kB / 461.6 MB, free: 5.145 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.954e-05/0.107, allocations: 31.88 kB / 461.6 MB, free: 5.113 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00012/0.1071, allocations: 120.2 kB / 461.7 MB, free: 4.98 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.814e-06/0.1071, allocations: 0 / 461.7 MB, free: 4.98 MB / 334.1 MB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0002016/0.1073, allocations: 171.2 kB / 461.9 MB, free: 4.801 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.824e-05/0.1074, allocations: 37.69 kB / 461.9 MB, free: 4.758 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.599e-06/0.1074, allocations: 0 / 461.9 MB, free: 4.758 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.268e-05/0.1074, allocations: 4 kB / 461.9 MB, free: 4.754 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.752e-05/0.1075, allocations: 4 kB / 461.9 MB, free: 4.75 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.2e-06/0.1075, allocations: 0 / 461.9 MB, free: 4.75 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.378e-05/0.1076, allocations: 7.906 kB / 461.9 MB, free: 4.742 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.101e-05/0.1076, allocations: 4 kB / 461.9 MB, free: 4.738 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.0001157/0.1077, allocations: 156.2 kB / 462.1 MB, free: 4.57 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.963e-05/0.1077, allocations: 15.84 kB / 462.1 MB, free: 4.555 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.129e-05/0.1078, allocations: 16.64 kB / 462.1 MB, free: 4.535 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.324e-06/0.1078, allocations: 0 / 462.1 MB, free: 4.535 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.82e-06/0.1078, allocations: 4 kB / 462.1 MB, free: 4.531 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.166e-06/0.1078, allocations: 0 / 462.1 MB, free: 4.531 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001609/0.108, allocations: 189.6 kB / 462.3 MB, free: 4.297 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.503e-06/0.108, allocations: 0 / 462.3 MB, free: 4.297 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.051e-05/0.108, allocations: 7.984 kB / 462.3 MB, free: 4.289 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.855e-06/0.108, allocations: 0 / 462.3 MB, free: 4.289 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.467e-05/0.108, allocations: 8 kB / 462.3 MB, free: 4.281 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.343e-06/0.108, allocations: 0 / 462.3 MB, free: 4.281 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.055e-06/0.1081, allocations: 4 kB / 462.3 MB, free: 4.277 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002667/0.1083, allocations: 214.6 kB / 462.5 MB, free: 4.043 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.714e-05/0.1084, allocations: 97.03 kB / 462.6 MB, free: 3.93 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.184e-05/0.1084, allocations: 7.938 kB / 462.6 MB, free: 3.922 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.75e-05/0.1085, allocations: 4 kB / 462.6 MB, free: 3.918 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.228e-05/0.1085, allocations: 0 / 462.6 MB, free: 3.918 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.738e-05/0.1086, allocations: 7.984 kB / 462.6 MB, free: 3.91 MB / 334.1 MB Notification: Performance of sorting global known variables: time 9.925e-05/0.1087, allocations: 122.4 kB / 462.8 MB, free: 3.793 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.1087, allocations: 0 / 462.8 MB, free: 3.793 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0002598/0.1089, allocations: 43.98 kB / 462.8 MB, free: 3.75 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.001304/0.1102, allocations: 0.8748 MB / 463.7 MB, free: 2.883 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0002272/0.1105, allocations: 159.4 kB / 463.8 MB, free: 2.715 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 6.472e-06/0.1105, allocations: 4 kB / 463.8 MB, free: 2.711 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001139/0.1106, allocations: 123.3 kB / 464 MB, free: 2.578 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002445/0.1109, allocations: 15.61 kB / 464 MB, free: 2.566 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001811/0.1127, allocations: 1.69 MB / 465.7 MB, free: 0.7891 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002379/0.113, allocations: 0.6924 MB / 466.4 MB, free: 72 kB / 334.1 MB Notification: Performance of simCode: alias equations: time 4.453e-05/0.113, allocations: 12.22 kB / 466.4 MB, free: 60 kB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.316e-05/0.1131, allocations: 27.42 kB / 466.4 MB, free: 32 kB / 334.1 MB Notification: Performance of SimCode: time 2.31e-07/0.1131, allocations: 0 / 466.4 MB, free: 32 kB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0234/0.1365, allocations: 3.027 MB / 469.4 MB, free: 13.08 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.789/7.925, allocations: 10.41 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)