Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr HanserModelica_HanserModelica.SynchronousMachines.SMEE_VCurve1.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_VCurve1,fileNamePrefix="HanserModelica_HanserModelica_SynchronousMachines_SMEE_VCurve1",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(HanserModelica.SynchronousMachines.SMEE_VCurve1,fileNamePrefix="HanserModelica_HanserModelica_SynchronousMachines_SMEE_VCurve1",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.002616/0.002616, allocations: 173.9 kB / 7.648 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.06042/0.06042, allocations: 8.719 MB / 16.79 MB, free: 3.379 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.484/1.484, allocations: 221.5 MB / 240.9 MB, free: 13.21 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.0009167/0.0009166, allocations: 95.83 kB / 293.9 MB, free: 7.215 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 3.145e-05/3.167e-05, allocations: 4 kB / 352.7 MB, free: 1.176 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1528/0.1528, allocations: 52.55 MB / 405.3 MB, free: 12.57 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4659/0.6188, allocations: 139.3 MB / 0.5318 GB, free: 12.52 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002883/0.6192, allocations: 79.95 kB / 0.5319 GB, free: 12.44 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.179/1.799, allocations: 268.5 MB / 0.794 GB, free: 51.74 MB / 458.7 MB Notification: Performance of FrontEnd: time 2.244e-06/1.799, allocations: 0 / 0.794 GB, free: 51.74 MB / 458.7 MB Notification: Performance of Transformations before backend: time 0.0006659/1.799, allocations: 180.4 kB / 0.7942 GB, free: 51.72 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.03403/1.833, allocations: 7.419 MB / 0.8015 GB, free: 49.35 MB / 458.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.019e-05/1.833, allocations: 11.33 kB / 0.8015 GB, free: 49.34 MB / 458.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02275/1.856, allocations: 3.877 MB / 0.8053 GB, free: 48.91 MB / 458.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01862/1.875, allocations: 6.761 MB / 0.8119 GB, free: 48.08 MB / 458.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004914/1.875, allocations: 249.2 kB / 0.8121 GB, free: 48.08 MB / 458.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003485/1.879, allocations: 452.3 kB / 0.8125 GB, free: 48.08 MB / 458.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.02667/1.906, allocations: 9.975 MB / 0.8223 GB, free: 48.04 MB / 458.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03427/1.94, allocations: 11.27 MB / 0.8333 GB, free: 45.09 MB / 458.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004292/1.94, allocations: 14.78 kB / 0.8333 GB, free: 45.08 MB / 458.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.00368/1.944, allocations: 11.23 kB / 0.8333 GB, free: 45.08 MB / 458.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0006913/1.945, allocations: 0.5907 MB / 0.8339 GB, free: 44.95 MB / 458.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.08467/2.029, allocations: 43 MB / 0.8759 GB, free: 20.16 MB / 458.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02817/2.058, allocations: 25.97 MB / 0.9012 GB, free: 10.22 MB / 474.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.006081/2.064, allocations: 2.919 MB / 0.9041 GB, free: 7.578 MB / 474.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0007705/2.065, allocations: 246.6 kB / 0.9043 GB, free: 7.324 MB / 474.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.00584/2.071, allocations: 2.532 MB / 0.9068 GB, free: 5.184 MB / 474.7 MB Notification: Performance of pre-optimization done (n=391): time 1.017e-05/2.071, allocations: 0 / 0.9068 GB, free: 5.184 MB / 474.7 MB Notification: Performance of matching and sorting (n=397): time 0.4086/2.479, allocations: 15.67 MB / 0.9221 GB, free: 64.82 MB / 474.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001499/2.479, allocations: 352.2 kB / 0.9224 GB, free: 64.44 MB / 474.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005399/2.485, allocations: 2.706 MB / 0.9251 GB, free: 64.18 MB / 474.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0009081/2.486, allocations: 27.92 kB / 0.9251 GB, free: 64.15 MB / 474.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002124/2.488, allocations: 3.381 MB / 0.9284 GB, free: 62.62 MB / 474.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001739/2.49, allocations: 1.296 MB / 0.9297 GB, free: 61.77 MB / 474.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003248/2.49, allocations: 3.531 kB / 0.9297 GB, free: 61.77 MB / 474.7 MB Notification: Performance of setup shared object (initialization): time 0.0003189/2.49, allocations: 0.5304 MB / 0.9302 GB, free: 61.45 MB / 474.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003534/2.494, allocations: 2.476 MB / 0.9326 GB, free: 61.44 MB / 474.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004639/2.498, allocations: 4.383 MB / 0.9369 GB, free: 59.17 MB / 474.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.009408/2.508, allocations: 4.361 MB / 0.9411 GB, free: 59.12 MB / 474.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001427/2.508, allocations: 19.94 kB / 0.9412 GB, free: 59.12 MB / 474.7 MB Notification: Performance of matching and sorting (n=720) (initialization): time 0.02175/2.53, allocations: 8.604 MB / 0.9496 GB, free: 58.78 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001889/2.53, allocations: 56.55 kB / 0.9496 GB, free: 58.75 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002055/2.53, allocations: 59.84 kB / 0.9497 GB, free: 58.75 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002793/2.533, allocations: 0.9964 MB / 0.9507 GB, free: 58.73 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005882/2.539, allocations: 1.3 MB / 0.9519 GB, free: 58.73 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01438/2.553, allocations: 7.955 MB / 0.9597 GB, free: 57.27 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007759/2.561, allocations: 309.5 kB / 0.96 GB, free: 57.25 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002715/2.564, allocations: 270.1 kB / 0.9602 GB, free: 57.25 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.003168/2.567, allocations: 306.4 kB / 0.9605 GB, free: 57.08 MB / 474.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.01517/2.582, allocations: 5.82 MB / 0.9662 GB, free: 56.73 MB / 474.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001936/2.584, allocations: 369.3 kB / 0.9666 GB, free: 56.54 MB / 474.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01712/2.602, allocations: 6.659 MB / 0.9731 GB, free: 56.27 MB / 474.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.406e-05/2.602, allocations: 43.56 kB / 0.9731 GB, free: 56.27 MB / 474.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.91e-05/2.602, allocations: 9.453 kB / 0.9731 GB, free: 56.27 MB / 474.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.004e-05/2.602, allocations: 22.27 kB / 0.9731 GB, free: 56.27 MB / 474.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0341/2.636, allocations: 14.62 MB / 0.9874 GB, free: 54.29 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.437e-05/2.636, allocations: 8.438 kB / 0.9874 GB, free: 54.29 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003134/2.639, allocations: 0.7195 MB / 0.9881 GB, free: 54.26 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003122/2.642, allocations: 0.8532 MB / 0.989 GB, free: 54.09 MB / 474.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0008283/2.643, allocations: 33.89 kB / 0.989 GB, free: 54.08 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01044/2.654, allocations: 6.938 MB / 0.9958 GB, free: 50.18 MB / 474.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.869e-06/2.654, allocations: 3.438 kB / 0.9958 GB, free: 50.18 MB / 474.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01786/2.671, allocations: 9.874 MB / 1.005 GB, free: 45.66 MB / 474.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002989/2.675, allocations: 0.9473 MB / 1.006 GB, free: 45.1 MB / 474.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001474/2.676, allocations: 10.25 kB / 1.006 GB, free: 45.1 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003339/2.679, allocations: 180.3 kB / 1.007 GB, free: 45.1 MB / 474.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000782/2.68, allocations: 270.3 kB / 1.007 GB, free: 45.06 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003856/2.681, allocations: 113.5 kB / 1.007 GB, free: 45.03 MB / 474.7 MB Notification: Performance of sorting global known variables: time 0.004681/2.685, allocations: 1.962 MB / 1.009 GB, free: 44.21 MB / 474.7 MB Notification: Performance of sort global known variables: time 3.51e-07/2.685, allocations: 0 / 1.009 GB, free: 44.21 MB / 474.7 MB Notification: Performance of remove unused functions: time 0.009079/2.694, allocations: 1.303 MB / 1.01 GB, free: 44.19 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.01831/2.713, allocations: 11.86 MB / 1.022 GB, free: 38.07 MB / 474.7 MB Notification: Performance of simCode: created initialization part: time 0.01103/2.724, allocations: 6.271 MB / 1.028 GB, free: 35.68 MB / 474.7 MB Notification: Performance of simCode: created event and clocks part: time 1.057e-05/2.724, allocations: 7.719 kB / 1.028 GB, free: 35.68 MB / 474.7 MB Notification: Performance of simCode: created simulation system equations: time 0.004988/2.729, allocations: 3.037 MB / 1.031 GB, free: 33.53 MB / 474.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004381/2.733, allocations: 0.5502 MB / 1.031 GB, free: 33.1 MB / 474.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04201/2.775, allocations: 13.96 MB / 1.045 GB, free: 20.98 MB / 474.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.009411/2.785, allocations: 5.129 MB / 1.05 GB, free: 17.05 MB / 474.7 MB Notification: Performance of simCode: alias equations: time 0.007141/2.792, allocations: 1.652 MB / 1.052 GB, free: 15.96 MB / 474.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.006068/2.798, allocations: 2.735 MB / 1.054 GB, free: 13.42 MB / 474.7 MB Notification: Performance of SimCode: time 1.353e-06/2.798, allocations: 0 / 1.054 GB, free: 13.42 MB / 474.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.5251/3.323, allocations: 104 MB / 1.156 GB, free: 64.76 MB / 490.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002294/3.324, allocations: 134.8 kB / 1.156 GB, free: 64.57 MB / 490.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 4.92/8.243, allocations: 0 / 1.156 GB, free: 64.57 MB / 490.7 MB (rm -f HanserModelica_HanserModelica.SynchronousMachines.SMEE_VCurve1.pipe ; mkfifo HanserModelica_HanserModelica.SynchronousMachines.SMEE_VCurve1.pipe ; head -c 1048576 < HanserModelica_HanserModelica.SynchronousMachines.SMEE_VCurve1.pipe >> ../files/HanserModelica_HanserModelica.SynchronousMachines.SMEE_VCurve1.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_HanserModelica_HanserModelica_SynchronousMachines_SMEE_VCurve1_fmu --startTime=0 --stopTime=200 --timeout=50 --tolerance=1e-06 HanserModelica_HanserModelica_SynchronousMachines_SMEE_VCurve1.fmu > HanserModelica_HanserModelica.SynchronousMachines.SMEE_VCurve1.pipe 2>&1)