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: translateModel(HanserModelica.SynchronousMachines.SMEE_LoadDump,tolerance=1e-06,outputFormat="empty",numberOfIntervals=120000,variableFilter="",fileNamePrefix="HanserModelica_HanserModelica.SynchronousMachines.SMEE_LoadDump") translateModel(HanserModelica.SynchronousMachines.SMEE_LoadDump,tolerance=1e-06,outputFormat="empty",numberOfIntervals=120000,variableFilter="",fileNamePrefix="HanserModelica_HanserModelica.SynchronousMachines.SMEE_LoadDump") [:1:1-1:32:writable] Error: Class GC_set_max_heap_size not found in scope (looking for a function or record). Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.002296/0.002296, allocations: 180.8 kB / 7.456 MB, free: 2.508 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/package.mo): time 0.03846/0.03846, allocations: 8.704 MB / 16.57 MB, free: 448 kB / 10.45 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.265/1.265, allocations: 221.4 MB / 240.5 MB, free: 8.156 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.0009958/0.0009957, allocations: 91.84 kB / 293.5 MB, free: 5.469 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 9.758e-06/9.798e-06, allocations: 4 kB / 352.1 MB, free: 10.85 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2702/0.2702, allocations: 52.54 MB / 404.6 MB, free: 26.77 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3424/0.6127, allocations: 120.7 MB / 0.513 GB, free: 52.04 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002102/0.6129, allocations: 79.86 kB / 0.5131 GB, free: 52.04 MB / 378.7 MB Notification: Performance of FrontEnd: time 0.2347/0.8477, allocations: 103.1 MB / 0.6138 GB, free: 12.93 MB / 410.7 MB Notification: Performance of Transformations before backend: time 0.0005421/0.8483, allocations: 99.88 kB / 0.6139 GB, free: 12.83 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.01358/0.8619, allocations: 4.208 MB / 0.618 GB, free: 8.539 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.543e-05/0.8619, allocations: 12.03 kB / 0.618 GB, free: 8.527 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006266/0.8682, allocations: 0.9701 MB / 0.6189 GB, free: 7.551 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01169/0.8799, allocations: 3.973 MB / 0.6228 GB, free: 3.496 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004724/0.8804, allocations: 346.5 kB / 0.6231 GB, free: 3.117 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001433/0.8819, allocations: 243.9 kB / 0.6234 GB, free: 2.879 MB / 410.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.01352/0.8954, allocations: 4.011 MB / 0.6273 GB, free: 14.86 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01427/0.9097, allocations: 4.653 MB / 0.6318 GB, free: 10.02 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001789/0.9099, allocations: 0 / 0.6318 GB, free: 10.02 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001251/0.9112, allocations: 4 kB / 0.6318 GB, free: 10.02 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002044/0.9114, allocations: 176.1 kB / 0.632 GB, free: 9.844 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03229/0.9437, allocations: 17.27 MB / 0.6489 GB, free: 8.09 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002488/0.9462, allocations: 1.544 MB / 0.6504 GB, free: 6.539 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002961/0.9492, allocations: 1.862 MB / 0.6522 GB, free: 4.68 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01132/0.9605, allocations: 5.759 MB / 0.6578 GB, free: 14.75 MB / 458.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.002085/0.9627, allocations: 1.352 MB / 0.6591 GB, free: 13.35 MB / 458.7 MB Notification: Performance of pre-optimization done (n=216): time 4.218e-06/0.9627, allocations: 0 / 0.6591 GB, free: 13.35 MB / 458.7 MB Notification: Performance of matching and sorting (n=249): time 0.01877/0.9815, allocations: 7.569 MB / 0.6665 GB, free: 5.73 MB / 458.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001811/0.9817, allocations: 342.4 kB / 0.6669 GB, free: 5.32 MB / 458.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004288/0.986, allocations: 1.812 MB / 0.6686 GB, free: 3.484 MB / 458.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003069/0.9863, allocations: 29.7 kB / 0.6687 GB, free: 3.449 MB / 458.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001683/0.988, allocations: 1.502 MB / 0.6701 GB, free: 1.918 MB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0009753/0.989, allocations: 0.8046 MB / 0.6709 GB, free: 1.102 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002236/0.9892, allocations: 0 / 0.6709 GB, free: 1.102 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 0.000248/0.9895, allocations: 415.8 kB / 0.6713 GB, free: 0.6914 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.1508/1.14, allocations: 1.184 MB / 0.6725 GB, free: 109.9 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002246/1.143, allocations: 1.931 MB / 0.6744 GB, free: 109.1 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002579/1.145, allocations: 1.531 MB / 0.6758 GB, free: 109.1 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.224e-05/1.145, allocations: 3.75 kB / 0.6759 GB, free: 109.1 MB / 458.7 MB Notification: Performance of matching and sorting (n=363) (initialization): time 0.007071/1.152, allocations: 4.107 MB / 0.6799 GB, free: 108.8 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.001458/1.154, allocations: 8.169 MB / 0.6878 GB, free: 100.1 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.116e-05/1.154, allocations: 19.34 kB / 0.6879 GB, free: 100.1 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002583/1.156, allocations: 1.036 MB / 0.6889 GB, free: 100 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00224/1.159, allocations: 0.5182 MB / 0.6894 GB, free: 100 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01172/1.17, allocations: 13.2 MB / 0.7023 GB, free: 92.75 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002883/1.173, allocations: 117.8 kB / 0.7024 GB, free: 92.75 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005715/1.174, allocations: 112 kB / 0.7025 GB, free: 92.75 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.172e-05/1.174, allocations: 3.781 kB / 0.7025 GB, free: 92.75 MB / 458.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.006263/1.18, allocations: 3.792 MB / 0.7062 GB, free: 92.51 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.486e-05/1.18, allocations: 22.28 kB / 0.7062 GB, free: 92.51 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002229/1.183, allocations: 1.023 MB / 0.7072 GB, free: 92.46 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002103/1.185, allocations: 0.5146 MB / 0.7077 GB, free: 92.46 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01149/1.196, allocations: 13.19 MB / 0.7206 GB, free: 85.14 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003195/1.199, allocations: 101.3 kB / 0.7207 GB, free: 85.14 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005201/1.2, allocations: 115.8 kB / 0.7208 GB, free: 85.14 MB / 458.7 MB Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: switch.closerWithArc[3].v:VARIABLE(unit = "V" ) "Voltage drop of the two pins (= p.v - n.v)" type: Real [3] Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: switch.closerWithArc[1].v:VARIABLE(unit = "V" ) "Voltage drop of the two pins (= p.v - n.v)" type: Real [3] Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: switch.closerWithArc[2].v:VARIABLE(unit = "V" ) "Voltage drop of the two pins (= p.v - n.v)" type: Real [3] Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 89 * 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 (304): * Single equations (assignments): 297 * 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%) 23,(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.0008366/1.201, allocations: 220.1 kB / 0.721 GB, free: 85.03 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000648/1.201, allocations: 271.2 kB / 0.7213 GB, free: 84.89 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006636/1.208, allocations: 3.552 MB / 0.7247 GB, free: 84.73 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.357e-05/1.208, allocations: 24.25 kB / 0.7248 GB, free: 84.73 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.324e-06/1.208, allocations: 0 / 0.7248 GB, free: 84.73 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.639e-05/1.208, allocations: 15.88 kB / 0.7248 GB, free: 84.73 MB / 458.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01161/1.22, allocations: 7.305 MB / 0.7319 GB, free: 84.08 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.488e-06/1.22, allocations: 3.5 kB / 0.7319 GB, free: 84.08 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001525/1.221, allocations: 339.1 kB / 0.7322 GB, free: 84.08 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002464/1.224, allocations: 1.046 MB / 0.7333 GB, free: 84.04 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002193/1.224, allocations: 29.8 kB / 0.7333 GB, free: 84.04 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01073/1.235, allocations: 10.93 MB / 0.744 GB, free: 79.02 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.36e-06/1.235, allocations: 6.797 kB / 0.744 GB, free: 79.02 MB / 458.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.007495/1.242, allocations: 5.242 MB / 0.7491 GB, free: 78.41 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001586/1.244, allocations: 0.6157 MB / 0.7497 GB, free: 78.18 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006497/1.245, allocations: 29.48 kB / 0.7497 GB, free: 78.18 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001633/1.246, allocations: 91.16 kB / 0.7498 GB, free: 78.18 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003082/1.247, allocations: 161.7 kB / 0.75 GB, free: 78.18 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001435/1.247, allocations: 66.06 kB / 0.75 GB, free: 78.18 MB / 458.7 MB Notification: Performance of sort global known variables: time 0.002037/1.249, allocations: 1.354 MB / 0.7514 GB, free: 78.03 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.006876/1.256, allocations: 1.345 MB / 0.7527 GB, free: 78.03 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 (187): * Single equations (assignments): 179 * 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 56,1 1,1 1,1 1} Notification: Performance of Backend phase and start with SimCode phase: time 0.0007033/1.256, allocations: 370.5 kB / 0.753 GB, free: 77.93 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.009018/1.265, allocations: 6.552 MB / 0.7594 GB, free: 76.4 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 8.787e-06/1.266, allocations: 3.25 kB / 0.7594 GB, free: 76.4 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002941/1.268, allocations: 2.057 MB / 0.7614 GB, free: 75.39 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002669/1.271, allocations: 464.8 kB / 0.7619 GB, free: 75.27 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01412/1.285, allocations: 6.67 MB / 0.7684 GB, free: 72.8 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003382/1.289, allocations: 3.073 MB / 0.7714 GB, free: 71.62 MB / 458.7 MB Notification: Performance of SimCode: time 8.01e-07/1.289, allocations: 0 / 0.7714 GB, free: 71.62 MB / 458.7 MB Notification: Performance of Templates: time 0.09345/1.382, allocations: 60.95 MB / 0.8309 GB, free: 47.81 MB / 458.7 MB make -j1 -f HanserModelica_HanserModelica.SynchronousMachines.SMEE_LoadDump.makefile (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 & ./HanserModelica_HanserModelica.SynchronousMachines.SMEE_LoadDump -abortSlowSimulation -alarm=480 -lv LOG_STATS > HanserModelica_HanserModelica.SynchronousMachines.SMEE_LoadDump.pipe 2>&1)