Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.1_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_VoltageSource.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.1+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.1+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.1+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.1+maint.om/package.mo) Using package Modelica with version 3.2.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.1+maint.om/package.mo) Using package Complex with version 3.2.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.1+maint.om/package.mo) Running command: translateModel(Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_VoltageSource,tolerance=1e-06,outputFormat="empty",numberOfIntervals=4000,variableFilter="",fileNamePrefix="Modelica_3.2.1_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_VoltageSource") translateModel(Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_VoltageSource,tolerance=1e-06,outputFormat="empty",numberOfIntervals=4000,variableFilter="",fileNamePrefix="Modelica_3.2.1_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_VoltageSource") [: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.1+maint.om/package.mo): time 0.002478/0.002478, allocations: 174.4 kB / 7.45 MB, free: 2.504 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.1+maint.om/package.mo): time 1.196/1.196, allocations: 170.6 MB / 178.4 MB, free: 15.38 MB / 154.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.1+maint.om/package.mo): time 0.001715/0.001715, allocations: 115.8 kB / 217.7 MB, free: 8.148 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 7.284e-06/7.324e-06, allocations: 0 / 261.8 MB, free: 26.63 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09119/0.09121, allocations: 38.75 MB / 300.5 MB, free: 3.887 MB / 218.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3434/0.4347, allocations: 102.3 MB / 402.8 MB, free: 14.73 MB / 298.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002832/0.4351, allocations: 87.06 kB / 402.8 MB, free: 14.69 MB / 298.7 MB Notification: Performance of FrontEnd: time 0.1653/0.6004, allocations: 55.31 MB / 458.2 MB, free: 12.95 MB / 346.7 MB Notification: Performance of Transformations before backend: time 0.0005714/0.601, allocations: 87.81 kB / 458.2 MB, free: 12.87 MB / 346.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 744 * Number of variables: 744 Notification: Performance of Generate backend data structure: time 0.01123/0.6123, allocations: 2.81 MB / 461.1 MB, free: 9.996 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.775e-05/0.6123, allocations: 8.031 kB / 461.1 MB, free: 9.988 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003051/0.6154, allocations: 403.6 kB / 461.5 MB, free: 9.59 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00667/0.6221, allocations: 1.937 MB / 463.4 MB, free: 7.598 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002097/0.6224, allocations: 92 kB / 463.5 MB, free: 7.508 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001685/0.6241, allocations: 171.9 kB / 463.6 MB, free: 7.34 MB / 346.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.009154/0.6332, allocations: 2.725 MB / 466.4 MB, free: 4.609 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01177/0.6451, allocations: 3.227 MB / 469.6 MB, free: 1.238 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001698/0.6453, allocations: 4 kB / 469.6 MB, free: 1.234 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000866/0.6462, allocations: 7.906 kB / 469.6 MB, free: 1.227 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001782/0.6464, allocations: 137.5 kB / 469.7 MB, free: 1.09 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2038/0.8502, allocations: 10.97 MB / 480.7 MB, free: 112.9 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001534/0.8518, allocations: 1.091 MB / 481.8 MB, free: 112.9 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001244/0.853, allocations: 0.9879 MB / 482.8 MB, free: 112.9 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002912/0.8533, allocations: 138 kB / 482.9 MB, free: 112.8 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.318e-05/0.8534, allocations: 51.45 kB / 483 MB, free: 112.8 MB / 346.7 MB Notification: Performance of pre-optimization done (n=132): time 3.707e-06/0.8534, allocations: 7.547 kB / 483 MB, free: 112.8 MB / 346.7 MB Notification: Performance of matching and sorting (n=153): time 0.01002/0.8634, allocations: 5.604 MB / 488.6 MB, free: 111.9 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.123e-05/0.8635, allocations: 71.03 kB / 488.7 MB, free: 111.9 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002268/0.8658, allocations: 1.301 MB / 490 MB, free: 111.7 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 9.852e-05/0.8659, allocations: 28.45 kB / 490 MB, free: 111.7 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007416/0.8666, allocations: 1.103 MB / 491.1 MB, free: 111.2 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000439/0.8671, allocations: 0.5014 MB / 491.6 MB, free: 110.9 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.343e-05/0.8672, allocations: 0 / 491.6 MB, free: 110.9 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0002207/0.8674, allocations: 384.6 kB / 492 MB, free: 110.6 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001116/0.8685, allocations: 0.854 MB / 492.8 MB, free: 110.6 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001391/0.8699, allocations: 1.381 MB / 494.2 MB, free: 110 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001503/0.8714, allocations: 1.107 MB / 495.3 MB, free: 109.9 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.127e-06/0.8715, allocations: 3.938 kB / 495.3 MB, free: 109.9 MB / 346.7 MB Notification: Performance of matching and sorting (n=239) (initialization): time 0.004348/0.8758, allocations: 2.842 MB / 498.2 MB, free: 109.7 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.599e-05/0.8759, allocations: 10.03 kB / 498.2 MB, free: 109.7 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.762e-05/0.8759, allocations: 17.69 kB / 498.2 MB, free: 109.7 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001352/0.8773, allocations: 0.5433 MB / 498.7 MB, free: 109.7 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001561/0.8788, allocations: 424.5 kB / 499.1 MB, free: 109.7 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007508/0.8864, allocations: 5.703 MB / 0.493 GB, free: 107.2 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001679/0.888, allocations: 67.19 kB / 0.4931 GB, free: 107.2 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001695/0.8882, allocations: 83.94 kB / 0.4932 GB, free: 107.2 MB / 346.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 77 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (213): * Single equations (assignments): 210 * 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 {(5,76.0%) 20,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0004106/0.8887, allocations: 171.5 kB / 0.4933 GB, free: 107.1 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003866/0.889, allocations: 193.3 kB / 0.4935 GB, free: 107 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00434/0.8934, allocations: 2.542 MB / 0.496 GB, free: 106.2 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.221e-05/0.8934, allocations: 13.75 kB / 0.496 GB, free: 106.2 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.338e-05/0.8934, allocations: 10.16 kB / 0.496 GB, free: 106.2 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.637e-05/0.8935, allocations: 7.594 kB / 0.496 GB, free: 106.2 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008449/0.9019, allocations: 5.215 MB / 0.5011 GB, free: 104.2 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.047e-06/0.9019, allocations: 3.938 kB / 0.5011 GB, free: 104.2 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001119/0.9031, allocations: 246.7 kB / 0.5013 GB, free: 104.2 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001518/0.9046, allocations: 0.5791 MB / 0.5019 GB, free: 104 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001039/0.9047, allocations: 15.56 kB / 0.5019 GB, free: 104 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007212/0.9119, allocations: 7.328 MB / 0.5091 GB, free: 98.96 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.648e-06/0.912, allocations: 3.844 kB / 0.5091 GB, free: 98.96 MB / 346.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.006366/0.9183, allocations: 4.057 MB / 0.513 GB, free: 97.14 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001343/0.9197, allocations: 464.7 kB / 0.5135 GB, free: 96.86 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002835/0.92, allocations: 10.33 kB / 0.5135 GB, free: 96.86 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001039/0.921, allocations: 53.03 kB / 0.5136 GB, free: 96.86 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002157/0.9213, allocations: 80.16 kB / 0.5136 GB, free: 96.84 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001446/0.9214, allocations: 45.34 kB / 0.5137 GB, free: 96.83 MB / 346.7 MB Notification: Performance of sort global known variables: time 0.001977/0.9234, allocations: 0.9814 MB / 0.5146 GB, free: 96.4 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.002507/0.9259, allocations: 0.5013 MB / 0.5151 GB, free: 95.9 MB / 346.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 12 * Number of states: 6 (smpm.inertiaRotor.w,smpm.idq_sr[1],smpm.idq_sr[2],quadraticSpeedDependentTorque.phi,voltageController.PI_d.x,voltageController.PI_q.x) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (125): * Single equations (assignments): 122 * 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 {(5,76.0%) 20,(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.0006738/0.9266, allocations: 366.6 kB / 0.5155 GB, free: 95.65 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.003663/0.9303, allocations: 2.485 MB / 0.5179 GB, free: 93.39 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 6.142e-06/0.9303, allocations: 2.688 kB / 0.5179 GB, free: 93.39 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001973/0.9323, allocations: 1.478 MB / 0.5193 GB, free: 92.04 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001882/0.9342, allocations: 376.5 kB / 0.5197 GB, free: 91.76 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008978/0.9432, allocations: 4.482 MB / 0.5241 GB, free: 87.77 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002291/0.9455, allocations: 2.372 MB / 0.5264 GB, free: 85.88 MB / 346.7 MB Notification: Performance of SimCode: time 1.172e-06/0.9455, allocations: 0 / 0.5264 GB, free: 85.88 MB / 346.7 MB Notification: Performance of Templates: time 0.05038/0.9959, allocations: 26.76 MB / 0.5525 GB, free: 67.04 MB / 346.7 MB make -j1 -f Modelica_3.2.1_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_VoltageSource.makefile (rm -f Modelica_3.2.1_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_VoltageSource.pipe ; mkfifo Modelica_3.2.1_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_VoltageSource.pipe ; head -c 1048576 < Modelica_3.2.1_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_VoltageSource.pipe >> ../files/Modelica_3.2.1_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_VoltageSource.sim & ./Modelica_3.2.1_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_VoltageSource -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.1_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_VoltageSource.pipe 2>&1)