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"}) [: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.008673/0.008673, allocations: 175.8 kB / 7.457 MB, free: 2.512 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/package.mo): time 0.08184/0.08184, allocations: 8.713 MB / 16.58 MB, free: 444 kB / 10.45 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 2.177/2.177, allocations: 221.4 MB / 240.5 MB, free: 8.16 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.001346/0.001346, allocations: 82.33 kB / 293.5 MB, free: 7.434 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.2335/0.2349, allocations: 58.68 MB / 352.2 MB, free: 12.7 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5633/0.7983, allocations: 52.54 MB / 404.7 MB, free: 26.98 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.6502/1.449, allocations: 120.7 MB / 0.5131 GB, free: 94.9 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0004029/1.449, allocations: 74.34 kB / 0.5132 GB, free: 94.87 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: 1073 * Number of variables: 1073 Notification: Performance of Generate backend data structure: time 0.3777/1.827, allocations: 107.4 MB / 0.6181 GB, free: 2.828 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 9.285e-05/1.827, allocations: 8 kB / 0.6181 GB, free: 2.82 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.009763/1.837, allocations: 0.9778 MB / 0.619 GB, free: 1.836 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02058/1.857, allocations: 3.969 MB / 0.6229 GB, free: 13.79 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0009164/1.858, allocations: 346.5 kB / 0.6232 GB, free: 13.41 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003/1.861, allocations: 251.9 kB / 0.6235 GB, free: 13.16 MB / 410.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.02427/1.886, allocations: 3.996 MB / 0.6274 GB, free: 9.156 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03565/1.921, allocations: 4.653 MB / 0.6319 GB, free: 4.32 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0005046/1.922, allocations: 8 kB / 0.6319 GB, free: 4.312 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002699/1.925, allocations: 4 kB / 0.6319 GB, free: 4.309 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000368/1.925, allocations: 176 kB / 0.6321 GB, free: 4.133 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.08201/2.007, allocations: 17.26 MB / 0.649 GB, free: 2.387 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005527/2.013, allocations: 1.552 MB / 0.6505 GB, free: 0.8281 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00604/2.019, allocations: 1.87 MB / 0.6523 GB, free: 14.96 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02576/2.045, allocations: 5.748 MB / 0.6579 GB, free: 9.039 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.003888/2.049, allocations: 1.355 MB / 0.6592 GB, free: 7.641 MB / 442.7 MB Notification: Performance of pre-optimization done (n=216): time 1.223e-05/2.049, allocations: 7.984 kB / 0.6593 GB, free: 7.633 MB / 442.7 MB Notification: Performance of matching and sorting (n=249): time 0.0236/2.073, allocations: 7.569 MB / 0.6666 GB, free: 12 kB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.4374/2.51, allocations: 340.6 kB / 0.667 GB, free: 100.6 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.009274/2.519, allocations: 1.809 MB / 0.6687 GB, free: 100.4 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 0.001192/2.521, allocations: 44.22 kB / 0.6688 GB, free: 100.4 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.003378/2.524, allocations: 1.494 MB / 0.6702 GB, free: 100.3 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.00202/2.526, allocations: 0.8002 MB / 0.671 GB, free: 99.88 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00028/2.526, allocations: 3.906 kB / 0.671 GB, free: 99.88 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.0003871/2.527, allocations: 412.7 kB / 0.6714 GB, free: 99.57 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003043/2.53, allocations: 1.181 MB / 0.6726 GB, free: 99.57 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004139/2.534, allocations: 1.939 MB / 0.6745 GB, free: 98.76 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004653/2.539, allocations: 1.526 MB / 0.676 GB, free: 98.71 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.067e-05/2.539, allocations: 3.938 kB / 0.676 GB, free: 98.71 MB / 442.7 MB Notification: Performance of matching and sorting (n=363) (initialization): time 0.01415/2.553, allocations: 4.102 MB / 0.68 GB, free: 98.29 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.003374/2.556, allocations: 8.165 MB / 0.6879 GB, free: 89.53 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.738e-05/2.557, allocations: 19.78 kB / 0.688 GB, free: 89.53 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004521/2.561, allocations: 1.04 MB / 0.689 GB, free: 89.48 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004138/2.565, allocations: 0.5249 MB / 0.6895 GB, free: 89.48 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02398/2.589, allocations: 13.19 MB / 0.7024 GB, free: 81.98 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006442/2.596, allocations: 115.6 kB / 0.7025 GB, free: 81.98 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001259/2.597, allocations: 114.5 kB / 0.7026 GB, free: 81.98 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.156e-05/2.597, allocations: 7.344 kB / 0.7026 GB, free: 81.98 MB / 442.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.01121/2.609, allocations: 3.789 MB / 0.7063 GB, free: 81.72 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.000145/2.609, allocations: 21.09 kB / 0.7063 GB, free: 81.72 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003611/2.612, allocations: 1.028 MB / 0.7073 GB, free: 81.67 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003888/2.616, allocations: 0.5182 MB / 0.7078 GB, free: 81.67 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02141/2.638, allocations: 13.2 MB / 0.7207 GB, free: 74.17 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006226/2.644, allocations: 109.6 kB / 0.7208 GB, free: 74.17 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001392/2.645, allocations: 113.1 kB / 0.7209 GB, free: 74.17 MB / 442.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.001758/2.647, allocations: 202.9 kB / 0.7211 GB, free: 74.06 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00165/2.649, allocations: 276.5 kB / 0.7214 GB, free: 73.92 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01353/2.662, allocations: 3.558 MB / 0.7249 GB, free: 73.75 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.922e-05/2.663, allocations: 22 kB / 0.7249 GB, free: 73.75 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.938e-05/2.663, allocations: 2.844 kB / 0.7249 GB, free: 73.75 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001137/2.663, allocations: 16.97 kB / 0.7249 GB, free: 73.75 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02954/2.692, allocations: 7.294 MB / 0.732 GB, free: 73.1 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.44e-05/2.692, allocations: 3.594 kB / 0.732 GB, free: 73.1 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00298/2.695, allocations: 340.9 kB / 0.7323 GB, free: 73.1 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.005051/2.701, allocations: 1.051 MB / 0.7334 GB, free: 73.06 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0008642/2.702, allocations: 27.69 kB / 0.7334 GB, free: 73.06 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02501/2.727, allocations: 10.93 MB / 0.7441 GB, free: 68.04 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.712e-05/2.727, allocations: 7 kB / 0.7441 GB, free: 68.04 MB / 442.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0178/2.744, allocations: 5.235 MB / 0.7492 GB, free: 67.35 MB / 442.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.03379/2.778, allocations: 10.72 MB / 0.7597 GB, free: 62.38 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.003766/2.782, allocations: 0.6243 MB / 0.7603 GB, free: 61.97 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001989/2.784, allocations: 30.72 kB / 0.7603 GB, free: 61.96 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00409/2.788, allocations: 91.67 kB / 0.7604 GB, free: 61.96 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007607/2.789, allocations: 165.6 kB / 0.7605 GB, free: 61.94 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003149/2.79, allocations: 69.83 kB / 0.7606 GB, free: 61.92 MB / 442.7 MB Notification: Performance of sort global known variables: time 0.006766/2.796, allocations: 1.355 MB / 0.7619 GB, free: 61.35 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.01986/2.816, allocations: 1.404 MB / 0.7633 GB, free: 61.28 MB / 442.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.002083/2.818, allocations: 371.6 kB / 0.7637 GB, free: 61.18 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.02146/2.84, allocations: 6.552 MB / 0.7701 GB, free: 57.93 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 2.853e-05/2.84, allocations: 3.531 kB / 0.7701 GB, free: 57.93 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.006697/2.847, allocations: 2.051 MB / 0.7721 GB, free: 56.93 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006398/2.853, allocations: 462.7 kB / 0.7725 GB, free: 56.82 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03477/2.888, allocations: 6.71 MB / 0.7791 GB, free: 54.3 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.008386/2.897, allocations: 3.103 MB / 0.7821 GB, free: 53.12 MB / 442.7 MB Notification: Performance of SimCode: time 2.194e-06/2.897, allocations: 0 / 0.7821 GB, free: 53.12 MB / 442.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)