Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr HanserModelica_HanserModelica.SynchronousMachines.SMEE_VCurve4.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_VCurve4,fileNamePrefix="HanserModelica_HanserModelica_SynchronousMachines_SMEE_VCurve4",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(HanserModelica.SynchronousMachines.SMEE_VCurve4,fileNamePrefix="HanserModelica_HanserModelica_SynchronousMachines_SMEE_VCurve4",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.001079/0.001079, allocations: 173.4 kB / 7.647 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.04191/0.04191, allocations: 8.714 MB / 16.79 MB, free: 3.375 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.572/1.572, 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.0009869/0.0009872, allocations: 91.59 kB / 293.9 MB, free: 7.258 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 2.036e-05/2.038e-05, allocations: 4 kB / 352.7 MB, free: 1.156 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1229/0.123, allocations: 52.56 MB / 405.3 MB, free: 12.55 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4244/0.5474, allocations: 139.3 MB / 0.5318 GB, free: 12.41 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002948/0.5478, allocations: 75.97 kB / 0.5319 GB, free: 12.34 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.181/1.729, allocations: 269 MB / 0.7946 GB, free: 35.44 MB / 442.7 MB Notification: Performance of FrontEnd: time 2.795e-06/1.729, allocations: 1.219 kB / 0.7946 GB, free: 35.44 MB / 442.7 MB Notification: Performance of Transformations before backend: time 0.0006557/1.729, allocations: 171.6 kB / 0.7947 GB, free: 35.43 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.03558/1.765, allocations: 7.412 MB / 0.802 GB, free: 33.06 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.869e-05/1.765, allocations: 17.45 kB / 0.802 GB, free: 33.06 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02512/1.79, allocations: 3.878 MB / 0.8058 GB, free: 32.62 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02141/1.812, allocations: 6.765 MB / 0.8124 GB, free: 31.79 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0006646/1.812, allocations: 248.1 kB / 0.8126 GB, free: 31.79 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.004091/1.816, allocations: 458.9 kB / 0.813 GB, free: 31.78 MB / 442.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.02841/1.845, allocations: 9.978 MB / 0.8228 GB, free: 31.75 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03414/1.879, allocations: 11.27 MB / 0.8338 GB, free: 28.8 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003244/1.879, allocations: 17.89 kB / 0.8338 GB, free: 28.79 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002269/1.882, allocations: 9.953 kB / 0.8338 GB, free: 28.79 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0006462/1.882, allocations: 0.5885 MB / 0.8344 GB, free: 28.66 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0844/1.967, allocations: 42.99 MB / 0.8764 GB, free: 3.91 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02954/1.996, allocations: 26.06 MB / 0.9018 GB, free: 9.957 MB / 474.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00555/2.002, allocations: 2.916 MB / 0.9047 GB, free: 7.316 MB / 474.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0005264/2.002, allocations: 252.2 kB / 0.9049 GB, free: 7.059 MB / 474.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.004416/2.007, allocations: 2.536 MB / 0.9074 GB, free: 4.918 MB / 474.7 MB Notification: Performance of pre-optimization done (n=391): time 6.081e-06/2.007, allocations: 0 / 0.9074 GB, free: 4.918 MB / 474.7 MB Notification: Performance of matching and sorting (n=397): time 0.4552/2.462, allocations: 15.69 MB / 0.9227 GB, free: 64.54 MB / 474.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001292/2.462, allocations: 359.2 kB / 0.923 GB, free: 64.16 MB / 474.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004705/2.467, allocations: 2.708 MB / 0.9257 GB, free: 63.91 MB / 474.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0008019/2.468, allocations: 25.7 kB / 0.9257 GB, free: 63.88 MB / 474.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.00215/2.47, allocations: 3.379 MB / 0.929 GB, free: 62.34 MB / 474.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001595/2.472, allocations: 1.297 MB / 0.9303 GB, free: 61.49 MB / 474.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002903/2.472, allocations: 0 / 0.9303 GB, free: 61.49 MB / 474.7 MB Notification: Performance of setup shared object (initialization): time 0.0003213/2.472, allocations: 0.5269 MB / 0.9308 GB, free: 61.18 MB / 474.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003537/2.476, allocations: 2.483 MB / 0.9332 GB, free: 61.16 MB / 474.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004355/2.48, allocations: 4.378 MB / 0.9375 GB, free: 58.89 MB / 474.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.008019/2.488, allocations: 4.37 MB / 0.9418 GB, free: 58.85 MB / 474.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.00012/2.488, allocations: 17.25 kB / 0.9418 GB, free: 58.85 MB / 474.7 MB Notification: Performance of matching and sorting (n=720) (initialization): time 0.01985/2.508, allocations: 8.599 MB / 0.9502 GB, free: 58.5 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001236/2.508, allocations: 65.42 kB / 0.9502 GB, free: 58.47 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001676/2.509, allocations: 59.28 kB / 0.9503 GB, free: 58.47 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002739/2.511, allocations: 0.9913 MB / 0.9513 GB, free: 58.45 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005555/2.517, allocations: 1.298 MB / 0.9525 GB, free: 58.45 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01332/2.53, allocations: 7.959 MB / 0.9603 GB, free: 56.99 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006808/2.537, allocations: 306.6 kB / 0.9606 GB, free: 56.98 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001623/2.539, allocations: 263.3 kB / 0.9608 GB, free: 56.98 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.001337/2.54, allocations: 305.4 kB / 0.9611 GB, free: 56.8 MB / 474.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.01212/2.552, allocations: 5.831 MB / 0.9668 GB, free: 56.45 MB / 474.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001122/2.553, allocations: 363.2 kB / 0.9672 GB, free: 56.26 MB / 474.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01377/2.567, allocations: 6.664 MB / 0.9737 GB, free: 55.98 MB / 474.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.062e-05/2.567, allocations: 41.06 kB / 0.9737 GB, free: 55.98 MB / 474.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.455e-05/2.567, allocations: 11.53 kB / 0.9737 GB, free: 55.98 MB / 474.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.544e-05/2.567, allocations: 17.86 kB / 0.9738 GB, free: 55.98 MB / 474.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03247/2.6, allocations: 14.63 MB / 0.988 GB, free: 54.05 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.689e-05/2.6, allocations: 3.781 kB / 0.988 GB, free: 54.05 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002885/2.603, allocations: 0.7127 MB / 0.9887 GB, free: 54.03 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002399/2.605, allocations: 0.8602 MB / 0.9896 GB, free: 53.86 MB / 474.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004322/2.606, allocations: 30.28 kB / 0.9896 GB, free: 53.85 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009623/2.615, allocations: 6.936 MB / 0.9964 GB, free: 49.95 MB / 474.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.482e-05/2.615, allocations: 8.25 kB / 0.9964 GB, free: 49.95 MB / 474.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01584/2.631, allocations: 9.871 MB / 1.006 GB, free: 45.43 MB / 474.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002518/2.634, allocations: 0.9414 MB / 1.007 GB, free: 44.87 MB / 474.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008009/2.635, allocations: 13.44 kB / 1.007 GB, free: 44.87 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002208/2.637, allocations: 174.8 kB / 1.007 GB, free: 44.87 MB / 474.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005138/2.637, allocations: 281 kB / 1.007 GB, free: 44.82 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002186/2.637, allocations: 106.7 kB / 1.007 GB, free: 44.8 MB / 474.7 MB Notification: Performance of sorting global known variables: time 0.003003/2.64, allocations: 1.963 MB / 1.009 GB, free: 43.98 MB / 474.7 MB Notification: Performance of sort global known variables: time 2.91e-07/2.641, allocations: 0 / 1.009 GB, free: 43.98 MB / 474.7 MB Notification: Performance of remove unused functions: time 0.006581/2.647, allocations: 1.305 MB / 1.011 GB, free: 43.96 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.01546/2.663, allocations: 11.87 MB / 1.022 GB, free: 37.83 MB / 474.7 MB Notification: Performance of simCode: created initialization part: time 0.01002/2.673, allocations: 6.265 MB / 1.028 GB, free: 35.45 MB / 474.7 MB Notification: Performance of simCode: created event and clocks part: time 9.948e-06/2.673, allocations: 0 / 1.028 GB, free: 35.45 MB / 474.7 MB Notification: Performance of simCode: created simulation system equations: time 0.004817/2.678, allocations: 3.039 MB / 1.031 GB, free: 33.22 MB / 474.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004562/2.682, allocations: 0.556 MB / 1.032 GB, free: 32.79 MB / 474.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03525/2.717, allocations: 13.95 MB / 1.046 GB, free: 20.67 MB / 474.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005005/2.722, allocations: 5.127 MB / 1.051 GB, free: 16.74 MB / 474.7 MB Notification: Performance of simCode: alias equations: time 0.005363/2.728, allocations: 1.652 MB / 1.052 GB, free: 15.65 MB / 474.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.005522/2.733, allocations: 2.733 MB / 1.055 GB, free: 13.12 MB / 474.7 MB Notification: Performance of SimCode: time 1.222e-06/2.733, allocations: 0 / 1.055 GB, free: 13.12 MB / 474.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.5262/3.26, allocations: 104.1 MB / 1.157 GB, free: 64.18 MB / 490.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001475/3.26, allocations: 137.4 kB / 1.157 GB, free: 63.99 MB / 490.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 4.931/8.19, allocations: 1.625 kB / 1.157 GB, free: 63.99 MB / 490.7 MB (rm -f HanserModelica_HanserModelica.SynchronousMachines.SMEE_VCurve4.pipe ; mkfifo HanserModelica_HanserModelica.SynchronousMachines.SMEE_VCurve4.pipe ; head -c 1048576 < HanserModelica_HanserModelica.SynchronousMachines.SMEE_VCurve4.pipe >> ../files/HanserModelica_HanserModelica.SynchronousMachines.SMEE_VCurve4.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_HanserModelica_HanserModelica_SynchronousMachines_SMEE_VCurve4_fmu --startTime=0 --stopTime=200 --timeout=50 --tolerance=1e-06 HanserModelica_HanserModelica_SynchronousMachines_SMEE_VCurve4.fmu > HanserModelica_HanserModelica.SynchronousMachines.SMEE_VCurve4.pipe 2>&1)