Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr HanserModelica_HanserModelica.SynchronousMachines.SMEE_Slip2.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.SynchronousMachines.SMEE_Slip2,tolerance=1e-06,outputFormat="empty",numberOfIntervals=60000,variableFilter="",fileNamePrefix="HanserModelica_HanserModelica.SynchronousMachines.SMEE_Slip2") translateModel(HanserModelica.SynchronousMachines.SMEE_Slip2,tolerance=1e-06,outputFormat="empty",numberOfIntervals=60000,variableFilter="",fileNamePrefix="HanserModelica_HanserModelica.SynchronousMachines.SMEE_Slip2") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001054/0.001054, allocations: 111.3 kB / 15.23 MB, free: 0.6406 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.223/1.223, allocations: 222.9 MB / 238.8 MB, free: 4.766 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.001155/0.001155, allocations: 196.3 kB / 289.1 MB, free: 2.504 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/package.mo): time 0.03163/0.03163, allocations: 8.784 MB / 348.1 MB, free: 4.898 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001223/0.001223, allocations: 72.83 kB / 410.4 MB, free: 42.47 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08105/0.08229, allocations: 51.56 MB / 461.9 MB, free: 14.9 MB / 302.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.SynchronousMachines.SMEE_Slip2): time 0.02394/0.1063, allocations: 25.01 MB / 487 MB, free: 5.777 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.0154/0.1217, allocations: 7.936 MB / 494.9 MB, free: 13.82 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004113/0.1258, allocations: 167.5 kB / 495.1 MB, free: 13.65 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01187/0.1377, allocations: 5.77 MB / 0.4891 GB, free: 7.871 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.007558/0.1453, allocations: 2.53 MB / 0.4916 GB, free: 5.336 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004154/0.1495, allocations: 1.506 MB / 0.493 GB, free: 3.832 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.008998/0.1585, allocations: 7.365 MB / 0.5002 GB, free: 12.45 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01969/0.1783, allocations: 10.95 MB / 0.5109 GB, free: 1.363 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00497/0.1833, allocations: 3.24 MB / 0.5141 GB, free: 14.11 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00574/0.1891, allocations: 4.048 MB / 0.518 GB, free: 10.05 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.002176/0.1913, allocations: 0.6953 MB / 0.5187 GB, free: 9.355 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003475/0.1948, allocations: 1.062 MB / 0.5198 GB, free: 8.293 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002015/0.1968, allocations: 1.768 MB / 0.5215 GB, free: 6.52 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.004725/0.2016, allocations: 3.722 MB / 0.5251 GB, free: 2.781 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.1782/0.3798, allocations: 14.1 MB / 0.5389 GB, free: 27.13 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.749e-06/0.3798, allocations: 0 / 0.5389 GB, free: 27.13 MB / 366.1 MB Notification: Performance of FrontEnd: time 2.114e-06/0.3799, allocations: 0 / 0.5389 GB, free: 27.13 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0003109/0.3802, allocations: 2.406 kB / 0.5389 GB, free: 27.13 MB / 366.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1800 * Number of variables: 1800 Notification: Performance of Generate backend data structure: time 0.0245/0.4047, allocations: 8.802 MB / 0.5475 GB, free: 23.27 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.957e-05/0.4047, allocations: 12.73 kB / 0.5475 GB, free: 23.27 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0234/0.4281, allocations: 4.378 MB / 0.5518 GB, free: 21.61 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.009229/0.4374, allocations: 4.506 MB / 0.5562 GB, free: 20.29 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003876/0.4378, allocations: 487.9 kB / 0.5566 GB, free: 20.27 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00252/0.4404, allocations: 0.6282 MB / 0.5572 GB, free: 20.27 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01895/0.4593, allocations: 10.36 MB / 0.5674 GB, free: 17.22 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000124/0.4595, allocations: 8.938 kB / 0.5674 GB, free: 17.22 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0006362/0.4601, allocations: 267.4 kB / 0.5676 GB, free: 17.02 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000302/0.4604, allocations: 420.3 kB / 0.568 GB, free: 16.93 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01382/0.4742, allocations: 9.855 MB / 0.5776 GB, free: 10.16 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04884/0.5231, allocations: 35.68 MB / 0.6125 GB, free: 5.938 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01697/0.5401, allocations: 20.66 MB / 0.6327 GB, free: 14.66 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003385/0.5436, allocations: 2.307 MB / 0.6349 GB, free: 12.36 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002686/0.5438, allocations: 226.9 kB / 0.6351 GB, free: 12.11 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.185e-05/0.5439, allocations: 64.89 kB / 0.6352 GB, free: 12.04 MB / 430.1 MB Notification: Performance of pre-optimization done (n=295): time 3.977e-06/0.5439, allocations: 0 / 0.6352 GB, free: 12.04 MB / 430.1 MB Notification: Performance of matching and sorting (n=301): time 0.01852/0.5624, allocations: 10.86 MB / 0.6458 GB, free: 1.062 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.353e-05/0.5625, allocations: 81.78 kB / 0.6459 GB, free: 0.9688 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003884/0.5664, allocations: 3.027 MB / 0.6488 GB, free: 13.93 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001595/0.5666, allocations: 69.7 kB / 0.6489 GB, free: 13.85 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001587/0.5682, allocations: 2.87 MB / 0.6517 GB, free: 10.96 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0007356/0.5689, allocations: 1.029 MB / 0.6527 GB, free: 9.941 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001244/0.5701, allocations: 0.9055 MB / 0.6536 GB, free: 9.023 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 0.0001022/0.5703, allocations: 309.1 kB / 0.6539 GB, free: 8.719 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002689/0.573, allocations: 2.027 MB / 0.6559 GB, free: 6.688 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003674/0.5766, allocations: 3.727 MB / 0.6595 GB, free: 2.199 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006787/0.5834, allocations: 6.049 MB / 0.6654 GB, free: 11.58 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.838e-05/0.5835, allocations: 16 kB / 0.6654 GB, free: 11.56 MB / 462.1 MB Notification: Performance of matching and sorting (n=595) (initialization): time 0.0104/0.5939, allocations: 6.624 MB / 0.6719 GB, free: 5.242 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.029e-05/0.594, allocations: 28 kB / 0.6719 GB, free: 5.215 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.538e-05/0.594, allocations: 56 kB / 0.672 GB, free: 5.16 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001728/0.5958, allocations: 0.6673 MB / 0.6726 GB, free: 4.492 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003476/0.5993, allocations: 1.066 MB / 0.6737 GB, free: 3.5 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007579/0.6069, allocations: 5.794 MB / 0.6793 GB, free: 13.61 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00323/0.6101, allocations: 283.4 kB / 0.6796 GB, free: 13.34 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003513/0.6105, allocations: 228 kB / 0.6798 GB, free: 13.11 MB / 478.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 251 * 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 (560): * Single equations (assignments): 559 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(8,28,65.6%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.003323/0.6138, allocations: 2.322 MB / 0.6821 GB, free: 10.86 MB / 478.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005236/0.6143, allocations: 318.6 kB / 0.6824 GB, free: 10.54 MB / 478.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00717/0.6215, allocations: 4.643 MB / 0.6869 GB, free: 5.867 MB / 478.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.079e-05/0.6215, allocations: 36 kB / 0.687 GB, free: 5.832 MB / 478.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.001e-05/0.6216, allocations: 4 kB / 0.687 GB, free: 5.828 MB / 478.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.53e-05/0.6216, allocations: 15.94 kB / 0.687 GB, free: 5.812 MB / 478.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01646/0.6381, allocations: 11.25 MB / 0.698 GB, free: 10.46 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.283e-05/0.6381, allocations: 4 kB / 0.698 GB, free: 10.45 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00201/0.6401, allocations: 0.5328 MB / 0.6985 GB, free: 9.949 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001481/0.6416, allocations: 0.5762 MB / 0.6991 GB, free: 9.371 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001673/0.6418, allocations: 63.98 kB / 0.6991 GB, free: 9.309 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006505/0.6483, allocations: 5.033 MB / 0.704 GB, free: 4.164 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.77e-06/0.6483, allocations: 7.938 kB / 0.704 GB, free: 4.156 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.1693/0.8176, allocations: 6.584 MB / 0.7105 GB, free: 175.2 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001428/0.8191, allocations: 0.7205 MB / 0.7112 GB, free: 175.1 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004108/0.8195, allocations: 62.09 kB / 0.7112 GB, free: 175.1 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001408/0.8209, allocations: 149.6 kB / 0.7114 GB, free: 175.1 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003771/0.8213, allocations: 205.7 kB / 0.7116 GB, free: 175.1 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001627/0.8214, allocations: 90.11 kB / 0.7117 GB, free: 175.1 MB / 494.1 MB Notification: Performance of sorting global known variables: time 0.002726/0.8242, allocations: 2.014 MB / 0.7136 GB, free: 175 MB / 494.1 MB Notification: Performance of sort global known variables: time 9.82e-07/0.8242, allocations: 0 / 0.7136 GB, free: 175 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.003522/0.8277, allocations: 1.18 MB / 0.7148 GB, free: 174.9 MB / 494.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 21 * Number of states: 2 (smee.short.port_p.reference.gamma,mechanicalPowerSensor.relSpeedSensor.phi_rel) * 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 (291): * Single equations (assignments): 290 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(8,26,62.5%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0003821/0.8281, allocations: 227.4 kB / 0.715 GB, free: 174.8 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.007121/0.8352, allocations: 5.02 MB / 0.7199 GB, free: 172.9 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 4.589e-06/0.8353, allocations: 3.969 kB / 0.7199 GB, free: 172.9 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002866/0.8381, allocations: 2.271 MB / 0.7221 GB, free: 172 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002883/0.841, allocations: 0.6115 MB / 0.7227 GB, free: 171.8 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01507/0.8561, allocations: 13.8 MB / 0.7362 GB, free: 164.1 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00292/0.8591, allocations: 4.148 MB / 0.7402 GB, free: 162.4 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 0.00329/0.8624, allocations: 1.326 MB / 0.7415 GB, free: 162.3 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007182/0.8631, allocations: 276.9 kB / 0.7418 GB, free: 162.3 MB / 494.1 MB Notification: Performance of SimCode: time 6.01e-07/0.8631, allocations: 0 / 0.7418 GB, free: 162.3 MB / 494.1 MB Notification: Performance of Templates: time 0.05868/0.9218, allocations: 46.12 MB / 0.7868 GB, free: 119.8 MB / 494.1 MB make -j1 -f HanserModelica_HanserModelica.SynchronousMachines.SMEE_Slip2.makefile (rm -f HanserModelica_HanserModelica.SynchronousMachines.SMEE_Slip2.pipe ; mkfifo HanserModelica_HanserModelica.SynchronousMachines.SMEE_Slip2.pipe ; head -c 1048576 < HanserModelica_HanserModelica.SynchronousMachines.SMEE_Slip2.pipe >> ../files/HanserModelica_HanserModelica.SynchronousMachines.SMEE_Slip2.sim & ./HanserModelica_HanserModelica.SynchronousMachines.SMEE_Slip2 -abortSlowSimulation -alarm=480 -lv LOG_STATS > HanserModelica_HanserModelica.SynchronousMachines.SMEE_Slip2.pipe 2>&1)