Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr HanserModelica_HanserModelica.SynchronousMachines.SMR_MTPA.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.SMR_MTPA,fileNamePrefix="HanserModelica_HanserModelica_SynchronousMachines_SMR_MTPA",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(HanserModelica.SynchronousMachines.SMR_MTPA,fileNamePrefix="HanserModelica_HanserModelica_SynchronousMachines_SMR_MTPA",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.001171/0.001171, allocations: 174.3 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.04395/0.04395, allocations: 8.7 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.403/1.403, allocations: 221.4 MB / 246 MB, free: 3.613 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.0009494/0.0009495, allocations: 98.86 kB / 299.1 MB, free: 3 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 3.405e-05/3.407e-05, allocations: 4 kB / 359.6 MB, free: 6.438 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2539/0.2539, allocations: 52.54 MB / 412.2 MB, free: 22.44 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4445/0.6984, allocations: 131.5 MB / 0.5309 GB, free: 40.75 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002985/0.6988, allocations: 81.09 kB / 0.531 GB, free: 40.73 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.8797/1.579, allocations: 315.2 MB / 0.8388 GB, free: 0.9062 MB / 458.7 MB Notification: Performance of FrontEnd: time 2.294e-06/1.579, allocations: 0 / 0.8388 GB, free: 0.9062 MB / 458.7 MB Notification: Performance of Transformations before backend: time 0.0005335/1.579, allocations: 207.8 kB / 0.839 GB, free: 0.7031 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: 2552 * Number of variables: 2552 Notification: Performance of Generate backend data structure: time 0.3784/1.958, allocations: 8.259 MB / 0.847 GB, free: 37.97 MB / 458.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.189e-05/1.958, allocations: 10.62 kB / 0.8471 GB, free: 37.97 MB / 458.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.007126/1.965, allocations: 1.307 MB / 0.8483 GB, free: 37.88 MB / 458.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02378/1.989, allocations: 3.866 MB / 0.8521 GB, free: 37.4 MB / 458.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02005/2.009, allocations: 7.237 MB / 0.8592 GB, free: 36.62 MB / 458.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0007573/2.009, allocations: 0.6575 MB / 0.8598 GB, free: 36.6 MB / 458.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003971/2.013, allocations: 0.8609 MB / 0.8607 GB, free: 36.59 MB / 458.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03657/2.05, allocations: 14.51 MB / 0.8748 GB, free: 35.54 MB / 458.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004278/2.051, allocations: 22.53 kB / 0.8749 GB, free: 35.53 MB / 458.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003216/2.054, allocations: 384.4 kB / 0.8752 GB, free: 35.53 MB / 458.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000825/2.055, allocations: 0.6784 MB / 0.8759 GB, free: 35.51 MB / 458.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02779/2.082, allocations: 12.35 MB / 0.8879 GB, free: 35.43 MB / 458.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.08614/2.169, allocations: 46.9 MB / 0.9337 GB, free: 17.48 MB / 458.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0219/2.191, allocations: 28.16 MB / 0.9612 GB, free: 6.285 MB / 474.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.005397/2.196, allocations: 2.946 MB / 0.9641 GB, free: 5.184 MB / 474.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0006085/2.197, allocations: 240.6 kB / 0.9643 GB, free: 4.984 MB / 474.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 8.95e-05/2.197, allocations: 71.8 kB / 0.9644 GB, free: 4.918 MB / 474.7 MB Notification: Performance of pre-optimization done (n=377): time 1.015e-05/2.197, allocations: 2.812 kB / 0.9644 GB, free: 4.918 MB / 474.7 MB Notification: Performance of matching and sorting (n=384): time 0.02469/2.221, allocations: 11.06 MB / 0.9752 GB, free: 15.96 MB / 490.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.684e-05/2.222, allocations: 91.02 kB / 0.9753 GB, free: 15.89 MB / 490.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007398/2.229, allocations: 3.028 MB / 0.9783 GB, free: 14.71 MB / 490.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0008486/2.23, allocations: 84.8 kB / 0.9783 GB, free: 14.64 MB / 490.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.003563/2.233, allocations: 3.941 MB / 0.9822 GB, free: 11.67 MB / 490.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.002166/2.236, allocations: 1.315 MB / 0.9835 GB, free: 10.66 MB / 490.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001224/2.237, allocations: 118.9 kB / 0.9836 GB, free: 10.57 MB / 490.7 MB Notification: Performance of setup shared object (initialization): time 0.00089/2.238, allocations: 0.5482 MB / 0.9841 GB, free: 10.15 MB / 490.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005107/2.243, allocations: 2.457 MB / 0.9865 GB, free: 9.219 MB / 490.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.007853/2.251, allocations: 4.89 MB / 0.9913 GB, free: 3.59 MB / 490.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007229/2.258, allocations: 3.663 MB / 0.9949 GB, free: 0.543 MB / 490.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001185/2.258, allocations: 24 kB / 0.9949 GB, free: 0.5195 MB / 490.7 MB Notification: Performance of matching and sorting (n=756) (initialization): time 0.02384/2.282, allocations: 8.593 MB / 1.003 GB, free: 10.38 MB / 0.4948 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001936/2.282, allocations: 40 kB / 1.003 GB, free: 10.34 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002411/2.283, allocations: 83.56 kB / 1.003 GB, free: 10.26 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002974/2.286, allocations: 0.8884 MB / 1.004 GB, free: 9.547 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005813/2.291, allocations: 1.325 MB / 1.006 GB, free: 8.453 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01243/2.304, allocations: 7.51 MB / 1.013 GB, free: 1.789 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005405/2.309, allocations: 332.7 kB / 1.013 GB, free: 1.512 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001626/2.311, allocations: 294.8 kB / 1.014 GB, free: 1.23 MB / 0.4948 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 372 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (702): * Single equations (assignments): 700 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 1 * 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 {(8,65.6%) 46} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.002509/2.314, allocations: 497.6 kB / 1.014 GB, free: 0.7383 MB / 0.4948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001619/2.315, allocations: 397.7 kB / 1.014 GB, free: 360 kB / 0.4948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01497/2.33, allocations: 5.838 MB / 1.02 GB, free: 11.79 MB / 0.5105 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.127e-05/2.33, allocations: 40 kB / 1.02 GB, free: 11.75 MB / 0.5105 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.823e-05/2.33, allocations: 8 kB / 1.02 GB, free: 11.75 MB / 0.5105 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.4e-05/2.33, allocations: 18.19 kB / 1.02 GB, free: 11.75 MB / 0.5105 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.7477/3.078, allocations: 14.9 MB / 1.035 GB, free: 91.54 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.382e-05/3.078, allocations: 5.219 kB / 1.035 GB, free: 91.54 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003567/3.082, allocations: 0.6722 MB / 1.035 GB, free: 91.54 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002077/3.084, allocations: 0.6883 MB / 1.036 GB, free: 91.52 MB / 0.5105 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0007719/3.085, allocations: 84.41 kB / 1.036 GB, free: 91.52 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008275/3.093, allocations: 6.118 MB / 1.042 GB, free: 90.18 MB / 0.5105 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.331e-05/3.093, allocations: 9.734 kB / 1.042 GB, free: 90.18 MB / 0.5105 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01343/3.106, allocations: 8.706 MB / 1.051 GB, free: 89.16 MB / 0.5105 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002548/3.109, allocations: 0.8617 MB / 1.051 GB, free: 89.06 MB / 0.5105 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007299/3.11, allocations: 71.98 kB / 1.051 GB, free: 89.06 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001986/3.112, allocations: 190.2 kB / 1.052 GB, free: 89.06 MB / 0.5105 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005808/3.112, allocations: 256.2 kB / 1.052 GB, free: 89.05 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002254/3.113, allocations: 109 kB / 1.052 GB, free: 89.05 MB / 0.5105 GB Notification: Performance of sorting global known variables: time 0.003586/3.116, allocations: 2.26 MB / 1.054 GB, free: 88.89 MB / 0.5105 GB Notification: Performance of sort global known variables: time 4.21e-07/3.116, allocations: 0 / 1.054 GB, free: 88.89 MB / 0.5105 GB Notification: Performance of remove unused functions: time 0.008199/3.124, allocations: 1.549 MB / 1.056 GB, free: 88.89 MB / 0.5105 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 19 * Number of states: 1 (smr.phiMechanical) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (366): * Single equations (assignments): 364 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 1 * 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 {(8,62.5%) 38} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.01336/3.138, allocations: 10.75 MB / 1.066 GB, free: 86.33 MB / 0.5105 GB Notification: Performance of simCode: created initialization part: time 0.01059/3.148, allocations: 6.269 MB / 1.072 GB, free: 86.1 MB / 0.5105 GB Notification: Performance of simCode: created event and clocks part: time 1.186e-05/3.149, allocations: 1.562 kB / 1.072 GB, free: 86.1 MB / 0.5105 GB Notification: Performance of simCode: created simulation system equations: time 0.004632/3.153, allocations: 2.789 MB / 1.075 GB, free: 85.92 MB / 0.5105 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004869/3.158, allocations: 0.8014 MB / 1.076 GB, free: 85.9 MB / 0.5105 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04087/3.199, allocations: 15.88 MB / 1.091 GB, free: 83.23 MB / 0.5105 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00875/3.208, allocations: 6.039 MB / 1.097 GB, free: 82.34 MB / 0.5105 GB Notification: Performance of simCode: alias equations: time 0.005976/3.214, allocations: 1.839 MB / 1.099 GB, free: 82.25 MB / 0.5105 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.006728/3.221, allocations: 3.083 MB / 1.102 GB, free: 82.24 MB / 0.5105 GB Notification: Performance of SimCode: time 1.623e-06/3.221, allocations: 0 / 1.102 GB, free: 82.24 MB / 0.5105 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.5616/3.782, allocations: 117.8 MB / 1.217 GB, free: 55.6 MB / 0.5105 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001563/3.782, allocations: 161.5 kB / 1.217 GB, free: 55.38 MB / 0.5105 GB Notification: Performance of buildModelFMU: Generate platform static: time 5.262/9.045, allocations: 2.344 kB / 1.217 GB, free: 55.38 MB / 0.5105 GB (rm -f HanserModelica_HanserModelica.SynchronousMachines.SMR_MTPA.pipe ; mkfifo HanserModelica_HanserModelica.SynchronousMachines.SMR_MTPA.pipe ; head -c 1048576 < HanserModelica_HanserModelica.SynchronousMachines.SMR_MTPA.pipe >> ../files/HanserModelica_HanserModelica.SynchronousMachines.SMR_MTPA.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_HanserModelica_HanserModelica_SynchronousMachines_SMR_MTPA_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 HanserModelica_HanserModelica_SynchronousMachines_SMR_MTPA.fmu > HanserModelica_HanserModelica.SynchronousMachines.SMR_MTPA.pipe 2>&1)