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.001413/0.001413, allocations: 105.3 kB / 16.27 MB, free: 6.414 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.418/1.418, allocations: 222.9 MB / 239.9 MB, free: 4.633 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.001515/0.001515, allocations: 188.5 kB / 290.2 MB, free: 2.352 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/package.mo): time 0.03434/0.03434, allocations: 8.787 MB / 349.2 MB, free: 4.707 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001527/0.001527, allocations: 82.02 kB / 411.8 MB, free: 42 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08612/0.08767, allocations: 51.57 MB / 463.3 MB, free: 14.35 MB / 302.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.Electrical.TestBrush): time 0.003472/0.09119, allocations: 1.763 MB / 465.1 MB, free: 12.56 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.0008421/0.09206, allocations: 0.4909 MB / 465.6 MB, free: 12.07 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.314e-05/0.09212, allocations: 0 / 465.6 MB, free: 12.07 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 5.027e-05/0.0922, allocations: 15.86 kB / 465.6 MB, free: 12.05 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 8.393e-05/0.09229, allocations: 15.84 kB / 465.6 MB, free: 12.04 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002138/0.09251, allocations: 31.91 kB / 465.6 MB, free: 12 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001104/0.09263, allocations: 83.66 kB / 465.7 MB, free: 11.92 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001299/0.09277, allocations: 27.98 kB / 465.7 MB, free: 11.89 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 8.554e-05/0.09286, allocations: 35.86 kB / 465.8 MB, free: 11.86 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 6.116e-05/0.09293, allocations: 35.84 kB / 465.8 MB, free: 11.82 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 1.897e-05/0.09296, allocations: 11.94 kB / 465.8 MB, free: 11.81 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7e-05/0.09303, allocations: 23.98 kB / 465.9 MB, free: 11.79 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 1.995e-05/0.09306, allocations: 11.98 kB / 465.9 MB, free: 11.78 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 4.765e-05/0.09311, allocations: 39.81 kB / 465.9 MB, free: 11.74 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000167/0.09329, allocations: 103.9 kB / 466 MB, free: 11.64 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.817e-06/0.0933, allocations: 0 / 466 MB, free: 11.64 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.242e-06/0.0933, allocations: 0 / 466 MB, free: 11.64 MB / 302.1 MB Notification: Performance of Transformations before backend: time 4.639e-06/0.09331, allocations: 0 / 466 MB, free: 11.64 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.0005233/0.09384, allocations: 391.2 kB / 466.4 MB, free: 11.21 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.811e-05/0.09389, allocations: 12.03 kB / 466.4 MB, free: 11.2 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.377e-05/0.09394, allocations: 8.844 kB / 466.4 MB, free: 11.19 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001529/0.0941, allocations: 176.2 kB / 466.6 MB, free: 10.98 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.274e-05/0.09412, allocations: 12.38 kB / 466.6 MB, free: 10.96 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.899e-05/0.09414, allocations: 4.375 kB / 466.6 MB, free: 10.96 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002326/0.09438, allocations: 97.84 kB / 466.7 MB, free: 10.86 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.226e-05/0.09441, allocations: 0 / 466.7 MB, free: 10.86 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.276e-05/0.09443, allocations: 0 / 466.7 MB, free: 10.86 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.18e-06/0.09444, allocations: 0 / 466.7 MB, free: 10.86 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002248/0.09467, allocations: 71.89 kB / 466.8 MB, free: 10.79 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005954/0.09527, allocations: 399.5 kB / 467.2 MB, free: 10.34 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001291/0.09542, allocations: 42.5 kB / 467.2 MB, free: 10.29 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.182e-05/0.09552, allocations: 32.89 kB / 467.2 MB, free: 10.26 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.666e-05/0.09554, allocations: 0 / 467.2 MB, free: 10.26 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.942e-05/0.09558, allocations: 34.56 kB / 467.3 MB, free: 10.21 MB / 302.1 MB Notification: Performance of pre-optimization done (n=2): time 9.11e-07/0.09558, allocations: 0 / 467.3 MB, free: 10.21 MB / 302.1 MB Notification: Performance of matching and sorting (n=2): time 0.0003689/0.09596, allocations: 101.4 kB / 467.4 MB, free: 10.11 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.465e-05/0.096, allocations: 59.53 kB / 467.4 MB, free: 10.04 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001093/0.09612, allocations: 117.8 kB / 467.5 MB, free: 9.914 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 1.307e-05/0.09614, allocations: 25.7 kB / 467.6 MB, free: 9.883 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.345e-05/0.09621, allocations: 108 kB / 467.7 MB, free: 9.773 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.162e-05/0.09624, allocations: 3.906 kB / 467.7 MB, free: 9.77 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.942e-05/0.09628, allocations: 21.7 kB / 467.7 MB, free: 9.742 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001187/0.0964, allocations: 314.8 kB / 468 MB, free: 9.426 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.899e-05/0.0965, allocations: 19.98 kB / 468 MB, free: 9.406 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001023/0.09661, allocations: 38.55 kB / 468.1 MB, free: 9.359 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001864/0.0968, allocations: 62.48 kB / 468.1 MB, free: 9.289 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.764e-06/0.09681, allocations: 0 / 468.1 MB, free: 9.289 MB / 302.1 MB Notification: Performance of matching and sorting (n=4) (initialization): time 0.0002246/0.09704, allocations: 93.58 kB / 468.2 MB, free: 9.191 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.513e-05/0.09707, allocations: 4 kB / 468.2 MB, free: 9.188 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.911e-06/0.09708, allocations: 0 / 468.2 MB, free: 9.188 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.649e-05/0.0971, allocations: 3.938 kB / 468.2 MB, free: 9.184 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.766e-05/0.0972, allocations: 15.98 kB / 468.2 MB, free: 9.168 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.66e-06/0.09722, allocations: 0 / 468.2 MB, free: 9.168 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.045e-05/0.09729, allocations: 12 kB / 468.2 MB, free: 9.156 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.376e-06/0.0973, allocations: 4 kB / 468.2 MB, free: 9.152 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.966e-05/0.0974, allocations: 117.8 kB / 468.4 MB, free: 9.027 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.913e-05/0.09743, allocations: 7.984 kB / 468.4 MB, free: 9.02 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.43e-05/0.09747, allocations: 19.5 kB / 468.4 MB, free: 9 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.797e-06/0.09748, allocations: 3.984 kB / 468.4 MB, free: 8.996 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.017e-06/0.09749, allocations: 0 / 468.4 MB, free: 8.996 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.937e-06/0.0975, allocations: 0 / 468.4 MB, free: 8.996 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001864/0.09769, allocations: 185.6 kB / 468.6 MB, free: 8.766 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.142e-06/0.0977, allocations: 0 / 468.6 MB, free: 8.766 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.344e-05/0.09777, allocations: 11.98 kB / 468.6 MB, free: 8.754 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.603e-06/0.09778, allocations: 0 / 468.6 MB, free: 8.754 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.003e-05/0.09779, allocations: 3.938 kB / 468.6 MB, free: 8.75 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.062e-06/0.0978, allocations: 0 / 468.6 MB, free: 8.75 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.92e-07/0.0978, allocations: 0 / 468.6 MB, free: 8.75 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002601/0.09807, allocations: 171.4 kB / 468.8 MB, free: 8.566 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.87e-05/0.09812, allocations: 77.11 kB / 468.8 MB, free: 8.473 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.631e-05/0.09814, allocations: 7.938 kB / 468.8 MB, free: 8.465 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.183e-05/0.09823, allocations: 7.984 kB / 468.8 MB, free: 8.457 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.696e-05/0.09827, allocations: 4 kB / 468.8 MB, free: 8.453 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.737e-06/0.09828, allocations: 0 / 468.8 MB, free: 8.453 MB / 302.1 MB Notification: Performance of sorting global known variables: time 5.951e-05/0.09835, allocations: 99.27 kB / 468.9 MB, free: 8.355 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.09835, allocations: 0 / 468.9 MB, free: 8.355 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0002626/0.09862, allocations: 19.88 kB / 469 MB, free: 8.336 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.0001266/0.09876, allocations: 115.1 kB / 469.1 MB, free: 8.215 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.00024/0.099, allocations: 43.97 kB / 469.1 MB, free: 8.172 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.304e-06/0.09902, allocations: 0 / 469.1 MB, free: 8.172 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 9.081e-05/0.09911, allocations: 23.97 kB / 469.1 MB, free: 8.148 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003257/0.09945, allocations: 16.19 kB / 469.2 MB, free: 8.133 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003968/0.09985, allocations: 177.3 kB / 469.3 MB, free: 7.922 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002807/0.1001, allocations: 0.6885 MB / 470 MB, free: 7.207 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.81e-05/0.1002, allocations: 19.44 kB / 470 MB, free: 7.188 MB / 302.1 MB Notification: Performance of SimCode: time 2.41e-07/0.1002, allocations: 0 / 470 MB, free: 7.188 MB / 302.1 MB Notification: Performance of Templates: time 0.002431/0.1026, allocations: 0.9425 MB / 471 MB, free: 6.246 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)