Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr HanserModelica_HanserModelica.SynchronousMachines.SMEE_Synchronization1.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_Synchronization1,tolerance=1e-08,outputFormat="empty",numberOfIntervals=5998,variableFilter="",fileNamePrefix="HanserModelica_HanserModelica.SynchronousMachines.SMEE_Synchronization1") translateModel(HanserModelica.SynchronousMachines.SMEE_Synchronization1,tolerance=1e-08,outputFormat="empty",numberOfIntervals=5998,variableFilter="",fileNamePrefix="HanserModelica_HanserModelica.SynchronousMachines.SMEE_Synchronization1") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001099/0.001099, allocations: 176.6 kB / 16.12 MB, free: 5.691 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 1.1.1-master/package.mo): time 0.04017/0.04017, allocations: 8.771 MB / 25.63 MB, free: 3.82 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.812/1.812, allocations: 205.4 MB / 233.9 MB, free: 12.48 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.0008835/0.000884, allocations: 90.3 kB / 284.4 MB, free: 14.33 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0005204/0.0005204, allocations: 20 kB / 344.8 MB, free: 1.859 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3038/0.3043, allocations: 49.72 MB / 394.5 MB, free: 36.75 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4228/0.7272, allocations: 116.9 MB / 0.4995 GB, free: 102.2 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002614/0.7275, allocations: 80.05 kB / 0.4995 GB, free: 102.2 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.3427/1.07, allocations: 157.3 MB / 0.6532 GB, free: 6.367 MB / 426.7 MB Notification: Performance of FrontEnd: time 1.753e-06/1.07, allocations: 0 / 0.6532 GB, free: 6.367 MB / 426.7 MB Notification: Performance of Transformations before backend: time 0.0003882/1.071, allocations: 87.94 kB / 0.6532 GB, free: 6.281 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.01336/1.084, allocations: 3.972 MB / 0.6571 GB, free: 2.234 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.223e-05/1.084, allocations: 12.03 kB / 0.6571 GB, free: 2.223 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005549/1.09, allocations: 0.8782 MB / 0.658 GB, free: 1.34 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.231/1.321, allocations: 3.034 MB / 0.6609 GB, free: 65.86 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001928/1.321, allocations: 276.5 kB / 0.6612 GB, free: 65.85 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0007008/1.322, allocations: 371.6 kB / 0.6616 GB, free: 65.85 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.008069/1.33, allocations: 4.729 MB / 0.6662 GB, free: 65.42 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001075/1.33, allocations: 8.188 kB / 0.6662 GB, free: 65.42 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003278/1.33, allocations: 154.7 kB / 0.6663 GB, free: 65.42 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001224/1.33, allocations: 164.2 kB / 0.6665 GB, free: 65.41 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.006149/1.336, allocations: 3.797 MB / 0.6702 GB, free: 65.38 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02287/1.359, allocations: 15.8 MB / 0.6856 GB, free: 61.85 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004778/1.364, allocations: 7.01 MB / 0.6925 GB, free: 56.66 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002082/1.366, allocations: 1.516 MB / 0.694 GB, free: 56.63 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.006285/1.373, allocations: 4.065 MB / 0.6979 GB, free: 55.85 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.341e-05/1.373, allocations: 50.25 kB / 0.698 GB, free: 55.81 MB / 426.7 MB Notification: Performance of pre-optimization done (n=136): time 3.908e-06/1.373, allocations: 0 / 0.698 GB, free: 55.81 MB / 426.7 MB Notification: Performance of matching and sorting (n=158): time 0.01177/1.384, allocations: 6.412 MB / 0.7042 GB, free: 54.38 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.041e-05/1.385, allocations: 80.16 kB / 0.7043 GB, free: 54.32 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004849/1.389, allocations: 2.144 MB / 0.7064 GB, free: 54.09 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003834/1.39, allocations: 52.8 kB / 0.7065 GB, free: 54.05 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001192/1.391, allocations: 1.73 MB / 0.7081 GB, free: 53.23 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006797/1.392, allocations: 0.5403 MB / 0.7087 GB, free: 52.88 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002004/1.392, allocations: 43.19 kB / 0.7087 GB, free: 52.88 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0001698/1.392, allocations: 389.9 kB / 0.7091 GB, free: 52.54 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001523/1.394, allocations: 0.8042 MB / 0.7099 GB, free: 52.22 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001815/1.395, allocations: 1.553 MB / 0.7114 GB, free: 50.96 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003344/1.399, allocations: 2.528 MB / 0.7139 GB, free: 49.28 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.573e-05/1.399, allocations: 7.531 kB / 0.7139 GB, free: 49.28 MB / 426.7 MB Notification: Performance of matching and sorting (n=281) (initialization): time 0.004972/1.404, allocations: 2.97 MB / 0.7168 GB, free: 48.11 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.747e-05/1.404, allocations: 18.78 kB / 0.7168 GB, free: 48.11 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.54e-05/1.404, allocations: 25.5 kB / 0.7168 GB, free: 48.11 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007971/1.405, allocations: 309.6 kB / 0.7171 GB, free: 48 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001714/1.406, allocations: 0.5001 MB / 0.7176 GB, free: 47.98 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003822/1.41, allocations: 4.466 MB / 0.722 GB, free: 44.31 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001999/1.412, allocations: 104.3 kB / 0.7221 GB, free: 44.27 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002162/1.413, allocations: 102 kB / 0.7222 GB, free: 44.25 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.002408/1.415, allocations: 1.125 MB / 0.7233 GB, free: 43.65 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006871/1.416, allocations: 234.3 kB / 0.7235 GB, free: 43.53 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00403/1.42, allocations: 2.366 MB / 0.7258 GB, free: 42.4 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.208e-05/1.42, allocations: 17.69 kB / 0.7258 GB, free: 42.4 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.419e-05/1.42, allocations: 3.469 kB / 0.7258 GB, free: 42.4 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.691e-05/1.42, allocations: 11.02 kB / 0.7258 GB, free: 42.4 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01075/1.431, allocations: 5.628 MB / 0.7313 GB, free: 39.77 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.759e-06/1.431, allocations: 0 / 0.7313 GB, free: 39.77 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001149/1.432, allocations: 279.2 kB / 0.7316 GB, free: 39.76 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007771/1.433, allocations: 322.6 kB / 0.7319 GB, free: 39.65 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001219/1.433, allocations: 35.12 kB / 0.7319 GB, free: 39.63 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005195/1.438, allocations: 6.378 MB / 0.7381 GB, free: 34.31 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.368e-06/1.438, allocations: 3.312 kB / 0.7382 GB, free: 34.31 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005446/1.443, allocations: 3.444 MB / 0.7415 GB, free: 32.6 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00186/1.445, allocations: 489.8 kB / 0.742 GB, free: 32.25 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008199/1.446, allocations: 39.12 kB / 0.742 GB, free: 32.23 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001826/1.448, allocations: 70.52 kB / 0.7421 GB, free: 32.21 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003827/1.448, allocations: 120.8 kB / 0.7422 GB, free: 32.2 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001129/1.448, allocations: 45.2 kB / 0.7422 GB, free: 32.18 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.003075/1.452, allocations: 1.435 MB / 0.7436 GB, free: 31.6 MB / 426.7 MB Notification: Performance of sort global known variables: time 1.6e-07/1.452, allocations: 0 / 0.7436 GB, free: 31.6 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.003163/1.455, allocations: 0.6982 MB / 0.7443 GB, free: 31.53 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.0005722/1.455, allocations: 361.9 kB / 0.7447 GB, free: 31.4 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.003314/1.459, allocations: 2.426 MB / 0.747 GB, free: 30.36 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 5.08e-06/1.459, allocations: 3.125 kB / 0.747 GB, free: 30.36 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.00177/1.46, allocations: 1.412 MB / 0.7484 GB, free: 29.59 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003422/1.464, allocations: 0.5415 MB / 0.749 GB, free: 29.44 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01298/1.477, allocations: 7.817 MB / 0.7566 GB, free: 25.11 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003206/1.48, allocations: 2.513 MB / 0.759 GB, free: 24.01 MB / 426.7 MB Notification: Performance of simCode: alias equations: time 0.002284/1.482, allocations: 0.5195 MB / 0.7595 GB, free: 23.94 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004371/1.483, allocations: 152.7 kB / 0.7597 GB, free: 23.93 MB / 426.7 MB Notification: Performance of SimCode: time 9.32e-07/1.483, allocations: 3.938 kB / 0.7597 GB, free: 23.93 MB / 426.7 MB Notification: Performance of Templates: time 0.05545/1.538, allocations: 32.59 MB / 0.7915 GB, free: 6.844 MB / 426.7 MB make -j1 -f HanserModelica_HanserModelica.SynchronousMachines.SMEE_Synchronization1.makefile (rm -f HanserModelica_HanserModelica.SynchronousMachines.SMEE_Synchronization1.pipe ; mkfifo HanserModelica_HanserModelica.SynchronousMachines.SMEE_Synchronization1.pipe ; head -c 1048576 < HanserModelica_HanserModelica.SynchronousMachines.SMEE_Synchronization1.pipe >> ../files/HanserModelica_HanserModelica.SynchronousMachines.SMEE_Synchronization1.sim & ./HanserModelica_HanserModelica.SynchronousMachines.SMEE_Synchronization1 -abortSlowSimulation -alarm=480 -lv LOG_STATS > HanserModelica_HanserModelica.SynchronousMachines.SMEE_Synchronization1.pipe 2>&1)