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/package.mo", uses=false) Using package HanserModelica with version 2.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0/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: "" <> buildModelFMU(HanserModelica.SynchronousMachines.SMEE_ShortCircuit2,fileNamePrefix="HanserModelica_HanserModelica_SynchronousMachines_SMEE_ShortCircuit2",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(HanserModelica.SynchronousMachines.SMEE_ShortCircuit2,fileNamePrefix="HanserModelica_HanserModelica_SynchronousMachines_SMEE_ShortCircuit2",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009619/0.000962, allocations: 99.86 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.316/1.316, allocations: 223.2 MB / 238.9 MB, free: 5.461 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.00107/0.00107, allocations: 177 kB / 290.2 MB, free: 2.156 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0/package.mo): time 0.03263/0.03263, allocations: 8.781 MB / 350 MB, free: 4.656 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003485/0.0003487, allocations: 10.09 kB / 413.2 MB, free: 42.93 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0902/0.09057, allocations: 52.56 MB / 465.7 MB, free: 13.38 MB / 302.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.SynchronousMachines.SMEE_ShortCircuit2): time 0.01317/0.1038, allocations: 12.82 MB / 478.6 MB, free: 0.4961 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.009967/0.1138, allocations: 5.065 MB / 483.6 MB, free: 11.42 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002827/0.1167, allocations: 87.62 kB / 483.7 MB, free: 11.33 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002872/0.1196, allocations: 0.9251 MB / 484.6 MB, free: 10.4 MB / 318.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0/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.00467/0.1243, allocations: 1.378 MB / 486 MB, free: 9.023 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00209/0.1264, allocations: 0.6776 MB / 486.7 MB, free: 8.348 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.005615/0.132, allocations: 3.138 MB / 489.8 MB, free: 5.207 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003992/0.136, allocations: 2.417 MB / 492.2 MB, free: 2.742 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002487/0.1385, allocations: 1.401 MB / 493.6 MB, free: 1.336 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002924/0.1415, allocations: 1.645 MB / 495.3 MB, free: 15.68 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001067/0.1426, allocations: 232 kB / 495.5 MB, free: 15.46 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002713/0.1453, allocations: 411.7 kB / 495.9 MB, free: 15.05 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001586/0.1469, allocations: 0.8059 MB / 496.7 MB, free: 14.25 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001687/0.1486, allocations: 0.8239 MB / 497.5 MB, free: 13.41 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.007204/0.1558, allocations: 5.917 MB / 0.4917 GB, free: 7.48 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.198e-06/0.1559, allocations: 0 / 0.4917 GB, free: 7.48 MB / 334.1 MB Notification: Performance of FrontEnd: time 3.327e-06/0.1559, allocations: 0 / 0.4917 GB, free: 7.48 MB / 334.1 MB Notification: Performance of Transformations before backend: time 0.0003071/0.1562, allocations: 0 / 0.4917 GB, free: 7.48 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.01221/0.1684, allocations: 4.097 MB / 0.4957 GB, free: 3.312 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.791e-05/0.1685, allocations: 12.03 kB / 0.4957 GB, free: 3.301 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001623/0.1701, allocations: 0.5489 MB / 0.4962 GB, free: 2.742 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005393/0.1755, allocations: 0.9475 MB / 0.4971 GB, free: 1.789 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005972/0.1815, allocations: 2.531 MB / 0.4996 GB, free: 15.2 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002443/0.1818, allocations: 279.3 kB / 0.4999 GB, free: 14.93 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0007906/0.1826, allocations: 363.9 kB / 0.5002 GB, free: 14.57 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.008638/0.1912, allocations: 4.633 MB / 0.5047 GB, free: 9.891 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.006e-05/0.1914, allocations: 3.938 kB / 0.5047 GB, free: 9.887 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000326/0.1917, allocations: 148 kB / 0.5049 GB, free: 9.742 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001478/0.1918, allocations: 151.3 kB / 0.505 GB, free: 9.594 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.007086/0.1989, allocations: 3.882 MB / 0.5088 GB, free: 5.707 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02498/0.224, allocations: 15.58 MB / 0.524 GB, free: 5.668 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.2154/0.4394, allocations: 6.12 MB / 0.53 GB, free: 57.95 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.007184/0.4466, allocations: 4.153 MB / 0.5341 GB, free: 56.91 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.107e-05/0.4467, allocations: 46.53 kB / 0.5341 GB, free: 56.87 MB / 366.1 MB Notification: Performance of pre-optimization done (n=135): time 3.757e-06/0.4467, allocations: 0 / 0.5341 GB, free: 56.87 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.01347/0.4602, allocations: 6.711 MB / 0.5407 GB, free: 55.53 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.547e-05/0.4602, allocations: 73.59 kB / 0.5407 GB, free: 55.46 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003301/0.4635, allocations: 2.039 MB / 0.5427 GB, free: 55.21 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002095/0.4638, allocations: 55.83 kB / 0.5428 GB, free: 55.18 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001553/0.4653, allocations: 1.684 MB / 0.5444 GB, free: 54.36 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000631/0.466, allocations: 0.5653 MB / 0.545 GB, free: 54 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001211/0.4661, allocations: 49.69 kB / 0.545 GB, free: 54 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001743/0.4663, allocations: 394.7 kB / 0.5454 GB, free: 53.69 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00149/0.4678, allocations: 0.8065 MB / 0.5462 GB, free: 53.68 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001588/0.4694, allocations: 1.55 MB / 0.5477 GB, free: 52.45 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0101/0.4795, allocations: 2.779 MB / 0.5504 GB, free: 51.62 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.876e-05/0.4796, allocations: 6.969 kB / 0.5504 GB, free: 51.62 MB / 366.1 MB Notification: Performance of matching and sorting (n=290) (initialization): time 0.004904/0.4845, allocations: 2.982 MB / 0.5533 GB, free: 50.33 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.018e-05/0.4845, allocations: 15.75 kB / 0.5534 GB, free: 50.33 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.784e-05/0.4846, allocations: 23.62 kB / 0.5534 GB, free: 50.33 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009189/0.4855, allocations: 424.1 kB / 0.5538 GB, free: 50.2 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001504/0.487, allocations: 490.2 kB / 0.5542 GB, free: 50.14 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004648/0.4917, allocations: 4.547 MB / 0.5587 GB, free: 47.05 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001845/0.4935, allocations: 90.88 kB / 0.5588 GB, free: 47 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001344/0.4937, allocations: 94.66 kB / 0.5589 GB, free: 46.98 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.001722/0.4954, allocations: 1.099 MB / 0.5599 GB, free: 46.24 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003663/0.4958, allocations: 233.5 kB / 0.5602 GB, free: 46.12 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.003481/0.4993, allocations: 2.358 MB / 0.5625 GB, free: 44.64 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.807e-05/0.4993, allocations: 20.02 kB / 0.5625 GB, free: 44.63 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.215e-05/0.4993, allocations: 6.422 kB / 0.5625 GB, free: 44.63 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.355e-05/0.4993, allocations: 7.969 kB / 0.5625 GB, free: 44.62 MB / 366.1 MB Error: Internal error Circular Equalities Detected for Variables: ---------------------------------- Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00201/0.5013, allocations: 1.643 MB / 0.5641 GB, free: 43.34 MB / 366.1 MB Error: post-optimization module removeSimpleEquations (simulation) failed.