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: "" <> buildModelFMU(HanserModelica.SynchronousMachines.SMEE_VCurve3,fileNamePrefix="HanserModelica_HanserModelica_SynchronousMachines_SMEE_VCurve3",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(HanserModelica.SynchronousMachines.SMEE_VCurve3,fileNamePrefix="HanserModelica_HanserModelica_SynchronousMachines_SMEE_VCurve3",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.0009913/0.0009914, allocations: 174.8 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.03839/0.03839, 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.394/1.394, 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.0008773/0.0008773, allocations: 92.61 kB / 299.1 MB, free: 3.008 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 2.919e-05/2.921e-05, allocations: 0 / 359.6 MB, free: 6.445 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.264/0.264, allocations: 52.55 MB / 412.2 MB, free: 22.54 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4562/0.7203, allocations: 140 MB / 0.5392 GB, free: 37.67 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002362/0.7206, allocations: 81.83 kB / 0.5393 GB, free: 37.66 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.8874/1.608, allocations: 272 MB / 0.8049 GB, free: 34.72 MB / 458.7 MB Notification: Performance of FrontEnd: time 2.424e-06/1.608, allocations: 0 / 0.8049 GB, free: 34.72 MB / 458.7 MB Notification: Performance of Transformations before backend: time 0.0005302/1.609, allocations: 175.8 kB / 0.805 GB, free: 34.55 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.02841/1.637, allocations: 7.424 MB / 0.8123 GB, free: 27.09 MB / 458.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.661e-05/1.637, allocations: 12.03 kB / 0.8123 GB, free: 27.07 MB / 458.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.006925/1.644, allocations: 1.268 MB / 0.8135 GB, free: 25.81 MB / 458.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02474/1.669, allocations: 3.887 MB / 0.8173 GB, free: 21.94 MB / 458.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02163/1.69, allocations: 6.762 MB / 0.8239 GB, free: 15.21 MB / 458.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000716/1.691, allocations: 0.5689 MB / 0.8245 GB, free: 14.65 MB / 458.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.005117/1.696, allocations: 0.7443 MB / 0.8252 GB, free: 13.92 MB / 458.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03549/1.732, allocations: 12.48 MB / 0.8374 GB, free: 1.215 MB / 458.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004891/1.732, allocations: 15.84 kB / 0.8374 GB, free: 1.199 MB / 458.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003442/1.736, allocations: 331.5 kB / 0.8377 GB, free: 0.8867 MB / 458.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0007437/1.737, allocations: 0.5983 MB / 0.8383 GB, free: 292 kB / 458.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.711/2.448, allocations: 11.33 MB / 0.8494 GB, free: 49.07 MB / 458.8 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.08133/2.529, allocations: 43.62 MB / 0.892 GB, free: 40.3 MB / 458.8 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02047/2.55, allocations: 25.08 MB / 0.9165 GB, free: 18.56 MB / 458.8 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004798/2.554, allocations: 2.89 MB / 0.9193 GB, free: 17.44 MB / 458.8 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003971/2.555, allocations: 240.2 kB / 0.9195 GB, free: 17.25 MB / 458.8 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.003705/2.559, allocations: 2.51 MB / 0.922 GB, free: 16.16 MB / 458.8 MB Notification: Performance of pre-optimization done (n=391): time 6.031e-06/2.559, allocations: 0 / 0.922 GB, free: 16.16 MB / 458.8 MB Notification: Performance of matching and sorting (n=397): time 0.02247/2.581, allocations: 13.76 MB / 0.9354 GB, free: 9.137 MB / 458.8 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001189/2.581, allocations: 357.8 kB / 0.9357 GB, free: 8.754 MB / 458.8 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004826/2.586, allocations: 3.083 MB / 0.9387 GB, free: 7.539 MB / 458.8 MB Notification: Performance of collectPreVariables (initialization): time 0.000728/2.587, allocations: 91.2 kB / 0.9388 GB, free: 7.457 MB / 458.8 MB Notification: Performance of collectInitialEqns (initialization): time 0.002021/2.589, allocations: 3.37 MB / 0.9421 GB, free: 4.91 MB / 458.8 MB Notification: Performance of collectInitialBindings (initialization): time 0.001535/2.59, allocations: 1.352 MB / 0.9434 GB, free: 3.871 MB / 458.8 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000299/2.591, allocations: 112.8 kB / 0.9436 GB, free: 3.785 MB / 458.8 MB Notification: Performance of setup shared object (initialization): time 0.000287/2.591, allocations: 0.5229 MB / 0.9441 GB, free: 3.383 MB / 458.8 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003423/2.594, allocations: 2.453 MB / 0.9465 GB, free: 2.414 MB / 458.8 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004515/2.599, allocations: 4.389 MB / 0.9507 GB, free: 15.02 MB / 474.8 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005019/2.604, allocations: 3.484 MB / 0.9541 GB, free: 13.69 MB / 474.8 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.697e-05/2.604, allocations: 17.8 kB / 0.9542 GB, free: 13.69 MB / 474.8 MB Notification: Performance of matching and sorting (n=720) (initialization): time 0.015/2.619, allocations: 8.07 MB / 0.962 GB, free: 10.93 MB / 474.8 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001066/2.619, allocations: 62.14 kB / 0.9621 GB, free: 10.89 MB / 474.8 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001242/2.619, allocations: 61.92 kB / 0.9622 GB, free: 10.89 MB / 474.8 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002825/2.622, allocations: 1.006 MB / 0.9631 GB, free: 10.69 MB / 474.8 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004781/2.627, allocations: 1.266 MB / 0.9644 GB, free: 10.65 MB / 474.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.013/2.64, allocations: 8.233 MB / 0.9724 GB, free: 6.102 MB / 474.8 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006058/2.646, allocations: 388 kB / 0.9728 GB, free: 5.805 MB / 474.8 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001722/2.648, allocations: 266.5 kB / 0.973 GB, free: 5.555 MB / 474.8 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.002371/2.65, allocations: 481.4 kB / 0.9735 GB, free: 5.16 MB / 474.8 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001569/2.652, allocations: 391.2 kB / 0.9739 GB, free: 4.773 MB / 474.8 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01305/2.665, allocations: 6.068 MB / 0.9798 GB, free: 15.79 MB / 490.8 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.006e-05/2.665, allocations: 44 kB / 0.9798 GB, free: 15.75 MB / 490.8 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.728e-05/2.665, allocations: 12 kB / 0.9799 GB, free: 15.74 MB / 490.8 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.609e-05/2.665, allocations: 19.27 kB / 0.9799 GB, free: 15.74 MB / 490.8 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03069/2.696, allocations: 14.92 MB / 0.9944 GB, free: 3.363 MB / 490.8 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.893e-05/2.696, allocations: 7.953 kB / 0.9945 GB, free: 3.355 MB / 490.8 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002769/2.699, allocations: 0.6836 MB / 0.9951 GB, free: 2.801 MB / 490.8 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002532/2.701, allocations: 0.8761 MB / 0.996 GB, free: 2.133 MB / 490.8 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003838/2.701, allocations: 79.33 kB / 0.9961 GB, free: 2.059 MB / 490.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01085/2.712, allocations: 7.157 MB / 1.003 GB, free: 11.73 MB / 0.4949 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.575e-06/2.712, allocations: 8.031 kB / 1.003 GB, free: 11.72 MB / 0.4949 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01487/2.727, allocations: 9.065 MB / 1.012 GB, free: 3.41 MB / 0.4949 GB Notification: Performance of postOpt removeConstants (simulation): time 0.00319/2.731, allocations: 0.9405 MB / 1.013 GB, free: 2.559 MB / 0.4949 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001026/2.732, allocations: 75.95 kB / 1.013 GB, free: 2.484 MB / 0.4949 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002428/2.734, allocations: 214.4 kB / 1.013 GB, free: 2.332 MB / 0.4949 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005912/2.735, allocations: 273.4 kB / 1.013 GB, free: 2.16 MB / 0.4949 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002567/2.735, allocations: 116.3 kB / 1.013 GB, free: 2.055 MB / 0.4949 GB Notification: Performance of sorting global known variables: time 0.003977/2.739, allocations: 2.293 MB / 1.016 GB, free: 12 kB / 0.4949 GB Notification: Performance of sort global known variables: time 4.51e-07/2.739, allocations: 0 / 1.016 GB, free: 12 kB / 0.4949 GB Notification: Performance of remove unused functions: time 0.00775/2.747, allocations: 1.574 MB / 1.017 GB, free: 14.64 MB / 0.5105 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.01574/2.762, allocations: 11.23 MB / 1.028 GB, free: 4.297 MB / 0.5105 GB Notification: Performance of simCode: created initialization part: time 0.3358/3.098, allocations: 6.298 MB / 1.034 GB, free: 110.1 MB / 0.5105 GB Notification: Performance of simCode: created event and clocks part: time 1.447e-05/3.098, allocations: 0.75 kB / 1.034 GB, free: 110.1 MB / 0.5105 GB Notification: Performance of simCode: created simulation system equations: time 0.00682/3.105, allocations: 3.017 MB / 1.037 GB, free: 109.8 MB / 0.5105 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004413/3.11, allocations: 0.7181 MB / 1.038 GB, free: 109.8 MB / 0.5105 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03367/3.143, allocations: 14.15 MB / 1.052 GB, free: 107.4 MB / 0.5105 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.007715/3.151, allocations: 5.137 MB / 1.057 GB, free: 106.6 MB / 0.5105 GB Notification: Performance of simCode: alias equations: time 0.005593/3.157, allocations: 1.665 MB / 1.058 GB, free: 106.5 MB / 0.5105 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.005652/3.162, allocations: 2.744 MB / 1.061 GB, free: 106.5 MB / 0.5105 GB Notification: Performance of SimCode: time 1.292e-06/3.162, allocations: 0 / 1.061 GB, free: 106.5 MB / 0.5105 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1682/3.331, allocations: 113 MB / 1.172 GB, free: 55.16 MB / 0.5105 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001663/3.331, allocations: 184.4 kB / 1.172 GB, free: 54.92 MB / 0.5105 GB Notification: Performance of buildModelFMU: Generate platform static: time 5.451/8.782, allocations: 1.031 kB / 1.172 GB, free: 54.92 MB / 0.5105 GB (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 & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_HanserModelica_HanserModelica_SynchronousMachines_SMEE_VCurve3_fmu --startTime=0 --stopTime=200 --timeout=50 --tolerance=1e-06 HanserModelica_HanserModelica_SynchronousMachines_SMEE_VCurve3.fmu > HanserModelica_HanserModelica.SynchronousMachines.SMEE_VCurve3.pipe 2>&1)