Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr HanserModelica_HanserModelica.SynchronousMachines.SMEE_DOL.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_DOL,fileNamePrefix="HanserModelica_HanserModelica_SynchronousMachines_SMEE_DOL",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(HanserModelica.SynchronousMachines.SMEE_DOL,fileNamePrefix="HanserModelica_HanserModelica_SynchronousMachines_SMEE_DOL",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.006547/0.006547, allocations: 169.9 kB / 15.11 MB, free: 5.969 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/package.mo): time 0.03975/0.03975, allocations: 8.799 MB / 24.65 MB, free: 4.082 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.374/1.374, allocations: 223.2 MB / 250.7 MB, free: 6.469 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.0009344/0.0009344, allocations: 98.33 kB / 304 MB, free: 4.016 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003489/0.0003489, allocations: 8 kB / 367.1 MB, free: 4.863 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2997/0.3001, allocations: 52.55 MB / 419.7 MB, free: 48.12 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1479/0.4481, allocations: 120.4 MB / 0.5274 GB, free: 0.6562 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000273/0.4484, allocations: 87.94 kB / 0.5275 GB, free: 0.5703 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.5694/1.018, allocations: 163.1 MB / 0.6868 GB, free: 16.99 MB / 426.7 MB Notification: Performance of FrontEnd: time 2.104e-06/1.018, allocations: 0 / 0.6868 GB, free: 16.99 MB / 426.7 MB Notification: Performance of Transformations before backend: time 0.0003676/1.018, allocations: 95.94 kB / 0.6869 GB, free: 16.9 MB / 426.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1052 * Number of variables: 1052 Notification: Performance of Generate backend data structure: time 0.01291/1.031, allocations: 4.388 MB / 0.6912 GB, free: 12.43 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.72e-05/1.031, allocations: 12.56 kB / 0.6912 GB, free: 12.42 MB / 426.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.002181/1.033, allocations: 0.5556 MB / 0.6917 GB, free: 11.86 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005432/1.039, allocations: 0.9236 MB / 0.6926 GB, free: 10.93 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.009935/1.049, allocations: 3.86 MB / 0.6964 GB, free: 7.008 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002578/1.049, allocations: 304.1 kB / 0.6967 GB, free: 6.707 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001223/1.05, allocations: 399.9 kB / 0.6971 GB, free: 6.316 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01182/1.062, allocations: 5.144 MB / 0.7021 GB, free: 0.9961 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001043/1.062, allocations: 0 / 0.7021 GB, free: 0.9961 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000419/1.063, allocations: 176 kB / 0.7023 GB, free: 0.8242 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001786/1.063, allocations: 176 kB / 0.7024 GB, free: 0.6484 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01064/1.074, allocations: 4.225 MB / 0.7066 GB, free: 12.41 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0352/1.109, allocations: 16.89 MB / 0.7231 GB, free: 11.04 MB / 458.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.008591/1.118, allocations: 8.506 MB / 0.7314 GB, free: 1.484 MB / 458.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.2605/1.378, allocations: 4.24 MB / 0.7355 GB, free: 71.89 MB / 458.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.696e-05/1.378, allocations: 58.84 kB / 0.7356 GB, free: 71.85 MB / 458.7 MB Notification: Performance of pre-optimization done (n=167): time 5.11e-06/1.378, allocations: 0 / 0.7356 GB, free: 71.85 MB / 458.7 MB Notification: Performance of matching and sorting (n=171): time 0.01272/1.391, allocations: 6.498 MB / 0.7419 GB, free: 70.7 MB / 458.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.558e-05/1.391, allocations: 73 kB / 0.742 GB, free: 70.63 MB / 458.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002965/1.394, allocations: 1.983 MB / 0.7439 GB, free: 70.42 MB / 458.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003153/1.394, allocations: 54.67 kB / 0.744 GB, free: 70.39 MB / 458.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001068/1.395, allocations: 1.825 MB / 0.7457 GB, free: 69.77 MB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.00056/1.396, allocations: 0.5848 MB / 0.7463 GB, free: 69.48 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.766e-05/1.396, allocations: 41.97 kB / 0.7464 GB, free: 69.48 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 0.0001179/1.396, allocations: 393.6 kB / 0.7467 GB, free: 69.17 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001341/1.398, allocations: 0.8639 MB / 0.7476 GB, free: 69.16 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00158/1.399, allocations: 1.539 MB / 0.7491 GB, free: 68.38 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001555/1.401, allocations: 1.135 MB / 0.7502 GB, free: 68.35 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.725e-05/1.401, allocations: 7 kB / 0.7502 GB, free: 68.35 MB / 458.7 MB Notification: Performance of matching and sorting (n=278) (initialization): time 0.00447/1.405, allocations: 2.912 MB / 0.753 GB, free: 68.04 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.103e-05/1.405, allocations: 14.75 kB / 0.7531 GB, free: 68.04 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.909e-05/1.405, allocations: 25.95 kB / 0.7531 GB, free: 68.03 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003335/1.406, allocations: 130.5 kB / 0.7532 GB, free: 68.02 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00205/1.408, allocations: 0.5547 MB / 0.7537 GB, free: 68.02 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001453/1.409, allocations: 1.848 MB / 0.7555 GB, free: 66.69 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002149/1.411, allocations: 119.3 kB / 0.7557 GB, free: 66.68 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001642/1.412, allocations: 95.28 kB / 0.7558 GB, free: 66.68 MB / 458.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 96 * Number of states: 0 () * Number of discrete variables: 1 (booleanReplicator.y[3]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (272): * Single equations (assignments): 270 * 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: 1 * 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: 1 {(1,100.0%) 5} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.002505/1.414, allocations: 1.202 MB / 0.7569 GB, free: 66.56 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005943/1.415, allocations: 246.2 kB / 0.7572 GB, free: 66.44 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004175/1.419, allocations: 2.571 MB / 0.7597 GB, free: 66.09 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.389e-05/1.419, allocations: 19.91 kB / 0.7597 GB, free: 66.09 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.031e-05/1.419, allocations: 11.66 kB / 0.7597 GB, free: 66.09 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.654e-05/1.419, allocations: 7.844 kB / 0.7597 GB, free: 66.09 MB / 458.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01182/1.431, allocations: 6.051 MB / 0.7656 GB, free: 65.39 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.09e-05/1.431, allocations: 3 kB / 0.7656 GB, free: 65.39 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001453/1.432, allocations: 322.1 kB / 0.7659 GB, free: 65.39 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008394/1.433, allocations: 309.1 kB / 0.7662 GB, free: 65.36 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001182/1.433, allocations: 44.42 kB / 0.7663 GB, free: 65.36 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005862/1.439, allocations: 6.457 MB / 0.7726 GB, free: 61.34 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.939e-06/1.439, allocations: 5.531 kB / 0.7726 GB, free: 61.34 MB / 458.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006336/1.446, allocations: 3.904 MB / 0.7764 GB, free: 60.48 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00169/1.447, allocations: 0.5054 MB / 0.7769 GB, free: 60.27 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003087/1.448, allocations: 33.5 kB / 0.7769 GB, free: 60.27 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001134/1.449, allocations: 96.39 kB / 0.777 GB, free: 60.27 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003062/1.449, allocations: 129.9 kB / 0.7771 GB, free: 60.26 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.503e-05/1.449, allocations: 53.34 kB / 0.7772 GB, free: 60.26 MB / 458.7 MB Notification: Performance of sorting global known variables: time 0.002534/1.452, allocations: 1.506 MB / 0.7787 GB, free: 60.12 MB / 458.7 MB Notification: Performance of sort global known variables: time 4.71e-07/1.452, allocations: 1.125 kB / 0.7787 GB, free: 60.12 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.003198/1.455, allocations: 0.7274 MB / 0.7794 GB, free: 60.12 MB / 458.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 10 * Number of states: 7 (smee.inertiaRotor.w,smee.stator.core.Phi.re,smee.stator.core.Phi.im,smee.excitation.electroMagneticConverter.Phi.re,smee.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[2].Phi.re,smee.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[2].Phi.im,mechanicalSensor.flange_a.phi) * Number of discrete variables: 1 (booleanReplicator.y[3]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (143): * Single equations (assignments): 140 * 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 {(1,100.0%) 5,(1,100.0%) 8,(2,100.0%) 15} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.006694/1.462, allocations: 5.286 MB / 0.7845 GB, free: 58.21 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.003635/1.465, allocations: 2.331 MB / 0.7868 GB, free: 57.96 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 6.722e-06/1.465, allocations: 4.844 kB / 0.7868 GB, free: 57.96 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002028/1.467, allocations: 1.504 MB / 0.7883 GB, free: 57.59 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002766/1.47, allocations: 0.5618 MB / 0.7888 GB, free: 57.58 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04067/1.511, allocations: 34.85 MB / 0.8229 GB, free: 31.48 MB / 458.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003103/1.514, allocations: 2.744 MB / 0.8255 GB, free: 30.35 MB / 458.7 MB Notification: Performance of simCode: alias equations: time 0.002418/1.516, allocations: 0.5652 MB / 0.8261 GB, free: 30.27 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001871/1.518, allocations: 1.455 MB / 0.8275 GB, free: 29.07 MB / 458.7 MB Notification: Performance of SimCode: time 6.71e-07/1.518, allocations: 0 / 0.8275 GB, free: 29.07 MB / 458.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.09767/1.616, allocations: 61.02 MB / 0.8871 GB, free: 3.32 MB / 458.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001647/1.616, allocations: 196.5 kB / 0.8873 GB, free: 3.078 MB / 458.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 4.197/5.814, allocations: 0 / 0.8873 GB, free: 3.078 MB / 458.7 MB (rm -f HanserModelica_HanserModelica.SynchronousMachines.SMEE_DOL.pipe ; mkfifo HanserModelica_HanserModelica.SynchronousMachines.SMEE_DOL.pipe ; head -c 1048576 < HanserModelica_HanserModelica.SynchronousMachines.SMEE_DOL.pipe >> ../files/HanserModelica_HanserModelica.SynchronousMachines.SMEE_DOL.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_HanserModelica_HanserModelica_SynchronousMachines_SMEE_DOL_fmu --startTime=0 --stopTime=2.5 --timeout=50 --tolerance=1e-06 HanserModelica_HanserModelica_SynchronousMachines_SMEE_DOL.fmu > HanserModelica_HanserModelica.SynchronousMachines.SMEE_DOL.pipe 2>&1)