Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.2_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_CurrentSource.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo) Using package Modelica with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo) Using package Complex with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+maint.om/package.mo) Running command: translateModel(Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_CurrentSource,tolerance=1e-06,outputFormat="empty",numberOfIntervals=40000,variableFilter="",fileNamePrefix="Modelica_3.2.2_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_CurrentSource") translateModel(Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_CurrentSource,tolerance=1e-06,outputFormat="empty",numberOfIntervals=40000,variableFilter="",fileNamePrefix="Modelica_3.2.2_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_CurrentSource") [: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.2+maint.om/package.mo): time 0.001517/0.001517, allocations: 196.1 kB / 8.138 MB, free: 2.195 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo): time 1.082/1.082, allocations: 194.2 MB / 202.8 MB, free: 8.672 MB / 170.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo): time 0.001723/0.001723, allocations: 122 kB / 247.7 MB, free: 6.359 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 6.021e-06/6.061e-06, allocations: 0 / 297.6 MB, free: 7.984 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.06899/0.06901, allocations: 44.49 MB / 342.1 MB, free: 11.38 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2146/0.2836, allocations: 104.3 MB / 446.3 MB, free: 7.25 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001867/0.2838, allocations: 81.67 kB / 446.4 MB, free: 7.211 MB / 330.7 MB Notification: Performance of FrontEnd: time 0.1493/0.4332, allocations: 51.89 MB / 498.3 MB, free: 10.49 MB / 378.7 MB Notification: Performance of Transformations before backend: time 0.0002531/0.4335, allocations: 71.94 kB / 498.4 MB, free: 10.42 MB / 378.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 657 * Number of variables: 657 Notification: Performance of Generate backend data structure: time 0.00632/0.4398, allocations: 2.554 MB / 0.4892 GB, free: 7.809 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.736e-05/0.4399, allocations: 8.031 kB / 0.4892 GB, free: 7.801 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001503/0.4414, allocations: 352.1 kB / 0.4895 GB, free: 7.453 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004906/0.4463, allocations: 1.915 MB / 0.4914 GB, free: 5.48 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001625/0.4465, allocations: 80 kB / 0.4915 GB, free: 5.402 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0008348/0.4474, allocations: 147.9 kB / 0.4916 GB, free: 5.258 MB / 378.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.005316/0.4527, allocations: 2.388 MB / 0.494 GB, free: 2.863 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00609/0.4588, allocations: 2.853 MB / 0.4967 GB, free: 15.86 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.302e-05/0.4589, allocations: 11.84 kB / 0.4968 GB, free: 15.85 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003504/0.4593, allocations: 4 kB / 0.4968 GB, free: 15.85 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001135/0.4594, allocations: 116.9 kB / 0.4969 GB, free: 15.73 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01743/0.4768, allocations: 9.962 MB / 0.5066 GB, free: 5.449 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001438/0.4783, allocations: 0.8997 MB / 0.5075 GB, free: 4.539 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001206/0.4795, allocations: 0.7784 MB / 0.5082 GB, free: 3.762 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.000339/0.4799, allocations: 219.2 kB / 0.5084 GB, free: 3.512 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.692e-05/0.48, allocations: 47.55 kB / 0.5085 GB, free: 3.457 MB / 394.7 MB Notification: Performance of pre-optimization done (n=106): time 2.595e-06/0.48, allocations: 0 / 0.5085 GB, free: 3.457 MB / 394.7 MB Notification: Performance of matching and sorting (n=136): time 0.1427/0.6227, allocations: 5.184 MB / 0.5136 GB, free: 65.89 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.902e-05/0.6228, allocations: 68.28 kB / 0.5136 GB, free: 65.83 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002247/0.625, allocations: 1.298 MB / 0.5149 GB, free: 65.67 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001721/0.6252, allocations: 27.39 kB / 0.5149 GB, free: 65.64 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000412/0.6257, allocations: 1.019 MB / 0.5159 GB, free: 65.19 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003332/0.626, allocations: 449.8 kB / 0.5163 GB, free: 64.96 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.682e-05/0.6261, allocations: 0 / 0.5163 GB, free: 64.96 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 8.85e-05/0.6262, allocations: 380.6 kB / 0.5167 GB, free: 64.65 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009769/0.6272, allocations: 0.7715 MB / 0.5174 GB, free: 64.65 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001071/0.6282, allocations: 1.274 MB / 0.5187 GB, free: 64.05 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001278/0.6295, allocations: 1.009 MB / 0.5197 GB, free: 64.04 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.973e-06/0.6296, allocations: 5.781 kB / 0.5197 GB, free: 64.04 MB / 394.7 MB Notification: Performance of matching and sorting (n=216) (initialization): time 0.003268/0.6328, allocations: 2.381 MB / 0.522 GB, free: 63.86 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.356e-05/0.6328, allocations: 4.641 kB / 0.522 GB, free: 63.86 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.85e-05/0.6329, allocations: 18.94 kB / 0.522 GB, free: 63.86 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006071/0.6335, allocations: 238.8 kB / 0.5223 GB, free: 63.83 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001802/0.6353, allocations: 431.2 kB / 0.5227 GB, free: 63.82 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001847/0.6372, allocations: 2.851 MB / 0.5255 GB, free: 61.43 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001395/0.6386, allocations: 61.94 kB / 0.5255 GB, free: 61.43 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001397/0.6387, allocations: 76.5 kB / 0.5256 GB, free: 61.43 MB / 394.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 74 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (211): * Single equations (assignments): 207 * 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%) 1,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002482/0.639, allocations: 160.5 kB / 0.5257 GB, free: 61.32 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003348/0.6393, allocations: 176 kB / 0.5259 GB, free: 61.23 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002953/0.6423, allocations: 2.057 MB / 0.5279 GB, free: 61.1 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.457e-06/0.6423, allocations: 16.28 kB / 0.5279 GB, free: 61.1 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.803e-06/0.6423, allocations: 2.047 kB / 0.5279 GB, free: 61.1 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.223e-05/0.6423, allocations: 6.609 kB / 0.5279 GB, free: 61.1 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006983/0.6493, allocations: 4.525 MB / 0.5324 GB, free: 60.63 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.651e-06/0.6494, allocations: 6.062 kB / 0.5324 GB, free: 60.63 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001279/0.6506, allocations: 279.5 kB / 0.5326 GB, free: 60.63 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005337/0.6512, allocations: 199.5 kB / 0.5328 GB, free: 60.6 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.135e-05/0.6513, allocations: 6.156 kB / 0.5328 GB, free: 60.6 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001682/0.653, allocations: 2.812 MB / 0.5356 GB, free: 58.21 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.128e-06/0.653, allocations: 3.531 kB / 0.5356 GB, free: 58.21 MB / 394.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.003752/0.6568, allocations: 3.419 MB / 0.5389 GB, free: 57.64 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007583/0.6575, allocations: 432.5 kB / 0.5393 GB, free: 57.46 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003237/0.6579, allocations: 0 / 0.5393 GB, free: 57.46 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000961/0.6588, allocations: 55.55 kB / 0.5394 GB, free: 57.46 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001395/0.659, allocations: 74.66 kB / 0.5395 GB, free: 57.45 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001025/0.6591, allocations: 44.48 kB / 0.5395 GB, free: 57.45 MB / 394.7 MB Notification: Performance of sort global known variables: time 0.001192/0.6603, allocations: 0.9698 MB / 0.5404 GB, free: 57.34 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.001407/0.6617, allocations: 458.4 kB / 0.5409 GB, free: 57.34 MB / 394.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 10 * Number of states: 2 (smpm.inertiaRotor.w,quadraticSpeedDependentTorque.phi) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (132): * Single equations (assignments): 128 * 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%) 1,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0004884/0.6622, allocations: 379.4 kB / 0.5412 GB, free: 57.25 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.002783/0.665, allocations: 2.332 MB / 0.5435 GB, free: 56.83 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 3.587e-06/0.665, allocations: 2.312 kB / 0.5435 GB, free: 56.83 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.00144/0.6665, allocations: 1.34 MB / 0.5448 GB, free: 56.42 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001621/0.6681, allocations: 366.4 kB / 0.5452 GB, free: 56.41 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006482/0.6746, allocations: 3.93 MB / 0.549 GB, free: 55.54 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002082/0.6767, allocations: 2.215 MB / 0.5512 GB, free: 54.79 MB / 394.7 MB Notification: Performance of SimCode: time 3.4e-07/0.6767, allocations: 0 / 0.5512 GB, free: 54.79 MB / 394.7 MB Notification: Performance of Templates: time 0.04/0.7167, allocations: 23.54 MB / 0.5742 GB, free: 53.23 MB / 394.7 MB make -j1 -f Modelica_3.2.2_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_CurrentSource.makefile (rm -f Modelica_3.2.2_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_CurrentSource.pipe ; mkfifo Modelica_3.2.2_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_CurrentSource.pipe ; head -c 1048576 < Modelica_3.2.2_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_CurrentSource.pipe >> ../files/Modelica_3.2.2_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_CurrentSource.sim & ./Modelica_3.2.2_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_CurrentSource -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.2_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_CurrentSource.pipe 2>&1)