Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr HanserModelica_HanserModelica.SynchronousMachines.SMEE_Synchronization2.conf.json 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) 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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 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 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) Running command: translateModel(HanserModelica.SynchronousMachines.SMEE_Synchronization2,tolerance=1e-08,outputFormat="empty",numberOfIntervals=5998,variableFilter="",fileNamePrefix="HanserModelica_HanserModelica.SynchronousMachines.SMEE_Synchronization2") translateModel(HanserModelica.SynchronousMachines.SMEE_Synchronization2,tolerance=1e-08,outputFormat="empty",numberOfIntervals=5998,variableFilter="",fileNamePrefix="HanserModelica_HanserModelica.SynchronousMachines.SMEE_Synchronization2") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.004364/0.004364, allocations: 169.5 kB / 15.11 MB, free: 5.973 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/package.mo): time 0.03658/0.03658, allocations: 8.792 MB / 24.65 MB, free: 4.113 MB / 18.57 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.198/1.198, allocations: 223.2 MB / 250.7 MB, free: 6.531 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008584/0.0008584, allocations: 102.7 kB / 304 MB, free: 3.992 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000365/0.0003651, allocations: 15.98 kB / 367.1 MB, free: 4.926 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2191/0.2195, allocations: 52.53 MB / 419.6 MB, free: 48.12 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1232/0.3427, allocations: 117 MB / 0.5241 GB, free: 3.988 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000226/0.343, allocations: 83.95 kB / 0.5241 GB, free: 3.906 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.4818/0.8248, allocations: 158 MB / 0.6784 GB, free: 25.09 MB / 426.7 MB Notification: Performance of FrontEnd: time 2.204e-06/0.8249, allocations: 0 / 0.6784 GB, free: 25.09 MB / 426.7 MB Notification: Performance of Transformations before backend: time 0.0003622/0.8252, allocations: 87.92 kB / 0.6785 GB, free: 25 MB / 426.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 965 * Number of variables: 965 Notification: Performance of Generate backend data structure: time 0.01077/0.836, allocations: 4.026 MB / 0.6824 GB, free: 20.9 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.276e-05/0.8361, allocations: 8.562 kB / 0.6824 GB, free: 20.89 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004487/0.8406, allocations: 0.8772 MB / 0.6833 GB, free: 20.01 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007854/0.8484, allocations: 3.644 MB / 0.6869 GB, free: 16.31 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001775/0.8486, allocations: 279.4 kB / 0.6871 GB, free: 16.04 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0009086/0.8496, allocations: 367.9 kB / 0.6875 GB, free: 15.68 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.008072/0.8576, allocations: 4.681 MB / 0.692 GB, free: 10.88 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.267e-05/0.8577, allocations: 3.984 kB / 0.692 GB, free: 10.88 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003914/0.8581, allocations: 160 kB / 0.6922 GB, free: 10.72 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001011/0.8583, allocations: 151.4 kB / 0.6923 GB, free: 10.57 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005727/0.864, allocations: 3.812 MB / 0.6961 GB, free: 6.754 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02191/0.8859, allocations: 15.78 MB / 0.7115 GB, free: 6.473 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006443/0.8924, allocations: 6.995 MB / 0.7183 GB, free: 14.57 MB / 458.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.006524/0.8989, allocations: 3.515 MB / 0.7217 GB, free: 10.96 MB / 458.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.82e-05/0.899, allocations: 55.88 kB / 0.7218 GB, free: 10.89 MB / 458.7 MB Notification: Performance of pre-optimization done (n=148): time 2.805e-06/0.899, allocations: 0 / 0.7218 GB, free: 10.89 MB / 458.7 MB Warning: The linear system: 1 : 3.0 * smee.stator.zeroInductor.i0 = smee.is[1] + smee.is[2] + smee.is[3] 2 : (-smee.is[3]) - smee.is[2] - smee.is[1] = 0.0 [ -1.0 , -1.0 ; -1.0 , -1.0 ] * [ smee.is[1] ; smee.is[2] ] = [ smee.is[3] + (-3.0) * smee.stator.zeroInductor.i0 ; smee.is[3] ] 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 matching and sorting (n=180): time 0.01392/0.9129, allocations: 7.271 MB / 0.7289 GB, free: 3.473 MB / 458.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.467e-05/0.913, allocations: 73.41 kB / 0.729 GB, free: 3.387 MB / 458.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003183/0.9162, allocations: 1.89 MB / 0.7308 GB, free: 1.469 MB / 458.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001213/0.9163, allocations: 57.7 kB / 0.7309 GB, free: 1.406 MB / 458.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.1859/1.102, allocations: 1.694 MB / 0.7325 GB, free: 76.7 MB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006993/1.103, allocations: 0.6176 MB / 0.7331 GB, free: 76.66 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001409/1.103, allocations: 44.78 kB / 0.7332 GB, free: 76.66 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 0.0001255/1.103, allocations: 389.9 kB / 0.7335 GB, free: 76.36 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001499/1.105, allocations: 0.8935 MB / 0.7344 GB, free: 76.35 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001585/1.106, allocations: 1.603 MB / 0.736 GB, free: 75.5 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001567/1.108, allocations: 1.181 MB / 0.7371 GB, free: 75.49 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.154e-05/1.108, allocations: 6.5 kB / 0.7371 GB, free: 75.49 MB / 458.7 MB Notification: Performance of matching and sorting (n=297) (initialization): time 0.004817/1.113, allocations: 3.165 MB / 0.7402 GB, free: 75.27 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.084e-05/1.113, allocations: 14.44 kB / 0.7402 GB, free: 75.27 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.877e-05/1.113, allocations: 27.27 kB / 0.7403 GB, free: 75.27 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009632/1.114, allocations: 450.4 kB / 0.7407 GB, free: 75.25 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001697/1.116, allocations: 0.4995 MB / 0.7412 GB, free: 75.25 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004961/1.121, allocations: 4.815 MB / 0.7459 GB, free: 73.87 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002295/1.123, allocations: 107.2 kB / 0.746 GB, free: 73.86 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001914/1.123, allocations: 99.69 kB / 0.7461 GB, free: 73.86 MB / 458.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 103 * 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 (262): * Single equations (assignments): 260 * 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,100.0%) 32} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.002142/1.125, allocations: 1.148 MB / 0.7472 GB, free: 73.74 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004231/1.126, allocations: 237.9 kB / 0.7474 GB, free: 73.62 MB / 458.7 MB Warning: The linear system: 1 : 3.0 * smee.stator.zeroInductor.i0 = smee.is[1] + smee.is[2] + smee.is[3] 2 : (-smee.is[3]) - smee.is[2] - smee.is[1] = 0.0 [ -1.0 , -1.0 ; -1.0 , -1.0 ] * [ smee.is[1] ; smee.is[2] ] = [ smee.is[3] + (-3.0) * smee.stator.zeroInductor.i0 ; smee.is[3] ] 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.003901/1.13, allocations: 2.688 MB / 0.7501 GB, free: 73.27 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.239e-05/1.13, allocations: 15.31 kB / 0.7501 GB, free: 73.27 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.799e-06/1.13, allocations: 6.25 kB / 0.7501 GB, free: 73.27 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.431e-05/1.13, allocations: 6.703 kB / 0.7501 GB, free: 73.27 MB / 458.7 MB Warning: The linear system: 1 : 3.0 * smee.stator.zeroInductor.i0 = smee.is[1] + smee.is[2] + smee.is[3] 2 : (-smee.is[3]) - smee.is[2] - smee.is[1] = 0.0 [ -1.0 , -1.0 ; -1.0 , -1.0 ] * [ smee.is[1] ; smee.is[2] ] = [ smee.is[3] + (-3.0) * smee.stator.zeroInductor.i0 ; smee.is[3] ] 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 removeSimpleEquations (simulation): time 0.00903/1.139, allocations: 6.243 MB / 0.7562 GB, free: 72.59 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.516e-06/1.139, allocations: 7.547 kB / 0.7562 GB, free: 72.59 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001271/1.14, allocations: 301.2 kB / 0.7565 GB, free: 72.59 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000923/1.141, allocations: 435.8 kB / 0.7569 GB, free: 72.57 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000117/1.141, allocations: 41.28 kB / 0.7569 GB, free: 72.57 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006009/1.147, allocations: 7.591 MB / 0.7643 GB, free: 68.31 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.705e-06/1.147, allocations: 5.219 kB / 0.7643 GB, free: 68.31 MB / 458.7 MB Warning: The linear system: 1 : 3.0 * smee.stator.zeroInductor.i0 = smee.is[1] + smee.is[2] + smee.is[3] 2 : (-smee.is[3]) - smee.is[2] - smee.is[1] = 0.0 [ -1.0 , -1.0 ; -1.0 , -1.0 ] * [ smee.is[1] ; smee.is[2] ] = [ smee.is[3] + (-3.0) * smee.stator.zeroInductor.i0 ; smee.is[3] ] 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 symbolicJacobian (simulation): time 0.005466/1.153, allocations: 3.986 MB / 0.7682 GB, free: 67.55 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001214/1.154, allocations: 0.5043 MB / 0.7687 GB, free: 67.34 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002916/1.154, allocations: 43.38 kB / 0.7688 GB, free: 67.34 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001022/1.155, allocations: 77.92 kB / 0.7688 GB, free: 67.34 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002656/1.155, allocations: 132.5 kB / 0.769 GB, free: 67.34 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.983e-05/1.155, allocations: 47.36 kB / 0.769 GB, free: 67.34 MB / 458.7 MB Notification: Performance of sorting global known variables: time 0.002237/1.158, allocations: 1.431 MB / 0.7704 GB, free: 67.19 MB / 458.7 MB Notification: Performance of sort global known variables: time 1.41e-07/1.158, allocations: 2.938 kB / 0.7704 GB, free: 67.19 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.002478/1.16, allocations: 0.7286 MB / 0.7711 GB, free: 67.19 MB / 458.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 7 * Number of states: 6 (smee.is[3],smee.inertiaRotor.w,smee.stator.core.Phi.re,smee.stator.core.Phi.im,smee.stator.zeroInductor.i0,constantTorque.phi) * 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 simulation (146): * Single equations (assignments): 144 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(6,69.4%) 28,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0004993/1.161, allocations: 360.7 kB / 0.7715 GB, free: 67.1 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.003481/1.164, allocations: 2.65 MB / 0.7741 GB, free: 66.8 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 3.386e-06/1.164, allocations: 0 / 0.7741 GB, free: 66.8 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001844/1.166, allocations: 1.491 MB / 0.7755 GB, free: 66.52 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002273/1.168, allocations: 0.5386 MB / 0.776 GB, free: 66.51 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01154/1.18, allocations: 8.013 MB / 0.7839 GB, free: 63.13 MB / 458.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002022/1.182, allocations: 2.615 MB / 0.7864 GB, free: 62.33 MB / 458.7 MB Notification: Performance of simCode: alias equations: time 0.002051/1.184, allocations: 0.534 MB / 0.7869 GB, free: 62.26 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004203/1.184, allocations: 155.7 kB / 0.7871 GB, free: 62.26 MB / 458.7 MB Notification: Performance of SimCode: time 7.52e-07/1.184, allocations: 0 / 0.7871 GB, free: 62.26 MB / 458.7 MB Notification: Performance of Templates: time 0.04877/1.233, allocations: 33.91 MB / 0.8202 GB, free: 60.8 MB / 458.7 MB make -j1 -f HanserModelica_HanserModelica.SynchronousMachines.SMEE_Synchronization2.makefile (rm -f HanserModelica_HanserModelica.SynchronousMachines.SMEE_Synchronization2.pipe ; mkfifo HanserModelica_HanserModelica.SynchronousMachines.SMEE_Synchronization2.pipe ; head -c 1048576 < HanserModelica_HanserModelica.SynchronousMachines.SMEE_Synchronization2.pipe >> ../files/HanserModelica_HanserModelica.SynchronousMachines.SMEE_Synchronization2.sim & ./HanserModelica_HanserModelica.SynchronousMachines.SMEE_Synchronization2 -abortSlowSimulation -alarm=480 -lv LOG_STATS > HanserModelica_HanserModelica.SynchronousMachines.SMEE_Synchronization2.pipe 2>&1)