Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.1_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_VoltageSource.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_VoltageSource,tolerance=1e-06,outputFormat="empty",numberOfIntervals=40000,variableFilter="",fileNamePrefix="Modelica_3.1_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_VoltageSource") translateModel(Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_VoltageSource,tolerance=1e-06,outputFormat="empty",numberOfIntervals=40000,variableFilter="",fileNamePrefix="Modelica_3.1_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_VoltageSource") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00124/0.00124, allocations: 111.3 kB / 15.23 MB, free: 0.6406 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.001478/0.001477, allocations: 196.7 kB / 16.14 MB, free: 6.715 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.7/1.7, allocations: 205.1 MB / 222 MB, free: 5.004 MB / 174.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.001349/0.001349, allocations: 47.94 kB / 278 MB, free: 13.01 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3503/0.3517, allocations: 46.64 MB / 324.7 MB, free: 1.828 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_VoltageSource): time 0.01631/0.368, allocations: 11.5 MB / 336.2 MB, free: 8.641 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.01022/0.3783, allocations: 3.911 MB / 340.1 MB, free: 4.715 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003638/0.382, allocations: 63.62 kB / 340.2 MB, free: 4.652 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003428/0.3855, allocations: 0.7534 MB / 340.9 MB, free: 3.895 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005723/0.3913, allocations: 0.851 MB / 341.8 MB, free: 3.039 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001916/0.3932, allocations: 475.5 kB / 342.2 MB, free: 2.574 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.005667/0.3989, allocations: 3.605 MB / 345.8 MB, free: 14.95 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003743/0.4027, allocations: 2.529 MB / 348.4 MB, free: 12.37 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002451/0.4052, allocations: 1.331 MB / 349.7 MB, free: 11.04 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002986/0.4082, allocations: 1.895 MB / 351.6 MB, free: 9.133 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0006124/0.4088, allocations: 256 kB / 351.8 MB, free: 8.883 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001079/0.4099, allocations: 383.8 kB / 352.2 MB, free: 8.508 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001033/0.4109, allocations: 1.04 MB / 353.3 MB, free: 7.465 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002137/0.4131, allocations: 1.706 MB / 355 MB, free: 5.75 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004954/0.4181, allocations: 5.308 MB / 360.3 MB, free: 436 kB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.554e-06/0.4181, allocations: 4 kB / 360.3 MB, free: 432 kB / 286.1 MB Notification: Performance of FrontEnd: time 1.953e-06/0.4181, allocations: 0 / 360.3 MB, free: 432 kB / 286.1 MB Notification: Performance of Transformations before backend: time 0.000161/0.4183, allocations: 0 / 360.3 MB, free: 432 kB / 286.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 745 * Number of variables: 745 Notification: Performance of Generate backend data structure: time 0.01075/0.429, allocations: 3.809 MB / 364.1 MB, free: 12.54 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.892e-05/0.4291, allocations: 16.03 kB / 364.1 MB, free: 12.53 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001225/0.4303, allocations: 388.6 kB / 364.5 MB, free: 12.14 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003441/0.4338, allocations: 1.931 MB / 366.4 MB, free: 10.16 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001925/0.434, allocations: 222 kB / 366.6 MB, free: 9.941 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004121/0.4344, allocations: 283.9 kB / 366.9 MB, free: 9.664 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006847/0.4413, allocations: 3.697 MB / 370.6 MB, free: 5.895 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.605e-05/0.4414, allocations: 7.906 kB / 370.6 MB, free: 5.887 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003144/0.4417, allocations: 116 kB / 370.7 MB, free: 5.773 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001763/0.4419, allocations: 145.5 kB / 370.9 MB, free: 5.629 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005713/0.4476, allocations: 3.106 MB / 374 MB, free: 2.512 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02367/0.4713, allocations: 11.63 MB / 385.6 MB, free: 6.535 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002541/0.4739, allocations: 1.905 MB / 387.5 MB, free: 4.52 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001789/0.4758, allocations: 1.092 MB / 388.6 MB, free: 3.426 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003172/0.4761, allocations: 207.2 kB / 388.8 MB, free: 3.184 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.154e-05/0.4762, allocations: 51.97 kB / 388.9 MB, free: 3.125 MB / 318.1 MB Notification: Performance of pre-optimization done (n=125): time 5.901e-06/0.4762, allocations: 3.938 kB / 388.9 MB, free: 3.121 MB / 318.1 MB Notification: Performance of matching and sorting (n=140): time 0.01417/0.4904, allocations: 6.515 MB / 395.4 MB, free: 12.47 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.726e-05/0.4905, allocations: 72.72 kB / 395.4 MB, free: 12.38 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003694/0.4942, allocations: 1.986 MB / 397.4 MB, free: 10.36 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001438/0.4943, allocations: 45.7 kB / 397.5 MB, free: 10.3 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001178/0.4955, allocations: 1.416 MB / 398.9 MB, free: 8.871 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004983/0.496, allocations: 0.4892 MB / 399.4 MB, free: 8.375 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005514/0.4966, allocations: 315.3 kB / 399.7 MB, free: 8.062 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.000154/0.4968, allocations: 309.1 kB / 400 MB, free: 7.758 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001532/0.4983, allocations: 0.8237 MB / 400.8 MB, free: 6.934 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001846/0.5002, allocations: 1.371 MB / 402.2 MB, free: 5.32 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003261/0.5034, allocations: 2.368 MB / 404.6 MB, free: 2.707 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.049e-05/0.5035, allocations: 4 kB / 404.6 MB, free: 2.703 MB / 334.1 MB Notification: Performance of matching and sorting (n=228) (initialization): time 0.005082/0.5085, allocations: 2.854 MB / 407.4 MB, free: 15.81 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.448e-05/0.5086, allocations: 12 kB / 407.4 MB, free: 15.8 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.864e-05/0.5086, allocations: 20 kB / 407.4 MB, free: 15.78 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001004/0.5096, allocations: 391.5 kB / 407.8 MB, free: 15.38 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001496/0.5111, allocations: 431.3 kB / 408.2 MB, free: 14.96 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007324/0.5185, allocations: 6.139 MB / 414.4 MB, free: 8.418 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002451/0.521, allocations: 127.8 kB / 414.5 MB, free: 8.293 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001808/0.5212, allocations: 83.97 kB / 414.6 MB, free: 8.211 MB / 350.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 80 * 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 (210): * Single equations (assignments): 206 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 1 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 1 system {(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): 3 systems {(2,9,100.0%), (1,6,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.002373/0.5236, allocations: 0.9115 MB / 415.5 MB, free: 7.289 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000716/0.5243, allocations: 209.4 kB / 415.7 MB, free: 7.082 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004593/0.5289, allocations: 2.421 MB / 418.1 MB, free: 4.613 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.722e-05/0.5289, allocations: 12.11 kB / 418.1 MB, free: 4.602 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.282e-05/0.5289, allocations: 7.938 kB / 418.1 MB, free: 4.594 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.598e-05/0.529, allocations: 7.984 kB / 418.2 MB, free: 4.586 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01324/0.5422, allocations: 5.524 MB / 423.7 MB, free: 14.91 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.006e-05/0.5423, allocations: 4 kB / 423.7 MB, free: 14.91 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001137/0.5435, allocations: 260.2 kB / 423.9 MB, free: 14.65 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00115/0.5446, allocations: 406.9 kB / 424.3 MB, free: 14.24 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001608/0.5448, allocations: 43.92 kB / 424.4 MB, free: 14.2 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008572/0.5534, allocations: 7.56 MB / 431.9 MB, free: 6.105 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.288e-05/0.5535, allocations: 12.11 kB / 431.9 MB, free: 6.094 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007836/0.5613, allocations: 3.609 MB / 435.6 MB, free: 2.379 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001856/0.5633, allocations: 466.4 kB / 436 MB, free: 1.902 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0009433/0.5643, allocations: 44.05 kB / 436.1 MB, free: 1.859 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001752/0.566, allocations: 95.89 kB / 436.2 MB, free: 1.766 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003503/0.5664, allocations: 101 kB / 436.2 MB, free: 1.668 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001458/0.5666, allocations: 51.97 kB / 436.3 MB, free: 1.617 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.003872/0.5704, allocations: 1.354 MB / 437.7 MB, free: 248 kB / 366.1 MB Notification: Performance of sort global known variables: time 1.71e-07/0.5705, allocations: 4 kB / 437.7 MB, free: 244 kB / 366.1 MB Notification: Performance of remove unused functions: time 0.004356/0.5748, allocations: 0.5391 MB / 438.2 MB, free: 15.7 MB / 382.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 18 * 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 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (129): * Single equations (assignments): 125 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 4 systems {(2,9,100.0%), (1,1,100.0%), (1,6,100.0%), (2,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.0009603/0.5758, allocations: 202.8 kB / 438.4 MB, free: 15.49 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.005587/0.5814, allocations: 2.488 MB / 440.9 MB, free: 12.94 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 1.477e-05/0.5815, allocations: 4 kB / 440.9 MB, free: 12.94 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002551/0.584, allocations: 1.479 MB / 442.4 MB, free: 11.41 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005645/0.5897, allocations: 0.4986 MB / 442.9 MB, free: 10.91 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0174/0.6072, allocations: 6.995 MB / 449.9 MB, free: 3.832 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004237/0.6115, allocations: 2.201 MB / 452.1 MB, free: 1.598 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.002891/0.6144, allocations: 0.4901 MB / 452.6 MB, free: 1.105 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009945/0.6154, allocations: 155.4 kB / 452.7 MB, free: 0.9531 MB / 382.1 MB Notification: Performance of SimCode: time 1.733e-06/0.6155, allocations: 0 / 452.7 MB, free: 0.9531 MB / 382.1 MB Notification: Performance of Templates: time 0.3302/0.9456, allocations: 28.44 MB / 481.1 MB, free: 91.75 MB / 382.1 MB make -j1 -f Modelica_3.1_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_VoltageSource.makefile (rm -f Modelica_3.1_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_VoltageSource.pipe ; mkfifo Modelica_3.1_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_VoltageSource.pipe ; head -c 1048576 < Modelica_3.1_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_VoltageSource.pipe >> ../files/Modelica_3.1_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_VoltageSource.sim & ./Modelica_3.1_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_VoltageSource -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.1_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_VoltageSource.pipe 2>&1)