Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr HanserModelica_HanserModelica.SynchronousMachines.SMEE_Synchronization3.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 1.1.1-master/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package HanserModelica with version 1.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 1.1.1-master/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: translateModel(HanserModelica.SynchronousMachines.SMEE_Synchronization3,tolerance=1e-08,outputFormat="empty",numberOfIntervals=5998,variableFilter="",fileNamePrefix="HanserModelica_HanserModelica.SynchronousMachines.SMEE_Synchronization3") translateModel(HanserModelica.SynchronousMachines.SMEE_Synchronization3,tolerance=1e-08,outputFormat="empty",numberOfIntervals=5998,variableFilter="",fileNamePrefix="HanserModelica_HanserModelica.SynchronousMachines.SMEE_Synchronization3") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001652/0.001651, allocations: 171.5 kB / 16.11 MB, free: 5.582 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 1.1.1-master/package.mo): time 0.04684/0.04684, allocations: 8.772 MB / 25.64 MB, free: 3.363 MB / 18.57 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.711/1.711, allocations: 205.4 MB / 233.9 MB, free: 12.47 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.00145/0.00145, allocations: 86.3 kB / 284.4 MB, free: 14.32 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0007956/0.0007957, allocations: 12 kB / 344.8 MB, free: 1.859 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2769/0.2777, allocations: 49.71 MB / 394.5 MB, free: 36.75 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3404/0.6181, allocations: 117 MB / 0.4995 GB, free: 102.2 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002925/0.6185, allocations: 79.41 kB / 0.4996 GB, free: 102.2 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.3395/0.958, allocations: 157.8 MB / 0.6537 GB, free: 5.809 MB / 426.7 MB Notification: Performance of FrontEnd: time 1.933e-06/0.958, allocations: 0 / 0.6537 GB, free: 5.809 MB / 426.7 MB Notification: Performance of Transformations before backend: time 0.000335/0.9584, allocations: 87.94 kB / 0.6537 GB, free: 5.723 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.01225/0.9706, allocations: 3.968 MB / 0.6576 GB, free: 1.68 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.256e-05/0.9707, allocations: 8.031 kB / 0.6576 GB, free: 1.672 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005288/0.976, allocations: 0.886 MB / 0.6585 GB, free: 0.7812 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.2415/1.218, allocations: 3.028 MB / 0.6615 GB, free: 65.76 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001934/1.218, allocations: 279 kB / 0.6617 GB, free: 65.75 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0008004/1.219, allocations: 371.1 kB / 0.6621 GB, free: 65.75 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00809/1.227, allocations: 4.727 MB / 0.6667 GB, free: 65.32 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.86e-05/1.227, allocations: 7.531 kB / 0.6667 GB, free: 65.32 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003512/1.227, allocations: 153.5 kB / 0.6668 GB, free: 65.32 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001348/1.227, allocations: 162.1 kB / 0.667 GB, free: 65.3 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.006599/1.234, allocations: 3.805 MB / 0.6707 GB, free: 65.27 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02413/1.258, allocations: 15.81 MB / 0.6862 GB, free: 61.66 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004678/1.263, allocations: 6.996 MB / 0.693 GB, free: 56.46 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001982/1.265, allocations: 1.531 MB / 0.6945 GB, free: 56.44 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.005749/1.271, allocations: 4.064 MB / 0.6984 GB, free: 55.65 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3e-05/1.271, allocations: 54 kB / 0.6985 GB, free: 55.61 MB / 426.7 MB Notification: Performance of pre-optimization done (n=136): time 3.166e-06/1.271, allocations: 0 / 0.6985 GB, free: 55.61 MB / 426.7 MB Notification: Performance of matching and sorting (n=158): time 0.01131/1.282, allocations: 6.413 MB / 0.7048 GB, free: 54.18 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.496e-05/1.282, allocations: 66.41 kB / 0.7048 GB, free: 54.11 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003112/1.285, allocations: 2.149 MB / 0.7069 GB, free: 53.87 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.00011/1.285, allocations: 49.7 kB / 0.707 GB, free: 53.84 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008947/1.286, allocations: 1.729 MB / 0.7087 GB, free: 52.88 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003506/1.287, allocations: 0.539 MB / 0.7092 GB, free: 52.46 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.232e-05/1.287, allocations: 43.75 kB / 0.7092 GB, free: 52.43 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0001217/1.287, allocations: 398.5 kB / 0.7096 GB, free: 52.09 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00115/1.288, allocations: 0.801 MB / 0.7104 GB, free: 51.77 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001415/1.289, allocations: 1.548 MB / 0.7119 GB, free: 50.52 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002625/1.292, allocations: 2.531 MB / 0.7144 GB, free: 48.83 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.748e-06/1.292, allocations: 7.406 kB / 0.7144 GB, free: 48.83 MB / 426.7 MB Notification: Performance of matching and sorting (n=281) (initialization): time 0.004389/1.296, allocations: 2.969 MB / 0.7173 GB, free: 47.66 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.433e-05/1.296, allocations: 14.91 kB / 0.7173 GB, free: 47.66 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.828e-05/1.297, allocations: 27.62 kB / 0.7173 GB, free: 47.66 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008094/1.297, allocations: 310.5 kB / 0.7176 GB, free: 47.55 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001648/1.299, allocations: 0.5009 MB / 0.7181 GB, free: 47.54 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003891/1.303, allocations: 4.469 MB / 0.7225 GB, free: 43.86 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001922/1.305, allocations: 103.3 kB / 0.7226 GB, free: 43.82 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000202/1.305, allocations: 100.5 kB / 0.7227 GB, free: 43.8 MB / 426.7 MB 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 (261): * Single equations (assignments): 258 * 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: 2 * 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: 2 {(2,100.0%) 13,(1,100.0%) 5} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.002264/1.307, allocations: 1.12 MB / 0.7238 GB, free: 43.2 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005672/1.308, allocations: 243.2 kB / 0.724 GB, free: 43.08 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003945/1.312, allocations: 2.362 MB / 0.7263 GB, free: 41.95 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.339e-05/1.312, allocations: 17.97 kB / 0.7263 GB, free: 41.95 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.932e-05/1.312, allocations: 9 kB / 0.7263 GB, free: 41.95 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.489e-05/1.312, allocations: 6.938 kB / 0.7263 GB, free: 41.95 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0104/1.322, allocations: 5.618 MB / 0.7318 GB, free: 39.32 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.127e-05/1.322, allocations: 3.969 kB / 0.7318 GB, free: 39.32 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001356/1.324, allocations: 278.6 kB / 0.7321 GB, free: 39.31 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0009378/1.325, allocations: 329.7 kB / 0.7324 GB, free: 39.21 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.309e-05/1.325, allocations: 34.28 kB / 0.7324 GB, free: 39.18 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005282/1.33, allocations: 6.385 MB / 0.7387 GB, free: 33.86 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.064e-06/1.33, allocations: 0 / 0.7387 GB, free: 33.86 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004504/1.335, allocations: 3.435 MB / 0.742 GB, free: 32.15 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001256/1.336, allocations: 491.1 kB / 0.7425 GB, free: 31.8 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007108/1.337, allocations: 31.56 kB / 0.7425 GB, free: 31.79 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001582/1.338, allocations: 76.22 kB / 0.7426 GB, free: 31.77 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002917/1.339, allocations: 116.1 kB / 0.7427 GB, free: 31.75 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001077/1.339, allocations: 47.83 kB / 0.7427 GB, free: 31.73 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.002812/1.341, allocations: 1.44 MB / 0.7442 GB, free: 31.15 MB / 426.7 MB Notification: Performance of sort global known variables: time 2.31e-07/1.341, allocations: 0 / 0.7442 GB, free: 31.15 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.003328/1.345, allocations: 0.6997 MB / 0.7448 GB, free: 31.08 MB / 426.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * Number of states: 6 (smee.inertiaRotor.w,smee.stator.core.Phi.re,smee.stator.core.Phi.im,smee.stator.strayReluctance.Phi.re,smee.stator.strayReluctance.Phi.im,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 (133): * Single equations (assignments): 130 * 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: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 3 {(2,100.0%) 12,(1,100.0%) 5,(1,100.0%) 8} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0006429/1.345, allocations: 356.2 kB / 0.7452 GB, free: 30.95 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.004048/1.35, allocations: 2.43 MB / 0.7476 GB, free: 29.91 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 4.659e-06/1.35, allocations: 0 / 0.7476 GB, free: 29.91 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002042/1.352, allocations: 1.42 MB / 0.7489 GB, free: 29.16 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003812/1.355, allocations: 0.5472 MB / 0.7495 GB, free: 29.01 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01389/1.369, allocations: 7.805 MB / 0.7571 GB, free: 24.69 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003231/1.373, allocations: 2.516 MB / 0.7596 GB, free: 23.59 MB / 426.7 MB Notification: Performance of simCode: alias equations: time 0.002433/1.375, allocations: 0.519 MB / 0.7601 GB, free: 23.52 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006269/1.376, allocations: 153.4 kB / 0.7602 GB, free: 23.51 MB / 426.7 MB Notification: Performance of SimCode: time 1.753e-06/1.376, allocations: 0 / 0.7602 GB, free: 23.51 MB / 426.7 MB Notification: Performance of Templates: time 0.05517/1.431, allocations: 32.59 MB / 0.792 GB, free: 6.25 MB / 426.7 MB make -j1 -f HanserModelica_HanserModelica.SynchronousMachines.SMEE_Synchronization3.makefile (rm -f HanserModelica_HanserModelica.SynchronousMachines.SMEE_Synchronization3.pipe ; mkfifo HanserModelica_HanserModelica.SynchronousMachines.SMEE_Synchronization3.pipe ; head -c 1048576 < HanserModelica_HanserModelica.SynchronousMachines.SMEE_Synchronization3.pipe >> ../files/HanserModelica_HanserModelica.SynchronousMachines.SMEE_Synchronization3.sim & ./HanserModelica_HanserModelica.SynchronousMachines.SMEE_Synchronization3 -abortSlowSimulation -alarm=480 -lv LOG_STATS > HanserModelica_HanserModelica.SynchronousMachines.SMEE_Synchronization3.pipe 2>&1)