Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr HanserModelica_HanserModelica.SynchronousMachines.SMEE_Slip4.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_Slip4,tolerance=1e-06,outputFormat="empty",numberOfIntervals=60000,variableFilter="",fileNamePrefix="HanserModelica_HanserModelica.SynchronousMachines.SMEE_Slip4") translateModel(HanserModelica.SynchronousMachines.SMEE_Slip4,tolerance=1e-06,outputFormat="empty",numberOfIntervals=60000,variableFilter="",fileNamePrefix="HanserModelica_HanserModelica.SynchronousMachines.SMEE_Slip4") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001096/0.001096, allocations: 106.9 kB / 16.36 MB, free: 5.824 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.349/1.349, allocations: 222.9 MB / 240 MB, free: 4.504 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.001279/0.001279, allocations: 188.5 kB / 290.3 MB, free: 2.234 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/package.mo): time 0.03504/0.03504, allocations: 8.799 MB / 349.3 MB, free: 4.59 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001525/0.001525, allocations: 76.81 kB / 412.5 MB, free: 41.68 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08863/0.09018, allocations: 51.57 MB / 464.1 MB, free: 13.51 MB / 302.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.SynchronousMachines.SMEE_Slip4): time 0.0248/0.115, allocations: 25.42 MB / 489.5 MB, free: 3.957 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.01489/0.1299, allocations: 8.01 MB / 497.5 MB, free: 11.92 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003659/0.1337, allocations: 171.5 kB / 497.7 MB, free: 11.75 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01296/0.1466, allocations: 6.113 MB / 0.492 GB, free: 5.625 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.007286/0.1539, allocations: 2.741 MB / 0.4947 GB, free: 2.875 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003632/0.1576, allocations: 1.619 MB / 0.4963 GB, free: 1.258 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.008036/0.1656, allocations: 7.272 MB / 0.5034 GB, free: 9.965 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01571/0.1814, allocations: 13.31 MB / 0.5164 GB, free: 12.52 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.005459/0.1869, allocations: 3.74 MB / 0.52 GB, free: 8.766 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.005665/0.1926, allocations: 4.216 MB / 0.5241 GB, free: 4.535 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001727/0.1943, allocations: 1.07 MB / 0.5252 GB, free: 3.465 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002844/0.1972, allocations: 1.433 MB / 0.5266 GB, free: 2.031 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.1679/0.365, allocations: 2.142 MB / 0.5287 GB, free: 23.77 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.004951/0.37, allocations: 4.111 MB / 0.5327 GB, free: 23.57 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01228/0.3823, allocations: 14.44 MB / 0.5468 GB, free: 22.11 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 9.788e-06/0.3824, allocations: 1.75 kB / 0.5468 GB, free: 22.11 MB / 366.1 MB Notification: Performance of FrontEnd: time 2.385e-06/0.3824, allocations: 0 / 0.5468 GB, free: 22.11 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0004495/0.3828, allocations: 0 / 0.5468 GB, free: 22.11 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.02774/0.4106, allocations: 8.769 MB / 0.5553 GB, free: 18.2 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.182e-05/0.4107, allocations: 8.781 kB / 0.5553 GB, free: 18.2 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02335/0.434, allocations: 4.409 MB / 0.5597 GB, free: 16.55 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01033/0.4444, allocations: 4.615 MB / 0.5642 GB, free: 15.13 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003127/0.4447, allocations: 486.5 kB / 0.5646 GB, free: 15.12 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001758/0.4465, allocations: 0.6229 MB / 0.5652 GB, free: 15.11 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01645/0.4629, allocations: 10.35 MB / 0.5753 GB, free: 9.398 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000126/0.4631, allocations: 14.62 kB / 0.5754 GB, free: 9.391 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0006242/0.4637, allocations: 264.6 kB / 0.5756 GB, free: 9.195 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000275/0.464, allocations: 422.2 kB / 0.576 GB, free: 9.105 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01387/0.4779, allocations: 9.865 MB / 0.5856 GB, free: 1.512 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04973/0.5277, allocations: 35.3 MB / 0.6201 GB, free: 13.61 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01601/0.5437, allocations: 20.66 MB / 0.6403 GB, free: 6.391 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002994/0.5467, allocations: 2.305 MB / 0.6425 GB, free: 4.082 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002654/0.547, allocations: 221.7 kB / 0.6428 GB, free: 3.836 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.989e-05/0.5471, allocations: 72.83 kB / 0.6428 GB, free: 3.754 MB / 430.1 MB Notification: Performance of pre-optimization done (n=295): time 4.528e-06/0.5471, allocations: 0 / 0.6428 GB, free: 3.754 MB / 430.1 MB Notification: Performance of matching and sorting (n=301): time 0.01832/0.5654, allocations: 10.87 MB / 0.6534 GB, free: 8.777 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.608e-05/0.5655, allocations: 81.78 kB / 0.6535 GB, free: 8.684 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004164/0.5696, allocations: 3.021 MB / 0.6565 GB, free: 5.645 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001534/0.5698, allocations: 77.7 kB / 0.6565 GB, free: 5.562 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001509/0.5713, allocations: 2.863 MB / 0.6593 GB, free: 2.68 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006493/0.572, allocations: 1.03 MB / 0.6603 GB, free: 1.66 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00119/0.5732, allocations: 0.9094 MB / 0.6612 GB, free: 0.7383 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 7.534e-05/0.5733, allocations: 301.1 kB / 0.6615 GB, free: 452 kB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002582/0.5758, allocations: 2.027 MB / 0.6635 GB, free: 14.41 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003503/0.5794, allocations: 3.72 MB / 0.6671 GB, free: 9.926 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00632/0.5857, allocations: 6.05 MB / 0.673 GB, free: 3.305 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.184e-05/0.5857, allocations: 16 kB / 0.673 GB, free: 3.289 MB / 462.1 MB Notification: Performance of matching and sorting (n=595) (initialization): time 0.009172/0.5949, allocations: 6.629 MB / 0.6795 GB, free: 12.97 MB / 478.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.885e-05/0.595, allocations: 32 kB / 0.6796 GB, free: 12.94 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.239e-05/0.595, allocations: 54 kB / 0.6796 GB, free: 12.89 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001587/0.5966, allocations: 0.672 MB / 0.6803 GB, free: 12.21 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003173/0.5998, allocations: 1.066 MB / 0.6813 GB, free: 11.22 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007589/0.6074, allocations: 6.236 MB / 0.6874 GB, free: 4.887 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002728/0.6101, allocations: 283.5 kB / 0.6877 GB, free: 4.609 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003149/0.6105, allocations: 228 kB / 0.6879 GB, free: 4.387 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.003157/0.6136, allocations: 2.31 MB / 0.6901 GB, free: 2.141 MB / 478.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004842/0.6141, allocations: 324 kB / 0.6904 GB, free: 1.82 MB / 478.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006769/0.6209, allocations: 4.624 MB / 0.695 GB, free: 13.16 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.231e-05/0.6209, allocations: 35.94 kB / 0.695 GB, free: 13.13 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.868e-06/0.6209, allocations: 8 kB / 0.695 GB, free: 13.12 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.203e-05/0.621, allocations: 11.95 kB / 0.695 GB, free: 13.11 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01557/0.6365, allocations: 11.09 MB / 0.7058 GB, free: 1.996 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.065e-05/0.6366, allocations: 8 kB / 0.7059 GB, free: 1.988 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0019/0.6385, allocations: 0.5323 MB / 0.7064 GB, free: 1.484 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001394/0.6399, allocations: 0.5685 MB / 0.7069 GB, free: 0.9141 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001639/0.6401, allocations: 63.98 kB / 0.707 GB, free: 0.8516 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.1934/0.8335, allocations: 5.445 MB / 0.7123 GB, free: 173 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.402e-06/0.8335, allocations: 8.281 kB / 0.7123 GB, free: 173 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01051/0.844, allocations: 6.584 MB / 0.7187 GB, free: 172.4 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002119/0.8462, allocations: 0.72 MB / 0.7194 GB, free: 172.3 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007907/0.847, allocations: 59.3 kB / 0.7195 GB, free: 172.3 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002637/0.8497, allocations: 146.5 kB / 0.7196 GB, free: 172.2 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004161/0.8501, allocations: 215.3 kB / 0.7198 GB, free: 172.2 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001948/0.8503, allocations: 86.84 kB / 0.7199 GB, free: 172.2 MB / 494.1 MB Notification: Performance of sorting global known variables: time 0.003096/0.8534, allocations: 2.02 MB / 0.7219 GB, free: 171.4 MB / 494.1 MB Notification: Performance of sort global known variables: time 2.6e-07/0.8534, allocations: 0 / 0.7219 GB, free: 171.4 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.004895/0.8583, allocations: 1.168 MB / 0.723 GB, free: 171.3 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.0005418/0.8589, allocations: 232.1 kB / 0.7233 GB, free: 171.1 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.007634/0.8665, allocations: 5.042 MB / 0.7282 GB, free: 169.3 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 8.436e-06/0.8665, allocations: 0 / 0.7282 GB, free: 169.3 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003224/0.8698, allocations: 2.265 MB / 0.7304 GB, free: 168.4 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003309/0.8731, allocations: 0.652 MB / 0.731 GB, free: 168.2 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0159/0.889, allocations: 10.98 MB / 0.7418 GB, free: 162.4 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003254/0.8923, allocations: 4.147 MB / 0.7458 GB, free: 159.1 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 0.003347/0.8957, allocations: 1.324 MB / 0.7471 GB, free: 158.3 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000877/0.8966, allocations: 274.5 kB / 0.7474 GB, free: 158 MB / 494.1 MB Notification: Performance of SimCode: time 8.72e-07/0.8966, allocations: 7.938 kB / 0.7474 GB, free: 158 MB / 494.1 MB Notification: Performance of Templates: time 0.06318/0.9598, allocations: 43.56 MB / 0.7899 GB, free: 116.8 MB / 494.1 MB make -j1 -f HanserModelica_HanserModelica.SynchronousMachines.SMEE_Slip4.makefile (rm -f HanserModelica_HanserModelica.SynchronousMachines.SMEE_Slip4.pipe ; mkfifo HanserModelica_HanserModelica.SynchronousMachines.SMEE_Slip4.pipe ; head -c 1048576 < HanserModelica_HanserModelica.SynchronousMachines.SMEE_Slip4.pipe >> ../files/HanserModelica_HanserModelica.SynchronousMachines.SMEE_Slip4.sim & ./HanserModelica_HanserModelica.SynchronousMachines.SMEE_Slip4 -abortSlowSimulation -alarm=480 -s gbode -lv LOG_STATS > HanserModelica_HanserModelica.SynchronousMachines.SMEE_Slip4.pipe 2>&1)