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.001095/0.001095, allocations: 169.2 kB / 7.64 MB, free: 1.414 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/package.mo): time 0.04145/0.04145, allocations: 8.713 MB / 16.79 MB, free: 3.371 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.371/1.371, allocations: 221.5 MB / 240.9 MB, free: 13.2 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.0009156/0.0009157, allocations: 92.16 kB / 293.8 MB, free: 7.219 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 1.927e-05/1.928e-05, allocations: 4 kB / 352.6 MB, free: 1.266 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1259/0.126, allocations: 52.54 MB / 405.2 MB, free: 12.68 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4988/0.6248, allocations: 139.3 MB / 0.5317 GB, free: 12.67 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002603/0.6251, allocations: 75.97 kB / 0.5318 GB, free: 12.59 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.112/1.737, allocations: 268.5 MB / 0.794 GB, free: 35.52 MB / 442.7 MB Notification: Performance of FrontEnd: time 3.206e-06/1.737, allocations: 0.9375 kB / 0.794 GB, free: 35.52 MB / 442.7 MB Notification: Performance of Transformations before backend: time 0.001169/1.738, allocations: 174.7 kB / 0.7941 GB, free: 35.5 MB / 442.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.04413/1.782, allocations: 7.415 MB / 0.8014 GB, free: 33.14 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.487e-05/1.782, allocations: 15.73 kB / 0.8014 GB, free: 33.13 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.04267/1.825, allocations: 3.876 MB / 0.8052 GB, free: 32.7 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.03214/1.857, allocations: 6.755 MB / 0.8118 GB, free: 31.87 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0009984/1.858, allocations: 245.9 kB / 0.812 GB, free: 31.87 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.005193/1.863, allocations: 455.2 kB / 0.8124 GB, free: 31.87 MB / 442.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.03398/1.898, allocations: 9.983 MB / 0.8222 GB, free: 31.83 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04287/1.94, allocations: 11.26 MB / 0.8332 GB, free: 29.05 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0005033/1.941, allocations: 19.59 kB / 0.8332 GB, free: 29.04 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003074/1.944, allocations: 11.39 kB / 0.8332 GB, free: 29.04 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0009854/1.945, allocations: 0.5897 MB / 0.8338 GB, free: 28.91 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.09294/2.038, allocations: 42.99 MB / 0.8758 GB, free: 4.148 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.03094/2.069, allocations: 26.02 MB / 0.9012 GB, free: 10.49 MB / 474.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00564/2.075, allocations: 2.921 MB / 0.904 GB, free: 7.855 MB / 474.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0006191/2.075, allocations: 241.4 kB / 0.9042 GB, free: 7.609 MB / 474.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.005064/2.081, allocations: 2.534 MB / 0.9067 GB, free: 5.465 MB / 474.7 MB Notification: Performance of pre-optimization done (n=391): time 9.608e-06/2.081, allocations: 4 kB / 0.9067 GB, free: 5.461 MB / 474.7 MB Notification: Performance of matching and sorting (n=397): time 0.35/2.431, allocations: 15.67 MB / 0.922 GB, free: 64.7 MB / 474.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000123/2.431, allocations: 350.5 kB / 0.9224 GB, free: 64.32 MB / 474.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005295/2.436, allocations: 2.707 MB / 0.925 GB, free: 64.06 MB / 474.7 MB Notification: Performance of collectPreVariables (initialization): time 0.001043/2.437, allocations: 25.7 kB / 0.925 GB, free: 64.03 MB / 474.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.003164/2.44, allocations: 3.383 MB / 0.9283 GB, free: 62.5 MB / 474.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.002232/2.443, allocations: 1.297 MB / 0.9296 GB, free: 61.65 MB / 474.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003972/2.443, allocations: 0 / 0.9296 GB, free: 61.65 MB / 474.7 MB Notification: Performance of setup shared object (initialization): time 0.0004037/2.443, allocations: 0.5256 MB / 0.9301 GB, free: 61.34 MB / 474.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003886/2.447, allocations: 2.482 MB / 0.9325 GB, free: 61.32 MB / 474.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005091/2.452, allocations: 4.382 MB / 0.9368 GB, free: 59.05 MB / 474.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.008837/2.461, allocations: 4.364 MB / 0.9411 GB, free: 59.01 MB / 474.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001515/2.461, allocations: 21.02 kB / 0.9411 GB, free: 59 MB / 474.7 MB Notification: Performance of matching and sorting (n=720) (initialization): time 0.02131/2.483, allocations: 8.6 MB / 0.9495 GB, free: 58.66 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001293/2.483, allocations: 58.98 kB / 0.9496 GB, free: 58.63 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001737/2.483, allocations: 64.2 kB / 0.9496 GB, free: 58.63 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002936/2.486, allocations: 0.9964 MB / 0.9506 GB, free: 58.61 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006041/2.492, allocations: 1.299 MB / 0.9519 GB, free: 58.61 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01465/2.507, allocations: 7.951 MB / 0.9596 GB, free: 57.15 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00697/2.514, allocations: 309.9 kB / 0.9599 GB, free: 57.13 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002329/2.516, allocations: 268.3 kB / 0.9602 GB, free: 57.13 MB / 474.7 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.002961/2.519, allocations: 303.9 kB / 0.9605 GB, free: 56.96 MB / 474.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001865/2.521, allocations: 362.8 kB / 0.9608 GB, free: 56.77 MB / 474.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01761/2.539, allocations: 6.669 MB / 0.9673 GB, free: 56.48 MB / 474.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.075e-05/2.539, allocations: 38.69 kB / 0.9674 GB, free: 56.48 MB / 474.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.984e-05/2.539, allocations: 10.84 kB / 0.9674 GB, free: 56.48 MB / 474.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.976e-05/2.539, allocations: 24.52 kB / 0.9674 GB, free: 56.48 MB / 474.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04141/2.58, allocations: 14.62 MB / 0.9817 GB, free: 54.82 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.813e-05/2.58, allocations: 6.531 kB / 0.9817 GB, free: 54.82 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003596/2.584, allocations: 0.7126 MB / 0.9824 GB, free: 54.82 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002834/2.587, allocations: 0.8609 MB / 0.9832 GB, free: 54.8 MB / 474.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0009138/2.588, allocations: 33.81 kB / 0.9833 GB, free: 54.8 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01008/2.598, allocations: 6.935 MB / 0.99 GB, free: 52.26 MB / 474.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.01e-05/2.598, allocations: 6.125 kB / 0.99 GB, free: 52.26 MB / 474.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01723/2.615, allocations: 9.876 MB / 0.9997 GB, free: 47.75 MB / 474.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.003413/2.619, allocations: 0.9442 MB / 1.001 GB, free: 47.19 MB / 474.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001542/2.62, allocations: 6.25 kB / 1.001 GB, free: 47.19 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003639/2.624, allocations: 184.9 kB / 1.001 GB, free: 47.19 MB / 474.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0008095/2.625, allocations: 264.8 kB / 1.001 GB, free: 47.15 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000414/2.625, allocations: 117 kB / 1.001 GB, free: 47.12 MB / 474.7 MB Notification: Performance of sorting global known variables: time 0.004653/2.63, allocations: 1.962 MB / 1.003 GB, free: 46.3 MB / 474.7 MB Notification: Performance of sort global known variables: time 1.403e-06/2.63, allocations: 0 / 1.003 GB, free: 46.3 MB / 474.7 MB Notification: Performance of remove unused functions: time 0.009311/2.639, allocations: 1.305 MB / 1.004 GB, free: 46.28 MB / 474.7 MB 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.001478/2.641, allocations: 422.3 kB / 1.005 GB, free: 46.14 MB / 474.7 MB Notification: Performance of simCode: created initialization part: time 0.01235/2.653, allocations: 6.26 MB / 1.011 GB, free: 43.75 MB / 474.7 MB Notification: Performance of simCode: created event and clocks part: time 1.401e-05/2.653, allocations: 4.703 kB / 1.011 GB, free: 43.75 MB / 474.7 MB Notification: Performance of simCode: created simulation system equations: time 0.005278/2.659, allocations: 3.042 MB / 1.014 GB, free: 42.49 MB / 474.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00414/2.663, allocations: 0.5514 MB / 1.014 GB, free: 42.34 MB / 474.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0288/2.692, allocations: 11.92 MB / 1.026 GB, free: 37.54 MB / 474.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.008093/2.7, allocations: 5.134 MB / 1.031 GB, free: 34.07 MB / 474.7 MB Notification: Performance of simCode: alias equations: time 0.005921/2.706, allocations: 1.647 MB / 1.033 GB, free: 32.98 MB / 474.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001099/2.707, allocations: 321.1 kB / 1.033 GB, free: 32.69 MB / 474.7 MB Notification: Performance of SimCode: time 2.344e-06/2.707, allocations: 0 / 1.033 GB, free: 32.69 MB / 474.7 MB Notification: Performance of Templates: time 0.09657/2.803, allocations: 52.93 MB / 1.085 GB, free: 13.3 MB / 490.7 MB 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)