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.001366/0.001366, allocations: 176.2 kB / 7.649 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.06234/0.06234, 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.447/1.447, 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.0009649/0.0009651, allocations: 93.7 kB / 293.9 MB, free: 7.195 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 2.469e-05/2.471e-05, allocations: 4 kB / 352.7 MB, free: 1.176 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1254/0.1255, allocations: 52.56 MB / 405.3 MB, free: 12.56 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4572/0.5827, allocations: 139.3 MB / 0.5318 GB, free: 12.47 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002672/0.5831, allocations: 82.08 kB / 0.5319 GB, free: 12.39 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.191/1.774, allocations: 269 MB / 0.7946 GB, free: 35.64 MB / 442.7 MB Notification: Performance of FrontEnd: time 1.613e-06/1.774, allocations: 4 kB / 0.7946 GB, free: 35.63 MB / 442.7 MB Notification: Performance of Transformations before backend: time 0.0006146/1.775, allocations: 169 kB / 0.7947 GB, free: 35.62 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.0319/1.807, allocations: 7.416 MB / 0.802 GB, free: 33.25 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.028e-05/1.807, allocations: 14.89 kB / 0.802 GB, free: 33.25 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02354/1.831, allocations: 3.88 MB / 0.8058 GB, free: 32.81 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01933/1.85, allocations: 6.767 MB / 0.8124 GB, free: 31.98 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005429/1.851, allocations: 252.3 kB / 0.8126 GB, free: 31.98 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003621/1.854, allocations: 451.2 kB / 0.813 GB, free: 31.98 MB / 442.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.02491/1.879, allocations: 9.977 MB / 0.8228 GB, free: 31.94 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03689/1.916, allocations: 11.27 MB / 0.8338 GB, free: 28.89 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004004/1.917, allocations: 11.31 kB / 0.8338 GB, free: 28.88 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003188/1.92, allocations: 9.766 kB / 0.8338 GB, free: 28.88 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0007055/1.92, allocations: 0.5985 MB / 0.8344 GB, free: 28.75 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.08699/2.007, allocations: 43 MB / 0.8764 GB, free: 3.977 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.03133/2.039, allocations: 26.04 MB / 0.9018 GB, free: 9.957 MB / 474.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.005938/2.045, allocations: 2.922 MB / 0.9047 GB, free: 7.309 MB / 474.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0006817/2.046, allocations: 249.5 kB / 0.9049 GB, free: 7.055 MB / 474.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.005485/2.051, allocations: 2.529 MB / 0.9074 GB, free: 4.918 MB / 474.7 MB Notification: Performance of pre-optimization done (n=391): time 1.083e-05/2.051, allocations: 0 / 0.9074 GB, free: 4.918 MB / 474.7 MB Notification: Performance of matching and sorting (n=397): time 0.4298/2.481, allocations: 15.69 MB / 0.9227 GB, free: 64.68 MB / 474.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001193/2.481, allocations: 362.8 kB / 0.923 GB, free: 64.3 MB / 474.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005146/2.486, allocations: 2.702 MB / 0.9257 GB, free: 64.04 MB / 474.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0009216/2.487, allocations: 25.7 kB / 0.9257 GB, free: 64.01 MB / 474.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002854/2.49, allocations: 3.386 MB / 0.929 GB, free: 62.47 MB / 474.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.002489/2.492, allocations: 1.3 MB / 0.9303 GB, free: 61.62 MB / 474.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005377/2.493, allocations: 0 / 0.9303 GB, free: 61.62 MB / 474.7 MB Notification: Performance of setup shared object (initialization): time 0.000483/2.494, allocations: 0.5253 MB / 0.9308 GB, free: 61.31 MB / 474.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005965/2.5, allocations: 2.483 MB / 0.9332 GB, free: 61.29 MB / 474.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.009582/2.509, allocations: 4.381 MB / 0.9375 GB, free: 59.03 MB / 474.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01447/2.524, allocations: 4.366 MB / 0.9418 GB, free: 58.98 MB / 474.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.000196/2.524, allocations: 14.53 kB / 0.9418 GB, free: 58.98 MB / 474.7 MB Notification: Performance of matching and sorting (n=720) (initialization): time 0.03412/2.558, allocations: 8.602 MB / 0.9502 GB, free: 58.64 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001557/2.558, allocations: 57.2 kB / 0.9502 GB, free: 58.61 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001904/2.558, allocations: 60.56 kB / 0.9503 GB, free: 58.61 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004347/2.563, allocations: 0.9986 MB / 0.9513 GB, free: 58.59 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.009158/2.572, allocations: 1.292 MB / 0.9525 GB, free: 58.59 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01816/2.59, allocations: 7.959 MB / 0.9603 GB, free: 57.12 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007167/2.597, allocations: 308.2 kB / 0.9606 GB, free: 57.11 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001908/2.599, allocations: 264.8 kB / 0.9608 GB, free: 57.11 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.002912/2.602, allocations: 310.1 kB / 0.9611 GB, free: 56.93 MB / 474.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.01658/2.619, allocations: 5.828 MB / 0.9668 GB, free: 56.58 MB / 474.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001638/2.621, allocations: 363.8 kB / 0.9672 GB, free: 56.39 MB / 474.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0173/2.638, allocations: 6.661 MB / 0.9737 GB, free: 56.12 MB / 474.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.31e-05/2.638, allocations: 42.81 kB / 0.9737 GB, free: 56.12 MB / 474.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.791e-05/2.638, allocations: 11.16 kB / 0.9737 GB, free: 56.12 MB / 474.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.335e-05/2.638, allocations: 17.81 kB / 0.9738 GB, free: 56.12 MB / 474.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0374/2.676, allocations: 14.63 MB / 0.988 GB, free: 54.08 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.397e-05/2.676, allocations: 5.25 kB / 0.988 GB, free: 54.08 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003383/2.679, allocations: 0.7142 MB / 0.9887 GB, free: 54.06 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002674/2.682, allocations: 0.8577 MB / 0.9896 GB, free: 53.88 MB / 474.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0007553/2.682, allocations: 30.73 kB / 0.9896 GB, free: 53.88 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01018/2.693, allocations: 6.937 MB / 0.9964 GB, free: 49.98 MB / 474.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.676e-05/2.693, allocations: 5.812 kB / 0.9964 GB, free: 49.98 MB / 474.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01864/2.711, allocations: 9.879 MB / 1.006 GB, free: 45.46 MB / 474.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00355/2.715, allocations: 0.9455 MB / 1.007 GB, free: 44.9 MB / 474.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002129/2.717, allocations: 11.59 kB / 1.007 GB, free: 44.9 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004003/2.721, allocations: 177.7 kB / 1.007 GB, free: 44.89 MB / 474.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0009956/2.722, allocations: 272.9 kB / 1.007 GB, free: 44.86 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000568/2.723, allocations: 114.6 kB / 1.008 GB, free: 44.83 MB / 474.7 MB Notification: Performance of sorting global known variables: time 0.005143/2.728, allocations: 1.961 MB / 1.009 GB, free: 44.01 MB / 474.7 MB Notification: Performance of sort global known variables: time 7.21e-07/2.728, allocations: 0 / 1.009 GB, free: 44.01 MB / 474.7 MB Notification: Performance of remove unused functions: time 0.01037/2.738, allocations: 1.304 MB / 1.011 GB, free: 43.99 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.02085/2.759, allocations: 11.86 MB / 1.022 GB, free: 37.87 MB / 474.7 MB Notification: Performance of simCode: created initialization part: time 0.01167/2.771, allocations: 6.265 MB / 1.028 GB, free: 35.48 MB / 474.7 MB Notification: Performance of simCode: created event and clocks part: time 1.51e-05/2.771, allocations: 1.812 kB / 1.028 GB, free: 35.48 MB / 474.7 MB Notification: Performance of simCode: created simulation system equations: time 0.006122/2.777, allocations: 3.043 MB / 1.031 GB, free: 33.29 MB / 474.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00496/2.782, allocations: 0.5516 MB / 1.032 GB, free: 32.86 MB / 474.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04253/2.825, allocations: 13.95 MB / 1.046 GB, free: 20.74 MB / 474.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01097/2.836, allocations: 5.131 MB / 1.051 GB, free: 16.81 MB / 474.7 MB Notification: Performance of simCode: alias equations: time 0.007272/2.843, allocations: 1.655 MB / 1.052 GB, free: 15.72 MB / 474.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.006133/2.849, allocations: 2.733 MB / 1.055 GB, free: 13.18 MB / 474.7 MB Notification: Performance of SimCode: time 1.412e-06/2.849, allocations: 0 / 1.055 GB, free: 13.18 MB / 474.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.5192/3.369, allocations: 104.1 MB / 1.156 GB, free: 64.29 MB / 490.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001482/3.369, allocations: 135.1 kB / 1.157 GB, free: 64.11 MB / 490.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 5.117/8.485, allocations: 0 / 1.157 GB, free: 64.11 MB / 490.7 MB (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)