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.001515/0.001515, allocations: 169 kB / 7.646 MB, free: 1.426 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/package.mo): time 0.04613/0.04613, allocations: 8.72 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.508/1.508, allocations: 221.5 MB / 240.9 MB, free: 13.2 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.0008719/0.0008718, allocations: 88.06 kB / 293.8 MB, free: 7.242 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 1.809e-05/1.819e-05, allocations: 7.938 kB / 352.7 MB, free: 1.164 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1208/0.1208, allocations: 52.55 MB / 405.3 MB, free: 12.56 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4057/0.5266, allocations: 120.8 MB / 0.5137 GB, free: 15.05 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002473/0.5269, allocations: 75.95 kB / 0.5138 GB, free: 14.98 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.5321/1.059, allocations: 103.2 MB / 0.6146 GB, free: 80.45 MB / 442.7 MB Notification: Performance of FrontEnd: time 2.134e-06/1.059, allocations: 0 / 0.6146 GB, free: 80.45 MB / 442.7 MB Notification: Performance of Transformations before backend: time 0.0004887/1.06, allocations: 104.3 kB / 0.6147 GB, free: 80.44 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: 1073 * Number of variables: 1073 Notification: Performance of Generate backend data structure: time 0.01464/1.074, allocations: 4.206 MB / 0.6188 GB, free: 78.76 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.503e-05/1.074, allocations: 12.92 kB / 0.6188 GB, free: 78.76 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006185/1.08, allocations: 0.9505 MB / 0.6197 GB, free: 78.51 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01173/1.092, allocations: 3.944 MB / 0.6236 GB, free: 77.72 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004446/1.093, allocations: 344.3 kB / 0.6239 GB, free: 77.52 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00142/1.094, allocations: 246.3 kB / 0.6241 GB, free: 77.52 MB / 442.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.009375/1.104, allocations: 3.938 MB / 0.628 GB, free: 77.49 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00929/1.113, allocations: 4.595 MB / 0.6325 GB, free: 75.94 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.828e-05/1.113, allocations: 15.41 kB / 0.6325 GB, free: 75.93 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003545/1.113, allocations: 11.84 kB / 0.6325 GB, free: 75.93 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001303/1.114, allocations: 162.4 kB / 0.6326 GB, free: 75.91 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0279/1.141, allocations: 17.16 MB / 0.6494 GB, free: 66.45 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005687/1.147, allocations: 7.998 MB / 0.6572 GB, free: 59.38 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002623/1.15, allocations: 1.741 MB / 0.6589 GB, free: 58.75 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.009077/1.159, allocations: 5.314 MB / 0.6641 GB, free: 55.84 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001518/1.161, allocations: 1.134 MB / 0.6652 GB, free: 55.34 MB / 442.7 MB Notification: Performance of pre-optimization done (n=177): time 4.018e-06/1.161, allocations: 4 kB / 0.6652 GB, free: 55.33 MB / 442.7 MB Notification: Performance of matching and sorting (n=209): time 0.01443/1.175, allocations: 7.126 MB / 0.6722 GB, free: 52.29 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001391/1.175, allocations: 341.9 kB / 0.6725 GB, free: 51.91 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003575/1.179, allocations: 1.791 MB / 0.6742 GB, free: 51.17 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 0.000458/1.179, allocations: 36.67 kB / 0.6743 GB, free: 51.13 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001946/1.181, allocations: 1.925 MB / 0.6762 GB, free: 49.68 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0009685/1.182, allocations: 0.6781 MB / 0.6768 GB, free: 49.15 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001705/1.182, allocations: 2.625 kB / 0.6768 GB, free: 49.15 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.000193/1.183, allocations: 407.4 kB / 0.6772 GB, free: 48.8 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002128/1.185, allocations: 0.9902 MB / 0.6782 GB, free: 48.38 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002625/1.187, allocations: 1.728 MB / 0.6799 GB, free: 47.04 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003518/1.191, allocations: 1.415 MB / 0.6812 GB, free: 46.47 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.793e-05/1.191, allocations: 7.344 kB / 0.6813 GB, free: 46.47 MB / 442.7 MB Notification: Performance of matching and sorting (n=324) (initialization): time 0.01018/1.201, allocations: 3.738 MB / 0.6849 GB, free: 44.93 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.002934/1.204, allocations: 8.278 MB / 0.693 GB, free: 35.82 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.517e-05/1.204, allocations: 27.33 kB / 0.693 GB, free: 35.82 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004048/1.208, allocations: 0.9929 MB / 0.694 GB, free: 35.52 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00318/1.212, allocations: 468.2 kB / 0.6944 GB, free: 35.46 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01946/1.231, allocations: 13.63 MB / 0.7077 GB, free: 23.49 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003645/1.235, allocations: 130 kB / 0.7079 GB, free: 23.39 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004109/1.235, allocations: 103.8 kB / 0.708 GB, free: 23.29 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.729e-05/1.235, allocations: 4 kB / 0.708 GB, free: 23.29 MB / 442.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.005629/1.241, allocations: 3.448 MB / 0.7113 GB, free: 20.22 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.577e-05/1.241, allocations: 20 kB / 0.7114 GB, free: 20.2 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002067/1.243, allocations: 0.9889 MB / 0.7123 GB, free: 19.2 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001669/1.245, allocations: 459.3 kB / 0.7128 GB, free: 18.75 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01157/1.256, allocations: 13.64 MB / 0.7261 GB, free: 4.434 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00308/1.259, allocations: 111.9 kB / 0.7262 GB, free: 4.324 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003619/1.26, allocations: 104 kB / 0.7263 GB, free: 4.223 MB / 442.7 MB Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: switch.v[3]:VARIABLE(unit = "V" ) "Voltage drops of the two polyphase plugs" type: Real [3] Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: switch.v[1]:VARIABLE(unit = "V" ) "Voltage drops of the two polyphase plugs" type: Real [3] Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: switch.v[2]:VARIABLE(unit = "V" ) "Voltage drops of the two polyphase plugs" type: Real [3] 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.0006662/1.261, allocations: 210.8 kB / 0.7265 GB, free: 4.012 MB / 442.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.005812/1.266, allocations: 3.017 MB / 0.7294 GB, free: 0.9766 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007516/1.267, allocations: 260.8 kB / 0.7297 GB, free: 0.7188 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006506/1.274, allocations: 3.161 MB / 0.7328 GB, free: 13.54 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.652e-05/1.274, allocations: 23.95 kB / 0.7328 GB, free: 13.51 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.356e-06/1.274, allocations: 3.984 kB / 0.7328 GB, free: 13.51 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.227e-05/1.274, allocations: 11.97 kB / 0.7328 GB, free: 13.5 MB / 458.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01305/1.287, allocations: 6.432 MB / 0.7391 GB, free: 7.02 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.107e-05/1.287, allocations: 4.188 kB / 0.7391 GB, free: 7.016 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001286/1.288, allocations: 271.7 kB / 0.7393 GB, free: 6.75 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002776/1.291, allocations: 1.02 MB / 0.7403 GB, free: 5.723 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002488/1.291, allocations: 27.97 kB / 0.7404 GB, free: 5.695 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.3607/1.652, allocations: 11.26 MB / 0.7514 GB, free: 84.5 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.464e-06/1.652, allocations: 3.844 kB / 0.7514 GB, free: 84.5 MB / 458.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007769/1.66, allocations: 4.561 MB / 0.7558 GB, free: 84.08 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001957/1.662, allocations: 0.5623 MB / 0.7564 GB, free: 83.99 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006998/1.662, allocations: 24.31 kB / 0.7564 GB, free: 83.99 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001519/1.664, allocations: 93.16 kB / 0.7565 GB, free: 83.99 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000611/1.665, allocations: 239.1 kB / 0.7567 GB, free: 83.99 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001331/1.665, allocations: 57.02 kB / 0.7568 GB, free: 83.99 MB / 458.7 MB Notification: Performance of sorting global known variables: time 0.002425/1.667, allocations: 1.339 MB / 0.7581 GB, free: 83.84 MB / 458.7 MB Notification: Performance of sort global known variables: time 9.62e-07/1.667, allocations: 3.281 kB / 0.7581 GB, free: 83.84 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.006817/1.674, allocations: 1.326 MB / 0.7594 GB, free: 83.84 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.007932/1.682, allocations: 5.742 MB / 0.765 GB, free: 82.53 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.01011/1.692, allocations: 6.121 MB / 0.771 GB, free: 80.98 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 9.327e-06/1.692, allocations: 0.9062 kB / 0.771 GB, free: 80.98 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003704/1.696, allocations: 2.052 MB / 0.773 GB, free: 80.53 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004171/1.7, allocations: 483.8 kB / 0.7734 GB, free: 80.52 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02479/1.725, allocations: 7.272 MB / 0.7805 GB, free: 79.06 MB / 458.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00484/1.73, allocations: 2.914 MB / 0.7834 GB, free: 78.28 MB / 458.7 MB Notification: Performance of simCode: alias equations: time 0.005116/1.735, allocations: 0.9727 MB / 0.7843 GB, free: 78.22 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002609/1.738, allocations: 1.545 MB / 0.7858 GB, free: 78.21 MB / 458.7 MB Notification: Performance of SimCode: time 3.096e-06/1.738, allocations: 0 / 0.7858 GB, free: 78.21 MB / 458.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1288/1.866, allocations: 73.65 MB / 0.8578 GB, free: 47.45 MB / 458.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001474/1.867, allocations: 135.4 kB / 0.8579 GB, free: 47.26 MB / 458.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 4.907/6.774, allocations: 0 / 0.8579 GB, free: 47.26 MB / 458.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)