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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) 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 3.2.3+maint.om/package.mo", uses=false) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+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") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001594/0.001595, allocations: 97.03 kB / 17.06 MB, free: 6.121 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001826/0.001826, allocations: 194.9 kB / 17.99 MB, free: 5.199 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.598/1.598, allocations: 205.1 MB / 223.9 MB, free: 12.27 MB / 190.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001222/0.001222, allocations: 47.92 kB / 327.9 MB, free: 3.277 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1054/0.1066, allocations: 46.62 MB / 374.5 MB, free: 4.543 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_CurrentSource): time 0.266/0.3727, allocations: 10.87 MB / 385.4 MB, free: 7.852 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.01177/0.3845, allocations: 3.676 MB / 389.1 MB, free: 5.293 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004275/0.3889, allocations: 56.16 kB / 389.1 MB, free: 5.277 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004472/0.3934, allocations: 0.818 MB / 389.9 MB, free: 4.832 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.007106/0.4006, allocations: 0.8534 MB / 390.8 MB, free: 4.289 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003009/0.4036, allocations: 466.8 kB / 391.2 MB, free: 4.004 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.007449/0.4111, allocations: 2.953 MB / 394.2 MB, free: 2.52 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004871/0.416, allocations: 2.688 MB / 396.9 MB, free: 1.379 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003551/0.4196, allocations: 1.358 MB / 398.2 MB, free: 0.7188 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004484/0.4241, allocations: 1.753 MB / 400 MB, free: 15.9 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0008984/0.4251, allocations: 372.7 kB / 400.4 MB, free: 15.9 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001665/0.4267, allocations: 479.5 kB / 400.8 MB, free: 15.86 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001714/0.4285, allocations: 1.076 MB / 401.9 MB, free: 15.28 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003074/0.4316, allocations: 1.675 MB / 403.6 MB, free: 14.18 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.007909/0.4395, allocations: 4.876 MB / 408.5 MB, free: 10.92 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.233e-06/0.4396, allocations: 1.125 kB / 408.5 MB, free: 10.92 MB / 334.1 MB Notification: Performance of FrontEnd: time 2.084e-06/0.4396, allocations: 0 / 408.5 MB, free: 10.92 MB / 334.1 MB Notification: Performance of Transformations before backend: time 0.0001261/0.4397, allocations: 0 / 408.5 MB, free: 10.92 MB / 334.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 660 * Number of variables: 660 Notification: Performance of Generate backend data structure: time 0.01028/0.45, allocations: 3.397 MB / 411.8 MB, free: 8.582 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.166e-05/0.4501, allocations: 11.8 kB / 411.9 MB, free: 8.578 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00101/0.4511, allocations: 334.5 kB / 412.2 MB, free: 8.414 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003086/0.4542, allocations: 1.703 MB / 413.9 MB, free: 7.199 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001451/0.4543, allocations: 195.1 kB / 414.1 MB, free: 7.105 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003883/0.4547, allocations: 255.4 kB / 414.3 MB, free: 7.016 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005873/0.4606, allocations: 3.276 MB / 417.6 MB, free: 4.406 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.168e-05/0.4607, allocations: 15.83 kB / 417.6 MB, free: 4.391 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000244/0.461, allocations: 108 kB / 417.7 MB, free: 4.285 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001356/0.4611, allocations: 124.9 kB / 417.8 MB, free: 4.16 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004677/0.4658, allocations: 2.744 MB / 420.6 MB, free: 1.402 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01789/0.4837, allocations: 10.39 MB / 431 MB, free: 6.652 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001955/0.4857, allocations: 1.351 MB / 432.3 MB, free: 5.238 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001175/0.4869, allocations: 0.7423 MB / 433.1 MB, free: 4.488 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002955/0.4872, allocations: 207.2 kB / 433.3 MB, free: 4.25 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.866e-05/0.4873, allocations: 47.56 kB / 433.3 MB, free: 4.191 MB / 350.1 MB Notification: Performance of pre-optimization done (n=97): time 2.946e-06/0.4873, allocations: 0 / 433.3 MB, free: 4.191 MB / 350.1 MB Notification: Performance of matching and sorting (n=122): time 0.01603/0.5033, allocations: 7.038 MB / 440.4 MB, free: 13.04 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.867e-05/0.5034, allocations: 60.41 kB / 440.4 MB, free: 12.97 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002898/0.5063, allocations: 1.789 MB / 442.2 MB, free: 11.18 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002023/0.5066, allocations: 45.7 kB / 442.3 MB, free: 11.13 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001051/0.5076, allocations: 1.279 MB / 443.5 MB, free: 9.836 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004811/0.5081, allocations: 425.9 kB / 443.9 MB, free: 9.414 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004996/0.5086, allocations: 307.2 kB / 444.2 MB, free: 9.105 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 9.604e-05/0.5087, allocations: 305.1 kB / 444.5 MB, free: 8.805 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001202/0.5099, allocations: 0.7769 MB / 445.3 MB, free: 8.027 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001477/0.5114, allocations: 1.293 MB / 446.6 MB, free: 6.504 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002727/0.5142, allocations: 2.215 MB / 448.8 MB, free: 4.055 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.475e-06/0.5142, allocations: 4 kB / 448.8 MB, free: 4.051 MB / 366.1 MB Notification: Performance of matching and sorting (n=203) (initialization): time 0.004238/0.5184, allocations: 2.471 MB / 451.3 MB, free: 1.559 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.311e-05/0.5185, allocations: 12 kB / 451.3 MB, free: 1.547 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.233e-05/0.5185, allocations: 24 kB / 451.3 MB, free: 1.523 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006174/0.5191, allocations: 239.3 kB / 451.6 MB, free: 1.277 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0014/0.5205, allocations: 419.3 kB / 452 MB, free: 0.8672 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002576/0.5231, allocations: 3.238 MB / 455.2 MB, free: 13.34 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001727/0.5249, allocations: 127.8 kB / 455.3 MB, free: 13.21 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001583/0.525, allocations: 75.94 kB / 455.4 MB, free: 13.14 MB / 382.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 75 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (198): * Single equations (assignments): 194 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 2 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 2 systems {(2,100.0%), (2,100.0%)} * Non-linear Jacobian (size): 0 systems * Without analytic Jacobian (size): 0 systems Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(2,1,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.001539/0.5266, allocations: 0.8174 MB / 456.2 MB, free: 12.31 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003897/0.527, allocations: 181.8 kB / 456.4 MB, free: 12.13 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003302/0.5303, allocations: 2.042 MB / 458.5 MB, free: 10.07 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.21e-05/0.5303, allocations: 12 kB / 458.5 MB, free: 10.06 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.865e-06/0.5303, allocations: 4 kB / 458.5 MB, free: 10.05 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.165e-05/0.5303, allocations: 7.969 kB / 458.5 MB, free: 10.05 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00821/0.5386, allocations: 4.741 MB / 463.2 MB, free: 5.199 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.424e-06/0.5386, allocations: 0 / 463.2 MB, free: 5.199 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001064/0.5397, allocations: 259.6 kB / 463.5 MB, free: 4.945 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000522/0.5402, allocations: 211.5 kB / 463.7 MB, free: 4.727 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.324e-05/0.5403, allocations: 27.98 kB / 463.7 MB, free: 4.699 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002574/0.5429, allocations: 3.214 MB / 466.9 MB, free: 1.199 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.22e-06/0.5429, allocations: 12.03 kB / 466.9 MB, free: 1.188 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004238/0.5471, allocations: 3.124 MB / 470.1 MB, free: 14.02 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009743/0.5481, allocations: 422.7 kB / 470.5 MB, free: 13.58 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002113/0.5483, allocations: 27.94 kB / 470.5 MB, free: 13.55 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009225/0.5493, allocations: 99.92 kB / 470.6 MB, free: 13.46 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001693/0.5495, allocations: 76.89 kB / 470.7 MB, free: 13.38 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.05e-05/0.5495, allocations: 32 kB / 470.7 MB, free: 13.35 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.001757/0.5513, allocations: 1.224 MB / 471.9 MB, free: 12.14 MB / 398.1 MB Notification: Performance of sort global known variables: time 2.61e-07/0.5513, allocations: 0 / 471.9 MB, free: 12.14 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.001574/0.5529, allocations: 484 kB / 472.4 MB, free: 11.66 MB / 398.1 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 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (120): * Single equations (assignments): 116 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 2 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 2 systems {(2,100.0%), (2,100.0%)} * Non-linear Jacobian (size): 0 systems * Without analytic Jacobian (size): 0 systems Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(2,1,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0004029/0.5533, allocations: 190.9 kB / 472.6 MB, free: 11.46 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.003651/0.557, allocations: 2.343 MB / 474.9 MB, free: 9.055 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 6.452e-06/0.557, allocations: 8.188 kB / 474.9 MB, free: 9.047 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001817/0.5588, allocations: 1.335 MB / 476.3 MB, free: 7.641 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002295/0.5611, allocations: 0.4962 MB / 476.8 MB, free: 7.148 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009161/0.5703, allocations: 4.846 MB / 481.6 MB, free: 2.238 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002077/0.5724, allocations: 2.01 MB / 483.6 MB, free: 196 kB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.001904/0.5743, allocations: 0.496 MB / 484.1 MB, free: 15.69 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004318/0.5748, allocations: 139.3 kB / 484.3 MB, free: 15.55 MB / 414.1 MB Notification: Performance of SimCode: time 1.693e-06/0.5748, allocations: 4 kB / 484.3 MB, free: 15.55 MB / 414.1 MB Notification: Performance of Templates: time 0.05504/0.6298, allocations: 26.21 MB / 0.4985 GB, free: 5.293 MB / 430.1 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)