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.001487/0.001487, allocations: 105.7 kB / 16.35 MB, free: 5.824 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.477/1.477, allocations: 222.9 MB / 240 MB, free: 4.516 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.001316/0.001317, allocations: 196.4 kB / 290.3 MB, free: 2.234 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/package.mo): time 0.03592/0.03592, allocations: 8.792 MB / 349.3 MB, free: 4.617 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001695/0.001695, allocations: 78.28 kB / 412.5 MB, free: 41.71 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1068/0.1085, allocations: 51.57 MB / 464.1 MB, free: 13.56 MB / 302.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.Electrical.TestBrush): time 0.003389/0.1119, allocations: 1.774 MB / 465.9 MB, free: 11.77 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009295/0.1129, allocations: 486.8 kB / 466.3 MB, free: 11.29 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.742e-05/0.113, allocations: 4 kB / 466.3 MB, free: 11.28 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 5.33e-05/0.113, allocations: 11.86 kB / 466.3 MB, free: 11.27 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 8.669e-05/0.1131, allocations: 19.78 kB / 466.4 MB, free: 11.25 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002232/0.1134, allocations: 39.95 kB / 466.4 MB, free: 11.21 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001096/0.1135, allocations: 87.59 kB / 466.5 MB, free: 11.12 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001374/0.1136, allocations: 23.98 kB / 466.5 MB, free: 11.1 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 8.668e-05/0.1137, allocations: 31.92 kB / 466.5 MB, free: 11.07 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 7.278e-05/0.1138, allocations: 43.83 kB / 466.6 MB, free: 11.03 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 2.235e-05/0.1138, allocations: 8 kB / 466.6 MB, free: 11.02 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.679e-05/0.1139, allocations: 16 kB / 466.6 MB, free: 11 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 2.469e-05/0.1139, allocations: 23.92 kB / 466.6 MB, free: 10.98 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 5.59e-05/0.114, allocations: 39.8 kB / 466.7 MB, free: 10.94 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001741/0.1142, allocations: 99.61 kB / 466.8 MB, free: 10.84 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.427e-06/0.1142, allocations: 0 / 466.8 MB, free: 10.84 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.303e-06/0.1142, allocations: 0 / 466.8 MB, free: 10.84 MB / 302.1 MB Notification: Performance of Transformations before backend: time 6.181e-06/0.1142, allocations: 4 kB / 466.8 MB, free: 10.84 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.0006313/0.1148, allocations: 391.2 kB / 467.2 MB, free: 10.41 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.033e-05/0.1149, allocations: 12.03 kB / 467.2 MB, free: 10.4 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.637e-05/0.1149, allocations: 12.84 kB / 467.2 MB, free: 10.39 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001647/0.1151, allocations: 172.3 kB / 467.4 MB, free: 10.18 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.115e-05/0.1151, allocations: 8.312 kB / 467.4 MB, free: 10.17 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.082e-05/0.1151, allocations: 8.375 kB / 467.4 MB, free: 10.16 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002836/0.1154, allocations: 93.84 kB / 467.5 MB, free: 10.07 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.073e-05/0.1155, allocations: 0 / 467.5 MB, free: 10.07 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.454e-05/0.1155, allocations: 0 / 467.5 MB, free: 10.07 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.398e-06/0.1155, allocations: 0 / 467.5 MB, free: 10.07 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002321/0.1157, allocations: 79.86 kB / 467.5 MB, free: 9.988 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006473/0.1164, allocations: 391.5 kB / 467.9 MB, free: 9.551 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001374/0.1165, allocations: 38.55 kB / 468 MB, free: 9.504 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.374e-05/0.1166, allocations: 32.91 kB / 468 MB, free: 9.469 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.81e-05/0.1167, allocations: 0 / 468 MB, free: 9.469 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.305e-05/0.1167, allocations: 34.56 kB / 468 MB, free: 9.426 MB / 302.1 MB Notification: Performance of pre-optimization done (n=2): time 1.032e-06/0.1167, allocations: 4 kB / 468 MB, free: 9.422 MB / 302.1 MB Notification: Performance of matching and sorting (n=2): time 0.0003679/0.1171, allocations: 93.42 kB / 468.1 MB, free: 9.324 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.258e-05/0.1171, allocations: 55.53 kB / 468.2 MB, free: 9.258 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001195/0.1172, allocations: 125.8 kB / 468.3 MB, free: 9.125 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 1.638e-05/0.1173, allocations: 29.7 kB / 468.3 MB, free: 9.09 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.75e-05/0.1173, allocations: 104 kB / 468.4 MB, free: 8.984 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.756e-06/0.1174, allocations: 3.906 kB / 468.4 MB, free: 8.98 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.814e-05/0.1174, allocations: 17.72 kB / 468.4 MB, free: 8.957 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001318/0.1175, allocations: 318.8 kB / 468.8 MB, free: 8.637 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.573e-05/0.1176, allocations: 19.98 kB / 468.8 MB, free: 8.617 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.452e-05/0.1177, allocations: 38.56 kB / 468.8 MB, free: 8.57 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001679/0.1179, allocations: 62.47 kB / 468.9 MB, free: 8.5 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.445e-06/0.1179, allocations: 4 kB / 468.9 MB, free: 8.496 MB / 302.1 MB Notification: Performance of matching and sorting (n=4) (initialization): time 0.000217/0.1181, allocations: 81.59 kB / 469 MB, free: 8.41 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.651e-05/0.1182, allocations: 8 kB / 469 MB, free: 8.402 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.799e-06/0.1182, allocations: 0 / 469 MB, free: 8.402 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.826e-05/0.1182, allocations: 3.938 kB / 469 MB, free: 8.398 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.627e-05/0.1183, allocations: 19.98 kB / 469 MB, free: 8.379 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.274e-06/0.1183, allocations: 0 / 469 MB, free: 8.379 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.243e-05/0.1184, allocations: 15.98 kB / 469 MB, free: 8.363 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.553e-06/0.1184, allocations: 0 / 469 MB, free: 8.363 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 0.0001534/0.1186, allocations: 125.7 kB / 469.1 MB, free: 8.23 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.695e-05/0.1186, allocations: 4 kB / 469.1 MB, free: 8.227 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.195e-05/0.1186, allocations: 11.47 kB / 469.1 MB, free: 8.215 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.266e-06/0.1186, allocations: 4 kB / 469.1 MB, free: 8.211 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.339e-06/0.1186, allocations: 0 / 469.1 MB, free: 8.211 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.037e-06/0.1187, allocations: 0 / 469.1 MB, free: 8.211 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002345/0.1189, allocations: 185.6 kB / 469.3 MB, free: 7.98 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.274e-06/0.1189, allocations: 7.984 kB / 469.3 MB, free: 7.973 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.977e-05/0.119, allocations: 8 kB / 469.3 MB, free: 7.965 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.523e-06/0.119, allocations: 3.938 kB / 469.3 MB, free: 7.961 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.167e-06/0.119, allocations: 3.938 kB / 469.4 MB, free: 7.957 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.112e-06/0.119, allocations: 0 / 469.4 MB, free: 7.957 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.182e-06/0.119, allocations: 0 / 469.4 MB, free: 7.957 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002477/0.1193, allocations: 171.4 kB / 469.5 MB, free: 7.773 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.599e-05/0.1193, allocations: 85.03 kB / 469.6 MB, free: 7.672 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.77e-05/0.1193, allocations: 7.938 kB / 469.6 MB, free: 7.664 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.69e-05/0.1194, allocations: 4 kB / 469.6 MB, free: 7.66 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.735e-05/0.1195, allocations: 7.984 kB / 469.6 MB, free: 7.652 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.647e-06/0.1195, allocations: 0 / 469.6 MB, free: 7.652 MB / 302.1 MB Notification: Performance of sorting global known variables: time 6.209e-05/0.1195, allocations: 95.7 kB / 469.7 MB, free: 7.559 MB / 302.1 MB Notification: Performance of sort global known variables: time 1e-07/0.1195, allocations: 0 / 469.7 MB, free: 7.559 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0002383/0.1198, allocations: 19.84 kB / 469.7 MB, free: 7.539 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.0001305/0.1199, allocations: 103.6 kB / 469.8 MB, free: 7.43 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0002492/0.1202, allocations: 47.95 kB / 469.9 MB, free: 7.383 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 3.647e-06/0.1202, allocations: 0 / 469.9 MB, free: 7.383 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001107/0.1203, allocations: 23.92 kB / 469.9 MB, free: 7.359 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003093/0.1206, allocations: 14.06 kB / 469.9 MB, free: 7.348 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003526/0.121, allocations: 158.9 kB / 470.1 MB, free: 7.16 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002873/0.1213, allocations: 0.6885 MB / 470.8 MB, free: 6.445 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 2.772e-05/0.1213, allocations: 256 / 470.8 MB, free: 6.445 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.765e-05/0.1214, allocations: 15.42 kB / 470.8 MB, free: 6.43 MB / 302.1 MB Notification: Performance of SimCode: time 2e-07/0.1214, allocations: 0 / 470.8 MB, free: 6.43 MB / 302.1 MB Notification: Performance of Templates: time 0.004408/0.1258, allocations: 0.7101 MB / 471.5 MB, free: 5.723 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 -s cvode -lv LOG_STATS > HanserModelica_HanserModelica.Electrical.TestBrush.pipe 2>&1)