Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_Inverter.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_Inverter,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Machines_Examples_InductionMachines_IMC_Inverter",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.InductionMachines.IMC_Inverter,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Machines_Examples_InductionMachines_IMC_Inverter",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.001056/0.001056, allocations: 203.9 kB / 8.541 MB, free: 1.828 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.149/1.149, allocations: 225.5 MB / 234.4 MB, free: 3.449 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009416/0.0009416, allocations: 92.94 kB / 286.3 MB, free: 5.215 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.09673/0.09771, allocations: 56.91 MB / 343.2 MB, free: 8.656 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08871/0.1864, allocations: 51.47 MB / 394.7 MB, free: 5.125 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2513/0.4378, allocations: 102.5 MB / 497.3 MB, free: 6.836 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002246/0.4381, allocations: 83.52 kB / 497.3 MB, free: 6.797 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: 468 * Number of variables: 468 Notification: Performance of Generate backend data structure: time 0.1088/0.5469, allocations: 41.74 MB / 0.5264 GB, free: 2.234 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.87e-05/0.5469, allocations: 8 kB / 0.5265 GB, free: 2.227 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001158/0.5481, allocations: 261.2 kB / 0.5267 GB, free: 1.969 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003127/0.5512, allocations: 1.352 MB / 0.528 GB, free: 0.5742 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.42e-05/0.5513, allocations: 63.91 kB / 0.5281 GB, free: 0.5117 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003449/0.5517, allocations: 108 kB / 0.5282 GB, free: 416 kB / 394.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.00314/0.5548, allocations: 1.717 MB / 0.5299 GB, free: 14.69 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00348/0.5583, allocations: 2.056 MB / 0.5319 GB, free: 12.55 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.56e-05/0.5584, allocations: 3.938 kB / 0.5319 GB, free: 12.55 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001534/0.5586, allocations: 4 kB / 0.5319 GB, free: 12.54 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.922e-05/0.5587, allocations: 87.5 kB / 0.532 GB, free: 12.46 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01112/0.5698, allocations: 6.841 MB / 0.5386 GB, free: 5.445 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001013/0.5709, allocations: 0.6945 MB / 0.5393 GB, free: 4.75 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0011/0.572, allocations: 0.7365 MB / 0.54 GB, free: 4.016 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002997/0.5723, allocations: 125.8 kB / 0.5402 GB, free: 3.875 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.484e-05/0.5723, allocations: 43.34 kB / 0.5402 GB, free: 3.824 MB / 410.7 MB Notification: Performance of pre-optimization done (n=90): time 3.496e-06/0.5723, allocations: 0 / 0.5402 GB, free: 3.824 MB / 410.7 MB Notification: Performance of matching and sorting (n=114): time 0.008791/0.5811, allocations: 4.614 MB / 0.5447 GB, free: 15.14 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.241e-05/0.5812, allocations: 64.41 kB / 0.5448 GB, free: 15.07 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001191/0.5824, allocations: 0.8593 MB / 0.5456 GB, free: 14.2 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 7.033e-05/0.5825, allocations: 25.7 kB / 0.5456 GB, free: 14.16 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004258/0.5829, allocations: 0.7043 MB / 0.5463 GB, free: 13.44 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002805/0.5832, allocations: 378.3 kB / 0.5467 GB, free: 13.07 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.071e-05/0.5833, allocations: 0 / 0.5467 GB, free: 13.07 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.000121/0.5834, allocations: 361.9 kB / 0.547 GB, free: 12.71 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008463/0.5842, allocations: 0.6351 MB / 0.5476 GB, free: 12.07 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009948/0.5852, allocations: 0.9204 MB / 0.5485 GB, free: 11.03 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001045/0.5863, allocations: 0.7797 MB / 0.5493 GB, free: 10.25 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.889e-06/0.5863, allocations: 7.938 kB / 0.5493 GB, free: 10.24 MB / 426.7 MB Notification: Performance of matching and sorting (n=164) (initialization): time 0.003641/0.59, allocations: 2.22 MB / 0.5515 GB, free: 8 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.561e-05/0.59, allocations: 4 kB / 0.5515 GB, free: 7.996 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.957e-05/0.59, allocations: 8 kB / 0.5515 GB, free: 7.988 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001643/0.5917, allocations: 0.6428 MB / 0.5521 GB, free: 7.336 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001097/0.5928, allocations: 279.5 kB / 0.5524 GB, free: 7.062 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006652/0.5994, allocations: 5.755 MB / 0.558 GB, free: 1.07 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009828/0.6004, allocations: 55.84 kB / 0.5581 GB, free: 1.016 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001146/0.6006, allocations: 48 kB / 0.5581 GB, free: 0.9688 MB / 426.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 40 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (134): * Single equations (assignments): 130 * 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 {(5,76.0%) 23,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002162/0.6008, allocations: 132.6 kB / 0.5582 GB, free: 0.832 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002314/0.601, allocations: 138.5 kB / 0.5584 GB, free: 0.6953 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003679/0.6047, allocations: 2.089 MB / 0.5604 GB, free: 14.59 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.282e-05/0.6047, allocations: 16 kB / 0.5604 GB, free: 14.57 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.55e-05/0.6048, allocations: 8 kB / 0.5604 GB, free: 14.56 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.3e-05/0.6048, allocations: 7.969 kB / 0.5604 GB, free: 14.55 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007839/0.6126, allocations: 4.079 MB / 0.5644 GB, free: 10.38 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.713e-06/0.6126, allocations: 4 kB / 0.5644 GB, free: 10.38 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007975/0.6135, allocations: 163.8 kB / 0.5646 GB, free: 10.21 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001986/0.6155, allocations: 0.6942 MB / 0.5653 GB, free: 9.508 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.873e-05/0.6156, allocations: 15.98 kB / 0.5653 GB, free: 9.492 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008632/0.6242, allocations: 7.383 MB / 0.5725 GB, free: 1.762 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.598e-06/0.6242, allocations: 4 kB / 0.5725 GB, free: 1.758 MB / 442.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.1298/0.754, allocations: 3.217 MB / 0.5756 GB, free: 148.1 MB / 442.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.004878/0.759, allocations: 4.57 MB / 0.5801 GB, free: 147.3 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006268/0.7596, allocations: 343.8 kB / 0.5804 GB, free: 147.2 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002504/0.7599, allocations: 14.84 kB / 0.5804 GB, free: 147.2 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008187/0.7607, allocations: 55.53 kB / 0.5805 GB, free: 147.2 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001607/0.7609, allocations: 72.56 kB / 0.5806 GB, free: 147.2 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001083/0.761, allocations: 39.7 kB / 0.5806 GB, free: 147.2 MB / 442.7 MB Notification: Performance of sort global known variables: time 0.001149/0.7621, allocations: 0.6434 MB / 0.5812 GB, free: 147.1 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.002267/0.7644, allocations: 417.1 kB / 0.5816 GB, free: 147.1 MB / 442.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 13 * Number of states: 7 (aimc.inertiaRotor.phi,aimc.idq_sr[1],aimc.idq_sr[2],aimc.idq_rr[1],aimc.idq_rr[2],vfController.x,loadInertia.w) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (85): * Single equations (assignments): 81 * 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 {(5,84.0%) 23,(1,100.0%) 1,(2,100.0%) 4} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0004573/0.7649, allocations: 283.6 kB / 0.5819 GB, free: 147 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.002642/0.7675, allocations: 2.079 MB / 0.5839 GB, free: 146.6 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 3.367e-06/0.7675, allocations: 0 / 0.5839 GB, free: 146.6 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001853/0.7694, allocations: 1.387 MB / 0.5853 GB, free: 146.2 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001244/0.7707, allocations: 256.2 kB / 0.5855 GB, free: 146.2 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005353/0.776, allocations: 3.273 MB / 0.5887 GB, free: 145.4 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001396/0.7774, allocations: 1.778 MB / 0.5904 GB, free: 144.7 MB / 442.7 MB Notification: Performance of SimCode: time 3.71e-07/0.7775, allocations: 0 / 0.5904 GB, free: 144.7 MB / 442.7 MB (rm -f Modelica_trunk_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_Inverter.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_Inverter.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_Inverter.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_Inverter.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_Inverter_res.mat --tempDir=temp_Modelica_trunk_Modelica_Electrical_Machines_Examples_InductionMachines_IMC_Inverter_fmu --startTime=0 --stopTime=1.5 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Electrical_Machines_Examples_InductionMachines_IMC_Inverter.fmu > Modelica_trunk_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_Inverter.pipe 2>&1)