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.001321/0.00132, allocations: 107.3 kB / 15.33 MB, free: 0.5039 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.461/1.461, allocations: 222.9 MB / 239 MB, free: 4.738 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.001296/0.001296, allocations: 196.4 kB / 289.3 MB, free: 2.469 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/package.mo): time 0.03303/0.03303, allocations: 8.79 MB / 348.2 MB, free: 4.852 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.003278/0.003278, allocations: 77.38 kB / 410.6 MB, free: 42.39 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1304/0.1337, allocations: 51.57 MB / 462.1 MB, free: 14.76 MB / 302.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.Electrical.TestBrush): time 0.00398/0.1377, allocations: 1.828 MB / 464 MB, free: 12.91 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001011/0.1387, allocations: 0.4911 MB / 464.5 MB, free: 12.41 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001165/0.1389, allocations: 0 / 464.5 MB, free: 12.41 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 8.075e-05/0.139, allocations: 7.922 kB / 464.5 MB, free: 12.41 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001405/0.1392, allocations: 19.84 kB / 464.5 MB, free: 12.39 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002821/0.1395, allocations: 23.92 kB / 464.5 MB, free: 12.36 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001421/0.1396, allocations: 87.66 kB / 464.6 MB, free: 12.28 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001562/0.1398, allocations: 27.98 kB / 464.6 MB, free: 12.25 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001051/0.1399, allocations: 35.91 kB / 464.7 MB, free: 12.21 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 6.608e-05/0.14, allocations: 31.86 kB / 464.7 MB, free: 12.18 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 1.941e-05/0.14, allocations: 8 kB / 464.7 MB, free: 12.18 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.562e-05/0.1401, allocations: 19.98 kB / 464.7 MB, free: 12.16 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 2.218e-05/0.1401, allocations: 19.92 kB / 464.7 MB, free: 12.14 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 5.538e-05/0.1402, allocations: 47.73 kB / 464.8 MB, free: 12.09 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001737/0.1404, allocations: 99.95 kB / 464.9 MB, free: 11.99 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.1e-06/0.1404, allocations: 0 / 464.9 MB, free: 11.99 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.463e-06/0.1404, allocations: 0 / 464.9 MB, free: 11.99 MB / 302.1 MB Notification: Performance of Transformations before backend: time 6.271e-06/0.1404, allocations: 0 / 464.9 MB, free: 11.99 MB / 302.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.0005927/0.141, allocations: 391.2 kB / 465.3 MB, free: 11.56 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.456e-05/0.141, allocations: 8.031 kB / 465.3 MB, free: 11.55 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.625e-05/0.1411, allocations: 8.844 kB / 465.3 MB, free: 11.55 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001623/0.1413, allocations: 180.3 kB / 465.5 MB, free: 11.33 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.517e-05/0.1413, allocations: 384 / 465.5 MB, free: 11.33 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.599e-05/0.1413, allocations: 8.375 kB / 465.5 MB, free: 11.32 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002633/0.1416, allocations: 97.84 kB / 465.6 MB, free: 11.22 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.908e-06/0.1416, allocations: 0 / 465.6 MB, free: 11.22 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.367e-05/0.1416, allocations: 4 kB / 465.6 MB, free: 11.22 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.769e-06/0.1416, allocations: 3.938 kB / 465.6 MB, free: 11.21 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002186/0.1419, allocations: 67.94 kB / 465.6 MB, free: 11.15 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006957/0.1426, allocations: 403.4 kB / 466 MB, free: 10.7 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001438/0.1427, allocations: 38.5 kB / 466.1 MB, free: 10.65 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.19e-05/0.1428, allocations: 32.89 kB / 466.1 MB, free: 10.62 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.975e-05/0.1429, allocations: 0 / 466.1 MB, free: 10.62 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.355e-05/0.1429, allocations: 30.56 kB / 466.1 MB, free: 10.58 MB / 302.1 MB Notification: Performance of pre-optimization done (n=2): time 9.62e-07/0.1429, allocations: 4 kB / 466.1 MB, free: 10.57 MB / 302.1 MB Notification: Performance of matching and sorting (n=2): time 0.0004311/0.1433, allocations: 97.42 kB / 466.2 MB, free: 10.47 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.111e-05/0.1434, allocations: 55.53 kB / 466.3 MB, free: 10.41 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001321/0.1435, allocations: 121.8 kB / 466.4 MB, free: 10.28 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 1.603e-05/0.1436, allocations: 25.7 kB / 466.4 MB, free: 10.25 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.076e-05/0.1436, allocations: 108 kB / 466.5 MB, free: 10.14 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.153e-05/0.1437, allocations: 7.891 kB / 466.5 MB, free: 10.13 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.069e-05/0.1437, allocations: 17.72 kB / 466.6 MB, free: 10.11 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.000127/0.1439, allocations: 310.8 kB / 466.9 MB, free: 9.793 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.634e-05/0.1439, allocations: 23.97 kB / 466.9 MB, free: 9.77 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.063e-05/0.144, allocations: 38.56 kB / 466.9 MB, free: 9.723 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001652/0.1442, allocations: 62.47 kB / 467 MB, free: 9.652 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.745e-06/0.1442, allocations: 4 kB / 467 MB, free: 9.648 MB / 302.1 MB Notification: Performance of matching and sorting (n=4) (initialization): time 0.0002295/0.1445, allocations: 85.59 kB / 467.1 MB, free: 9.559 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.858e-05/0.1445, allocations: 8 kB / 467.1 MB, free: 9.551 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.621e-06/0.1445, allocations: 0 / 467.1 MB, free: 9.551 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.875e-05/0.1445, allocations: 3.938 kB / 467.1 MB, free: 9.547 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001003/0.1446, allocations: 11.98 kB / 467.1 MB, free: 9.535 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.135e-06/0.1447, allocations: 4 kB / 467.1 MB, free: 9.531 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.165e-05/0.1447, allocations: 15.94 kB / 467.1 MB, free: 9.516 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.197e-06/0.1447, allocations: 0 / 467.1 MB, free: 9.516 MB / 302.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 8.59e-05/0.1448, allocations: 121.8 kB / 467.2 MB, free: 9.387 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.838e-05/0.1449, allocations: 4 kB / 467.2 MB, free: 9.383 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.308e-05/0.1449, allocations: 11.47 kB / 467.2 MB, free: 9.371 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.713e-06/0.1449, allocations: 0 / 467.2 MB, free: 9.371 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.843e-06/0.1449, allocations: 4 kB / 467.2 MB, free: 9.367 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.266e-06/0.145, allocations: 3.938 kB / 467.2 MB, free: 9.363 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002027/0.1452, allocations: 177.6 kB / 467.4 MB, free: 9.141 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.502e-06/0.1452, allocations: 4 kB / 467.4 MB, free: 9.137 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.437e-05/0.1452, allocations: 15.98 kB / 467.4 MB, free: 9.121 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.555e-06/0.1452, allocations: 0 / 467.4 MB, free: 9.121 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.022e-05/0.1453, allocations: 3.938 kB / 467.4 MB, free: 9.117 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.663e-06/0.1453, allocations: 0 / 467.4 MB, free: 9.117 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.72e-07/0.1453, allocations: 0 / 467.4 MB, free: 9.117 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002372/0.1455, allocations: 175.4 kB / 467.6 MB, free: 8.93 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.165e-05/0.1456, allocations: 77.11 kB / 467.7 MB, free: 8.836 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.597e-05/0.1456, allocations: 3.938 kB / 467.7 MB, free: 8.832 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.396e-05/0.1457, allocations: 7.984 kB / 467.7 MB, free: 8.824 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.321e-05/0.1457, allocations: 7.938 kB / 467.7 MB, free: 8.816 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.172e-06/0.1457, allocations: 4 kB / 467.7 MB, free: 8.812 MB / 302.1 MB Notification: Performance of sorting global known variables: time 6.081e-05/0.1458, allocations: 95.27 kB / 467.8 MB, free: 8.719 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.1458, allocations: 0 / 467.8 MB, free: 8.719 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0002338/0.146, allocations: 19.84 kB / 467.8 MB, free: 8.699 MB / 302.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.0001259/0.1462, allocations: 103.3 kB / 467.9 MB, free: 8.59 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0002119/0.1464, allocations: 51.89 kB / 468 MB, free: 8.539 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 1.994e-06/0.1464, allocations: 0 / 468 MB, free: 8.539 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 7.786e-05/0.1465, allocations: 19.98 kB / 468 MB, free: 8.52 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002966/0.1468, allocations: 14.89 kB / 468 MB, free: 8.508 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003628/0.1472, allocations: 182.9 kB / 468.2 MB, free: 8.297 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002359/0.1474, allocations: 0.6885 MB / 468.9 MB, free: 7.582 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 3.105e-05/0.1474, allocations: 8 kB / 468.9 MB, free: 7.574 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.281e-05/0.1475, allocations: 11.44 kB / 468.9 MB, free: 7.562 MB / 302.1 MB Notification: Performance of SimCode: time 2.21e-07/0.1475, allocations: 0 / 468.9 MB, free: 7.562 MB / 302.1 MB Notification: Performance of Templates: time 0.002937/0.1504, allocations: 0.6497 MB / 469.5 MB, free: 6.918 MB / 302.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)