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/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.2.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.2.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.01066/0.01066, allocations: 103.7 kB / 15.74 MB, free: 6.039 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.001917/0.001917, allocations: 201.7 kB / 16.68 MB, free: 5.965 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.658/1.658, allocations: 205.1 MB / 222.5 MB, free: 4.535 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.001363/0.001363, allocations: 50.31 kB / 326.6 MB, free: 14.4 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1376/0.139, allocations: 46.63 MB / 373.2 MB, free: 1.309 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_VoltageSource): time 0.01477/0.1538, allocations: 11.61 MB / 384.8 MB, free: 5.641 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.01051/0.1644, allocations: 3.949 MB / 388.7 MB, free: 1.676 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003392/0.1678, allocations: 63.69 kB / 388.8 MB, free: 1.613 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003224/0.1712, allocations: 0.8693 MB / 389.7 MB, free: 0.7383 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00558/0.1768, allocations: 0.9552 MB / 390.6 MB, free: 15.77 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002318/0.1791, allocations: 0.5188 MB / 391.1 MB, free: 15.25 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.007173/0.1863, allocations: 3.29 MB / 394.4 MB, free: 11.96 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.005619/0.192, allocations: 2.985 MB / 397.4 MB, free: 8.906 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003249/0.1953, allocations: 1.534 MB / 399 MB, free: 7.367 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003555/0.1988, allocations: 1.969 MB / 400.9 MB, free: 5.391 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0008689/0.1997, allocations: 424 kB / 401.3 MB, free: 4.977 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001572/0.2013, allocations: 0.5193 MB / 401.9 MB, free: 4.457 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001422/0.2028, allocations: 1.219 MB / 403.1 MB, free: 3.234 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0024/0.2052, allocations: 1.886 MB / 405 MB, free: 1.34 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00773/0.2129, allocations: 5.531 MB / 410.5 MB, free: 11.79 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.566e-06/0.2129, allocations: 0 / 410.5 MB, free: 11.79 MB / 350.1 MB Notification: Performance of FrontEnd: time 3.246e-06/0.213, allocations: 0 / 410.5 MB, free: 11.79 MB / 350.1 MB Notification: Performance of Transformations before backend: time 0.0001516/0.2131, allocations: 4 kB / 410.5 MB, free: 11.79 MB / 350.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.0102/0.2233, allocations: 3.896 MB / 414.4 MB, free: 7.816 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.834e-05/0.2234, allocations: 19.89 kB / 414.4 MB, free: 7.797 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001448/0.2249, allocations: 414.4 kB / 414.8 MB, free: 7.391 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003964/0.2289, allocations: 1.96 MB / 416.8 MB, free: 5.379 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001755/0.2291, allocations: 210 kB / 417 MB, free: 5.172 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004316/0.2295, allocations: 287.9 kB / 417.3 MB, free: 4.891 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.007115/0.2366, allocations: 3.705 MB / 421 MB, free: 1.113 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.525e-05/0.2367, allocations: 3.953 kB / 421 MB, free: 1.109 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002688/0.237, allocations: 116 kB / 421.1 MB, free: 0.9961 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001718/0.2372, allocations: 141.5 kB / 421.2 MB, free: 0.8555 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005494/0.2427, allocations: 3.113 MB / 424.3 MB, free: 13.73 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02217/0.2649, allocations: 11.53 MB / 435.9 MB, free: 1.867 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002793/0.2677, allocations: 1.903 MB / 437.8 MB, free: 15.84 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001834/0.2696, allocations: 1.072 MB / 438.8 MB, free: 14.77 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0004107/0.27, allocations: 211.7 kB / 439 MB, free: 14.52 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.344e-05/0.2701, allocations: 47.5 kB / 439.1 MB, free: 14.46 MB / 382.1 MB Notification: Performance of pre-optimization done (n=125): time 5.771e-06/0.2701, allocations: 3.984 kB / 439.1 MB, free: 14.46 MB / 382.1 MB Notification: Performance of matching and sorting (n=140): time 0.0156/0.2857, allocations: 6.575 MB / 445.7 MB, free: 7.758 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.632e-05/0.2858, allocations: 64.72 kB / 445.7 MB, free: 7.684 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003765/0.2896, allocations: 1.994 MB / 447.7 MB, free: 5.648 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001817/0.2898, allocations: 49.7 kB / 447.8 MB, free: 5.594 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001317/0.2911, allocations: 1.444 MB / 449.2 MB, free: 4.137 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005919/0.2917, allocations: 0.5074 MB / 449.7 MB, free: 3.625 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006344/0.2924, allocations: 331.4 kB / 450.1 MB, free: 3.293 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.000165/0.2926, allocations: 305.1 kB / 450.4 MB, free: 2.992 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001334/0.2939, allocations: 0.8159 MB / 451.2 MB, free: 2.176 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001762/0.2957, allocations: 1.379 MB / 452.5 MB, free: 0.5469 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.4102/0.7059, allocations: 2.361 MB / 454.9 MB, free: 67.11 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.527e-05/0.706, allocations: 5.875 kB / 454.9 MB, free: 67.11 MB / 382.1 MB Notification: Performance of matching and sorting (n=228) (initialization): time 0.007434/0.7135, allocations: 2.862 MB / 457.8 MB, free: 66.4 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.289e-05/0.7136, allocations: 17.33 kB / 457.8 MB, free: 66.4 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.682e-05/0.7137, allocations: 21.53 kB / 457.8 MB, free: 66.39 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00148/0.7152, allocations: 392 kB / 458.2 MB, free: 66.28 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002133/0.7173, allocations: 426.6 kB / 458.6 MB, free: 66.24 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009166/0.7265, allocations: 6.7 MB / 465.3 MB, free: 60.92 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002863/0.7294, allocations: 125.7 kB / 465.4 MB, free: 60.89 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003133/0.7298, allocations: 78.22 kB / 465.5 MB, free: 60.88 MB / 382.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.003441/0.7332, allocations: 0.9165 MB / 466.4 MB, free: 60.39 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001206/0.7344, allocations: 217.6 kB / 466.6 MB, free: 60.39 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006439/0.7409, allocations: 2.428 MB / 469.1 MB, free: 59.37 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.847e-05/0.741, allocations: 13.75 kB / 469.1 MB, free: 59.37 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.678e-05/0.741, allocations: 4.125 kB / 469.1 MB, free: 59.37 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.287e-05/0.741, allocations: 11.44 kB / 469.1 MB, free: 59.36 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01457/0.7556, allocations: 5.505 MB / 474.6 MB, free: 57.06 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.674e-05/0.7557, allocations: 3.938 kB / 474.6 MB, free: 57.06 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001107/0.7568, allocations: 263.3 kB / 474.9 MB, free: 57.03 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00113/0.7579, allocations: 407 kB / 475.3 MB, free: 56.92 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001264/0.7581, allocations: 35.44 kB / 475.3 MB, free: 56.9 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008525/0.7666, allocations: 8.26 MB / 483.6 MB, free: 49.69 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.506e-06/0.7667, allocations: 11.62 kB / 483.6 MB, free: 49.68 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006616/0.7733, allocations: 3.622 MB / 487.2 MB, free: 47.61 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001775/0.7752, allocations: 467.6 kB / 487.6 MB, free: 47.13 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0009592/0.7762, allocations: 35.98 kB / 487.7 MB, free: 47.09 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001304/0.7775, allocations: 91.89 kB / 487.8 MB, free: 47 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002518/0.7778, allocations: 109 kB / 487.9 MB, free: 46.9 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.127e-05/0.7779, allocations: 43.98 kB / 487.9 MB, free: 46.86 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.00219/0.7801, allocations: 1.361 MB / 489.3 MB, free: 45.47 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.7801, allocations: 4 kB / 489.3 MB, free: 45.47 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.003332/0.7834, allocations: 0.5332 MB / 489.8 MB, free: 44.94 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.0006323/0.7841, allocations: 200.9 kB / 490 MB, free: 44.74 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.00397/0.788, allocations: 2.503 MB / 492.5 MB, free: 42.18 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 1.029e-05/0.7881, allocations: 0 / 492.5 MB, free: 42.18 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001986/0.7901, allocations: 1.489 MB / 494 MB, free: 40.65 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0034/0.7935, allocations: 0.5397 MB / 494.5 MB, free: 40.12 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01104/0.8046, allocations: 5.75 MB / 0.4886 GB, free: 34.33 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00163/0.8062, allocations: 2.209 MB / 0.4907 GB, free: 32.09 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.00185/0.8081, allocations: 0.494 MB / 0.4912 GB, free: 31.59 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004461/0.8086, allocations: 151.4 kB / 0.4914 GB, free: 31.44 MB / 382.1 MB Notification: Performance of SimCode: time 2.665e-06/0.8086, allocations: 0 / 0.4914 GB, free: 31.44 MB / 382.1 MB Notification: Performance of Templates: time 0.06678/0.8754, allocations: 30.13 MB / 0.5208 GB, free: 1.285 MB / 382.1 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)