Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr HanserModelica_HanserModelica.SynchronousMachines.SMEE_VCurve1.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_VCurve1,tolerance=1e-06,outputFormat="empty",numberOfIntervals=4000,variableFilter="",fileNamePrefix="HanserModelica_HanserModelica.SynchronousMachines.SMEE_VCurve1") translateModel(HanserModelica.SynchronousMachines.SMEE_VCurve1,tolerance=1e-06,outputFormat="empty",numberOfIntervals=4000,variableFilter="",fileNamePrefix="HanserModelica_HanserModelica.SynchronousMachines.SMEE_VCurve1") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0009734/0.0009733, allocations: 174.7 kB / 12.73 MB, free: 2.59 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/package.mo): time 0.0376/0.0376, allocations: 8.702 MB / 21.96 MB, free: 3.367 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.345/1.345, allocations: 221.4 MB / 246 MB, free: 3.551 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.0009604/0.0009603, allocations: 89.05 kB / 299.1 MB, free: 2.988 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 3.684e-05/3.687e-05, allocations: 4 kB / 359.5 MB, free: 6.5 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2767/0.2767, allocations: 52.53 MB / 412.1 MB, free: 22.55 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.464/0.7408, allocations: 139.9 MB / 0.5391 GB, free: 37.52 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001883/0.741, allocations: 80.83 kB / 0.5391 GB, free: 37.51 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.9775/1.719, allocations: 271.5 MB / 0.8043 GB, free: 35.07 MB / 458.7 MB Notification: Performance of FrontEnd: time 2.405e-06/1.719, allocations: 0 / 0.8043 GB, free: 35.07 MB / 458.7 MB Notification: Performance of Transformations before backend: time 0.001003/1.72, allocations: 173.8 kB / 0.8044 GB, free: 34.9 MB / 458.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 2183 * Number of variables: 2183 Notification: Performance of Generate backend data structure: time 0.04467/1.764, allocations: 7.423 MB / 0.8117 GB, free: 27.44 MB / 458.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.618e-05/1.764, allocations: 11.97 kB / 0.8117 GB, free: 27.43 MB / 458.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.04335/1.808, allocations: 3.894 MB / 0.8155 GB, free: 23.55 MB / 458.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02742/1.835, allocations: 6.746 MB / 0.8221 GB, free: 16.84 MB / 458.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0009858/1.836, allocations: 0.5645 MB / 0.8226 GB, free: 16.29 MB / 458.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.004693/1.841, allocations: 0.7508 MB / 0.8234 GB, free: 15.55 MB / 458.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04475/1.886, allocations: 12.47 MB / 0.8355 GB, free: 2.848 MB / 458.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004347/1.886, allocations: 15.84 kB / 0.8356 GB, free: 2.832 MB / 458.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003132/1.889, allocations: 332.9 kB / 0.8359 GB, free: 2.52 MB / 458.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0008626/1.89, allocations: 0.5904 MB / 0.8365 GB, free: 1.926 MB / 458.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.7399/2.63, allocations: 11.33 MB / 0.8475 GB, free: 48.68 MB / 458.8 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.06986/2.7, allocations: 43.59 MB / 0.8901 GB, free: 39.91 MB / 458.8 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01918/2.719, allocations: 25.09 MB / 0.9146 GB, free: 18.86 MB / 458.8 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00475/2.724, allocations: 2.889 MB / 0.9174 GB, free: 17.74 MB / 458.8 MB Notification: Performance of preOpt evalFunc (simulation): time 0.000377/2.724, allocations: 239.4 kB / 0.9176 GB, free: 17.54 MB / 458.8 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.003487/2.728, allocations: 2.498 MB / 0.9201 GB, free: 16.46 MB / 458.8 MB Notification: Performance of pre-optimization done (n=391): time 6.833e-06/2.728, allocations: 0 / 0.9201 GB, free: 16.46 MB / 458.8 MB Notification: Performance of matching and sorting (n=397): time 0.02261/2.751, allocations: 13.75 MB / 0.9335 GB, free: 9.441 MB / 458.8 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0004771/2.751, allocations: 358.9 kB / 0.9338 GB, free: 25.06 MB / 474.8 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004894/2.756, allocations: 3.092 MB / 0.9369 GB, free: 23.84 MB / 474.8 MB Notification: Performance of collectPreVariables (initialization): time 0.0007415/2.757, allocations: 94.7 kB / 0.937 GB, free: 23.75 MB / 474.8 MB Notification: Performance of collectInitialEqns (initialization): time 0.001591/2.758, allocations: 3.36 MB / 0.9402 GB, free: 21.21 MB / 474.8 MB Notification: Performance of collectInitialBindings (initialization): time 0.001318/2.76, allocations: 1.351 MB / 0.9416 GB, free: 20.18 MB / 474.8 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000311/2.76, allocations: 113.7 kB / 0.9417 GB, free: 20.09 MB / 474.8 MB Notification: Performance of setup shared object (initialization): time 0.0003335/2.76, allocations: 0.528 MB / 0.9422 GB, free: 19.68 MB / 474.8 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003282/2.764, allocations: 2.452 MB / 0.9446 GB, free: 18.71 MB / 474.8 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004139/2.768, allocations: 4.392 MB / 0.9489 GB, free: 15.33 MB / 474.8 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005107/2.773, allocations: 3.473 MB / 0.9523 GB, free: 13.99 MB / 474.8 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.342e-05/2.773, allocations: 16.44 kB / 0.9523 GB, free: 13.99 MB / 474.8 MB Notification: Performance of matching and sorting (n=720) (initialization): time 0.0154/2.788, allocations: 8.087 MB / 0.9602 GB, free: 11.22 MB / 474.8 MB Notification: Performance of prepare postOptimizeDAE: time 9.15e-05/2.789, allocations: 55.42 kB / 0.9602 GB, free: 11.19 MB / 474.8 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001387/2.789, allocations: 63.34 kB / 0.9603 GB, free: 11.19 MB / 474.8 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002841/2.792, allocations: 1.009 MB / 0.9613 GB, free: 10.98 MB / 474.8 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00502/2.797, allocations: 1.264 MB / 0.9625 GB, free: 10.94 MB / 474.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01246/2.809, allocations: 8.223 MB / 0.9705 GB, free: 6.422 MB / 474.8 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005949/2.815, allocations: 389 kB / 0.9709 GB, free: 6.312 MB / 474.8 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001166/2.816, allocations: 263.4 kB / 0.9712 GB, free: 6.27 MB / 474.8 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 274 * Number of states: 0 () * Number of discrete variables: 1 ($whenCondition1) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (663): * Single equations (assignments): 661 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(10,52.0%) 48} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.001103/2.817, allocations: 490.4 kB / 0.9716 GB, free: 5.934 MB / 474.8 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0009184/2.818, allocations: 386.9 kB / 0.972 GB, free: 5.738 MB / 474.8 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01065/2.829, allocations: 6.049 MB / 0.9779 GB, free: 1.316 MB / 474.8 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.712e-05/2.829, allocations: 40 kB / 0.9779 GB, free: 1.277 MB / 474.8 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.462e-05/2.829, allocations: 8 kB / 0.9779 GB, free: 1.27 MB / 474.8 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.768e-05/2.829, allocations: 24.44 kB / 0.978 GB, free: 1.266 MB / 474.8 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02998/2.859, allocations: 15 MB / 0.9926 GB, free: 5.137 MB / 490.8 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.671e-05/2.859, allocations: 4 kB / 0.9926 GB, free: 5.133 MB / 490.8 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002865/2.862, allocations: 0.68 MB / 0.9933 GB, free: 4.594 MB / 490.8 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002614/2.865, allocations: 0.8767 MB / 0.9941 GB, free: 3.926 MB / 490.8 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005894/2.865, allocations: 83.23 kB / 0.9942 GB, free: 3.848 MB / 490.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01176/2.877, allocations: 7.207 MB / 1.001 GB, free: 13.63 MB / 0.4949 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.163e-06/2.877, allocations: 12 kB / 1.001 GB, free: 13.62 MB / 0.4949 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01524/2.892, allocations: 9.048 MB / 1.01 GB, free: 5.324 MB / 0.4949 GB Notification: Performance of postOpt removeConstants (simulation): time 0.003057/2.896, allocations: 0.9338 MB / 1.011 GB, free: 4.473 MB / 0.4949 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008958/2.896, allocations: 78.62 kB / 1.011 GB, free: 4.398 MB / 0.4949 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002395/2.899, allocations: 213.5 kB / 1.011 GB, free: 4.246 MB / 0.4949 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005517/2.899, allocations: 271.2 kB / 1.012 GB, free: 4.074 MB / 0.4949 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002354/2.9, allocations: 118 kB / 1.012 GB, free: 3.969 MB / 0.4949 GB Notification: Performance of sorting global known variables: time 0.004154/2.904, allocations: 2.287 MB / 1.014 GB, free: 1.93 MB / 0.4949 GB Notification: Performance of sort global known variables: time 1.41e-07/2.904, allocations: 0 / 1.014 GB, free: 1.93 MB / 0.4949 GB Notification: Performance of remove unused functions: time 0.006531/2.91, allocations: 1.523 MB / 1.015 GB, free: 436 kB / 0.4949 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 20 * Number of states: 3 (smee.inertiaRotor.w,smee.excitation.electroMagneticConverter.port_p.reference.gamma,constantTorque.phi) * Number of discrete variables: 1 ($whenCondition1) * Number of discrete states: 1 ($whenCondition1) * Top-level inputs: 0 Notification: Strong component statistics for simulation (371): * Single equations (assignments): 369 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(10,52.0%) 46} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.00142/2.912, allocations: 0.6455 MB / 1.016 GB, free: 15.92 MB / 0.5105 GB Notification: Performance of simCode: created initialization part: time 0.01134/2.923, allocations: 6.292 MB / 1.022 GB, free: 10.16 MB / 0.5105 GB Notification: Performance of simCode: created event and clocks part: time 9.888e-06/2.923, allocations: 0 / 1.022 GB, free: 10.16 MB / 0.5105 GB Notification: Performance of simCode: created simulation system equations: time 0.005846/2.929, allocations: 3.015 MB / 1.025 GB, free: 7.383 MB / 0.5105 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004585/2.934, allocations: 0.7231 MB / 1.026 GB, free: 6.809 MB / 0.5105 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.3216/3.255, allocations: 12.34 MB / 1.038 GB, free: 100.6 MB / 0.5105 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00575/3.261, allocations: 5.132 MB / 1.043 GB, free: 99.73 MB / 0.5105 GB Notification: Performance of simCode: alias equations: time 0.005587/3.267, allocations: 1.669 MB / 1.044 GB, free: 99.7 MB / 0.5105 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001136/3.268, allocations: 328.2 kB / 1.045 GB, free: 99.7 MB / 0.5105 GB Notification: Performance of SimCode: time 1.273e-06/3.268, allocations: 0 / 1.045 GB, free: 99.7 MB / 0.5105 GB Notification: Performance of Templates: time 0.09421/3.362, allocations: 60.07 MB / 1.103 GB, free: 96.86 MB / 0.5105 GB make -j1 -f HanserModelica_HanserModelica.SynchronousMachines.SMEE_VCurve1.makefile (rm -f HanserModelica_HanserModelica.SynchronousMachines.SMEE_VCurve1.pipe ; mkfifo HanserModelica_HanserModelica.SynchronousMachines.SMEE_VCurve1.pipe ; head -c 1048576 < HanserModelica_HanserModelica.SynchronousMachines.SMEE_VCurve1.pipe >> ../files/HanserModelica_HanserModelica.SynchronousMachines.SMEE_VCurve1.sim & ./HanserModelica_HanserModelica.SynchronousMachines.SMEE_VCurve1 -abortSlowSimulation -alarm=480 -lv LOG_STATS > HanserModelica_HanserModelica.SynchronousMachines.SMEE_VCurve1.pipe 2>&1)