Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr HanserModelica_HanserModelica.SynchronousMachines.SMEE_VCurve2.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: "" <> buildModelFMU(HanserModelica.SynchronousMachines.SMEE_VCurve2,fileNamePrefix="HanserModelica_HanserModelica_SynchronousMachines_SMEE_VCurve2",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(HanserModelica.SynchronousMachines.SMEE_VCurve2,fileNamePrefix="HanserModelica_HanserModelica_SynchronousMachines_SMEE_VCurve2",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001075/0.001075, allocations: 175 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.04158/0.04158, 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.556/1.556, allocations: 221.4 MB / 246 MB, free: 3.555 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.001077/0.001077, allocations: 103 kB / 299.1 MB, free: 2.969 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 3.955e-05/3.961e-05, allocations: 4 kB / 359.6 MB, free: 6.406 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3902/0.3902, allocations: 52.55 MB / 412.2 MB, free: 22.51 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.5173/0.9076, allocations: 140 MB / 0.5392 GB, free: 37.58 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002517/0.9079, allocations: 79.09 kB / 0.5393 GB, free: 37.57 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.8455/1.753, allocations: 272 MB / 0.8049 GB, free: 34.71 MB / 458.7 MB Notification: Performance of FrontEnd: time 3.396e-06/1.754, allocations: 0 / 0.8049 GB, free: 34.71 MB / 458.7 MB Notification: Performance of Transformations before backend: time 0.0006394/1.754, allocations: 179.5 kB / 0.805 GB, free: 34.54 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.02686/1.781, allocations: 7.42 MB / 0.8123 GB, free: 27.08 MB / 458.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.279e-05/1.781, allocations: 8.031 kB / 0.8123 GB, free: 27.07 MB / 458.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.006086/1.787, allocations: 1.266 MB / 0.8135 GB, free: 25.8 MB / 458.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02267/1.81, allocations: 3.891 MB / 0.8173 GB, free: 21.93 MB / 458.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01928/1.829, allocations: 6.764 MB / 0.8239 GB, free: 15.2 MB / 458.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0006777/1.83, allocations: 0.57 MB / 0.8245 GB, free: 14.64 MB / 458.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.004705/1.835, allocations: 0.7411 MB / 0.8252 GB, free: 13.91 MB / 458.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03977/1.875, allocations: 12.48 MB / 0.8374 GB, free: 1.207 MB / 458.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0005367/1.875, allocations: 11.91 kB / 0.8374 GB, free: 1.195 MB / 458.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003813/1.879, allocations: 330.5 kB / 0.8377 GB, free: 0.8828 MB / 458.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0007731/1.88, allocations: 0.5944 MB / 0.8383 GB, free: 292 kB / 458.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.4205/2.3, allocations: 11.33 MB / 0.8494 GB, free: 50.3 MB / 458.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.07843/2.379, allocations: 43.61 MB / 0.892 GB, free: 41.54 MB / 458.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02131/2.4, allocations: 25.08 MB / 0.9165 GB, free: 19.86 MB / 458.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.006315/2.407, allocations: 2.891 MB / 0.9193 GB, free: 18.74 MB / 458.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0004629/2.407, allocations: 246.4 kB / 0.9195 GB, free: 18.54 MB / 458.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.003834/2.411, allocations: 2.497 MB / 0.922 GB, free: 17.46 MB / 458.7 MB Notification: Performance of pre-optimization done (n=391): time 6.221e-06/2.411, allocations: 0 / 0.922 GB, free: 17.46 MB / 458.7 MB Notification: Performance of matching and sorting (n=397): time 0.02243/2.433, allocations: 13.76 MB / 0.9354 GB, free: 10.44 MB / 458.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000107/2.433, allocations: 351.5 kB / 0.9357 GB, free: 10.06 MB / 458.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004908/2.438, allocations: 3.098 MB / 0.9388 GB, free: 8.836 MB / 458.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0007238/2.439, allocations: 88.33 kB / 0.9388 GB, free: 8.758 MB / 458.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001759/2.441, allocations: 3.366 MB / 0.9421 GB, free: 6.211 MB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.00144/2.442, allocations: 1.349 MB / 0.9434 GB, free: 5.172 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003058/2.443, allocations: 112.5 kB / 0.9436 GB, free: 5.082 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 0.000331/2.443, allocations: 0.5315 MB / 0.9441 GB, free: 4.68 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00337/2.446, allocations: 2.452 MB / 0.9465 GB, free: 3.711 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004101/2.45, allocations: 4.385 MB / 0.9507 GB, free: 328 kB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00504/2.456, allocations: 3.49 MB / 0.9542 GB, free: 15.02 MB / 474.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.516e-05/2.456, allocations: 20.61 kB / 0.9542 GB, free: 15.02 MB / 474.7 MB Notification: Performance of matching and sorting (n=720) (initialization): time 0.01414/2.47, allocations: 8.075 MB / 0.9621 GB, free: 12.26 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 8.875e-05/2.47, allocations: 54.02 kB / 0.9621 GB, free: 12.23 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001197/2.47, allocations: 60.66 kB / 0.9622 GB, free: 12.23 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002851/2.473, allocations: 1.01 MB / 0.9632 GB, free: 12.02 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005312/2.478, allocations: 1.267 MB / 0.9644 GB, free: 11.98 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01254/2.491, allocations: 8.232 MB / 0.9724 GB, free: 7.426 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006053/2.497, allocations: 378.8 kB / 0.9728 GB, free: 7.137 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.00141/2.498, allocations: 277.6 kB / 0.9731 GB, free: 6.879 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.001222/2.5, allocations: 473.9 kB / 0.9735 GB, free: 6.488 MB / 474.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001084/2.501, allocations: 391.2 kB / 0.9739 GB, free: 6.102 MB / 474.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01099/2.512, allocations: 6.045 MB / 0.9798 GB, free: 1.051 MB / 474.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.268e-05/2.512, allocations: 43.38 kB / 0.9798 GB, free: 1.012 MB / 474.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.701e-05/2.512, allocations: 12 kB / 0.9798 GB, free: 1 MB / 474.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.469e-05/2.512, allocations: 20.67 kB / 0.9799 GB, free: 1 MB / 474.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03047/2.542, allocations: 14.92 MB / 0.9944 GB, free: 4.629 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.608e-05/2.542, allocations: 4.062 kB / 0.9944 GB, free: 4.625 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002897/2.545, allocations: 0.6823 MB / 0.9951 GB, free: 4.082 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002536/2.548, allocations: 0.8772 MB / 0.996 GB, free: 3.41 MB / 490.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004953/2.548, allocations: 82.98 kB / 0.996 GB, free: 3.336 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01058/2.559, allocations: 7.141 MB / 1.003 GB, free: 12.94 MB / 0.4948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.655e-06/2.559, allocations: 8.031 kB / 1.003 GB, free: 12.93 MB / 0.4948 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01472/2.574, allocations: 9.059 MB / 1.012 GB, free: 4.629 MB / 0.4948 GB Notification: Performance of postOpt removeConstants (simulation): time 0.003084/2.577, allocations: 0.9392 MB / 1.013 GB, free: 3.773 MB / 0.4948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0009337/2.578, allocations: 79 kB / 1.013 GB, free: 3.699 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002581/2.58, allocations: 213.6 kB / 1.013 GB, free: 3.547 MB / 0.4948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005903/2.581, allocations: 268.2 kB / 1.013 GB, free: 3.379 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002471/2.581, allocations: 115.5 kB / 1.013 GB, free: 3.27 MB / 0.4948 GB Notification: Performance of sorting global known variables: time 0.004215/2.585, allocations: 2.294 MB / 1.016 GB, free: 1.227 MB / 0.4948 GB Notification: Performance of sort global known variables: time 3.11e-07/2.586, allocations: 0 / 1.016 GB, free: 1.227 MB / 0.4948 GB Notification: Performance of remove unused functions: time 0.00891/2.594, allocations: 1.64 MB / 1.017 GB, free: 0 / 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.3918/2.986, allocations: 11.23 MB / 1.028 GB, free: 88.78 MB / 0.4948 GB Notification: Performance of simCode: created initialization part: time 0.01124/2.998, allocations: 6.296 MB / 1.034 GB, free: 88.48 MB / 0.4948 GB Notification: Performance of simCode: created event and clocks part: time 1.266e-05/2.998, allocations: 6.125 kB / 1.034 GB, free: 88.48 MB / 0.4948 GB Notification: Performance of simCode: created simulation system equations: time 0.005814/3.003, allocations: 3.015 MB / 1.037 GB, free: 88.23 MB / 0.4948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005171/3.009, allocations: 0.7145 MB / 1.038 GB, free: 88.21 MB / 0.4948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04139/3.05, allocations: 14.16 MB / 1.052 GB, free: 85.82 MB / 0.4948 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.009393/3.059, allocations: 5.134 MB / 1.057 GB, free: 84.96 MB / 0.4948 GB Notification: Performance of simCode: alias equations: time 0.006677/3.066, allocations: 1.669 MB / 1.058 GB, free: 84.89 MB / 0.4948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.005983/3.072, allocations: 2.738 MB / 1.061 GB, free: 84.89 MB / 0.4948 GB Notification: Performance of SimCode: time 2.404e-06/3.072, allocations: 0 / 1.061 GB, free: 84.89 MB / 0.4948 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1662/3.238, allocations: 113 MB / 1.172 GB, free: 26.78 MB / 0.4948 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001747/3.239, allocations: 172.5 kB / 1.172 GB, free: 26.55 MB / 0.4948 GB Notification: Performance of buildModelFMU: Generate platform static: time 5.466/8.704, allocations: 0 / 1.172 GB, free: 26.55 MB / 0.4948 GB (rm -f HanserModelica_HanserModelica.SynchronousMachines.SMEE_VCurve2.pipe ; mkfifo HanserModelica_HanserModelica.SynchronousMachines.SMEE_VCurve2.pipe ; head -c 1048576 < HanserModelica_HanserModelica.SynchronousMachines.SMEE_VCurve2.pipe >> ../files/HanserModelica_HanserModelica.SynchronousMachines.SMEE_VCurve2.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_HanserModelica_HanserModelica_SynchronousMachines_SMEE_VCurve2_fmu --startTime=0 --stopTime=200 --timeout=50 --tolerance=1e-06 HanserModelica_HanserModelica_SynchronousMachines_SMEE_VCurve2.fmu > HanserModelica_HanserModelica.SynchronousMachines.SMEE_VCurve2.pipe 2>&1)