Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr HanserModelica_HanserModelica.SynchronousMachines.SMEE_Synchronization3.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_Synchronization3,fileNamePrefix="HanserModelica_HanserModelica_SynchronousMachines_SMEE_Synchronization3",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(HanserModelica.SynchronousMachines.SMEE_Synchronization3,fileNamePrefix="HanserModelica_HanserModelica_SynchronousMachines_SMEE_Synchronization3",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.001387/0.001387, allocations: 174.7 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.05525/0.05525, allocations: 8.701 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.427/1.427, allocations: 221.4 MB / 246 MB, free: 3.555 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.0008521/0.0008524, allocations: 91.67 kB / 299.1 MB, free: 2.996 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 3.436e-05/3.438e-05, allocations: 11.98 kB / 359.6 MB, free: 6.418 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2911/0.2912, allocations: 52.53 MB / 412.2 MB, free: 22.54 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4347/0.726, allocations: 117 MB / 0.5167 GB, free: 90.86 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001922/0.7262, allocations: 75.28 kB / 0.5168 GB, free: 90.83 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.6992/1.425, allocations: 158.2 MB / 0.6713 GB, free: 37.04 MB / 442.7 MB Notification: Performance of FrontEnd: time 1.803e-06/1.425, allocations: 0 / 0.6713 GB, free: 37.04 MB / 442.7 MB Notification: Performance of Transformations before backend: time 0.0003215/1.426, allocations: 91.08 kB / 0.6714 GB, free: 37.03 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: 965 * Number of variables: 965 Notification: Performance of Generate backend data structure: time 0.01108/1.437, allocations: 3.606 MB / 0.6749 GB, free: 35.99 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.854e-05/1.437, allocations: 7.688 kB / 0.6749 GB, free: 35.99 MB / 442.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001643/1.439, allocations: 0.5509 MB / 0.6754 GB, free: 35.93 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005636/1.444, allocations: 0.8804 MB / 0.6763 GB, free: 35.71 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01155/1.456, allocations: 3.604 MB / 0.6798 GB, free: 35.29 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.00033/1.456, allocations: 274.5 kB / 0.6801 GB, free: 35.29 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001152/1.457, allocations: 365.5 kB / 0.6804 GB, free: 35.28 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.009902/1.467, allocations: 4.61 MB / 0.6849 GB, free: 34.85 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.101e-05/1.467, allocations: 7.656 kB / 0.6849 GB, free: 34.85 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003619/1.468, allocations: 159.1 kB / 0.6851 GB, free: 34.85 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001426/1.468, allocations: 150.9 kB / 0.6852 GB, free: 34.84 MB / 442.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.007028/1.475, allocations: 3.696 MB / 0.6888 GB, free: 34.81 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02495/1.5, allocations: 15.76 MB / 0.7042 GB, free: 31.07 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005169/1.505, allocations: 6.926 MB / 0.711 GB, free: 25.86 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002083/1.507, allocations: 1.472 MB / 0.7124 GB, free: 25.84 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.007077/1.514, allocations: 4.059 MB / 0.7164 GB, free: 25 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.279e-05/1.514, allocations: 48.28 kB / 0.7164 GB, free: 24.96 MB / 442.7 MB Notification: Performance of pre-optimization done (n=135): time 4.238e-06/1.514, allocations: 0 / 0.7164 GB, free: 24.96 MB / 442.7 MB Notification: Performance of matching and sorting (n=157): time 0.009161/1.524, allocations: 5.084 MB / 0.7214 GB, free: 23.7 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.568e-05/1.524, allocations: 67.34 kB / 0.7215 GB, free: 23.63 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002987/1.527, allocations: 1.875 MB / 0.7233 GB, free: 23.38 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001546/1.527, allocations: 52.02 kB / 0.7233 GB, free: 23.35 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0009715/1.528, allocations: 1.73 MB / 0.725 GB, free: 22.53 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003785/1.528, allocations: 0.5409 MB / 0.7256 GB, free: 22.19 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.759e-05/1.528, allocations: 43.88 kB / 0.7256 GB, free: 22.19 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.0001232/1.528, allocations: 391.5 kB / 0.726 GB, free: 21.88 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001062/1.53, allocations: 0.7544 MB / 0.7267 GB, free: 21.87 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001364/1.531, allocations: 1.491 MB / 0.7282 GB, free: 20.99 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001339/1.532, allocations: 1.046 MB / 0.7292 GB, free: 20.96 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.09e-05/1.532, allocations: 3.969 kB / 0.7292 GB, free: 20.96 MB / 442.7 MB Notification: Performance of matching and sorting (n=277) (initialization): time 0.004234/1.537, allocations: 2.869 MB / 0.732 GB, free: 20.64 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.663e-05/1.537, allocations: 16.25 kB / 0.732 GB, free: 20.64 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.175e-05/1.537, allocations: 24.97 kB / 0.732 GB, free: 20.64 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000765/1.537, allocations: 303.8 kB / 0.7323 GB, free: 20.61 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001598/1.539, allocations: 0.4917 MB / 0.7328 GB, free: 20.61 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003915/1.543, allocations: 4.44 MB / 0.7371 GB, free: 17.93 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002267/1.545, allocations: 105.5 kB / 0.7372 GB, free: 17.92 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001833/1.545, allocations: 102 kB / 0.7373 GB, free: 17.92 MB / 442.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 107 * Number of states: 0 () * Number of discrete variables: 1 (booleanReplicator.y[3]) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (257): * Single equations (assignments): 254 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 1 {(2,100.0%)} * Non-linear Jacobian: 0 * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(2,100.0%) 13,(1,100.0%) 5} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0004046/1.546, allocations: 236.6 kB / 0.7376 GB, free: 17.8 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003833/1.546, allocations: 238.7 kB / 0.7378 GB, free: 17.68 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00382/1.55, allocations: 2.287 MB / 0.74 GB, free: 17.36 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.144e-05/1.55, allocations: 18.06 kB / 0.74 GB, free: 17.36 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.454e-06/1.55, allocations: 3.312 kB / 0.74 GB, free: 17.36 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.423e-05/1.55, allocations: 14.08 kB / 0.7401 GB, free: 17.35 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008271/1.558, allocations: 5.526 MB / 0.7454 GB, free: 15.12 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.53e-06/1.558, allocations: 0 / 0.7454 GB, free: 15.12 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001122/1.56, allocations: 272.8 kB / 0.7457 GB, free: 15.11 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006998/1.56, allocations: 305.9 kB / 0.746 GB, free: 15 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.945e-05/1.56, allocations: 38.58 kB / 0.746 GB, free: 14.97 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004877/1.565, allocations: 6.379 MB / 0.7523 GB, free: 9.629 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.346e-06/1.565, allocations: 0 / 0.7523 GB, free: 9.629 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004406/1.57, allocations: 3.414 MB / 0.7556 GB, free: 7.824 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001153/1.571, allocations: 490.8 kB / 0.7561 GB, free: 7.477 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002494/1.571, allocations: 35.09 kB / 0.7561 GB, free: 7.453 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009761/1.572, allocations: 68.28 kB / 0.7562 GB, free: 7.434 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002565/1.572, allocations: 125.1 kB / 0.7563 GB, free: 7.41 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.686e-05/1.572, allocations: 45.8 kB / 0.7563 GB, free: 7.398 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.002088/1.575, allocations: 1.408 MB / 0.7577 GB, free: 6.805 MB / 442.7 MB Notification: Performance of sort global known variables: time 2.01e-07/1.575, allocations: 3 kB / 0.7577 GB, free: 6.805 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.00242/1.577, allocations: 0.6913 MB / 0.7584 GB, free: 6.73 MB / 442.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 7 * Number of states: 6 (smee.inertiaRotor.w,smee.stator.core.Phi.re,smee.stator.core.Phi.im,smee.stator.stray.Phi.re,smee.stator.stray.Phi.im,constantTorque.phi) * Number of discrete variables: 1 (booleanReplicator.y[3]) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (131): * Single equations (assignments): 128 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 3 {(2,100.0%) 12,(1,100.0%) 5,(1,100.0%) 8} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.005112/1.582, allocations: 4.672 MB / 0.7629 GB, free: 19.96 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.003538/1.586, allocations: 2.319 MB / 0.7652 GB, free: 18.92 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 5.61e-06/1.586, allocations: 0 / 0.7652 GB, free: 18.92 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001731/1.587, allocations: 1.338 MB / 0.7665 GB, free: 18.18 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002705/1.59, allocations: 0.537 MB / 0.767 GB, free: 18.02 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01185/1.602, allocations: 6.127 MB / 0.773 GB, free: 15.49 MB / 458.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00222/1.604, allocations: 2.582 MB / 0.7755 GB, free: 14.39 MB / 458.7 MB Notification: Performance of simCode: alias equations: time 0.00219/1.606, allocations: 0.5084 MB / 0.776 GB, free: 14.32 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001771/1.608, allocations: 1.343 MB / 0.7774 GB, free: 13.21 MB / 458.7 MB Notification: Performance of SimCode: time 1.132e-06/1.608, allocations: 0 / 0.7774 GB, free: 13.21 MB / 458.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.09931/1.708, allocations: 59.24 MB / 0.8352 GB, free: 2.438 MB / 474.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002163/1.708, allocations: 190.1 kB / 0.8354 GB, free: 2.203 MB / 474.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.828/5.535, allocations: 2.812 kB / 0.8354 GB, free: 2.203 MB / 474.7 MB (rm -f HanserModelica_HanserModelica.SynchronousMachines.SMEE_Synchronization3.pipe ; mkfifo HanserModelica_HanserModelica.SynchronousMachines.SMEE_Synchronization3.pipe ; head -c 1048576 < HanserModelica_HanserModelica.SynchronousMachines.SMEE_Synchronization3.pipe >> ../files/HanserModelica_HanserModelica.SynchronousMachines.SMEE_Synchronization3.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_HanserModelica_HanserModelica_SynchronousMachines_SMEE_Synchronization3_fmu --startTime=0 --stopTime=0.3 --timeout=50 --tolerance=1e-08 HanserModelica_HanserModelica_SynchronousMachines_SMEE_Synchronization3.fmu > HanserModelica_HanserModelica.SynchronousMachines.SMEE_Synchronization3.pipe 2>&1)