Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMEE_LoadDump.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMEE_LoadDump,fileNamePrefix="Modelica_3_2_3_Modelica_Electrical_Machines_Examples_SynchronousInductionMachines_SMEE_LoadDump",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMEE_LoadDump,fileNamePrefix="Modelica_3_2_3_Modelica_Electrical_Machines_Examples_SynchronousInductionMachines_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 3.2.3+maint.om/package.mo): time 0.0009737/0.0009739, allocations: 179.1 kB / 8.477 MB, free: 1.883 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.031/1.031, allocations: 205.2 MB / 214.1 MB, free: 5.449 MB / 170.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008568/0.0008568, allocations: 82.31 kB / 262.1 MB, free: 5.508 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.1407/0.1416, allocations: 52.98 MB / 315.1 MB, free: 41.45 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.05794/0.1995, allocations: 47.57 MB / 362.6 MB, free: 9.918 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2159/0.4155, allocations: 114.9 MB / 477.5 MB, free: 10.26 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002005/0.4157, allocations: 84.58 kB / 477.6 MB, free: 10.22 MB / 330.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.164/0.5797, allocations: 64.69 MB / 0.5296 GB, free: 0.6719 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.776e-05/0.5797, allocations: 8 kB / 0.5296 GB, free: 0.6641 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002013/0.5818, allocations: 491.5 kB / 0.53 GB, free: 184 kB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004425/0.5862, allocations: 2.084 MB / 0.5321 GB, free: 14.04 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001976/0.5864, allocations: 295.8 kB / 0.5324 GB, free: 13.71 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003935/0.5868, allocations: 175.9 kB / 0.5325 GB, free: 13.54 MB / 394.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.004376/0.5912, allocations: 2.717 MB / 0.5352 GB, free: 10.82 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004791/0.596, allocations: 3.238 MB / 0.5383 GB, free: 7.434 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.802e-05/0.5961, allocations: 11.83 kB / 0.5384 GB, free: 7.422 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002258/0.5963, allocations: 8 kB / 0.5384 GB, free: 7.414 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.389e-05/0.5964, allocations: 113.5 kB / 0.5385 GB, free: 7.301 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01638/0.6128, allocations: 11.49 MB / 0.5497 GB, free: 11.47 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001691/0.6145, allocations: 1.201 MB / 0.5509 GB, free: 10.26 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001566/0.6161, allocations: 1.238 MB / 0.5521 GB, free: 9.023 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002688/0.6164, allocations: 138.4 kB / 0.5522 GB, free: 8.871 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001382/0.6178, allocations: 1.087 MB / 0.5533 GB, free: 7.742 MB / 410.7 MB Notification: Performance of pre-optimization done (n=156): time 3.347e-06/0.6178, allocations: 0 / 0.5533 GB, free: 7.742 MB / 410.7 MB Notification: Performance of matching and sorting (n=180): time 0.01192/0.6297, allocations: 6.503 MB / 0.5596 GB, free: 1.18 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001137/0.6299, allocations: 312.7 kB / 0.5599 GB, free: 0.8047 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002122/0.632, allocations: 1.574 MB / 0.5615 GB, free: 15.19 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001255/0.6321, allocations: 37.69 kB / 0.5615 GB, free: 15.15 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007674/0.6329, allocations: 1.066 MB / 0.5625 GB, free: 14.07 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004205/0.6333, allocations: 0.5813 MB / 0.5631 GB, free: 13.48 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001036/0.6334, allocations: 0 / 0.5631 GB, free: 13.48 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.000156/0.6336, allocations: 390 kB / 0.5635 GB, free: 13.09 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001324/0.6349, allocations: 1.004 MB / 0.5645 GB, free: 12.08 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001625/0.6366, allocations: 1.53 MB / 0.5659 GB, free: 10.34 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001599/0.6382, allocations: 1.216 MB / 0.5671 GB, free: 9.117 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.504e-06/0.6382, allocations: 11.91 kB / 0.5671 GB, free: 9.105 MB / 426.7 MB Notification: Performance of matching and sorting (n=264) (initialization): time 0.005185/0.6434, allocations: 3.43 MB / 0.5705 GB, free: 5.637 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.09741/0.7408, allocations: 5.337 MB / 0.5757 GB, free: 149.9 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.319e-05/0.7409, allocations: 15.62 kB / 0.5757 GB, free: 149.9 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00276/0.7436, allocations: 1.178 MB / 0.5769 GB, free: 149.8 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001472/0.7451, allocations: 375.2 kB / 0.5772 GB, free: 149.8 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01048/0.7556, allocations: 13.22 MB / 0.5901 GB, free: 142.6 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001897/0.7575, allocations: 116.1 kB / 0.5902 GB, free: 142.6 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000159/0.7577, allocations: 81.27 kB / 0.5903 GB, free: 142.6 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.901e-06/0.7577, allocations: 6.938 kB / 0.5903 GB, free: 142.6 MB / 426.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.004272/0.762, allocations: 3.18 MB / 0.5934 GB, free: 142.5 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.64e-05/0.762, allocations: 12.52 kB / 0.5934 GB, free: 142.5 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002455/0.7645, allocations: 1.173 MB / 0.5946 GB, free: 142.5 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001304/0.7658, allocations: 372.4 kB / 0.5949 GB, free: 142.5 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01047/0.7763, allocations: 13.22 MB / 0.6079 GB, free: 135.3 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001783/0.7781, allocations: 112.7 kB / 0.608 GB, free: 135.3 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000148/0.7782, allocations: 77.56 kB / 0.608 GB, free: 135.3 MB / 426.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.0004022/0.7787, allocations: 187.1 kB / 0.6082 GB, free: 135.1 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002935/0.779, allocations: 219.1 kB / 0.6084 GB, free: 135.1 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005158/0.7841, allocations: 3.298 MB / 0.6116 GB, free: 134.9 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.159e-05/0.7841, allocations: 21.41 kB / 0.6117 GB, free: 134.9 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.27e-06/0.7842, allocations: 2.812 kB / 0.6117 GB, free: 134.9 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.546e-05/0.7842, allocations: 14.11 kB / 0.6117 GB, free: 134.9 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008541/0.7927, allocations: 6.181 MB / 0.6177 GB, free: 134.4 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.252e-06/0.7928, allocations: 0 / 0.6177 GB, free: 134.4 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000886/0.7937, allocations: 199.3 kB / 0.6179 GB, free: 134.4 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003171/0.7968, allocations: 1.4 MB / 0.6193 GB, free: 134.3 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001219/0.797, allocations: 20.69 kB / 0.6193 GB, free: 134.3 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01249/0.8095, allocations: 13.65 MB / 0.6326 GB, free: 125.8 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.396e-06/0.8095, allocations: 0 / 0.6326 GB, free: 125.8 MB / 426.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.005865/0.8154, allocations: 4.873 MB / 0.6374 GB, free: 123.7 MB / 426.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.01041/0.8258, allocations: 9.663 MB / 0.6468 GB, free: 119.4 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009192/0.8267, allocations: 0.5168 MB / 0.6473 GB, free: 119 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003728/0.8271, allocations: 19.56 kB / 0.6473 GB, free: 119 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001351/0.8285, allocations: 101.1 kB / 0.6474 GB, free: 118.9 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002422/0.8287, allocations: 127 kB / 0.6476 GB, free: 118.9 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001163/0.8288, allocations: 54.47 kB / 0.6476 GB, free: 118.8 MB / 426.7 MB Notification: Performance of sort global known variables: time 0.001401/0.8302, allocations: 1.185 MB / 0.6488 GB, free: 117.7 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.004184/0.8344, allocations: 1.105 MB / 0.6498 GB, free: 116.6 MB / 426.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.0004297/0.8349, allocations: 331.9 kB / 0.6502 GB, free: 116.4 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.007106/0.842, allocations: 5.792 MB / 0.6558 GB, free: 111.1 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 4.108e-06/0.842, allocations: 0 / 0.6558 GB, free: 111.1 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002943/0.845, allocations: 2.146 MB / 0.6579 GB, free: 109.2 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001908/0.8469, allocations: 398.3 kB / 0.6583 GB, free: 108.9 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008867/0.8558, allocations: 5.229 MB / 0.6634 GB, free: 104.4 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001884/0.8577, allocations: 2.436 MB / 0.6658 GB, free: 102.4 MB / 426.7 MB Notification: Performance of SimCode: time 5.51e-07/0.8577, allocations: 0 / 0.6658 GB, free: 102.4 MB / 426.7 MB (rm -f Modelica_3.2.3_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMEE_LoadDump.pipe ; mkfifo Modelica_3.2.3_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMEE_LoadDump.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMEE_LoadDump.pipe >> ../files/Modelica_3.2.3_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMEE_LoadDump.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMEE_LoadDump_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Electrical_Machines_Examples_SynchronousInductionMachines_SMEE_LoadDump_fmu --startTime=0 --stopTime=10 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Electrical_Machines_Examples_SynchronousInductionMachines_SMEE_LoadDump.fmu > Modelica_3.2.3_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMEE_LoadDump.pipe 2>&1)