Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_Initialize.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.InductionMachines.IMC_Initialize,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Machines_Examples_InductionMachines_IMC_Initialize",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.InductionMachines.IMC_Initialize,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Machines_Examples_InductionMachines_IMC_Initialize",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.001017/0.001017, allocations: 183.8 kB / 8.136 MB, free: 2.223 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.11/1.11, allocations: 221.4 MB / 229.9 MB, free: 3.047 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009122/0.0009122, allocations: 96.45 kB / 280.8 MB, free: 1.273 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.09192/0.09287, allocations: 55.83 MB / 336.6 MB, free: 9.422 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1823/0.2752, allocations: 50.39 MB / 387 MB, free: 37.98 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.09898/0.3742, allocations: 102.3 MB / 489.3 MB, free: 420 kB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002329/0.3745, allocations: 92.97 kB / 489.4 MB, free: 328 kB / 362.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 466 * Number of variables: 466 Notification: Performance of Generate backend data structure: time 0.2337/0.6082, allocations: 42.51 MB / 0.5195 GB, free: 89.77 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.146e-05/0.6083, allocations: 8 kB / 0.5195 GB, free: 89.76 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009162/0.6092, allocations: 273 kB / 0.5197 GB, free: 89.49 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002543/0.6118, allocations: 1.419 MB / 0.5211 GB, free: 88.04 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.903e-05/0.6118, allocations: 56 kB / 0.5212 GB, free: 87.98 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000342/0.6122, allocations: 111.9 kB / 0.5213 GB, free: 87.88 MB / 378.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.002777/0.615, allocations: 1.78 MB / 0.523 GB, free: 86.09 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003019/0.618, allocations: 2.092 MB / 0.5251 GB, free: 83.92 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.786e-05/0.6181, allocations: 15.83 kB / 0.5251 GB, free: 83.9 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001718/0.6183, allocations: 0 / 0.5251 GB, free: 83.9 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.153e-05/0.6183, allocations: 87.44 kB / 0.5251 GB, free: 83.82 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01067/0.629, allocations: 7.174 MB / 0.5322 GB, free: 76.51 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00114/0.6302, allocations: 0.7235 MB / 0.5329 GB, free: 75.77 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009636/0.6312, allocations: 0.7515 MB / 0.5336 GB, free: 75.02 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.000255/0.6314, allocations: 133.8 kB / 0.5337 GB, free: 74.88 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.942e-05/0.6315, allocations: 39.34 kB / 0.5338 GB, free: 74.83 MB / 378.7 MB Notification: Performance of pre-optimization done (n=87): time 3.045e-06/0.6315, allocations: 0 / 0.5338 GB, free: 74.83 MB / 378.7 MB Notification: Performance of matching and sorting (n=103): time 0.006881/0.6384, allocations: 3.961 MB / 0.5376 GB, free: 70.81 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.055e-05/0.6384, allocations: 64.41 kB / 0.5377 GB, free: 70.74 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001411/0.6398, allocations: 1.001 MB / 0.5387 GB, free: 69.73 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 9.529e-05/0.64, allocations: 25.7 kB / 0.5387 GB, free: 69.7 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.00025/0.6402, allocations: 0.7202 MB / 0.5394 GB, free: 68.96 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002094/0.6404, allocations: 346.8 kB / 0.5397 GB, free: 68.62 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.533e-05/0.6405, allocations: 0 / 0.5397 GB, free: 68.62 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 6.743e-05/0.6406, allocations: 357.9 kB / 0.5401 GB, free: 68.26 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007252/0.6413, allocations: 0.5961 MB / 0.5406 GB, free: 67.67 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007708/0.6421, allocations: 0.8844 MB / 0.5415 GB, free: 66.66 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008695/0.643, allocations: 0.7485 MB / 0.5422 GB, free: 65.92 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.211e-06/0.643, allocations: 4 kB / 0.5422 GB, free: 65.91 MB / 378.7 MB Notification: Performance of matching and sorting (n=152) (initialization): time 0.00352/0.6465, allocations: 2.279 MB / 0.5445 GB, free: 63.63 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.654e-05/0.6465, allocations: 4 kB / 0.5445 GB, free: 63.63 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.843e-05/0.6466, allocations: 8 kB / 0.5445 GB, free: 63.62 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001832/0.6484, allocations: 0.7667 MB / 0.5452 GB, free: 62.85 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009022/0.6493, allocations: 231.7 kB / 0.5455 GB, free: 62.62 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008481/0.6578, allocations: 7.787 MB / 0.5531 GB, free: 54.6 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00114/0.659, allocations: 48.09 kB / 0.5531 GB, free: 54.55 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001895/0.6592, allocations: 52 kB / 0.5532 GB, free: 54.5 MB / 378.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 39 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (111): * Single equations (assignments): 109 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 1,(6,77.8%) 35} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002406/0.6595, allocations: 130.3 kB / 0.5533 GB, free: 54.37 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003046/0.6598, allocations: 134.3 kB / 0.5534 GB, free: 54.24 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002691/0.6625, allocations: 1.808 MB / 0.5552 GB, free: 52.41 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.207e-06/0.6625, allocations: 8 kB / 0.5552 GB, free: 52.4 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.099e-05/0.6625, allocations: 4 kB / 0.5552 GB, free: 52.4 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.13e-05/0.6625, allocations: 3.984 kB / 0.5552 GB, free: 52.39 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006349/0.6689, allocations: 3.673 MB / 0.5588 GB, free: 48.67 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.526e-06/0.6689, allocations: 7.938 kB / 0.5588 GB, free: 48.66 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009044/0.6698, allocations: 192 kB / 0.559 GB, free: 48.48 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00117/0.671, allocations: 462.9 kB / 0.5594 GB, free: 48.01 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.932e-05/0.6711, allocations: 11.98 kB / 0.5594 GB, free: 48 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004373/0.6755, allocations: 5.73 MB / 0.565 GB, free: 41.92 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.801e-06/0.6756, allocations: 4 kB / 0.565 GB, free: 41.92 MB / 378.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.003382/0.6789, allocations: 2.804 MB / 0.5678 GB, free: 39.04 MB / 378.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.003973/0.683, allocations: 4.104 MB / 0.5718 GB, free: 34.85 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006766/0.6837, allocations: 343.3 kB / 0.5721 GB, free: 34.5 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002432/0.6839, allocations: 15.98 kB / 0.5721 GB, free: 34.48 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007798/0.6847, allocations: 47.95 kB / 0.5722 GB, free: 34.43 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001401/0.6848, allocations: 60.67 kB / 0.5722 GB, free: 34.38 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.46e-05/0.6849, allocations: 32 kB / 0.5722 GB, free: 34.34 MB / 378.7 MB Notification: Performance of sort global known variables: time 0.0009038/0.6858, allocations: 0.7597 MB / 0.573 GB, free: 33.58 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.001966/0.6878, allocations: 419.9 kB / 0.5734 GB, free: 33.17 MB / 378.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * Number of states: 7 (aimc.inertiaRotor.phi,aimc.i_0_s,aimc.idq_sr[1],aimc.idq_sr[2],aimc.idq_rr[1],aimc.idq_rr[2],loadInertia.w) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (87): * Single equations (assignments): 83 * 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.0004447/0.6883, allocations: 275.8 kB / 0.5736 GB, free: 32.91 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.002484/0.6908, allocations: 1.835 MB / 0.5754 GB, free: 31.05 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 5.581e-06/0.6908, allocations: 9.859 kB / 0.5754 GB, free: 31.04 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001574/0.6924, allocations: 1.24 MB / 0.5767 GB, free: 29.75 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001498/0.6939, allocations: 261.2 kB / 0.5769 GB, free: 29.5 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005342/0.6992, allocations: 3.278 MB / 0.5801 GB, free: 26.15 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001341/0.7006, allocations: 1.828 MB / 0.5819 GB, free: 24.29 MB / 378.7 MB Notification: Performance of SimCode: time 5.61e-07/0.7006, allocations: 0 / 0.5819 GB, free: 24.29 MB / 378.7 MB (rm -f Modelica_4.0.0_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_Initialize.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_Initialize.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_Initialize.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_Initialize.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_Initialize_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Electrical_Machines_Examples_InductionMachines_IMC_Initialize_fmu --startTime=0 --stopTime=1.5 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Electrical_Machines_Examples_InductionMachines_IMC_Initialize.fmu > Modelica_4.0.0_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_Initialize.pipe 2>&1)