Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Machines.Examples.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/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 Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_LoadDump,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Machines_Examples_SynchronousMachines_SMEE_LoadDump",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_LoadDump,fileNamePrefix="Modelica_4_0_0_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 4.0.0+maint.om/package.mo): time 0.001061/0.001061, allocations: 178.9 kB / 8.134 MB, free: 0.8711 MB / 6.77 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.129/1.129, allocations: 221.4 MB / 229.9 MB, free: 13.54 MB / 194.8 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009741/0.0009741, allocations: 108.2 kB / 280.8 MB, free: 10.53 MB / 226.8 MB Notification: Performance of FrontEnd - loaded program: time 0.09122/0.09222, allocations: 55.83 MB / 336.6 MB, free: 2.707 MB / 274.8 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07826/0.1705, allocations: 50.41 MB / 387 MB, free: 252 kB / 322.8 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2166/0.3871, allocations: 115.2 MB / 0.4905 GB, free: 14.39 MB / 386.8 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002167/0.3873, allocations: 88.89 kB / 0.4905 GB, free: 14.3 MB / 386.8 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.2939/0.6812, allocations: 64.95 MB / 0.554 GB, free: 82.25 MB / 418.8 MB Notification: Performance of prepare preOptimizeDAE: time 3.164e-05/0.6813, allocations: 10.94 kB / 0.554 GB, free: 82.25 MB / 418.8 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001601/0.6829, allocations: 495.5 kB / 0.5544 GB, free: 82.06 MB / 418.8 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003488/0.6864, allocations: 2.091 MB / 0.5565 GB, free: 81.57 MB / 418.8 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001565/0.6865, allocations: 292.2 kB / 0.5568 GB, free: 81.38 MB / 418.8 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003603/0.6869, allocations: 171.4 kB / 0.5569 GB, free: 81.37 MB / 418.8 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.003798/0.6907, allocations: 2.716 MB / 0.5596 GB, free: 81.36 MB / 418.8 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004096/0.6948, allocations: 3.221 MB / 0.5627 GB, free: 80.93 MB / 418.8 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.645e-05/0.6949, allocations: 3.969 kB / 0.5627 GB, free: 80.93 MB / 418.8 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002183/0.6951, allocations: 15.81 kB / 0.5628 GB, free: 80.92 MB / 418.8 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.271e-05/0.6952, allocations: 113.3 kB / 0.5629 GB, free: 80.91 MB / 418.8 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01372/0.7089, allocations: 11.49 MB / 0.5741 GB, free: 77.8 MB / 418.8 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001461/0.7104, allocations: 1.206 MB / 0.5753 GB, free: 77.78 MB / 418.8 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001315/0.7117, allocations: 1.222 MB / 0.5765 GB, free: 77.76 MB / 418.8 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002456/0.712, allocations: 141.8 kB / 0.5766 GB, free: 77.66 MB / 418.8 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001196/0.7132, allocations: 1.088 MB / 0.5776 GB, free: 77.52 MB / 418.8 MB Notification: Performance of pre-optimization done (n=156): time 3.667e-06/0.7132, allocations: 0 / 0.5776 GB, free: 77.52 MB / 418.8 MB Notification: Performance of matching and sorting (n=180): time 0.01196/0.7252, allocations: 6.523 MB / 0.584 GB, free: 76.47 MB / 418.8 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.087e-05/0.7253, allocations: 305.5 kB / 0.5843 GB, free: 76.12 MB / 418.8 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002441/0.7277, allocations: 1.568 MB / 0.5858 GB, free: 75.91 MB / 418.8 MB Notification: Performance of collectPreVariables (initialization): time 0.0001271/0.7279, allocations: 34.8 kB / 0.5859 GB, free: 75.88 MB / 418.8 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007692/0.7286, allocations: 1.073 MB / 0.5869 GB, free: 75.26 MB / 418.8 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004126/0.7291, allocations: 0.5731 MB / 0.5875 GB, free: 74.89 MB / 418.8 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001154/0.7292, allocations: 0 / 0.5875 GB, free: 74.89 MB / 418.8 MB Notification: Performance of setup shared object (initialization): time 0.0001128/0.7293, allocations: 393.2 kB / 0.5879 GB, free: 74.58 MB / 418.8 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00139/0.7307, allocations: 1.004 MB / 0.5888 GB, free: 74.57 MB / 418.8 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001613/0.7323, allocations: 1.526 MB / 0.5903 GB, free: 73.99 MB / 418.8 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001596/0.7339, allocations: 1.22 MB / 0.5915 GB, free: 73.95 MB / 418.8 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.243e-05/0.7339, allocations: 7.781 kB / 0.5915 GB, free: 73.94 MB / 418.8 MB Notification: Performance of matching and sorting (n=264) (initialization): time 0.005031/0.739, allocations: 3.441 MB / 0.5949 GB, free: 73.01 MB / 418.8 MB Notification: Performance of prepare postOptimizeDAE: time 0.0007061/0.7397, allocations: 5.336 MB / 0.6001 GB, free: 67.34 MB / 418.8 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.11e-05/0.7397, allocations: 12 kB / 0.6001 GB, free: 67.33 MB / 418.8 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00262/0.7424, allocations: 1.183 MB / 0.6013 GB, free: 66.62 MB / 418.8 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001365/0.7437, allocations: 370.4 kB / 0.6016 GB, free: 66.32 MB / 418.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01075/0.7545, allocations: 13.24 MB / 0.6145 GB, free: 54.14 MB / 418.8 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001716/0.7562, allocations: 118.7 kB / 0.6147 GB, free: 54.05 MB / 418.8 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001644/0.7564, allocations: 85.12 kB / 0.6147 GB, free: 53.97 MB / 418.8 MB Notification: Performance of prepare postOptimizeDAE: time 6.652e-06/0.7564, allocations: 4 kB / 0.6147 GB, free: 53.97 MB / 418.8 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.004297/0.7607, allocations: 3.178 MB / 0.6178 GB, free: 51.23 MB / 418.8 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.585e-05/0.7608, allocations: 12 kB / 0.6179 GB, free: 51.21 MB / 418.8 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002446/0.7632, allocations: 1.176 MB / 0.619 GB, free: 50.27 MB / 418.8 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001327/0.7646, allocations: 375.6 kB / 0.6194 GB, free: 49.95 MB / 418.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01093/0.7755, allocations: 13.21 MB / 0.6323 GB, free: 36.93 MB / 418.8 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001744/0.7773, allocations: 106.4 kB / 0.6324 GB, free: 36.83 MB / 418.8 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001659/0.7774, allocations: 79.98 kB / 0.6324 GB, free: 36.75 MB / 418.8 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.0003936/0.7778, allocations: 188.8 kB / 0.6326 GB, free: 36.57 MB / 418.8 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003737/0.7782, allocations: 217.4 kB / 0.6328 GB, free: 36.35 MB / 418.8 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005248/0.7835, allocations: 3.287 MB / 0.636 GB, free: 33.05 MB / 418.8 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.15e-05/0.7835, allocations: 19.91 kB / 0.6361 GB, free: 33.03 MB / 418.8 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.222e-06/0.7835, allocations: 0 / 0.6361 GB, free: 33.03 MB / 418.8 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.53e-05/0.7835, allocations: 11.97 kB / 0.6361 GB, free: 33.02 MB / 418.8 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008958/0.7925, allocations: 6.179 MB / 0.6421 GB, free: 26.79 MB / 418.8 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.081e-06/0.7925, allocations: 0 / 0.6421 GB, free: 26.79 MB / 418.8 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008543/0.7934, allocations: 208 kB / 0.6423 GB, free: 26.58 MB / 418.8 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003102/0.7965, allocations: 1.4 MB / 0.6437 GB, free: 25.18 MB / 418.8 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001529/0.7967, allocations: 23.97 kB / 0.6437 GB, free: 25.16 MB / 418.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01251/0.8092, allocations: 13.64 MB / 0.657 GB, free: 10.96 MB / 418.8 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.416e-06/0.8092, allocations: 3.938 kB / 0.657 GB, free: 10.95 MB / 418.8 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.005932/0.8151, allocations: 4.88 MB / 0.6618 GB, free: 5.934 MB / 418.8 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.0111/0.8262, allocations: 9.676 MB / 0.6712 GB, free: 12.13 MB / 434.8 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001011/0.8273, allocations: 0.5178 MB / 0.6717 GB, free: 11.59 MB / 434.8 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000437/0.8277, allocations: 19.98 kB / 0.6718 GB, free: 11.57 MB / 434.8 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001436/0.8292, allocations: 104.4 kB / 0.6719 GB, free: 11.47 MB / 434.8 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002645/0.8294, allocations: 129.8 kB / 0.672 GB, free: 11.34 MB / 434.8 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001258/0.8296, allocations: 47.98 kB / 0.672 GB, free: 11.3 MB / 434.8 MB Notification: Performance of sort global known variables: time 0.001669/0.8312, allocations: 1.18 MB / 0.6732 GB, free: 10.09 MB / 434.8 MB Notification: Performance of remove unused functions: time 0.004544/0.8358, allocations: 1.109 MB / 0.6743 GB, free: 8.984 MB / 434.8 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.0005254/0.8363, allocations: 339.8 kB / 0.6746 GB, free: 8.68 MB / 434.8 MB Notification: Performance of simCode: created initialization part: time 0.008673/0.845, allocations: 5.795 MB / 0.6802 GB, free: 2.738 MB / 434.8 MB Notification: Performance of simCode: created event and clocks part: time 5.491e-06/0.845, allocations: 8.375 kB / 0.6803 GB, free: 2.73 MB / 434.8 MB Notification: Performance of simCode: created simulation system equations: time 0.003404/0.8484, allocations: 2.132 MB / 0.6823 GB, free: 0.5508 MB / 434.8 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001758/0.8502, allocations: 399.4 kB / 0.6827 GB, free: 188 kB / 434.8 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01056/0.8608, allocations: 5.227 MB / 0.6878 GB, free: 10.91 MB / 450.8 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002588/0.8634, allocations: 2.437 MB / 0.6902 GB, free: 8.445 MB / 450.8 MB Notification: Performance of SimCode: time 4.81e-07/0.8634, allocations: 0 / 0.6902 GB, free: 8.445 MB / 450.8 MB (rm -f Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_LoadDump.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_LoadDump.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_LoadDump.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_LoadDump.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_LoadDump_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Electrical_Machines_Examples_SynchronousMachines_SMEE_LoadDump_fmu --startTime=0 --stopTime=10 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Electrical_Machines_Examples_SynchronousMachines_SMEE_LoadDump.fmu > Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_LoadDump.pipe 2>&1)