Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr HanserModelica_HanserModelica.Electrical.TestBrush.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/Modelica 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/HanserModelica 2.0.0-master/package.mo", uses=false) Using package HanserModelica with version 2.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/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 Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 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: translateModel(HanserModelica.Electrical.TestBrush,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2000,variableFilter="",fileNamePrefix="HanserModelica_HanserModelica.Electrical.TestBrush") translateModel(HanserModelica.Electrical.TestBrush,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2000,variableFilter="",fileNamePrefix="HanserModelica_HanserModelica.Electrical.TestBrush") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.005404/0.005404, allocations: 100.8 kB / 15.73 MB, free: 6.051 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.354/1.354, allocations: 222.9 MB / 239.4 MB, free: 4.555 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001254/0.001254, allocations: 191.4 kB / 289.7 MB, free: 2.273 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/package.mo): time 0.03374/0.03374, allocations: 8.794 MB / 348.6 MB, free: 4.629 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001556/0.001556, allocations: 83.88 kB / 463.9 MB, free: 13.12 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1059/0.1075, allocations: 51.57 MB / 0.5034 GB, free: 9.512 MB / 350.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.Electrical.TestBrush): time 0.002947/0.1105, allocations: 1.762 MB / 0.5051 GB, free: 7.738 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0008094/0.1114, allocations: 0.4948 MB / 0.5056 GB, free: 7.238 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 4.985e-05/0.1114, allocations: 4 kB / 0.5056 GB, free: 7.234 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 4.702e-05/0.1115, allocations: 11.86 kB / 0.5056 GB, free: 7.223 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001018/0.1116, allocations: 19.84 kB / 0.5056 GB, free: 7.203 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001922/0.1118, allocations: 31.91 kB / 0.5056 GB, free: 7.172 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 9.464e-05/0.1119, allocations: 83.66 kB / 0.5057 GB, free: 7.09 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001205/0.112, allocations: 35.97 kB / 0.5058 GB, free: 7.055 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 7.441e-05/0.1121, allocations: 39.8 kB / 0.5058 GB, free: 7.016 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 6.084e-05/0.1122, allocations: 31.86 kB / 0.5058 GB, free: 6.984 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 1.712e-05/0.1122, allocations: 12 kB / 0.5058 GB, free: 6.973 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.43e-05/0.1123, allocations: 19.98 kB / 0.5059 GB, free: 6.953 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 2.683e-05/0.1123, allocations: 11.98 kB / 0.5059 GB, free: 6.941 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 4.427e-05/0.1123, allocations: 39.8 kB / 0.5059 GB, free: 6.902 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001423/0.1125, allocations: 103.7 kB / 0.506 GB, free: 6.801 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.268e-06/0.1125, allocations: 0 / 0.506 GB, free: 6.801 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.643e-06/0.1125, allocations: 0 / 0.506 GB, free: 6.801 MB / 350.1 MB Notification: Performance of Transformations before backend: time 9.779e-06/0.1125, allocations: 0 / 0.506 GB, free: 6.801 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: 15 * Number of variables: 15 Notification: Performance of Generate backend data structure: time 0.0004984/0.113, allocations: 395.1 kB / 0.5064 GB, free: 6.367 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.148e-05/0.1131, allocations: 8.031 kB / 0.5064 GB, free: 6.359 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.682e-05/0.1131, allocations: 8.844 kB / 0.5064 GB, free: 6.352 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001431/0.1133, allocations: 180.2 kB / 0.5066 GB, free: 6.137 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.327e-05/0.1133, allocations: 8.375 kB / 0.5066 GB, free: 6.129 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.709e-05/0.1133, allocations: 8.375 kB / 0.5066 GB, free: 6.121 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002052/0.1135, allocations: 91.59 kB / 0.5067 GB, free: 6.027 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.684e-06/0.1135, allocations: 4 kB / 0.5067 GB, free: 6.023 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.185e-05/0.1135, allocations: 4 kB / 0.5067 GB, free: 6.02 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.017e-06/0.1136, allocations: 4 kB / 0.5067 GB, free: 6.016 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000199/0.1138, allocations: 59.89 kB / 0.5067 GB, free: 5.957 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005366/0.1143, allocations: 395.5 kB / 0.5071 GB, free: 5.512 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001193/0.1144, allocations: 54.48 kB / 0.5072 GB, free: 5.449 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.307e-05/0.1145, allocations: 28.91 kB / 0.5072 GB, free: 5.418 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.823e-05/0.1146, allocations: 0 / 0.5072 GB, free: 5.418 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.105e-05/0.1146, allocations: 30.56 kB / 0.5072 GB, free: 5.379 MB / 350.1 MB Notification: Performance of pre-optimization done (n=2): time 7.61e-07/0.1146, allocations: 0 / 0.5072 GB, free: 5.379 MB / 350.1 MB Notification: Performance of matching and sorting (n=2): time 0.000337/0.1149, allocations: 97.52 kB / 0.5073 GB, free: 5.277 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.915e-05/0.115, allocations: 51.41 kB / 0.5074 GB, free: 5.215 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.544e-05/0.1151, allocations: 125.8 kB / 0.5075 GB, free: 5.082 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.819e-05/0.1151, allocations: 25.7 kB / 0.5075 GB, free: 5.051 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.267e-05/0.1151, allocations: 103.9 kB / 0.5076 GB, free: 4.945 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.328e-06/0.1152, allocations: 11.89 kB / 0.5076 GB, free: 4.934 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.437e-05/0.1152, allocations: 21.84 kB / 0.5076 GB, free: 4.906 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001027/0.1153, allocations: 314.8 kB / 0.5079 GB, free: 4.59 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.308e-05/0.1154, allocations: 23.97 kB / 0.508 GB, free: 4.566 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.537e-05/0.1155, allocations: 34.56 kB / 0.508 GB, free: 4.523 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001701/0.1157, allocations: 66.47 kB / 0.5081 GB, free: 4.449 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.563e-06/0.1157, allocations: 0 / 0.5081 GB, free: 4.449 MB / 350.1 MB Notification: Performance of matching and sorting (n=4) (initialization): time 0.0002012/0.1159, allocations: 81.59 kB / 0.5081 GB, free: 4.363 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.983e-05/0.1159, allocations: 5.562 kB / 0.5082 GB, free: 4.359 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.999e-06/0.1159, allocations: 0 / 0.5082 GB, free: 4.359 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.166e-05/0.1159, allocations: 15.97 kB / 0.5082 GB, free: 4.344 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.544e-05/0.116, allocations: 11.98 kB / 0.5082 GB, free: 4.332 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.108e-06/0.116, allocations: 0 / 0.5082 GB, free: 4.332 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.6e-05/0.1161, allocations: 8 kB / 0.5082 GB, free: 4.324 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.354e-06/0.1161, allocations: 7.984 kB / 0.5082 GB, free: 4.316 MB / 350.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (4): * Single equations (assignments): 4 * Array equations: 0 * Algorithm blocks: 0 * 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 6.9e-05/0.1162, allocations: 117.8 kB / 0.5083 GB, free: 4.191 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.49e-05/0.1162, allocations: 3.906 kB / 0.5083 GB, free: 4.188 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.496e-05/0.1162, allocations: 11.47 kB / 0.5083 GB, free: 4.172 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.613e-06/0.1162, allocations: 4 kB / 0.5083 GB, free: 4.168 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.437e-06/0.1163, allocations: 96 / 0.5083 GB, free: 4.168 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.149e-06/0.1163, allocations: 7.922 kB / 0.5083 GB, free: 4.16 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001656/0.1164, allocations: 185.6 kB / 0.5085 GB, free: 3.93 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.01e-07/0.1164, allocations: 0 / 0.5085 GB, free: 3.93 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.822e-05/0.1165, allocations: 7.984 kB / 0.5085 GB, free: 3.922 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.403e-06/0.1165, allocations: 0 / 0.5085 GB, free: 3.922 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.007e-06/0.1165, allocations: 7.938 kB / 0.5085 GB, free: 3.914 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.042e-06/0.1165, allocations: 0 / 0.5085 GB, free: 3.914 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.31e-07/0.1165, allocations: 0 / 0.5085 GB, free: 3.914 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002284/0.1168, allocations: 167.4 kB / 0.5087 GB, free: 3.734 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.294e-05/0.1168, allocations: 85.11 kB / 0.5088 GB, free: 3.633 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.674e-05/0.1169, allocations: 11.92 kB / 0.5088 GB, free: 3.621 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.674e-05/0.1169, allocations: 4 kB / 0.5088 GB, free: 3.617 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.777e-05/0.117, allocations: 0 / 0.5088 GB, free: 3.617 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.56e-06/0.117, allocations: 4 kB / 0.5088 GB, free: 3.613 MB / 350.1 MB Notification: Performance of sorting global known variables: time 4.806e-05/0.117, allocations: 95.73 kB / 0.5089 GB, free: 3.52 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.01e-07/0.117, allocations: 0 / 0.5089 GB, free: 3.52 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002386/0.1173, allocations: 31.84 kB / 0.5089 GB, free: 3.488 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: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (2): * Single equations (assignments): 2 * Array equations: 0 * Algorithm blocks: 0 * 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.0001156/0.1174, allocations: 103.5 kB / 0.509 GB, free: 3.379 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0002096/0.1176, allocations: 43.95 kB / 0.509 GB, free: 3.336 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 3.447e-06/0.1176, allocations: 4.188 kB / 0.5091 GB, free: 3.332 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 8.075e-05/0.1177, allocations: 19.98 kB / 0.5091 GB, free: 3.312 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002877/0.118, allocations: 7.938 kB / 0.5091 GB, free: 3.305 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003379/0.1184, allocations: 166.9 kB / 0.5092 GB, free: 3.113 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002764/0.1186, allocations: 0.6922 MB / 0.5099 GB, free: 2.395 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 3.25e-05/0.1187, allocations: 8.062 kB / 0.5099 GB, free: 2.387 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.286e-05/0.1187, allocations: 11.44 kB / 0.5099 GB, free: 2.379 MB / 350.1 MB Notification: Performance of SimCode: time 2.2e-07/0.1187, allocations: 0 / 0.5099 GB, free: 2.379 MB / 350.1 MB Notification: Performance of Templates: time 0.003143/0.1219, allocations: 0.705 MB / 0.5106 GB, free: 1.676 MB / 350.1 MB make -j1 -f HanserModelica_HanserModelica.Electrical.TestBrush.makefile (rm -f HanserModelica_HanserModelica.Electrical.TestBrush.pipe ; mkfifo HanserModelica_HanserModelica.Electrical.TestBrush.pipe ; head -c 1048576 < HanserModelica_HanserModelica.Electrical.TestBrush.pipe >> ../files/HanserModelica_HanserModelica.Electrical.TestBrush.sim & ./HanserModelica_HanserModelica.Electrical.TestBrush -abortSlowSimulation -alarm=480 -lv LOG_STATS > HanserModelica_HanserModelica.Electrical.TestBrush.pipe 2>&1)