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.0009779/0.000978, allocations: 180.9 kB / 7.651 MB, free: 1.422 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/package.mo): time 0.03872/0.03872, allocations: 8.718 MB / 16.79 MB, free: 3.387 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.379/1.379, allocations: 221.5 MB / 240.9 MB, free: 13.12 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.001108/0.001108, allocations: 98.41 kB / 293.9 MB, free: 7.227 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 2.038e-05/2.05e-05, allocations: 7.984 kB / 352.7 MB, free: 1.141 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1255/0.1255, allocations: 52.55 MB / 405.3 MB, free: 12.54 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4428/0.5684, allocations: 139.3 MB / 0.5318 GB, free: 12.41 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002907/0.5687, allocations: 71.97 kB / 0.5319 GB, free: 12.34 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.189/1.758, allocations: 268.9 MB / 0.7945 GB, free: 35.43 MB / 442.7 MB Notification: Performance of FrontEnd: time 2.896e-06/1.758, allocations: 0 / 0.7945 GB, free: 35.43 MB / 442.7 MB Notification: Performance of Transformations before backend: time 0.0007164/1.759, allocations: 175.1 kB / 0.7947 GB, free: 35.42 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.03394/1.793, allocations: 7.415 MB / 0.802 GB, free: 33.05 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.161e-05/1.793, allocations: 14.42 kB / 0.802 GB, free: 33.05 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0238/1.817, allocations: 3.877 MB / 0.8058 GB, free: 32.61 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0191/1.836, allocations: 6.768 MB / 0.8124 GB, free: 31.79 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005177/1.837, allocations: 246.4 kB / 0.8126 GB, free: 31.79 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003567/1.84, allocations: 451 kB / 0.813 GB, free: 31.78 MB / 442.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0224/1.863, allocations: 9.983 MB / 0.8228 GB, free: 31.75 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03412/1.897, allocations: 11.27 MB / 0.8338 GB, free: 28.72 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0005205/1.897, allocations: 10.2 kB / 0.8338 GB, free: 28.71 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003508/1.901, allocations: 7.5 kB / 0.8338 GB, free: 28.71 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0007997/1.902, allocations: 0.5914 MB / 0.8344 GB, free: 28.59 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.09013/1.992, allocations: 43 MB / 0.8764 GB, free: 3.805 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02984/2.022, allocations: 26.05 MB / 0.9018 GB, free: 9.953 MB / 474.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.005809/2.027, allocations: 2.919 MB / 0.9047 GB, free: 7.312 MB / 474.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0006669/2.028, allocations: 249.8 kB / 0.9049 GB, free: 7.059 MB / 474.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.005321/2.034, allocations: 2.529 MB / 0.9074 GB, free: 4.918 MB / 474.7 MB Notification: Performance of pre-optimization done (n=391): time 9.518e-06/2.034, allocations: 0 / 0.9074 GB, free: 4.918 MB / 474.7 MB Notification: Performance of matching and sorting (n=397): time 0.4135/2.447, allocations: 15.69 MB / 0.9227 GB, free: 64.38 MB / 474.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001278/2.447, allocations: 354.2 kB / 0.923 GB, free: 64 MB / 474.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004564/2.452, allocations: 2.706 MB / 0.9257 GB, free: 63.75 MB / 474.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0007167/2.452, allocations: 31.95 kB / 0.9257 GB, free: 63.71 MB / 474.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001954/2.454, allocations: 3.383 MB / 0.929 GB, free: 62.18 MB / 474.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001465/2.456, allocations: 1.295 MB / 0.9303 GB, free: 61.33 MB / 474.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002746/2.456, allocations: 0 / 0.9303 GB, free: 61.33 MB / 474.7 MB Notification: Performance of setup shared object (initialization): time 0.0002884/2.456, allocations: 0.5223 MB / 0.9308 GB, free: 61.02 MB / 474.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003282/2.46, allocations: 2.484 MB / 0.9332 GB, free: 61 MB / 474.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004052/2.464, allocations: 4.379 MB / 0.9375 GB, free: 58.74 MB / 474.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007635/2.471, allocations: 4.371 MB / 0.9418 GB, free: 58.69 MB / 474.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.000101/2.472, allocations: 18.69 kB / 0.9418 GB, free: 58.69 MB / 474.7 MB Notification: Performance of matching and sorting (n=720) (initialization): time 0.02149/2.493, allocations: 8.605 MB / 0.9502 GB, free: 58.34 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001148/2.493, allocations: 55.92 kB / 0.9502 GB, free: 58.31 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001588/2.493, allocations: 62.03 kB / 0.9503 GB, free: 58.31 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002865/2.496, allocations: 0.995 MB / 0.9513 GB, free: 58.3 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005876/2.502, allocations: 1.299 MB / 0.9525 GB, free: 58.3 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01331/2.516, allocations: 7.959 MB / 0.9603 GB, free: 56.84 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006325/2.522, allocations: 308.9 kB / 0.9606 GB, free: 56.82 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.00175/2.524, allocations: 265.7 kB / 0.9609 GB, free: 56.82 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.001462/2.525, allocations: 299.4 kB / 0.9611 GB, free: 56.64 MB / 474.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0128/2.538, allocations: 5.833 MB / 0.9668 GB, free: 56.29 MB / 474.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001254/2.539, allocations: 363.9 kB / 0.9672 GB, free: 56.11 MB / 474.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01393/2.553, allocations: 6.658 MB / 0.9737 GB, free: 55.83 MB / 474.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.65e-05/2.553, allocations: 42.59 kB / 0.9737 GB, free: 55.83 MB / 474.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.55e-05/2.553, allocations: 11.22 kB / 0.9737 GB, free: 55.83 MB / 474.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.264e-05/2.553, allocations: 19.08 kB / 0.9738 GB, free: 55.83 MB / 474.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03097/2.584, allocations: 14.63 MB / 0.988 GB, free: 53.83 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.322e-05/2.584, allocations: 3.75 kB / 0.988 GB, free: 53.83 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002994/2.587, allocations: 0.7177 MB / 0.9887 GB, free: 53.8 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002355/2.59, allocations: 0.8613 MB / 0.9896 GB, free: 53.63 MB / 474.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005697/2.59, allocations: 34.09 kB / 0.9896 GB, free: 53.62 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00898/2.599, allocations: 6.932 MB / 0.9964 GB, free: 49.73 MB / 474.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.576e-06/2.599, allocations: 3.781 kB / 0.9964 GB, free: 49.73 MB / 474.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01597/2.615, allocations: 9.87 MB / 1.006 GB, free: 45.21 MB / 474.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.003045/2.618, allocations: 0.9457 MB / 1.007 GB, free: 44.65 MB / 474.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.00134/2.62, allocations: 10.97 kB / 1.007 GB, free: 44.65 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003145/2.623, allocations: 178.8 kB / 1.007 GB, free: 44.64 MB / 474.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006318/2.624, allocations: 275.9 kB / 1.007 GB, free: 44.6 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000238/2.624, allocations: 110.9 kB / 1.008 GB, free: 44.57 MB / 474.7 MB Notification: Performance of sorting global known variables: time 0.003701/2.628, allocations: 1.967 MB / 1.009 GB, free: 43.75 MB / 474.7 MB Notification: Performance of sort global known variables: time 1.002e-06/2.628, allocations: 0 / 1.009 GB, free: 43.75 MB / 474.7 MB Notification: Performance of remove unused functions: time 0.008995/2.637, allocations: 1.304 MB / 1.011 GB, free: 43.73 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.01679/2.653, allocations: 11.87 MB / 1.022 GB, free: 37.61 MB / 474.7 MB Notification: Performance of simCode: created initialization part: time 0.01231/2.666, allocations: 6.261 MB / 1.028 GB, free: 35.22 MB / 474.7 MB Notification: Performance of simCode: created event and clocks part: time 1.133e-05/2.666, allocations: 0 / 1.028 GB, free: 35.22 MB / 474.7 MB Notification: Performance of simCode: created simulation system equations: time 0.005162/2.671, allocations: 3.04 MB / 1.031 GB, free: 33.25 MB / 474.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004248/2.675, allocations: 0.5507 MB / 1.032 GB, free: 32.83 MB / 474.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03445/2.71, allocations: 13.96 MB / 1.046 GB, free: 20.71 MB / 474.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.006984/2.717, allocations: 5.133 MB / 1.051 GB, free: 16.78 MB / 474.7 MB Notification: Performance of simCode: alias equations: time 0.005942/2.723, allocations: 1.648 MB / 1.052 GB, free: 15.69 MB / 474.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.004851/2.728, allocations: 2.737 MB / 1.055 GB, free: 13.15 MB / 474.7 MB Notification: Performance of SimCode: time 8.82e-07/2.728, allocations: 0 / 1.055 GB, free: 13.15 MB / 474.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.5188/3.247, allocations: 104.1 MB / 1.156 GB, free: 63.89 MB / 490.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001633/3.247, allocations: 137.1 kB / 1.157 GB, free: 63.7 MB / 490.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 4.978/8.224, allocations: 0 / 1.157 GB, free: 63.7 MB / 490.7 MB (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)