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 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_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 3.2.3+maint.om/package.mo): time 0.001059/0.001059, allocations: 172.1 kB / 16.12 MB, free: 5.668 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 1.1.1-master/package.mo): time 0.04195/0.04195, allocations: 8.775 MB / 25.64 MB, free: 3.797 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.838/1.838, allocations: 205.4 MB / 233.9 MB, free: 14.55 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.0009803/0.0009805, allocations: 91.97 kB / 284.4 MB, free: 14.62 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004634/0.0004634, allocations: 19.97 kB / 344.8 MB, free: 2.148 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2864/0.2869, allocations: 49.72 MB / 394.5 MB, free: 36.79 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3516/0.6386, allocations: 117 MB / 0.4995 GB, free: 102.2 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002347/0.6388, allocations: 80.89 kB / 0.4996 GB, free: 102.2 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.3491/0.9879, allocations: 157.6 MB / 0.6535 GB, free: 6.098 MB / 426.7 MB Notification: Performance of FrontEnd: time 6.552e-06/0.988, allocations: 4 kB / 0.6535 GB, free: 6.094 MB / 426.7 MB Notification: Performance of Transformations before backend: time 0.0004704/0.9885, allocations: 87.88 kB / 0.6535 GB, free: 6.008 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.01449/1.003, allocations: 3.976 MB / 0.6574 GB, free: 1.957 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.502e-05/1.003, allocations: 8.031 kB / 0.6574 GB, free: 1.949 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005789/1.009, allocations: 0.8782 MB / 0.6583 GB, free: 1.066 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.2373/1.246, allocations: 3.033 MB / 0.6613 GB, free: 66.13 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003023/1.246, allocations: 276.4 kB / 0.6615 GB, free: 66.12 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001078/1.248, allocations: 367.8 kB / 0.6619 GB, free: 66.12 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.008179/1.256, allocations: 4.732 MB / 0.6665 GB, free: 65.69 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.596e-05/1.256, allocations: 3.812 kB / 0.6665 GB, free: 65.69 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003353/1.256, allocations: 154 kB / 0.6666 GB, free: 65.69 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001206/1.256, allocations: 160.1 kB / 0.6668 GB, free: 65.68 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.006581/1.263, allocations: 3.801 MB / 0.6705 GB, free: 65.65 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02602/1.289, allocations: 15.82 MB / 0.686 GB, free: 62.06 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005243/1.294, allocations: 7.002 MB / 0.6928 GB, free: 56.87 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002204/1.296, allocations: 1.524 MB / 0.6943 GB, free: 56.84 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.006539/1.303, allocations: 4.054 MB / 0.6982 GB, free: 56.06 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.735e-05/1.303, allocations: 51.88 kB / 0.6983 GB, free: 56.02 MB / 426.7 MB Notification: Performance of pre-optimization done (n=136): time 4.258e-06/1.303, allocations: 0 / 0.6983 GB, free: 56.02 MB / 426.7 MB Notification: Performance of matching and sorting (n=158): time 0.0112/1.314, allocations: 6.417 MB / 0.7046 GB, free: 54.59 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.258e-05/1.314, allocations: 67.19 kB / 0.7046 GB, free: 54.52 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002952/1.317, allocations: 2.148 MB / 0.7067 GB, free: 54.28 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001343/1.318, allocations: 50.83 kB / 0.7068 GB, free: 54.25 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0009182/1.318, allocations: 1.724 MB / 0.7084 GB, free: 53.41 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003671/1.319, allocations: 0.5483 MB / 0.709 GB, free: 52.99 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.891e-05/1.319, allocations: 43.44 kB / 0.709 GB, free: 52.95 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0001157/1.319, allocations: 392 kB / 0.7094 GB, free: 52.61 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001149/1.32, allocations: 0.8014 MB / 0.7102 GB, free: 52.3 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001458/1.322, allocations: 1.556 MB / 0.7117 GB, free: 51.04 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002736/1.324, allocations: 2.525 MB / 0.7142 GB, free: 49.35 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.373e-05/1.324, allocations: 7.531 kB / 0.7142 GB, free: 49.35 MB / 426.7 MB Notification: Performance of matching and sorting (n=281) (initialization): time 0.004634/1.329, allocations: 2.981 MB / 0.7171 GB, free: 48.18 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.197e-05/1.329, allocations: 14.75 kB / 0.7171 GB, free: 48.18 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.708e-05/1.329, allocations: 22.44 kB / 0.7171 GB, free: 48.18 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007548/1.33, allocations: 310.3 kB / 0.7174 GB, free: 48.08 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001631/1.332, allocations: 0.4969 MB / 0.7179 GB, free: 48.06 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003844/1.335, allocations: 4.469 MB / 0.7223 GB, free: 44.39 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001928/1.337, allocations: 102.5 kB / 0.7224 GB, free: 44.34 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.00018/1.338, allocations: 100.6 kB / 0.7225 GB, free: 44.33 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.00255/1.34, allocations: 1.126 MB / 0.7236 GB, free: 43.73 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008566/1.341, allocations: 239.7 kB / 0.7238 GB, free: 43.61 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004748/1.346, allocations: 2.37 MB / 0.7261 GB, free: 42.47 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.656e-05/1.346, allocations: 15.31 kB / 0.7261 GB, free: 42.47 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.948e-05/1.346, allocations: 3.875 kB / 0.7261 GB, free: 42.47 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.064e-05/1.346, allocations: 6.469 kB / 0.7261 GB, free: 42.47 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01138/1.357, allocations: 5.616 MB / 0.7316 GB, free: 39.85 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.11e-05/1.357, allocations: 3 kB / 0.7316 GB, free: 39.85 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001144/1.358, allocations: 276.5 kB / 0.7319 GB, free: 39.84 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007948/1.359, allocations: 325.8 kB / 0.7322 GB, free: 39.73 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001256/1.359, allocations: 37.94 kB / 0.7322 GB, free: 39.71 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005088/1.364, allocations: 6.379 MB / 0.7385 GB, free: 34.39 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.725e-06/1.365, allocations: 3.75 kB / 0.7385 GB, free: 34.39 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004726/1.369, allocations: 3.443 MB / 0.7418 GB, free: 32.68 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001212/1.37, allocations: 488.2 kB / 0.7423 GB, free: 32.34 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007048/1.371, allocations: 35.12 kB / 0.7423 GB, free: 32.31 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001389/1.373, allocations: 71.58 kB / 0.7424 GB, free: 32.29 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002605/1.373, allocations: 116.6 kB / 0.7425 GB, free: 32.27 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.891e-05/1.373, allocations: 44.92 kB / 0.7425 GB, free: 32.27 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.002768/1.376, allocations: 1.448 MB / 0.744 GB, free: 31.68 MB / 426.7 MB Notification: Performance of sort global known variables: time 4.71e-07/1.376, allocations: 0 / 0.744 GB, free: 31.68 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.003629/1.379, allocations: 0.6936 MB / 0.7446 GB, free: 31.61 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.0007494/1.38, allocations: 360.2 kB / 0.745 GB, free: 31.48 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.003873/1.384, allocations: 2.414 MB / 0.7473 GB, free: 30.44 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 7.925e-06/1.384, allocations: 3.812 kB / 0.7473 GB, free: 30.44 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001948/1.386, allocations: 1.421 MB / 0.7487 GB, free: 29.68 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003741/1.39, allocations: 0.5593 MB / 0.7493 GB, free: 29.53 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01318/1.403, allocations: 7.798 MB / 0.7569 GB, free: 25.22 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00281/1.406, allocations: 2.521 MB / 0.7593 GB, free: 24.12 MB / 426.7 MB Notification: Performance of simCode: alias equations: time 0.002567/1.408, allocations: 0.5153 MB / 0.7599 GB, free: 24.05 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006304/1.409, allocations: 163.7 kB / 0.76 GB, free: 24.04 MB / 426.7 MB Notification: Performance of SimCode: time 1.082e-06/1.409, allocations: 0 / 0.76 GB, free: 24.04 MB / 426.7 MB Notification: Performance of Templates: time 0.05477/1.464, allocations: 32.59 MB / 0.7918 GB, free: 6.566 MB / 426.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)