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.001237/0.001237, allocations: 104.5 kB / 16.41 MB, free: 6.465 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.496/1.496, allocations: 222.9 MB / 240.1 MB, free: 4.512 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.001533/0.001533, allocations: 192.5 kB / 290.4 MB, free: 2.227 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/package.mo): time 0.03381/0.03381, allocations: 8.793 MB / 349.3 MB, free: 4.609 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001503/0.001503, allocations: 79.88 kB / 464.6 MB, free: 13.1 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1241/0.1257, allocations: 51.56 MB / 0.504 GB, free: 9.496 MB / 350.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.Electrical.TestBrush): time 0.003761/0.1295, allocations: 1.779 MB / 0.5058 GB, free: 7.707 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.00101/0.1305, allocations: 490.7 kB / 0.5063 GB, free: 7.223 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001028/0.1306, allocations: 0 / 0.5063 GB, free: 7.223 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 6.382e-05/0.1307, allocations: 19.86 kB / 0.5063 GB, free: 7.203 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001199/0.1309, allocations: 23.78 kB / 0.5063 GB, free: 7.18 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002575/0.1311, allocations: 31.95 kB / 0.5063 GB, free: 7.148 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001437/0.1313, allocations: 87.59 kB / 0.5064 GB, free: 7.062 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001521/0.1314, allocations: 27.98 kB / 0.5064 GB, free: 7.035 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001079/0.1316, allocations: 31.92 kB / 0.5065 GB, free: 7.004 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 8.014e-05/0.1316, allocations: 43.78 kB / 0.5065 GB, free: 6.961 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 2.213e-05/0.1317, allocations: 8 kB / 0.5065 GB, free: 6.953 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 9.855e-05/0.1318, allocations: 19.98 kB / 0.5065 GB, free: 6.934 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 3.001e-05/0.1318, allocations: 15.98 kB / 0.5065 GB, free: 6.918 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 7.102e-05/0.1319, allocations: 43.73 kB / 0.5066 GB, free: 6.875 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000206/0.1321, allocations: 99.67 kB / 0.5067 GB, free: 6.777 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.701e-06/0.1321, allocations: 0 / 0.5067 GB, free: 6.777 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.124e-06/0.1321, allocations: 0 / 0.5067 GB, free: 6.777 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.188e-05/0.1321, allocations: 0 / 0.5067 GB, free: 6.777 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.0006672/0.1328, allocations: 395.2 kB / 0.5071 GB, free: 6.344 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.588e-05/0.1329, allocations: 8.031 kB / 0.5071 GB, free: 6.336 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.712e-05/0.1329, allocations: 12.78 kB / 0.5071 GB, free: 6.324 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001938/0.1331, allocations: 172.3 kB / 0.5072 GB, free: 6.117 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.521e-05/0.1331, allocations: 384 / 0.5072 GB, free: 6.117 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.088e-05/0.1332, allocations: 8.375 kB / 0.5073 GB, free: 6.109 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002657/0.1334, allocations: 95.81 kB / 0.5073 GB, free: 6.012 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.201e-05/0.1335, allocations: 0 / 0.5073 GB, free: 6.012 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.863e-05/0.1335, allocations: 15.98 kB / 0.5074 GB, free: 5.996 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.145e-05/0.1335, allocations: 0 / 0.5074 GB, free: 5.996 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002349/0.1338, allocations: 63.95 kB / 0.5074 GB, free: 5.934 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007349/0.1345, allocations: 387.5 kB / 0.5078 GB, free: 5.496 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001474/0.1347, allocations: 46.55 kB / 0.5078 GB, free: 5.441 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.02e-05/0.1348, allocations: 24.91 kB / 0.5079 GB, free: 5.414 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.329e-05/0.1348, allocations: 0 / 0.5079 GB, free: 5.414 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.121e-05/0.1348, allocations: 34.56 kB / 0.5079 GB, free: 5.371 MB / 350.1 MB Notification: Performance of pre-optimization done (n=2): time 3.015e-06/0.1348, allocations: 3.938 kB / 0.5079 GB, free: 5.367 MB / 350.1 MB Notification: Performance of matching and sorting (n=2): time 0.0004244/0.1353, allocations: 97.52 kB / 0.508 GB, free: 5.266 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.043e-05/0.1353, allocations: 51.41 kB / 0.508 GB, free: 5.203 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001385/0.1355, allocations: 125.8 kB / 0.5082 GB, free: 5.07 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.979e-05/0.1355, allocations: 25.7 kB / 0.5082 GB, free: 5.039 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.996e-05/0.1356, allocations: 107.9 kB / 0.5083 GB, free: 4.93 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.168e-05/0.1356, allocations: 11.91 kB / 0.5083 GB, free: 4.918 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.987e-05/0.1357, allocations: 13.72 kB / 0.5083 GB, free: 4.898 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001976/0.1359, allocations: 323 kB / 0.5086 GB, free: 4.574 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.143e-05/0.136, allocations: 19.98 kB / 0.5086 GB, free: 4.555 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001034/0.1361, allocations: 42.55 kB / 0.5087 GB, free: 4.504 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001827/0.1363, allocations: 62.48 kB / 0.5087 GB, free: 4.434 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.088e-06/0.1363, allocations: 0 / 0.5087 GB, free: 4.434 MB / 350.1 MB Notification: Performance of matching and sorting (n=4) (initialization): time 0.0002462/0.1366, allocations: 81.69 kB / 0.5088 GB, free: 4.348 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.859e-05/0.1366, allocations: 4 kB / 0.5088 GB, free: 4.344 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.044e-05/0.1366, allocations: 7.984 kB / 0.5088 GB, free: 4.336 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.937e-05/0.1366, allocations: 3.938 kB / 0.5088 GB, free: 4.332 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001068/0.1367, allocations: 16.08 kB / 0.5088 GB, free: 4.316 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.387e-05/0.1368, allocations: 7.938 kB / 0.5089 GB, free: 4.309 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.409e-05/0.1368, allocations: 15.92 kB / 0.5089 GB, free: 4.293 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.111e-06/0.1368, allocations: 0 / 0.5089 GB, free: 4.293 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 0.0001019/0.1369, allocations: 117.8 kB / 0.509 GB, free: 4.168 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.642e-05/0.137, allocations: 7.906 kB / 0.509 GB, free: 4.16 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.375e-05/0.137, allocations: 7.469 kB / 0.509 GB, free: 4.148 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.014e-06/0.137, allocations: 0 / 0.509 GB, free: 4.148 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.111e-06/0.1371, allocations: 4 kB / 0.509 GB, free: 4.145 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.757e-06/0.1371, allocations: 0 / 0.509 GB, free: 4.145 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002326/0.1373, allocations: 185.6 kB / 0.5092 GB, free: 3.914 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.956e-06/0.1373, allocations: 0 / 0.5092 GB, free: 3.914 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.353e-05/0.1374, allocations: 8 kB / 0.5092 GB, free: 3.906 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.126e-06/0.1374, allocations: 0 / 0.5092 GB, free: 3.906 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.353e-05/0.1374, allocations: 3.938 kB / 0.5092 GB, free: 3.902 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.503e-06/0.1374, allocations: 0 / 0.5092 GB, free: 3.902 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.977e-06/0.1374, allocations: 3.984 kB / 0.5092 GB, free: 3.898 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003312/0.1378, allocations: 171.4 kB / 0.5094 GB, free: 3.715 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.296e-05/0.1379, allocations: 85.09 kB / 0.5094 GB, free: 3.613 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.439e-05/0.1379, allocations: 3.938 kB / 0.5094 GB, free: 3.609 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.891e-05/0.138, allocations: 4 kB / 0.5094 GB, free: 3.605 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.415e-05/0.138, allocations: 3.984 kB / 0.5094 GB, free: 3.602 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.747e-06/0.138, allocations: 4 kB / 0.5094 GB, free: 3.598 MB / 350.1 MB Notification: Performance of sorting global known variables: time 6.849e-05/0.1381, allocations: 95.3 kB / 0.5095 GB, free: 3.504 MB / 350.1 MB Notification: Performance of sort global known variables: time 2e-07/0.1381, allocations: 0 / 0.5095 GB, free: 3.504 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002699/0.1384, allocations: 35.78 kB / 0.5096 GB, free: 3.469 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.0001589/0.1386, allocations: 99.23 kB / 0.5097 GB, free: 3.363 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0002427/0.1388, allocations: 47.89 kB / 0.5097 GB, free: 3.316 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 6.132e-06/0.1388, allocations: 4 kB / 0.5097 GB, free: 3.312 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 8.184e-05/0.1389, allocations: 24.17 kB / 0.5097 GB, free: 3.289 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003548/0.1393, allocations: 13.39 kB / 0.5098 GB, free: 3.277 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004585/0.1398, allocations: 176.7 kB / 0.5099 GB, free: 3.07 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000337/0.1401, allocations: 0.6922 MB / 0.5106 GB, free: 2.352 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.257e-05/0.1401, allocations: 11.44 kB / 0.5106 GB, free: 2.344 MB / 350.1 MB Notification: Performance of SimCode: time 4.11e-07/0.1402, allocations: 8 kB / 0.5106 GB, free: 2.336 MB / 350.1 MB Notification: Performance of Templates: time 0.00308/0.1432, allocations: 0.9417 MB / 0.5115 GB, free: 1.395 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)