Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr HanserModelica_HanserModelica.SynchronousMachines.SMEE_LoadDump.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_LoadDump,fileNamePrefix="HanserModelica_HanserModelica_SynchronousMachines_SMEE_LoadDump",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(HanserModelica.SynchronousMachines.SMEE_LoadDump,fileNamePrefix="HanserModelica_HanserModelica_SynchronousMachines_SMEE_LoadDump",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.001001/0.001, allocations: 174.6 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.03797/0.03797, allocations: 8.704 MB / 21.96 MB, free: 3.734 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.443/1.443, allocations: 221.4 MB / 246 MB, free: 3.562 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.000967/0.0009668, allocations: 93.75 kB / 299.1 MB, free: 3.004 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 3.128e-05/3.144e-05, allocations: 4 kB / 359.6 MB, free: 6.426 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2929/0.293, allocations: 52.53 MB / 412.2 MB, free: 22.54 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4727/0.7657, allocations: 121.4 MB / 0.5211 GB, free: 44.69 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002692/0.766, allocations: 76.69 kB / 0.5212 GB, free: 44.69 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.2328/0.9988, allocations: 104.5 MB / 0.6232 GB, free: 3.891 MB / 410.7 MB Notification: Performance of FrontEnd: time 2.264e-06/0.9988, allocations: 0 / 0.6232 GB, free: 3.891 MB / 410.7 MB Notification: Performance of Transformations before backend: time 0.0003728/0.9992, allocations: 103.9 kB / 0.6233 GB, free: 3.789 MB / 410.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1073 * Number of variables: 1073 Notification: Performance of Generate backend data structure: time 0.01351/1.013, allocations: 4.204 MB / 0.6274 GB, free: 15.5 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.244e-05/1.013, allocations: 8.031 kB / 0.6274 GB, free: 15.5 MB / 426.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.002477/1.015, allocations: 0.6266 MB / 0.628 GB, free: 14.86 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006216/1.022, allocations: 0.9545 MB / 0.629 GB, free: 13.89 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01144/1.033, allocations: 3.957 MB / 0.6328 GB, free: 9.855 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005061/1.034, allocations: 482.5 kB / 0.6333 GB, free: 9.344 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001566/1.035, allocations: 411.9 kB / 0.6337 GB, free: 8.941 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01259/1.048, allocations: 5.201 MB / 0.6387 GB, free: 3.551 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000107/1.048, allocations: 0 / 0.6387 GB, free: 3.551 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005623/1.048, allocations: 176 kB / 0.6389 GB, free: 3.379 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001776/1.049, allocations: 168.2 kB / 0.6391 GB, free: 3.211 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.009496/1.058, allocations: 4.183 MB / 0.6432 GB, free: 15.01 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03784/1.096, allocations: 17.95 MB / 0.6607 GB, free: 12.55 MB / 458.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.008403/1.105, allocations: 8.123 MB / 0.6686 GB, free: 3.477 MB / 458.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003458/1.108, allocations: 1.818 MB / 0.6704 GB, free: 1.664 MB / 458.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.284/1.392, allocations: 5.429 MB / 0.6757 GB, free: 78.3 MB / 458.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001559/1.394, allocations: 1.196 MB / 0.6769 GB, free: 78.14 MB / 458.7 MB Notification: Performance of pre-optimization done (n=177): time 3.727e-06/1.394, allocations: 1.031 kB / 0.6769 GB, free: 78.14 MB / 458.7 MB Notification: Performance of matching and sorting (n=209): time 0.01343/1.407, allocations: 6.923 MB / 0.6836 GB, free: 77.29 MB / 458.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001267/1.407, allocations: 336.5 kB / 0.684 GB, free: 76.92 MB / 458.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003604/1.411, allocations: 2.144 MB / 0.686 GB, free: 76.69 MB / 458.7 MB Notification: Performance of collectPreVariables (initialization): time 0.000396/1.411, allocations: 72.38 kB / 0.6861 GB, free: 76.66 MB / 458.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001708/1.413, allocations: 1.928 MB / 0.688 GB, free: 76.05 MB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006811/1.414, allocations: 0.6998 MB / 0.6887 GB, free: 75.7 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001387/1.414, allocations: 52.66 kB / 0.6887 GB, free: 75.7 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 0.00013/1.414, allocations: 405.7 kB / 0.6891 GB, free: 75.39 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001368/1.415, allocations: 1.032 MB / 0.6901 GB, free: 75.38 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001703/1.417, allocations: 1.798 MB / 0.6919 GB, free: 74.56 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001641/1.419, allocations: 1.324 MB / 0.6932 GB, free: 74.53 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.113e-05/1.419, allocations: 3.375 kB / 0.6932 GB, free: 74.53 MB / 458.7 MB Notification: Performance of matching and sorting (n=324) (initialization): time 0.005992/1.425, allocations: 3.89 MB / 0.697 GB, free: 74.13 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.001513/1.426, allocations: 8.385 MB / 0.7052 GB, free: 65.28 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.205e-05/1.426, allocations: 22.88 kB / 0.7052 GB, free: 65.28 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002523/1.429, allocations: 1.01 MB / 0.7062 GB, free: 65.21 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002014/1.431, allocations: 475.4 kB / 0.7066 GB, free: 65.21 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01239/1.443, allocations: 14.11 MB / 0.7204 GB, free: 57.14 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002978/1.446, allocations: 178 kB / 0.7206 GB, free: 57.13 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004931/1.447, allocations: 110 kB / 0.7207 GB, free: 57.13 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.312e-05/1.447, allocations: 6.906 kB / 0.7207 GB, free: 57.13 MB / 458.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.005526/1.452, allocations: 3.614 MB / 0.7242 GB, free: 56.91 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.543e-05/1.453, allocations: 28.06 kB / 0.7242 GB, free: 56.9 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002128/1.455, allocations: 0.9933 MB / 0.7252 GB, free: 56.84 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001857/1.457, allocations: 461.9 kB / 0.7257 GB, free: 56.84 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01218/1.469, allocations: 14.11 MB / 0.7394 GB, free: 48.77 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002918/1.472, allocations: 158.1 kB / 0.7396 GB, free: 48.76 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004468/1.472, allocations: 106.4 kB / 0.7397 GB, free: 48.76 MB / 458.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 90 * Number of states: 0 () * Number of discrete variables: 25 ($whenCondition4,$whenCondition3,$whenCondition2,$whenCondition1,$PRE.loadControl.pulseStart,loadControl.pulseStart,$PRE.switch.closerWithArc[1].off,switch.closerWithArc[1].off,$PRE.switch.closerWithArc[1].quenched,switch.closerWithArc[1].quenched,$PRE.switch.closerWithArc[1].tSwitch,switch.closerWithArc[1].tSwitch,$PRE.switch.closerWithArc[2].off,switch.closerWithArc[2].off,$PRE.switch.closerWithArc[2].quenched,switch.closerWithArc[2].quenched,$PRE.switch.closerWithArc[2].tSwitch,switch.closerWithArc[2].tSwitch,$PRE.switch.closerWithArc[3].off,switch.closerWithArc[3].off,$PRE.switch.closerWithArc[3].quenched,switch.closerWithArc[3].quenched,$PRE.switch.closerWithArc[3].tSwitch,switch.closerWithArc[3].tSwitch,voltageController.I.local_reset) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (266): * Single equations (assignments): 259 * 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: 6 * 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: 3 {(2,100.0%) 22,(3,100.0%) 21,(1,100.0%) 8} * Non-linear torn systems: 3 {1 1,1 1,1 1} Notification: Performance of prepare postOptimizeDAE: time 0.0006223/1.473, allocations: 283 kB / 0.74 GB, free: 48.65 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006018/1.473, allocations: 280.7 kB / 0.7402 GB, free: 48.51 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005613/1.479, allocations: 3.24 MB / 0.7434 GB, free: 47.27 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.608e-05/1.479, allocations: 18.34 kB / 0.7434 GB, free: 47.27 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.29e-06/1.479, allocations: 0 / 0.7434 GB, free: 47.27 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.981e-05/1.479, allocations: 10.27 kB / 0.7434 GB, free: 47.27 MB / 458.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01213/1.491, allocations: 7.034 MB / 0.7503 GB, free: 44.33 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.003e-05/1.491, allocations: 3.625 kB / 0.7503 GB, free: 44.33 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001177/1.493, allocations: 284.9 kB / 0.7506 GB, free: 44.32 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0024/1.495, allocations: 1.029 MB / 0.7516 GB, free: 44.05 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002462/1.495, allocations: 50.48 kB / 0.7516 GB, free: 44.02 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01216/1.507, allocations: 11.64 MB / 0.763 GB, free: 35.89 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.839e-06/1.507, allocations: 3.344 kB / 0.763 GB, free: 35.89 MB / 458.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006925/1.514, allocations: 4.63 MB / 0.7675 GB, free: 33.79 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001815/1.516, allocations: 0.5875 MB / 0.7681 GB, free: 33.4 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0009852/1.517, allocations: 57.5 kB / 0.7681 GB, free: 33.37 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002093/1.519, allocations: 126.1 kB / 0.7683 GB, free: 33.34 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000667/1.52, allocations: 236 kB / 0.7685 GB, free: 33.31 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001752/1.52, allocations: 59.61 kB / 0.7685 GB, free: 33.3 MB / 458.7 MB Notification: Performance of sorting global known variables: time 0.003349/1.524, allocations: 1.63 MB / 0.7701 GB, free: 32.64 MB / 458.7 MB Notification: Performance of sort global known variables: time 2.7e-07/1.524, allocations: 2.906 kB / 0.7701 GB, free: 32.64 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.007273/1.531, allocations: 1.516 MB / 0.7716 GB, free: 32.5 MB / 458.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 7 * Number of states: 8 (smee.stator.core.Phi.re,smee.stator.core.Phi.im,smee.rotorCage.strayReluctance.Phi.re,speed.phi,speed.w,voltageController.I.y,loadInductor.inductor[2].i,loadInductor.inductor[3].i) * Number of discrete variables: 14 ($whenCondition4,$whenCondition3,$whenCondition2,$whenCondition1,loadControl.pulseStart,switch.closerWithArc[1].off,switch.closerWithArc[1].quenched,switch.closerWithArc[1].tSwitch,switch.closerWithArc[2].off,switch.closerWithArc[2].quenched,switch.closerWithArc[2].tSwitch,switch.closerWithArc[3].off,switch.closerWithArc[3].quenched,switch.closerWithArc[3].tSwitch) * Number of discrete states: 6 (switch.closerWithArc[3].off,switch.closerWithArc[3].quenched,switch.closerWithArc[1].off,switch.closerWithArc[1].quenched,switch.closerWithArc[2].off,switch.closerWithArc[2].quenched) * Top-level inputs: 0 Notification: Strong component statistics for simulation (148): * Single equations (assignments): 140 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 4 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 4 {4 55,1 1,1 1,1 1} Notification: Performance of Backend phase and start with SimCode phase: time 0.00717/1.538, allocations: 5.924 MB / 0.7774 GB, free: 29.42 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.009387/1.548, allocations: 6.428 MB / 0.7837 GB, free: 25.99 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 1.096e-05/1.548, allocations: 3.906 kB / 0.7837 GB, free: 25.99 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003441/1.551, allocations: 2.149 MB / 0.7858 GB, free: 24.7 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003656/1.555, allocations: 0.6225 MB / 0.7864 GB, free: 24.21 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01859/1.573, allocations: 7.513 MB / 0.7937 GB, free: 17.67 MB / 458.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002389/1.576, allocations: 2.917 MB / 0.7966 GB, free: 15.43 MB / 458.7 MB Notification: Performance of simCode: alias equations: time 0.003833/1.58, allocations: 1.043 MB / 0.7976 GB, free: 14.78 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002034/1.582, allocations: 1.558 MB / 0.7991 GB, free: 13.34 MB / 458.7 MB Notification: Performance of SimCode: time 1.133e-06/1.582, allocations: 0 / 0.7991 GB, free: 13.34 MB / 458.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.4598/2.042, allocations: 84.89 MB / 0.882 GB, free: 81.08 MB / 474.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002649/2.042, allocations: 195 kB / 0.8822 GB, free: 80.85 MB / 474.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 5.168/7.21, allocations: 0 / 0.8822 GB, free: 80.85 MB / 474.7 MB (rm -f HanserModelica_HanserModelica.SynchronousMachines.SMEE_LoadDump.pipe ; mkfifo HanserModelica_HanserModelica.SynchronousMachines.SMEE_LoadDump.pipe ; head -c 1048576 < HanserModelica_HanserModelica.SynchronousMachines.SMEE_LoadDump.pipe >> ../files/HanserModelica_HanserModelica.SynchronousMachines.SMEE_LoadDump.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_HanserModelica_HanserModelica_SynchronousMachines_SMEE_LoadDump_fmu --startTime=0 --stopTime=6 --timeout=50 --tolerance=1e-06 HanserModelica_HanserModelica_SynchronousMachines_SMEE_LoadDump.fmu > HanserModelica_HanserModelica.SynchronousMachines.SMEE_LoadDump.pipe 2>&1)