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.001462/0.001462, allocations: 113.6 kB / 16.41 MB, free: 6.445 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.566/1.566, allocations: 222.9 MB / 240.1 MB, free: 4.363 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.001306/0.001306, allocations: 192.5 kB / 290.4 MB, free: 2.094 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/package.mo): time 0.03458/0.03458, allocations: 8.797 MB / 349.3 MB, free: 4.582 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001517/0.001517, allocations: 83.88 kB / 464.6 MB, free: 13.07 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08964/0.09117, allocations: 51.56 MB / 0.504 GB, free: 9.473 MB / 350.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.Electrical.TestBrush): time 0.002811/0.09402, allocations: 1.773 MB / 0.5058 GB, free: 7.691 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0008713/0.09492, allocations: 0.4986 MB / 0.5063 GB, free: 7.188 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.071e-05/0.09501, allocations: 4 kB / 0.5063 GB, free: 7.184 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 5.366e-05/0.09507, allocations: 7.922 kB / 0.5063 GB, free: 7.176 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 8.531e-05/0.09518, allocations: 19.8 kB / 0.5063 GB, free: 7.156 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002064/0.09539, allocations: 31.91 kB / 0.5063 GB, free: 7.125 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001179/0.09552, allocations: 87.64 kB / 0.5064 GB, free: 7.039 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001215/0.09565, allocations: 28 kB / 0.5064 GB, free: 7.012 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 7.952e-05/0.09573, allocations: 35.84 kB / 0.5065 GB, free: 6.977 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 5.961e-05/0.0958, allocations: 39.78 kB / 0.5065 GB, free: 6.938 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 1.878e-05/0.09582, allocations: 8 kB / 0.5065 GB, free: 6.93 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.948e-05/0.09591, allocations: 23.98 kB / 0.5065 GB, free: 6.906 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 1.751e-05/0.09593, allocations: 11.98 kB / 0.5065 GB, free: 6.895 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 4.416e-05/0.09598, allocations: 35.81 kB / 0.5066 GB, free: 6.859 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001536/0.09614, allocations: 107.7 kB / 0.5067 GB, free: 6.754 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.897e-06/0.09615, allocations: 0 / 0.5067 GB, free: 6.754 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.323e-06/0.09616, allocations: 0 / 0.5067 GB, free: 6.754 MB / 350.1 MB Notification: Performance of Transformations before backend: time 5.36e-06/0.09617, allocations: 0 / 0.5067 GB, free: 6.754 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.0004929/0.09667, allocations: 393.6 kB / 0.5071 GB, free: 6.324 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.342e-05/0.09671, allocations: 11.97 kB / 0.5071 GB, free: 6.312 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.968e-05/0.09675, allocations: 8.844 kB / 0.5071 GB, free: 6.305 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001391/0.09689, allocations: 176.2 kB / 0.5072 GB, free: 6.094 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.469e-05/0.09691, allocations: 8.375 kB / 0.5073 GB, free: 6.086 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.285e-05/0.09693, allocations: 4.375 kB / 0.5073 GB, free: 6.082 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002254/0.09716, allocations: 89.91 kB / 0.5073 GB, free: 5.988 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.095e-06/0.09718, allocations: 4 kB / 0.5073 GB, free: 5.984 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.547e-05/0.0972, allocations: 7.984 kB / 0.5074 GB, free: 5.977 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.851e-06/0.09721, allocations: 4 kB / 0.5074 GB, free: 5.973 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000219/0.09744, allocations: 59.95 kB / 0.5074 GB, free: 5.914 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005776/0.09802, allocations: 399.4 kB / 0.5078 GB, free: 5.465 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001277/0.09816, allocations: 46.5 kB / 0.5078 GB, free: 5.41 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.951e-05/0.09826, allocations: 24.89 kB / 0.5079 GB, free: 5.383 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.915e-05/0.09829, allocations: 4 kB / 0.5079 GB, free: 5.379 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.281e-05/0.09832, allocations: 30.56 kB / 0.5079 GB, free: 5.34 MB / 350.1 MB Notification: Performance of pre-optimization done (n=2): time 1.102e-06/0.09832, allocations: 0 / 0.5079 GB, free: 5.34 MB / 350.1 MB Notification: Performance of matching and sorting (n=2): time 0.0003744/0.0987, allocations: 97.58 kB / 0.508 GB, free: 5.238 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.577e-05/0.09875, allocations: 51.41 kB / 0.508 GB, free: 5.176 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.168e-05/0.09884, allocations: 121.8 kB / 0.5082 GB, free: 5.047 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.016e-05/0.09887, allocations: 25.7 kB / 0.5082 GB, free: 5.016 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.167e-05/0.09894, allocations: 111.9 kB / 0.5083 GB, free: 4.902 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.478e-06/0.09896, allocations: 7.906 kB / 0.5083 GB, free: 4.895 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.835e-05/0.099, allocations: 21.83 kB / 0.5083 GB, free: 4.867 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001043/0.09911, allocations: 318.8 kB / 0.5086 GB, free: 4.547 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.993e-05/0.0992, allocations: 15.98 kB / 0.5086 GB, free: 4.531 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000104/0.09932, allocations: 50.55 kB / 0.5087 GB, free: 4.473 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001804/0.09951, allocations: 58.48 kB / 0.5087 GB, free: 4.406 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.944e-06/0.09952, allocations: 4 kB / 0.5087 GB, free: 4.402 MB / 350.1 MB Notification: Performance of matching and sorting (n=4) (initialization): time 0.0002293/0.09975, allocations: 85.59 kB / 0.5088 GB, free: 4.312 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.54e-05/0.09977, allocations: 7.984 kB / 0.5088 GB, free: 4.305 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.429e-06/0.09978, allocations: 4.094 kB / 0.5088 GB, free: 4.301 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.44e-05/0.0998, allocations: 7.938 kB / 0.5088 GB, free: 4.293 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.996e-05/0.0999, allocations: 8 kB / 0.5088 GB, free: 4.285 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.993e-06/0.09991, allocations: 7.922 kB / 0.5089 GB, free: 4.277 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.018e-05/0.09998, allocations: 4 kB / 0.5089 GB, free: 4.273 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.216e-06/0.09999, allocations: 4 kB / 0.5089 GB, free: 4.27 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 7.572e-05/0.1001, allocations: 117.8 kB / 0.509 GB, free: 4.145 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.752e-05/0.1001, allocations: 3.906 kB / 0.509 GB, free: 4.141 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.947e-05/0.1001, allocations: 19.45 kB / 0.509 GB, free: 4.117 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.653e-06/0.1001, allocations: 0 / 0.509 GB, free: 4.117 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.517e-06/0.1002, allocations: 0 / 0.509 GB, free: 4.117 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.194e-06/0.1002, allocations: 0 / 0.509 GB, free: 4.117 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001683/0.1003, allocations: 177.6 kB / 0.5092 GB, free: 3.895 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.603e-06/0.1003, allocations: 4 kB / 0.5092 GB, free: 3.891 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.334e-05/0.1004, allocations: 7.984 kB / 0.5092 GB, free: 3.883 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.467e-06/0.1004, allocations: 0 / 0.5092 GB, free: 3.883 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.055e-06/0.1004, allocations: 7.875 kB / 0.5092 GB, free: 3.875 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.605e-06/0.1004, allocations: 4 kB / 0.5092 GB, free: 3.871 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.062e-06/0.1004, allocations: 0 / 0.5092 GB, free: 3.871 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002404/0.1007, allocations: 171.4 kB / 0.5094 GB, free: 3.688 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.693e-05/0.1007, allocations: 81.11 kB / 0.5094 GB, free: 3.59 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.588e-05/0.1008, allocations: 3.938 kB / 0.5094 GB, free: 3.586 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.353e-05/0.1008, allocations: 7.984 kB / 0.5094 GB, free: 3.578 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.695e-05/0.1009, allocations: 0 / 0.5094 GB, free: 3.578 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.467e-06/0.1009, allocations: 4.031 kB / 0.5094 GB, free: 3.574 MB / 350.1 MB Notification: Performance of sorting global known variables: time 5.143e-05/0.1009, allocations: 99.27 kB / 0.5095 GB, free: 3.477 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.101, allocations: 0 / 0.5095 GB, free: 3.477 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002434/0.1012, allocations: 23.84 kB / 0.5096 GB, free: 3.453 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.0001197/0.1013, allocations: 99.23 kB / 0.5097 GB, free: 3.348 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0002291/0.1016, allocations: 48.03 kB / 0.5097 GB, free: 3.301 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.094e-06/0.1016, allocations: 4.062 kB / 0.5097 GB, free: 3.297 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 9.076e-05/0.1017, allocations: 23.97 kB / 0.5097 GB, free: 3.273 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002752/0.102, allocations: 9.5 kB / 0.5097 GB, free: 3.266 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000331/0.1023, allocations: 188.6 kB / 0.5099 GB, free: 3.047 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002266/0.1025, allocations: 0.6962 MB / 0.5106 GB, free: 2.324 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.671e-05/0.1026, allocations: 15.38 kB / 0.5106 GB, free: 2.312 MB / 350.1 MB Notification: Performance of SimCode: time 2e-07/0.1026, allocations: 0 / 0.5106 GB, free: 2.312 MB / 350.1 MB Notification: Performance of Templates: time 0.002274/0.1048, allocations: 0.9465 MB / 0.5115 GB, free: 1.367 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)