Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr HanserModelica_HanserModelica.SynchronousMachines.SMEE_ShortCircuit2.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_ShortCircuit2,tolerance=1e-08,outputFormat="empty",numberOfIntervals=10000,variableFilter="",fileNamePrefix="HanserModelica_HanserModelica.SynchronousMachines.SMEE_ShortCircuit2") translateModel(HanserModelica.SynchronousMachines.SMEE_ShortCircuit2,tolerance=1e-08,outputFormat="empty",numberOfIntervals=10000,variableFilter="",fileNamePrefix="HanserModelica_HanserModelica.SynchronousMachines.SMEE_ShortCircuit2") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009086/0.0009087, allocations: 99.47 kB / 15.05 MB, free: 1.105 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.372/1.372, allocations: 223.2 MB / 238.9 MB, free: 5.449 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.001123/0.001122, allocations: 181 kB / 290.2 MB, free: 2.145 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/package.mo): time 0.0329/0.0329, allocations: 8.8 MB / 350.1 MB, free: 4.676 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003927/0.0003928, allocations: 9.531 kB / 413.1 MB, free: 42.99 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09751/0.09793, allocations: 52.56 MB / 465.6 MB, free: 13.49 MB / 302.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.SynchronousMachines.SMEE_ShortCircuit2): time 0.01348/0.1114, allocations: 12.82 MB / 478.5 MB, free: 0.6133 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.01107/0.1226, allocations: 5.072 MB / 483.5 MB, free: 11.53 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002788/0.1254, allocations: 79.69 kB / 483.6 MB, free: 11.45 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002624/0.128, allocations: 0.9211 MB / 484.5 MB, free: 10.52 MB / 318.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/SynchronousMachines/Templates/SMEE_ShortCircuit.mo:18:3-19:30:writable] Warning: Conditional component ‘ir‘ is used in a non-connect context. Notification: Performance of NFTyping.typeBindings: time 0.004586/0.1326, allocations: 1.385 MB / 485.9 MB, free: 9.137 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002031/0.1347, allocations: 0.6711 MB / 486.6 MB, free: 8.469 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.005181/0.1399, allocations: 3.139 MB / 489.7 MB, free: 5.328 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00301/0.1429, allocations: 2.413 MB / 492.2 MB, free: 2.867 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002365/0.1453, allocations: 1.405 MB / 493.6 MB, free: 1.457 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002147/0.1474, allocations: 1.642 MB / 495.2 MB, free: 15.81 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0006508/0.1481, allocations: 232 kB / 495.4 MB, free: 15.58 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001492/0.1496, allocations: 403.8 kB / 495.8 MB, free: 15.19 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0007861/0.1504, allocations: 0.8058 MB / 496.6 MB, free: 14.38 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001145/0.1516, allocations: 0.82 MB / 497.4 MB, free: 13.55 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00632/0.1579, allocations: 5.929 MB / 0.4916 GB, free: 7.605 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.766e-06/0.1579, allocations: 0 / 0.4916 GB, free: 7.605 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.593e-06/0.1579, allocations: 0 / 0.4916 GB, free: 7.605 MB / 334.1 MB Notification: Performance of Transformations before backend: time 0.0002044/0.1581, allocations: 0 / 0.4916 GB, free: 7.605 MB / 334.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 962 * Number of variables: 962 Notification: Performance of Generate backend data structure: time 0.01061/0.1688, allocations: 4.097 MB / 0.4956 GB, free: 3.438 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.822e-05/0.1688, allocations: 8.031 kB / 0.4956 GB, free: 3.43 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005383/0.1742, allocations: 0.9592 MB / 0.4965 GB, free: 2.465 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006395/0.1806, allocations: 2.519 MB / 0.499 GB, free: 15.89 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002501/0.1809, allocations: 275.4 kB / 0.4992 GB, free: 15.62 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0007879/0.1817, allocations: 363.9 kB / 0.4996 GB, free: 15.27 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.009087/0.1908, allocations: 4.625 MB / 0.5041 GB, free: 10.59 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.908e-05/0.1909, allocations: 11.84 kB / 0.5041 GB, free: 10.58 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000336/0.1913, allocations: 152 kB / 0.5043 GB, free: 10.43 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000149/0.1914, allocations: 155.3 kB / 0.5044 GB, free: 10.28 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.007849/0.1993, allocations: 3.882 MB / 0.5082 GB, free: 6.391 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02694/0.2262, allocations: 15.56 MB / 0.5234 GB, free: 6.375 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.2056/0.4319, allocations: 6.119 MB / 0.5294 GB, free: 57.6 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.007298/0.4392, allocations: 4.163 MB / 0.5334 GB, free: 56.57 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.744e-05/0.4393, allocations: 46.58 kB / 0.5335 GB, free: 56.53 MB / 366.1 MB Notification: Performance of pre-optimization done (n=135): time 3.797e-06/0.4393, allocations: 3.859 kB / 0.5335 GB, free: 56.53 MB / 366.1 MB Warning: The linear system: 1 : smee.is[2] = -smee.is[1] 2 : 3.0 * smee.stator.zeroInductor.i0 = smee.is[1] + smee.is[2] + smee.is[3] [ 1.0 , 1.0 ; -1.0 , -1.0 ] * [ smee.is[2] ; smee.is[1] ] = [ 0.0 ; smee.is[3] + (-3.0) * smee.stator.zeroInductor.i0 ] might be structurally or numerically singular for variable smee.is[1] since U(2,2) = 0.0. It might be hard to solve. Compilation continues anyway. Notification: Performance of matching and sorting (n=167): time 0.01458/0.4539, allocations: 6.698 MB / 0.54 GB, free: 55.19 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.929e-05/0.454, allocations: 69.69 kB / 0.5401 GB, free: 55.12 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003709/0.4577, allocations: 2.048 MB / 0.5421 GB, free: 54.87 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002206/0.4579, allocations: 53.42 kB / 0.5421 GB, free: 54.84 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001239/0.4592, allocations: 1.68 MB / 0.5438 GB, free: 54.02 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004281/0.4596, allocations: 0.5756 MB / 0.5443 GB, free: 53.65 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.684e-05/0.4597, allocations: 43.62 kB / 0.5444 GB, free: 53.65 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.000132/0.4598, allocations: 396.6 kB / 0.5448 GB, free: 53.35 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00133/0.4612, allocations: 0.806 MB / 0.5456 GB, free: 53.03 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001558/0.4627, allocations: 1.55 MB / 0.5471 GB, free: 51.75 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01015/0.4729, allocations: 2.779 MB / 0.5498 GB, free: 50.93 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.79e-05/0.473, allocations: 6.969 kB / 0.5498 GB, free: 50.93 MB / 366.1 MB Notification: Performance of matching and sorting (n=290) (initialization): time 0.005017/0.478, allocations: 2.98 MB / 0.5527 GB, free: 49.63 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.673e-05/0.4781, allocations: 15.75 kB / 0.5527 GB, free: 49.63 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.487e-05/0.4781, allocations: 23.72 kB / 0.5527 GB, free: 49.63 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009049/0.479, allocations: 424.8 kB / 0.5531 GB, free: 49.5 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001537/0.4805, allocations: 493.7 kB / 0.5536 GB, free: 49.45 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00458/0.4851, allocations: 4.541 MB / 0.558 GB, free: 46.35 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001699/0.4869, allocations: 98.66 kB / 0.5581 GB, free: 46.3 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001246/0.487, allocations: 102 kB / 0.5582 GB, free: 46.28 MB / 366.1 MB Warning: The initial conditions are over specified. The following 1 initial equations are redundant, so they are removed from the initialization sytem: smee.is[1] = 0.0. Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 109 * Number of states: 0 () * Number of discrete variables: 1 (booleanReplicator.y[3]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (256): * Single equations (assignments): 254 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 1 {(2,100.0%)} * Non-linear Jacobian: 0 * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(3,77.8%) 31} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.001683/0.4887, allocations: 1.092 MB / 0.5593 GB, free: 45.54 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002939/0.489, allocations: 228.7 kB / 0.5595 GB, free: 45.42 MB / 366.1 MB Warning: The linear system: 1 : smee.is[2] = -smee.is[1] 2 : 3.0 * smee.stator.zeroInductor.i0 = smee.is[1] + smee.is[2] + smee.is[3] [ 1.0 , 1.0 ; -1.0 , -1.0 ] * [ smee.is[1] ; smee.is[2] ] = [ 0.0 ; smee.is[3] + (-3.0) * smee.stator.zeroInductor.i0 ] might be structurally or numerically singular for variable smee.is[2] since U(2,2) = 0.0. It might be hard to solve. Compilation continues anyway. Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003239/0.4922, allocations: 2.371 MB / 0.5618 GB, free: 43.93 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.109e-05/0.4922, allocations: 23.89 kB / 0.5619 GB, free: 43.93 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.326e-06/0.4923, allocations: 7.531 kB / 0.5619 GB, free: 43.93 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.278e-05/0.4923, allocations: 7.969 kB / 0.5619 GB, free: 43.92 MB / 366.1 MB Error: Internal error Circular Equalities Detected for Variables: ---------------------------------- Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001885/0.4942, allocations: 1.639 MB / 0.5635 GB, free: 42.63 MB / 366.1 MB Error: post-optimization module removeSimpleEquations (simulation) failed.