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.001608/0.001608, allocations: 104.5 kB / 16.35 MB, free: 5.875 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.33/1.33, allocations: 222.9 MB / 240 MB, free: 4.512 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.001245/0.001245, allocations: 184.5 kB / 290.3 MB, free: 2.25 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/package.mo): time 0.03604/0.03604, allocations: 8.8 MB / 349.3 MB, free: 4.617 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001722/0.001722, allocations: 83.16 kB / 412.5 MB, free: 41.68 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08431/0.08605, allocations: 51.56 MB / 464.1 MB, free: 13.57 MB / 302.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.SynchronousMachines.SMEE_Slip1): time 0.02746/0.1135, allocations: 25.41 MB / 489.5 MB, free: 4.035 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.01558/0.1292, allocations: 8.014 MB / 497.5 MB, free: 12 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004238/0.1334, allocations: 171.5 kB / 497.7 MB, free: 11.83 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01364/0.1471, allocations: 6.109 MB / 0.492 GB, free: 5.703 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.008514/0.1557, allocations: 2.744 MB / 0.4947 GB, free: 2.949 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004596/0.1603, allocations: 1.616 MB / 0.4962 GB, free: 1.336 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.01003/0.1703, allocations: 7.276 MB / 0.5033 GB, free: 10.04 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.02207/0.1924, allocations: 13.31 MB / 0.5163 GB, free: 12.59 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.006432/0.1989, allocations: 3.728 MB / 0.52 GB, free: 8.852 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.006528/0.2055, allocations: 4.216 MB / 0.5241 GB, free: 4.621 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.002795/0.2083, allocations: 1.07 MB / 0.5251 GB, free: 3.551 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004103/0.2124, allocations: 1.441 MB / 0.5265 GB, free: 2.109 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.1818/0.3942, allocations: 2.143 MB / 0.5286 GB, free: 23.78 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.005073/0.3993, allocations: 4.107 MB / 0.5326 GB, free: 23.59 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01157/0.4109, allocations: 14.44 MB / 0.5467 GB, free: 22.14 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.343e-06/0.4109, allocations: 3.688 kB / 0.5468 GB, free: 22.14 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.804e-06/0.4109, allocations: 3.938 kB / 0.5468 GB, free: 22.14 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0003235/0.4113, allocations: 4 kB / 0.5468 GB, free: 22.14 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.02918/0.4404, allocations: 8.768 MB / 0.5553 GB, free: 18.24 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.658e-05/0.4405, allocations: 10.81 kB / 0.5553 GB, free: 18.24 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02589/0.4664, allocations: 4.398 MB / 0.5596 GB, free: 16.59 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01035/0.4768, allocations: 4.624 MB / 0.5641 GB, free: 15.17 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002838/0.4771, allocations: 481 kB / 0.5646 GB, free: 15.15 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001931/0.479, allocations: 0.6259 MB / 0.5652 GB, free: 15.15 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01628/0.4953, allocations: 10.35 MB / 0.5753 GB, free: 9.418 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001399/0.4955, allocations: 15.31 kB / 0.5753 GB, free: 9.41 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0007185/0.4962, allocations: 262.1 kB / 0.5756 GB, free: 9.215 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003616/0.4966, allocations: 423.4 kB / 0.576 GB, free: 9.125 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02745/0.5241, allocations: 9.871 MB / 0.5856 GB, free: 1.559 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1056/0.6297, allocations: 35.29 MB / 0.6201 GB, free: 13.67 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.03439/0.6641, allocations: 20.67 MB / 0.6403 GB, free: 6.441 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.005846/0.67, allocations: 2.3 MB / 0.6425 GB, free: 4.137 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0004878/0.6705, allocations: 233.1 kB / 0.6427 GB, free: 3.883 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.716e-05/0.6706, allocations: 64.89 kB / 0.6428 GB, free: 3.809 MB / 430.1 MB Notification: Performance of pre-optimization done (n=295): time 7.605e-06/0.6707, allocations: 4 kB / 0.6428 GB, free: 3.805 MB / 430.1 MB Notification: Performance of matching and sorting (n=301): time 0.03664/0.7073, allocations: 10.86 MB / 0.6534 GB, free: 8.836 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.323e-05/0.7074, allocations: 85.78 kB / 0.6535 GB, free: 8.738 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007613/0.715, allocations: 3.026 MB / 0.6564 GB, free: 5.695 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0006068/0.7157, allocations: 69.7 kB / 0.6565 GB, free: 5.621 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.003005/0.7187, allocations: 2.865 MB / 0.6593 GB, free: 2.738 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001609/0.7203, allocations: 1.031 MB / 0.6603 GB, free: 1.715 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002274/0.7226, allocations: 0.9016 MB / 0.6612 GB, free: 0.8008 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 0.0001423/0.7228, allocations: 308.5 kB / 0.6615 GB, free: 0.5 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005557/0.7284, allocations: 2.027 MB / 0.6635 GB, free: 14.46 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.007612/0.736, allocations: 3.724 MB / 0.6671 GB, free: 9.98 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01443/0.7505, allocations: 6.047 MB / 0.673 GB, free: 3.359 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.949e-05/0.7506, allocations: 19.94 kB / 0.673 GB, free: 3.34 MB / 462.1 MB Notification: Performance of matching and sorting (n=595) (initialization): time 0.01176/0.7624, allocations: 6.634 MB / 0.6795 GB, free: 13.01 MB / 478.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.613e-05/0.7625, allocations: 28 kB / 0.6795 GB, free: 12.98 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001193/0.7626, allocations: 56 kB / 0.6796 GB, free: 12.93 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001833/0.7644, allocations: 0.6642 MB / 0.6802 GB, free: 12.26 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00387/0.7683, allocations: 1.072 MB / 0.6813 GB, free: 11.27 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008538/0.7769, allocations: 6.222 MB / 0.6874 GB, free: 4.941 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004027/0.7809, allocations: 277.5 kB / 0.6876 GB, free: 4.672 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005612/0.7815, allocations: 232 kB / 0.6878 GB, free: 4.445 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.005288/0.7868, allocations: 2.32 MB / 0.6901 GB, free: 2.191 MB / 478.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007908/0.7876, allocations: 316.1 kB / 0.6904 GB, free: 1.879 MB / 478.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007739/0.7954, allocations: 4.631 MB / 0.6949 GB, free: 13.21 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.632e-05/0.7954, allocations: 35.94 kB / 0.695 GB, free: 13.18 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.078e-05/0.7954, allocations: 4 kB / 0.695 GB, free: 13.18 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.711e-05/0.7955, allocations: 15.94 kB / 0.695 GB, free: 13.16 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01978/0.8153, allocations: 11.09 MB / 0.7058 GB, free: 2.043 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.515e-05/0.8153, allocations: 4 kB / 0.7058 GB, free: 2.039 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002106/0.8174, allocations: 0.5307 MB / 0.7063 GB, free: 1.539 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001583/0.819, allocations: 0.5685 MB / 0.7069 GB, free: 0.9688 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002187/0.8193, allocations: 67.98 kB / 0.707 GB, free: 0.9023 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.1899/1.009, allocations: 5.447 MB / 0.7123 GB, free: 172.7 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.668e-06/1.009, allocations: 5.156 kB / 0.7123 GB, free: 172.7 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.009461/1.019, allocations: 6.586 MB / 0.7187 GB, free: 172.2 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001846/1.021, allocations: 0.72 MB / 0.7194 GB, free: 172.1 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000543/1.021, allocations: 57.5 kB / 0.7195 GB, free: 172.1 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00159/1.023, allocations: 144 kB / 0.7196 GB, free: 172 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003948/1.023, allocations: 214.1 kB / 0.7198 GB, free: 172 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001802/1.023, allocations: 89.59 kB / 0.7199 GB, free: 172 MB / 494.1 MB Notification: Performance of sorting global known variables: time 0.002982/1.026, allocations: 2.019 MB / 0.7219 GB, free: 171.2 MB / 494.1 MB Notification: Performance of sort global known variables: time 2.9e-07/1.026, allocations: 0 / 0.7219 GB, free: 171.2 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.004438/1.031, allocations: 1.174 MB / 0.723 GB, free: 171.1 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.0004615/1.031, allocations: 223.3 kB / 0.7232 GB, free: 170.9 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.007313/1.039, allocations: 5.041 MB / 0.7282 GB, free: 169.1 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 8.707e-06/1.039, allocations: 4.969 kB / 0.7282 GB, free: 169.1 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003311/1.042, allocations: 2.261 MB / 0.7304 GB, free: 168.2 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003383/1.045, allocations: 0.6553 MB / 0.731 GB, free: 167.9 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01524/1.061, allocations: 10.97 MB / 0.7417 GB, free: 162.4 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00306/1.064, allocations: 4.16 MB / 0.7458 GB, free: 159.2 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 0.003119/1.067, allocations: 1.325 MB / 0.7471 GB, free: 158.3 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007342/1.068, allocations: 273.7 kB / 0.7473 GB, free: 158.1 MB / 494.1 MB Notification: Performance of SimCode: time 8.02e-07/1.068, allocations: 0 / 0.7473 GB, free: 158.1 MB / 494.1 MB Notification: Performance of Templates: time 0.06355/1.131, allocations: 43.55 MB / 0.7899 GB, free: 116.8 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 -s gbode -lv LOG_STATS > HanserModelica_HanserModelica.SynchronousMachines.SMEE_Slip1.pipe 2>&1)