Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_Steinmetz.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.InductionMachines.IMC_Steinmetz,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Machines_Examples_InductionMachines_IMC_Steinmetz",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.InductionMachines.IMC_Steinmetz,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Machines_Examples_InductionMachines_IMC_Steinmetz",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.001006/0.001006, allocations: 206.7 kB / 8.538 MB, free: 1.723 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.106/1.106, allocations: 225.5 MB / 234.4 MB, free: 3.383 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008481/0.0008481, allocations: 92.02 kB / 286.3 MB, free: 5.117 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.08769/0.08856, allocations: 56.91 MB / 343.2 MB, free: 8.504 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0787/0.1673, allocations: 51.48 MB / 394.7 MB, free: 4.977 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2284/0.3957, allocations: 104.6 MB / 499.3 MB, free: 4.75 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002069/0.396, allocations: 83.77 kB / 499.4 MB, free: 4.707 MB / 362.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 491 * Number of variables: 491 Notification: Performance of Generate backend data structure: time 0.1096/0.5056, allocations: 43.01 MB / 0.5297 GB, free: 14.71 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.431e-05/0.5056, allocations: 8 kB / 0.5297 GB, free: 14.7 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001139/0.5068, allocations: 289 kB / 0.53 GB, free: 14.41 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002552/0.5094, allocations: 1.395 MB / 0.5313 GB, free: 12.96 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.823e-05/0.5094, allocations: 60 kB / 0.5314 GB, free: 12.9 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002391/0.5097, allocations: 123.9 kB / 0.5315 GB, free: 12.78 MB / 410.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.002865/0.5125, allocations: 1.737 MB / 0.5332 GB, free: 11.04 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003176/0.5157, allocations: 2.101 MB / 0.5352 GB, free: 8.848 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.365e-05/0.5158, allocations: 7.984 kB / 0.5352 GB, free: 8.84 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001758/0.516, allocations: 11.84 kB / 0.5353 GB, free: 8.828 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.507e-05/0.5161, allocations: 83.69 kB / 0.5353 GB, free: 8.746 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01097/0.527, allocations: 7.503 MB / 0.5427 GB, free: 1.023 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009929/0.5281, allocations: 0.7178 MB / 0.5434 GB, free: 312 kB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001207/0.5293, allocations: 0.8151 MB / 0.5442 GB, free: 15.48 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002785/0.5296, allocations: 130.1 kB / 0.5443 GB, free: 15.34 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.024e-05/0.5296, allocations: 51.41 kB / 0.5443 GB, free: 15.28 MB / 426.7 MB Notification: Performance of pre-optimization done (n=99): time 2.615e-06/0.5296, allocations: 0 / 0.5443 GB, free: 15.28 MB / 426.7 MB Notification: Performance of matching and sorting (n=115): time 0.007188/0.5368, allocations: 3.996 MB / 0.5482 GB, free: 11.23 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.245e-05/0.5369, allocations: 64.41 kB / 0.5483 GB, free: 11.16 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001198/0.5381, allocations: 0.9181 MB / 0.5492 GB, free: 10.23 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 7.287e-05/0.5381, allocations: 25.7 kB / 0.5492 GB, free: 10.2 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003706/0.5385, allocations: 0.747 MB / 0.55 GB, free: 9.434 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002614/0.5388, allocations: 382.3 kB / 0.5503 GB, free: 9.055 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.073e-05/0.5389, allocations: 0 / 0.5503 GB, free: 9.055 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0001227/0.539, allocations: 365.9 kB / 0.5507 GB, free: 8.691 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008328/0.5398, allocations: 0.6131 MB / 0.5513 GB, free: 8.078 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001042/0.5409, allocations: 0.9562 MB / 0.5522 GB, free: 6.977 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00102/0.5419, allocations: 0.7712 MB / 0.553 GB, free: 6.203 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.868e-06/0.5419, allocations: 4 kB / 0.553 GB, free: 6.199 MB / 426.7 MB Notification: Performance of matching and sorting (n=174) (initialization): time 0.003093/0.545, allocations: 2.039 MB / 0.5549 GB, free: 4.141 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.29e-05/0.5451, allocations: 4 kB / 0.5549 GB, free: 4.137 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.511e-05/0.5451, allocations: 12 kB / 0.555 GB, free: 4.125 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009332/0.546, allocations: 411.4 kB / 0.5554 GB, free: 3.711 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001326/0.5473, allocations: 331.5 kB / 0.5557 GB, free: 3.387 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00414/0.5515, allocations: 4.272 MB / 0.5598 GB, free: 14.88 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009637/0.5525, allocations: 44.02 kB / 0.5599 GB, free: 14.84 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001175/0.5526, allocations: 56 kB / 0.5599 GB, free: 14.79 MB / 442.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 47 * Number of states: 0 () * Number of discrete variables: 2 (booleanStep.y,greaterThreshold.y) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (158): * Single equations (assignments): 154 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 2 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 2 {(2,100.0%),(2,100.0%)} * Non-linear Jacobian: 0 * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(2,100.0%) 12,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002104/0.5528, allocations: 140.5 kB / 0.5601 GB, free: 14.64 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002177/0.5531, allocations: 138.3 kB / 0.5602 GB, free: 14.5 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003023/0.5561, allocations: 1.82 MB / 0.562 GB, free: 12.66 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.112e-05/0.5561, allocations: 15.94 kB / 0.562 GB, free: 12.64 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.136e-06/0.5561, allocations: 4 kB / 0.562 GB, free: 12.64 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.076e-05/0.5561, allocations: 3.984 kB / 0.562 GB, free: 12.64 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006025/0.5622, allocations: 3.749 MB / 0.5657 GB, free: 8.812 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.919e-06/0.5622, allocations: 0 / 0.5657 GB, free: 8.812 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001087/0.5633, allocations: 219.7 kB / 0.5659 GB, free: 8.598 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001281/0.5646, allocations: 462.9 kB / 0.5663 GB, free: 8.133 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.979e-05/0.5647, allocations: 15.98 kB / 0.5663 GB, free: 8.117 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005305/0.57, allocations: 5.727 MB / 0.5719 GB, free: 2.039 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.479e-06/0.57, allocations: 3.938 kB / 0.5719 GB, free: 2.035 MB / 442.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.1172/0.6872, allocations: 2.862 MB / 0.5747 GB, free: 145.2 MB / 442.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.004087/0.6913, allocations: 4.142 MB / 0.5788 GB, free: 144.4 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005525/0.6919, allocations: 340.8 kB / 0.5791 GB, free: 144.3 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002156/0.6921, allocations: 12.45 kB / 0.5791 GB, free: 144.3 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007297/0.6928, allocations: 46.73 kB / 0.5791 GB, free: 144.3 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001445/0.693, allocations: 65.72 kB / 0.5792 GB, free: 144.3 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.697e-05/0.6931, allocations: 32.28 kB / 0.5792 GB, free: 144.3 MB / 442.7 MB Notification: Performance of sort global known variables: time 0.0008603/0.6939, allocations: 0.6957 MB / 0.5799 GB, free: 144.2 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.001755/0.6957, allocations: 409.2 kB / 0.5803 GB, free: 144.2 MB / 442.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 10 * Number of states: 9 (aimc.inertiaRotor.w,aimc.i_0_s,aimc.idq_sr[1],aimc.idq_sr[2],aimc.idq_rr[1],aimc.idq_rr[2],quadraticLoadTorque.phi,cRun.v,cStart.v) * Number of discrete variables: 2 (booleanStep.y,greaterThreshold.y) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (99): * Single equations (assignments): 95 * 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: 3 * 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%) 12,(1,100.0%) 1,(2,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0004026/0.6961, allocations: 283.7 kB / 0.5806 GB, free: 144.2 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.002243/0.6984, allocations: 1.956 MB / 0.5825 GB, free: 143.7 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 2.685e-06/0.6984, allocations: 4.438 kB / 0.5825 GB, free: 143.7 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001447/0.6998, allocations: 1.242 MB / 0.5837 GB, free: 143.3 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001493/0.7013, allocations: 295.5 kB / 0.584 GB, free: 143.3 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004916/0.7063, allocations: 3.384 MB / 0.5873 GB, free: 142.6 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001278/0.7076, allocations: 1.797 MB / 0.589 GB, free: 141.9 MB / 442.7 MB Notification: Performance of SimCode: time 5.51e-07/0.7076, allocations: 3.719 kB / 0.5891 GB, free: 141.9 MB / 442.7 MB (rm -f Modelica_trunk_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_Steinmetz.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_Steinmetz.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_Steinmetz.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_Steinmetz.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_Steinmetz_res.mat --tempDir=temp_Modelica_trunk_Modelica_Electrical_Machines_Examples_InductionMachines_IMC_Steinmetz_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Electrical_Machines_Examples_InductionMachines_IMC_Steinmetz.fmu > Modelica_trunk_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_Steinmetz.pipe 2>&1)