Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_LoadDump.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_LoadDump,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Machines_Examples_SynchronousMachines_SMEE_LoadDump",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_LoadDump,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Machines_Examples_SynchronousMachines_SMEE_LoadDump",fmuType="me",version="2.0",platforms={"static"}) [: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 trunk/package.mo): time 0.001022/0.001022, allocations: 195.1 kB / 8.537 MB, free: 1.824 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.128/1.128, allocations: 225.5 MB / 234.4 MB, free: 3.48 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008713/0.0008714, allocations: 95.56 kB / 286.3 MB, free: 5.211 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.08797/0.08887, allocations: 56.91 MB / 343.2 MB, free: 8.695 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08049/0.1694, allocations: 51.47 MB / 394.7 MB, free: 5.172 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2329/0.4023, allocations: 116 MB / 0.4987 GB, free: 9.707 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000208/0.4026, allocations: 86.08 kB / 0.4988 GB, free: 9.664 MB / 378.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 731 * Number of variables: 731 Notification: Performance of Generate backend data structure: time 0.1659/0.5686, allocations: 65.08 MB / 0.5624 GB, free: 13.32 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.515e-05/0.5686, allocations: 8 kB / 0.5624 GB, free: 13.32 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002025/0.5706, allocations: 499.4 kB / 0.5629 GB, free: 12.82 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004542/0.5752, allocations: 2.088 MB / 0.5649 GB, free: 10.68 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000261/0.5755, allocations: 291.9 kB / 0.5652 GB, free: 10.36 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006223/0.5761, allocations: 171.9 kB / 0.5653 GB, free: 10.19 MB / 442.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.005083/0.5812, allocations: 2.717 MB / 0.568 GB, free: 7.469 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005512/0.5867, allocations: 3.219 MB / 0.5711 GB, free: 4.102 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.376e-05/0.5868, allocations: 11.92 kB / 0.5712 GB, free: 4.09 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002477/0.5871, allocations: 4 kB / 0.5712 GB, free: 4.086 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001091/0.5872, allocations: 117.4 kB / 0.5713 GB, free: 3.969 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1613/0.7485, allocations: 11.49 MB / 0.5825 GB, free: 64.19 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001485/0.75, allocations: 1.213 MB / 0.5837 GB, free: 64.17 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001361/0.7514, allocations: 1.232 MB / 0.5849 GB, free: 64.16 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002691/0.7517, allocations: 138.1 kB / 0.585 GB, free: 64.07 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001174/0.7529, allocations: 1.088 MB / 0.5861 GB, free: 63.93 MB / 442.7 MB Notification: Performance of pre-optimization done (n=156): time 3.126e-06/0.7529, allocations: 0 / 0.5861 GB, free: 63.93 MB / 442.7 MB Notification: Performance of matching and sorting (n=180): time 0.01113/0.764, allocations: 6.516 MB / 0.5924 GB, free: 63.04 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.801e-05/0.7641, allocations: 315 kB / 0.5927 GB, free: 62.69 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001904/0.766, allocations: 1.567 MB / 0.5943 GB, free: 62.48 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 0.000122/0.7662, allocations: 35.55 kB / 0.5943 GB, free: 62.45 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006282/0.7668, allocations: 1.07 MB / 0.5953 GB, free: 62 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003527/0.7671, allocations: 0.5792 MB / 0.5959 GB, free: 61.7 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001024/0.7673, allocations: 0 / 0.5959 GB, free: 61.7 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 9.369e-05/0.7674, allocations: 389.9 kB / 0.5963 GB, free: 61.39 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001183/0.7685, allocations: 1.005 MB / 0.5973 GB, free: 61.39 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001404/0.77, allocations: 1.532 MB / 0.5988 GB, free: 60.82 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001415/0.7714, allocations: 1.219 MB / 0.5999 GB, free: 60.8 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.185e-06/0.7714, allocations: 6.812 kB / 0.6 GB, free: 60.8 MB / 442.7 MB Notification: Performance of matching and sorting (n=264) (initialization): time 0.004876/0.7763, allocations: 3.433 MB / 0.6033 GB, free: 60.54 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0006606/0.777, allocations: 5.336 MB / 0.6085 GB, free: 54.96 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.682e-05/0.777, allocations: 11.03 kB / 0.6085 GB, free: 54.96 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002698/0.7797, allocations: 1.19 MB / 0.6097 GB, free: 54.9 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001367/0.7811, allocations: 370.7 kB / 0.61 GB, free: 54.9 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01094/0.792, allocations: 13.24 MB / 0.623 GB, free: 47.46 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002023/0.7941, allocations: 108.7 kB / 0.6231 GB, free: 47.46 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001891/0.7943, allocations: 84.55 kB / 0.6232 GB, free: 47.46 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 6.242e-06/0.7943, allocations: 3.562 kB / 0.6232 GB, free: 47.46 MB / 442.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.004519/0.7988, allocations: 3.18 MB / 0.6263 GB, free: 47.34 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.948e-05/0.7988, allocations: 14.69 kB / 0.6263 GB, free: 47.34 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002555/0.8014, allocations: 1.169 MB / 0.6274 GB, free: 47.29 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001316/0.8027, allocations: 373.7 kB / 0.6278 GB, free: 47.29 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01108/0.8138, allocations: 13.23 MB / 0.6407 GB, free: 39.45 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001983/0.8158, allocations: 105.5 kB / 0.6408 GB, free: 39.45 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001727/0.816, allocations: 77.86 kB / 0.6409 GB, free: 39.44 MB / 442.7 MB 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[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[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: 59 * 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 (212): * Single equations (assignments): 205 * 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%) 16,(3,100.0%) 24,(2,100.0%) 4} * Non-linear torn systems: 3 {1 1,1 1,1 1} Notification: Performance of prepare postOptimizeDAE: time 0.0004496/0.8165, allocations: 184.7 kB / 0.641 GB, free: 39.31 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003205/0.8168, allocations: 215.9 kB / 0.6413 GB, free: 39.2 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00554/0.8223, allocations: 3.284 MB / 0.6445 GB, free: 38.08 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.84e-05/0.8224, allocations: 17.5 kB / 0.6445 GB, free: 38.08 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.994e-06/0.8224, allocations: 4.484 kB / 0.6445 GB, free: 38.08 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.561e-05/0.8224, allocations: 7.688 kB / 0.6445 GB, free: 38.08 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009822/0.8322, allocations: 6.184 MB / 0.6505 GB, free: 35.74 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.065e-06/0.8323, allocations: 2.906 kB / 0.6505 GB, free: 35.74 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009265/0.8332, allocations: 199.3 kB / 0.6507 GB, free: 35.74 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003484/0.8367, allocations: 1.397 MB / 0.6521 GB, free: 35.41 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001386/0.8368, allocations: 21.66 kB / 0.6521 GB, free: 35.4 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.014/0.8509, allocations: 13.65 MB / 0.6654 GB, free: 26.38 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.983e-06/0.8509, allocations: 6.734 kB / 0.6654 GB, free: 26.38 MB / 442.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.006909/0.8578, allocations: 4.875 MB / 0.6702 GB, free: 24.25 MB / 442.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.01052/0.8683, allocations: 9.676 MB / 0.6797 GB, free: 19.95 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001036/0.8694, allocations: 0.5091 MB / 0.6802 GB, free: 19.64 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003712/0.8698, allocations: 27.48 kB / 0.6802 GB, free: 19.63 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001375/0.8712, allocations: 97.88 kB / 0.6803 GB, free: 19.62 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002532/0.8714, allocations: 133.4 kB / 0.6804 GB, free: 19.6 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001342/0.8716, allocations: 54.81 kB / 0.6805 GB, free: 19.59 MB / 442.7 MB Notification: Performance of sort global known variables: time 0.001538/0.8731, allocations: 1.18 MB / 0.6816 GB, free: 19.07 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.004365/0.8775, allocations: 1.108 MB / 0.6827 GB, free: 19.04 MB / 442.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 11 * Number of states: 8 (smee.idq_sr[1],smee.idq_sr[2],smee.idq_rr[1],smee.idq_rr[2],smee.idq_dr[1],speed.phi,speed.w,voltageController.I.y) * 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 (116): * Single equations (assignments): 107 * 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: 5 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(2,100.0%) 4} * Non-linear torn systems: 4 {7 52,1 1,1 1,1 1} Notification: Performance of Backend phase and start with SimCode phase: time 0.0005108/0.878, allocations: 332.5 kB / 0.683 GB, free: 18.92 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.007668/0.8857, allocations: 5.808 MB / 0.6887 GB, free: 15.99 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 5.079e-06/0.8857, allocations: 3.188 kB / 0.6887 GB, free: 15.99 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003094/0.8888, allocations: 2.142 MB / 0.6908 GB, free: 14.94 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001912/0.8907, allocations: 399.7 kB / 0.6912 GB, free: 14.83 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009426/0.9002, allocations: 5.229 MB / 0.6963 GB, free: 12.77 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00194/0.9021, allocations: 2.434 MB / 0.6986 GB, free: 10.88 MB / 442.7 MB Notification: Performance of SimCode: time 3.71e-07/0.9021, allocations: 0.5625 kB / 0.6986 GB, free: 10.88 MB / 442.7 MB (rm -f Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_LoadDump.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_LoadDump.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_LoadDump.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_LoadDump.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_LoadDump_res.mat --tempDir=temp_Modelica_trunk_Modelica_Electrical_Machines_Examples_SynchronousMachines_SMEE_LoadDump_fmu --startTime=0 --stopTime=10 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Electrical_Machines_Examples_SynchronousMachines_SMEE_LoadDump.fmu > Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_LoadDump.pipe 2>&1)