Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr HanserModelica_HanserModelica.SynchronousMachines.SMEE_VCurve3.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_VCurve3,tolerance=1e-06,outputFormat="empty",numberOfIntervals=4000,variableFilter="",fileNamePrefix="HanserModelica_HanserModelica.SynchronousMachines.SMEE_VCurve3") translateModel(HanserModelica.SynchronousMachines.SMEE_VCurve3,tolerance=1e-06,outputFormat="empty",numberOfIntervals=4000,variableFilter="",fileNamePrefix="HanserModelica_HanserModelica.SynchronousMachines.SMEE_VCurve3") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001182/0.001182, allocations: 174.6 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.03818/0.03818, allocations: 8.699 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.283/1.283, 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.0009388/0.0009387, allocations: 95.17 kB / 299.1 MB, free: 2.98 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 4.05e-05/4.063e-05, allocations: 7.984 kB / 359.5 MB, free: 6.512 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3019/0.302, allocations: 52.54 MB / 412.1 MB, free: 22.54 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4565/0.7585, allocations: 140 MB / 0.5391 GB, free: 37.43 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001965/0.7588, allocations: 74.97 kB / 0.5392 GB, free: 37.42 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.8175/1.576, allocations: 272 MB / 0.8048 GB, free: 34.62 MB / 458.7 MB Notification: Performance of FrontEnd: time 2.164e-06/1.576, allocations: 0 / 0.8048 GB, free: 34.62 MB / 458.7 MB Notification: Performance of Transformations before backend: time 0.0005515/1.577, allocations: 175.6 kB / 0.8049 GB, free: 34.46 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.0287/1.606, allocations: 7.42 MB / 0.8122 GB, free: 27 MB / 458.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.79e-05/1.606, allocations: 15.97 kB / 0.8122 GB, free: 26.98 MB / 458.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02294/1.629, allocations: 3.887 MB / 0.816 GB, free: 23.12 MB / 458.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02103/1.65, allocations: 6.755 MB / 0.8226 GB, free: 16.39 MB / 458.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0009418/1.651, allocations: 0.5638 MB / 0.8231 GB, free: 15.84 MB / 458.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.004802/1.656, allocations: 0.7503 MB / 0.8239 GB, free: 15.1 MB / 458.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03963/1.695, allocations: 12.47 MB / 0.836 GB, free: 2.406 MB / 458.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0005562/1.696, allocations: 15.91 kB / 0.8361 GB, free: 2.391 MB / 458.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003755/1.7, allocations: 330.7 kB / 0.8364 GB, free: 2.078 MB / 458.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0007959/1.7, allocations: 0.5982 MB / 0.837 GB, free: 1.477 MB / 458.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.3818/2.082, allocations: 11.33 MB / 0.848 GB, free: 49.89 MB / 458.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.07432/2.157, allocations: 43.59 MB / 0.8906 GB, free: 41.13 MB / 458.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02069/2.177, allocations: 25.09 MB / 0.9151 GB, free: 19.82 MB / 458.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004826/2.182, allocations: 2.885 MB / 0.9179 GB, free: 18.7 MB / 458.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.000555/2.183, allocations: 243.4 kB / 0.9181 GB, free: 18.51 MB / 458.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.004134/2.187, allocations: 2.498 MB / 0.9206 GB, free: 17.43 MB / 458.7 MB Notification: Performance of pre-optimization done (n=391): time 8.155e-06/2.187, allocations: 2.625 kB / 0.9206 GB, free: 17.43 MB / 458.7 MB Notification: Performance of matching and sorting (n=397): time 0.02861/2.216, allocations: 13.75 MB / 0.934 GB, free: 10.41 MB / 458.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001113/2.216, allocations: 362.3 kB / 0.9344 GB, free: 10.03 MB / 458.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00456/2.22, allocations: 3.088 MB / 0.9374 GB, free: 8.812 MB / 458.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0006522/2.221, allocations: 92.55 kB / 0.9375 GB, free: 8.73 MB / 458.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001502/2.223, allocations: 3.361 MB / 0.9407 GB, free: 6.191 MB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001228/2.224, allocations: 1.351 MB / 0.9421 GB, free: 5.152 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002845/2.224, allocations: 109.2 kB / 0.9422 GB, free: 5.066 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 0.0004409/2.224, allocations: 0.5281 MB / 0.9427 GB, free: 20.66 MB / 474.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003319/2.228, allocations: 2.451 MB / 0.9451 GB, free: 19.7 MB / 474.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004462/2.232, allocations: 4.388 MB / 0.9494 GB, free: 16.3 MB / 474.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005219/2.238, allocations: 3.481 MB / 0.9528 GB, free: 14.97 MB / 474.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.062e-05/2.238, allocations: 18.53 kB / 0.9528 GB, free: 14.97 MB / 474.7 MB Notification: Performance of matching and sorting (n=720) (initialization): time 0.01502/2.253, allocations: 8.079 MB / 0.9607 GB, free: 12.21 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.000165/2.253, allocations: 56.3 kB / 0.9607 GB, free: 12.18 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001604/2.253, allocations: 60.5 kB / 0.9608 GB, free: 12.18 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003137/2.256, allocations: 1.009 MB / 0.9618 GB, free: 11.96 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005435/2.262, allocations: 1.259 MB / 0.963 GB, free: 11.93 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01348/2.275, allocations: 8.235 MB / 0.971 GB, free: 7.406 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005571/2.281, allocations: 393 kB / 0.9714 GB, free: 7.293 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001296/2.282, allocations: 266.1 kB / 0.9717 GB, free: 7.246 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.002529/2.285, allocations: 485.9 kB / 0.9721 GB, free: 6.918 MB / 474.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00154/2.286, allocations: 380.4 kB / 0.9725 GB, free: 6.723 MB / 474.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01371/2.3, allocations: 6.045 MB / 0.9784 GB, free: 2.191 MB / 474.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.075e-05/2.3, allocations: 44 kB / 0.9784 GB, free: 2.148 MB / 474.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.015e-05/2.3, allocations: 8 kB / 0.9784 GB, free: 2.141 MB / 474.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.385e-05/2.3, allocations: 22.33 kB / 0.9785 GB, free: 2.137 MB / 474.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0381/2.338, allocations: 15.02 MB / 0.9931 GB, free: 6.051 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.821e-05/2.338, allocations: 4 kB / 0.9931 GB, free: 6.047 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003228/2.342, allocations: 0.6809 MB / 0.9938 GB, free: 5.496 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002726/2.344, allocations: 0.868 MB / 0.9947 GB, free: 4.832 MB / 490.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0007047/2.345, allocations: 90.47 kB / 0.9947 GB, free: 4.75 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01146/2.357, allocations: 7.143 MB / 1.002 GB, free: 14.35 MB / 0.4948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.474e-05/2.357, allocations: 7.062 kB / 1.002 GB, free: 14.35 MB / 0.4948 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01784/2.374, allocations: 9.055 MB / 1.011 GB, free: 6.047 MB / 0.4948 GB Notification: Performance of postOpt removeConstants (simulation): time 0.003564/2.378, allocations: 0.9335 MB / 1.011 GB, free: 5.195 MB / 0.4948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001522/2.38, allocations: 82.58 kB / 1.012 GB, free: 5.117 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003301/2.383, allocations: 209.6 kB / 1.012 GB, free: 4.969 MB / 0.4948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0008559/2.384, allocations: 270.4 kB / 1.012 GB, free: 4.801 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0004788/2.384, allocations: 115.1 kB / 1.012 GB, free: 4.695 MB / 0.4948 GB Notification: Performance of sorting global known variables: time 0.005571/2.39, allocations: 2.294 MB / 1.014 GB, free: 2.648 MB / 0.4948 GB Notification: Performance of sort global known variables: time 4.71e-07/2.39, allocations: 0 / 1.014 GB, free: 2.648 MB / 0.4948 GB Notification: Performance of remove unused functions: time 0.008281/2.398, allocations: 1.518 MB / 1.016 GB, free: 1.148 MB / 0.4948 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.00161/2.4, allocations: 0.6132 MB / 1.016 GB, free: 0.6094 MB / 0.4948 GB Notification: Performance of simCode: created initialization part: time 0.3332/2.733, allocations: 6.656 MB / 1.023 GB, free: 91.17 MB / 0.4948 GB Notification: Performance of simCode: created event and clocks part: time 1.046e-05/2.733, allocations: 2.719 kB / 1.023 GB, free: 91.17 MB / 0.4948 GB Notification: Performance of simCode: created simulation system equations: time 0.006341/2.74, allocations: 3.015 MB / 1.026 GB, free: 90.93 MB / 0.4948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004378/2.744, allocations: 0.723 MB / 1.027 GB, free: 90.91 MB / 0.4948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0259/2.77, allocations: 11.95 MB / 1.038 GB, free: 88.7 MB / 0.4948 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.007008/2.777, allocations: 5.131 MB / 1.043 GB, free: 87.84 MB / 0.4948 GB Notification: Performance of simCode: alias equations: time 0.005209/2.782, allocations: 1.67 MB / 1.045 GB, free: 87.8 MB / 0.4948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001081/2.783, allocations: 328.3 kB / 1.045 GB, free: 87.8 MB / 0.4948 GB Notification: Performance of SimCode: time 7.81e-07/2.783, allocations: 0 / 1.045 GB, free: 87.8 MB / 0.4948 GB Notification: Performance of Templates: time 0.1079/2.891, allocations: 60.08 MB / 1.104 GB, free: 84.77 MB / 0.4948 GB make -j1 -f HanserModelica_HanserModelica.SynchronousMachines.SMEE_VCurve3.makefile (rm -f HanserModelica_HanserModelica.SynchronousMachines.SMEE_VCurve3.pipe ; mkfifo HanserModelica_HanserModelica.SynchronousMachines.SMEE_VCurve3.pipe ; head -c 1048576 < HanserModelica_HanserModelica.SynchronousMachines.SMEE_VCurve3.pipe >> ../files/HanserModelica_HanserModelica.SynchronousMachines.SMEE_VCurve3.sim & ./HanserModelica_HanserModelica.SynchronousMachines.SMEE_VCurve3 -abortSlowSimulation -alarm=480 -lv LOG_STATS > HanserModelica_HanserModelica.SynchronousMachines.SMEE_VCurve3.pipe 2>&1)