Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr HanserModelica_HanserModelica.SynchronousMachines.SMEE_Slip1.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_Slip1,tolerance=1e-06,outputFormat="empty",numberOfIntervals=60000,variableFilter="",fileNamePrefix="HanserModelica_HanserModelica.SynchronousMachines.SMEE_Slip1") translateModel(HanserModelica.SynchronousMachines.SMEE_Slip1,tolerance=1e-06,outputFormat="empty",numberOfIntervals=60000,variableFilter="",fileNamePrefix="HanserModelica_HanserModelica.SynchronousMachines.SMEE_Slip1") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001162/0.001162, allocations: 115.3 kB / 15.34 MB, free: 0.5156 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.447/1.447, allocations: 222.9 MB / 239 MB, free: 4.723 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.001675/0.001675, allocations: 184.5 kB / 289.2 MB, free: 2.469 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/package.mo): time 0.03291/0.03291, allocations: 8.785 MB / 348.2 MB, free: 4.859 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00149/0.001491, allocations: 74.58 kB / 410.6 MB, free: 42.33 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1233/0.1248, allocations: 51.56 MB / 462.1 MB, free: 14.78 MB / 302.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.SynchronousMachines.SMEE_Slip1): time 0.02711/0.1519, allocations: 24.98 MB / 487.1 MB, free: 5.684 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.01866/0.1706, allocations: 7.901 MB / 495 MB, free: 13.76 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00719/0.1779, allocations: 167.5 kB / 495.2 MB, free: 13.59 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01447/0.1924, allocations: 5.775 MB / 0.4892 GB, free: 7.809 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00978/0.2022, allocations: 2.491 MB / 0.4917 GB, free: 5.312 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.005632/0.2079, allocations: 1.512 MB / 0.4931 GB, free: 3.805 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.01219/0.2201, allocations: 7.254 MB / 0.5002 GB, free: 12.53 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.02193/0.242, allocations: 15.28 MB / 0.5151 GB, free: 13.12 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.006775/0.2488, allocations: 3.755 MB / 0.5188 GB, free: 9.352 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.007568/0.2565, allocations: 4.283 MB / 0.523 GB, free: 5.055 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.00361/0.2601, allocations: 1.07 MB / 0.524 GB, free: 3.984 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.005854/0.266, allocations: 1.445 MB / 0.5254 GB, free: 2.539 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.003861/0.2699, allocations: 2.151 MB / 0.5275 GB, free: 392 kB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.2253/0.4951, allocations: 4.104 MB / 0.5315 GB, free: 24.8 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01747/0.5127, allocations: 14.36 MB / 0.5456 GB, free: 22.98 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 9.578e-06/0.5127, allocations: 1.406 kB / 0.5456 GB, free: 22.98 MB / 366.1 MB Notification: Performance of FrontEnd: time 2.024e-06/0.5127, allocations: 1.219 kB / 0.5456 GB, free: 22.98 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0005526/0.5133, allocations: 1.188 kB / 0.5456 GB, free: 22.98 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.03065/0.544, allocations: 8.805 MB / 0.5542 GB, free: 19.06 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.206e-05/0.544, allocations: 9.281 kB / 0.5542 GB, free: 19.06 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02527/0.5693, allocations: 4.38 MB / 0.5585 GB, free: 17.4 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01/0.5793, allocations: 4.505 MB / 0.5629 GB, free: 16.05 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004072/0.5798, allocations: 493.2 kB / 0.5633 GB, free: 16.03 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002879/0.5826, allocations: 0.6307 MB / 0.5639 GB, free: 16.02 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02515/0.6078, allocations: 10.36 MB / 0.5741 GB, free: 10.68 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002054/0.608, allocations: 11.59 kB / 0.5741 GB, free: 10.67 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001672/0.6097, allocations: 263.4 kB / 0.5743 GB, free: 10.47 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003286/0.6101, allocations: 413.3 kB / 0.5747 GB, free: 10.39 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0203/0.6304, allocations: 9.862 MB / 0.5843 GB, free: 2.84 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0667/0.6971, allocations: 35.68 MB / 0.6192 GB, free: 14.59 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02099/0.7181, allocations: 20.67 MB / 0.6394 GB, free: 7.305 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004538/0.7227, allocations: 2.299 MB / 0.6416 GB, free: 5.004 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003503/0.7231, allocations: 221.2 kB / 0.6418 GB, free: 4.762 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.444e-05/0.7232, allocations: 72.25 kB / 0.6419 GB, free: 4.684 MB / 430.1 MB Notification: Performance of pre-optimization done (n=295): time 4.579e-06/0.7232, allocations: 0 / 0.6419 GB, free: 4.684 MB / 430.1 MB Notification: Performance of matching and sorting (n=301): time 0.02237/0.7456, allocations: 10.86 MB / 0.6525 GB, free: 9.711 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.04e-05/0.7457, allocations: 81.78 kB / 0.6526 GB, free: 9.617 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005009/0.7507, allocations: 3.029 MB / 0.6555 GB, free: 6.57 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0006356/0.7513, allocations: 73.7 kB / 0.6556 GB, free: 6.492 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002213/0.7536, allocations: 2.862 MB / 0.6584 GB, free: 3.613 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001308/0.7549, allocations: 1.031 MB / 0.6594 GB, free: 2.59 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001421/0.7563, allocations: 0.9055 MB / 0.6603 GB, free: 1.672 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 0.0001377/0.7565, allocations: 308.5 kB / 0.6606 GB, free: 1.371 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003387/0.7598, allocations: 2.024 MB / 0.6626 GB, free: 15.34 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004393/0.7643, allocations: 3.732 MB / 0.6662 GB, free: 10.85 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.008322/0.7726, allocations: 6.052 MB / 0.6721 GB, free: 4.223 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.87e-05/0.7727, allocations: 16 kB / 0.6721 GB, free: 4.207 MB / 462.1 MB Notification: Performance of matching and sorting (n=595) (initialization): time 0.01284/0.7856, allocations: 6.626 MB / 0.6786 GB, free: 13.89 MB / 478.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.387e-05/0.7856, allocations: 28 kB / 0.6786 GB, free: 13.86 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.25e-05/0.7857, allocations: 52 kB / 0.6787 GB, free: 13.81 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001769/0.7875, allocations: 0.6758 MB / 0.6793 GB, free: 13.13 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003846/0.7914, allocations: 1.066 MB / 0.6804 GB, free: 12.14 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008166/0.7996, allocations: 6.238 MB / 0.6865 GB, free: 5.809 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003771/0.8034, allocations: 275.5 kB / 0.6867 GB, free: 5.539 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004945/0.8039, allocations: 232 kB / 0.687 GB, free: 5.312 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.003686/0.8076, allocations: 2.312 MB / 0.6892 GB, free: 3.062 MB / 478.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006685/0.8082, allocations: 320 kB / 0.6895 GB, free: 2.746 MB / 478.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008209/0.8164, allocations: 4.639 MB / 0.6941 GB, free: 14.08 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.629e-05/0.8165, allocations: 39.94 kB / 0.6941 GB, free: 14.04 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.592e-05/0.8166, allocations: 4 kB / 0.6941 GB, free: 14.04 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.66e-05/0.8166, allocations: 15.94 kB / 0.6941 GB, free: 14.02 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.021/0.8376, allocations: 11.26 MB / 0.7051 GB, free: 2.645 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.82e-05/0.8377, allocations: 8.625 kB / 0.7051 GB, free: 2.637 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002052/0.8397, allocations: 0.5275 MB / 0.7056 GB, free: 2.137 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001611/0.8414, allocations: 0.5685 MB / 0.7062 GB, free: 1.566 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002032/0.8416, allocations: 63.98 kB / 0.7062 GB, free: 1.504 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.2017/1.043, allocations: 5.452 MB / 0.7116 GB, free: 173.1 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.963e-06/1.043, allocations: 10.53 kB / 0.7116 GB, free: 173.1 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01083/1.054, allocations: 6.576 MB / 0.718 GB, free: 172.5 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002195/1.056, allocations: 0.7207 MB / 0.7187 GB, free: 172.4 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008084/1.057, allocations: 63.22 kB / 0.7188 GB, free: 172.4 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001776/1.059, allocations: 144.5 kB / 0.7189 GB, free: 172.4 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004646/1.06, allocations: 213.6 kB / 0.7191 GB, free: 172.4 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002059/1.06, allocations: 88.48 kB / 0.7192 GB, free: 172.4 MB / 494.1 MB Notification: Performance of sorting global known variables: time 0.003699/1.063, allocations: 2.02 MB / 0.7212 GB, free: 171.9 MB / 494.1 MB Notification: Performance of sort global known variables: time 5.21e-07/1.063, allocations: 3.719 kB / 0.7212 GB, free: 171.9 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.005516/1.069, allocations: 1.172 MB / 0.7223 GB, free: 171.7 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.0005499/1.07, allocations: 233.2 kB / 0.7225 GB, free: 171.6 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.01626/1.086, allocations: 8.286 MB / 0.7306 GB, free: 169.7 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 8.155e-06/1.086, allocations: 0 / 0.7306 GB, free: 169.7 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003519/1.089, allocations: 2.269 MB / 0.7328 GB, free: 168.8 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003588/1.093, allocations: 0.6411 MB / 0.7335 GB, free: 168.5 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01849/1.112, allocations: 13.81 MB / 0.747 GB, free: 156.9 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003614/1.115, allocations: 4.15 MB / 0.751 GB, free: 153.7 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 0.003886/1.119, allocations: 1.325 MB / 0.7523 GB, free: 152.8 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008607/1.12, allocations: 274.9 kB / 0.7526 GB, free: 152.5 MB / 494.1 MB Notification: Performance of SimCode: time 7.61e-07/1.12, allocations: 0 / 0.7526 GB, free: 152.5 MB / 494.1 MB Notification: Performance of Templates: time 0.06811/1.188, allocations: 47.84 MB / 0.7993 GB, free: 106.9 MB / 494.1 MB make -j1 -f HanserModelica_HanserModelica.SynchronousMachines.SMEE_Slip1.makefile (rm -f HanserModelica_HanserModelica.SynchronousMachines.SMEE_Slip1.pipe ; mkfifo HanserModelica_HanserModelica.SynchronousMachines.SMEE_Slip1.pipe ; head -c 1048576 < HanserModelica_HanserModelica.SynchronousMachines.SMEE_Slip1.pipe >> ../files/HanserModelica_HanserModelica.SynchronousMachines.SMEE_Slip1.sim & ./HanserModelica_HanserModelica.SynchronousMachines.SMEE_Slip1 -abortSlowSimulation -alarm=480 -lv LOG_STATS > HanserModelica_HanserModelica.SynchronousMachines.SMEE_Slip1.pipe 2>&1)