Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_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.SynchronousMachines.SMPM_Inverter,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Machines_Examples_SynchronousMachines_SMPM_Inverter",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Inverter,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Machines_Examples_SynchronousMachines_SMPM_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.001012/0.001012, allocations: 200.4 kB / 8.54 MB, free: 1.832 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.126/1.126, allocations: 225.5 MB / 234.4 MB, free: 3.438 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008545/0.0008544, allocations: 88.5 kB / 286.3 MB, free: 5.246 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.08601/0.08689, allocations: 56.92 MB / 343.2 MB, free: 8.648 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07573/0.1626, allocations: 51.47 MB / 394.7 MB, free: 5.125 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2132/0.3759, allocations: 109.1 MB / 0.492 GB, free: 0.5312 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001919/0.3761, allocations: 88.58 kB / 0.4921 GB, free: 500 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: 581 * Number of variables: 581 Notification: Performance of Generate backend data structure: time 0.1256/0.5017, allocations: 51.79 MB / 0.5426 GB, free: 1.633 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.378e-05/0.5018, allocations: 11.98 kB / 0.5427 GB, free: 1.621 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008325/0.5026, allocations: 328.4 kB / 0.543 GB, free: 1.297 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002821/0.5054, allocations: 1.711 MB / 0.5446 GB, free: 15.53 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.917e-05/0.5055, allocations: 72 kB / 0.5447 GB, free: 15.46 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000271/0.5058, allocations: 135.9 kB / 0.5448 GB, free: 15.32 MB / 426.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.003198/0.509, allocations: 2.114 MB / 0.5469 GB, free: 13.2 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003635/0.5126, allocations: 2.52 MB / 0.5494 GB, free: 10.54 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.66e-05/0.5127, allocations: 19.83 kB / 0.5494 GB, free: 10.52 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001711/0.5129, allocations: 7.984 kB / 0.5494 GB, free: 10.52 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.856e-05/0.513, allocations: 108.3 kB / 0.5495 GB, free: 10.41 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0115/0.5245, allocations: 8.735 MB / 0.558 GB, free: 1.418 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001274/0.5258, allocations: 0.8532 MB / 0.5589 GB, free: 0.5508 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00116/0.5269, allocations: 0.8618 MB / 0.5597 GB, free: 15.69 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002839/0.5272, allocations: 219.1 kB / 0.5599 GB, free: 15.44 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.583e-05/0.5273, allocations: 43.56 kB / 0.5599 GB, free: 15.39 MB / 442.7 MB Notification: Performance of pre-optimization done (n=110): time 2.565e-06/0.5273, allocations: 8 kB / 0.56 GB, free: 15.38 MB / 442.7 MB Notification: Performance of matching and sorting (n=134): time 0.008655/0.536, allocations: 4.983 MB / 0.5648 GB, free: 10.36 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.966e-05/0.536, allocations: 72.72 kB / 0.5649 GB, free: 10.27 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001366/0.5374, allocations: 1.113 MB / 0.566 GB, free: 9.152 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 7.781e-05/0.5375, allocations: 25.7 kB / 0.566 GB, free: 9.121 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004207/0.5379, allocations: 0.8842 MB / 0.5669 GB, free: 8.223 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002827/0.5382, allocations: 457.3 kB / 0.5673 GB, free: 7.77 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.114e-05/0.5383, allocations: 0 / 0.5673 GB, free: 7.77 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.0001201/0.5384, allocations: 369.9 kB / 0.5677 GB, free: 7.402 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009644/0.5393, allocations: 0.7146 MB / 0.5684 GB, free: 6.688 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00115/0.5405, allocations: 1.129 MB / 0.5695 GB, free: 5.387 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001215/0.5417, allocations: 0.9158 MB / 0.5703 GB, free: 4.473 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.117e-06/0.5417, allocations: 4 kB / 0.5704 GB, free: 4.469 MB / 442.7 MB Notification: Performance of matching and sorting (n=202) (initialization): time 0.003862/0.5456, allocations: 2.482 MB / 0.5728 GB, free: 1.965 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.119e-05/0.5456, allocations: 8 kB / 0.5728 GB, free: 1.957 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.553e-05/0.5457, allocations: 12 kB / 0.5728 GB, free: 1.945 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001433/0.5471, allocations: 0.5895 MB / 0.5734 GB, free: 1.348 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001374/0.5485, allocations: 355.5 kB / 0.5737 GB, free: 1 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.1411/0.6896, allocations: 6.087 MB / 0.5797 GB, free: 68.62 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001331/0.6909, allocations: 73.64 kB / 0.5797 GB, free: 68.62 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000128/0.6911, allocations: 72 kB / 0.5798 GB, free: 68.62 MB / 442.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 57 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (172): * Single equations (assignments): 169 * 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: 2 * 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: 2 {(6,72.2%) 23,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002241/0.6913, allocations: 143 kB / 0.5799 GB, free: 68.51 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000219/0.6915, allocations: 161.8 kB / 0.5801 GB, free: 68.51 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00342/0.6949, allocations: 2.267 MB / 0.5823 GB, free: 68.41 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.987e-06/0.695, allocations: 16.25 kB / 0.5823 GB, free: 68.41 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.084e-06/0.695, allocations: 6.594 kB / 0.5823 GB, free: 68.41 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.264e-05/0.695, allocations: 11.11 kB / 0.5823 GB, free: 68.41 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006175/0.7012, allocations: 4.561 MB / 0.5868 GB, free: 67.96 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.32e-06/0.7012, allocations: 7.062 kB / 0.5868 GB, free: 67.96 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009672/0.7022, allocations: 218 kB / 0.587 GB, free: 67.96 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001536/0.7037, allocations: 0.6396 MB / 0.5876 GB, free: 67.93 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.571e-05/0.7038, allocations: 13.38 kB / 0.5876 GB, free: 67.93 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006924/0.7108, allocations: 7.706 MB / 0.5952 GB, free: 64.31 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.737e-06/0.7108, allocations: 10.12 kB / 0.5952 GB, free: 64.31 MB / 442.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.004046/0.7148, allocations: 3.56 MB / 0.5986 GB, free: 63.66 MB / 442.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.00504/0.7199, allocations: 5.031 MB / 0.6036 GB, free: 62.63 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005752/0.7205, allocations: 402.3 kB / 0.6039 GB, free: 62.45 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002484/0.7207, allocations: 10.59 kB / 0.604 GB, free: 62.45 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009042/0.7216, allocations: 70.73 kB / 0.604 GB, free: 62.45 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001483/0.7218, allocations: 75.62 kB / 0.6041 GB, free: 62.45 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.736e-05/0.7219, allocations: 47.36 kB / 0.6041 GB, free: 62.45 MB / 442.7 MB Notification: Performance of sort global known variables: time 0.0009241/0.7228, allocations: 0.8414 MB / 0.605 GB, free: 62.34 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.001953/0.7248, allocations: 493.8 kB / 0.6054 GB, free: 62.34 MB / 442.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 13 * Number of states: 7 (smpm.inertiaRotor.w,smpm.idq_sr[1],smpm.idq_sr[2],smpm.idq_rr[2],smpm.idq_dr[1],vfController.x,loadInertia.phi) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (105): * Single equations (assignments): 102 * 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: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 3 {(6,72.2%) 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.0004157/0.7252, allocations: 336.8 kB / 0.6058 GB, free: 62.25 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.002708/0.7279, allocations: 2.23 MB / 0.6079 GB, free: 61.92 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 2.865e-06/0.7279, allocations: 3.906 kB / 0.6079 GB, free: 61.92 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001886/0.7298, allocations: 1.382 MB / 0.6093 GB, free: 61.61 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001406/0.7313, allocations: 343.6 kB / 0.6096 GB, free: 61.6 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005415/0.7367, allocations: 3.887 MB / 0.6134 GB, free: 60.68 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001512/0.7382, allocations: 2.04 MB / 0.6154 GB, free: 59.92 MB / 442.7 MB Notification: Performance of SimCode: time 4.61e-07/0.7382, allocations: 0 / 0.6154 GB, free: 59.92 MB / 442.7 MB (rm -f Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Inverter.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Inverter.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Inverter.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Inverter.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Inverter_res.mat --tempDir=temp_Modelica_trunk_Modelica_Electrical_Machines_Examples_SynchronousMachines_SMPM_Inverter_fmu --startTime=0 --stopTime=1.5 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Electrical_Machines_Examples_SynchronousMachines_SMPM_Inverter.fmu > Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Inverter.pipe 2>&1)