Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.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.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_VoltageSource,tolerance=1e-06,outputFormat="empty",numberOfIntervals=40000,variableFilter="",fileNamePrefix="Modelica_3.2.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_VoltageSource") translateModel(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_VoltageSource,tolerance=1e-06,outputFormat="empty",numberOfIntervals=40000,variableFilter="",fileNamePrefix="Modelica_3.2.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_VoltageSource") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001006/0.001007, allocations: 84.38 kB / 15.06 MB, free: 1.09 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.001269/0.00127, allocations: 168.7 kB / 15.95 MB, free: 204 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.536/1.536, allocations: 205.4 MB / 222.1 MB, free: 5.637 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.0004376/0.0004376, allocations: 12 kB / 278.9 MB, free: 12.81 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2321/0.2326, allocations: 47.6 MB / 326.5 MB, free: 1.402 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_VoltageSource): time 0.01543/0.2481, allocations: 13.9 MB / 340.4 MB, free: 5.562 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.01045/0.2585, allocations: 5.023 MB / 345.4 MB, free: 0.5273 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002786/0.2614, allocations: 87.56 kB / 345.5 MB, free: 452 kB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003278/0.2647, allocations: 0.8466 MB / 346.3 MB, free: 15.59 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004189/0.2689, allocations: 1.088 MB / 347.4 MB, free: 14.5 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002179/0.2711, allocations: 0.6626 MB / 348.1 MB, free: 13.83 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.005312/0.2764, allocations: 3.822 MB / 351.9 MB, free: 9.988 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003922/0.2803, allocations: 2.528 MB / 354.4 MB, free: 7.418 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002467/0.2828, allocations: 1.299 MB / 355.7 MB, free: 6.113 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003008/0.2858, allocations: 1.735 MB / 357.5 MB, free: 4.371 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0004648/0.2863, allocations: 208 kB / 357.7 MB, free: 4.168 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001202/0.2875, allocations: 423.7 kB / 358.1 MB, free: 3.754 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0008533/0.2884, allocations: 0.8875 MB / 359 MB, free: 2.863 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001037/0.2894, allocations: 0.7614 MB / 359.7 MB, free: 2.094 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005466/0.2949, allocations: 5.571 MB / 365.3 MB, free: 12.51 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.871e-06/0.2949, allocations: 0 / 365.3 MB, free: 12.51 MB / 302.1 MB Notification: Performance of FrontEnd: time 3.737e-06/0.295, allocations: 0 / 365.3 MB, free: 12.51 MB / 302.1 MB Notification: Performance of Transformations before backend: time 0.0001764/0.2951, allocations: 0 / 365.3 MB, free: 12.51 MB / 302.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 911 * Number of variables: 911 Notification: Performance of Generate backend data structure: time 0.009422/0.3046, allocations: 3.956 MB / 369.3 MB, free: 8.48 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.626e-05/0.3046, allocations: 11.97 kB / 369.3 MB, free: 8.469 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003244/0.3079, allocations: 0.6823 MB / 370 MB, free: 7.781 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004297/0.3122, allocations: 2.26 MB / 372.2 MB, free: 5.469 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002417/0.3125, allocations: 270.9 kB / 372.5 MB, free: 5.203 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004978/0.313, allocations: 347.9 kB / 372.8 MB, free: 4.863 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.007957/0.3209, allocations: 4.433 MB / 377.3 MB, free: 384 kB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.908e-05/0.321, allocations: 4 kB / 377.3 MB, free: 380 kB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003037/0.3213, allocations: 140 kB / 377.4 MB, free: 240 kB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000165/0.3215, allocations: 170.7 kB / 377.6 MB, free: 68 kB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00662/0.3281, allocations: 3.708 MB / 381.3 MB, free: 12.35 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02353/0.3517, allocations: 14.56 MB / 395.8 MB, free: 13.37 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005673/0.3574, allocations: 5.353 MB / 401.2 MB, free: 7.312 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002176/0.3596, allocations: 1.283 MB / 402.5 MB, free: 6.027 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.007367/0.367, allocations: 3.811 MB / 406.3 MB, free: 2.125 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.663e-05/0.3671, allocations: 51.81 kB / 406.3 MB, free: 2.066 MB / 334.1 MB Notification: Performance of pre-optimization done (n=127): time 3.317e-06/0.3671, allocations: 3.938 kB / 406.3 MB, free: 2.062 MB / 334.1 MB Notification: Performance of matching and sorting (n=131): time 0.01055/0.3776, allocations: 5.494 MB / 411.8 MB, free: 12.39 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.421e-05/0.3777, allocations: 72.61 kB / 411.9 MB, free: 12.31 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003856/0.3816, allocations: 2.09 MB / 414 MB, free: 10.18 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 9.552e-05/0.3817, allocations: 53.7 kB / 414 MB, free: 10.12 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001386/0.3831, allocations: 1.657 MB / 415.7 MB, free: 8.449 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004354/0.3836, allocations: 457.5 kB / 416.1 MB, free: 7.996 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001039/0.3837, allocations: 40 kB / 416.2 MB, free: 7.957 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001748/0.3838, allocations: 373.9 kB / 416.6 MB, free: 7.586 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001226/0.3851, allocations: 0.7066 MB / 417.3 MB, free: 6.879 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001688/0.3868, allocations: 1.353 MB / 418.6 MB, free: 5.238 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0016/0.3884, allocations: 0.9511 MB / 419.6 MB, free: 4.289 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.689e-05/0.3884, allocations: 4 kB / 419.6 MB, free: 4.285 MB / 350.1 MB Notification: Performance of matching and sorting (n=234) (initialization): time 0.00436/0.3928, allocations: 2.505 MB / 422.1 MB, free: 1.742 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.445e-05/0.3928, allocations: 16 kB / 422.1 MB, free: 1.727 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.601e-05/0.3929, allocations: 20.5 kB / 422.1 MB, free: 1.707 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004078/0.3933, allocations: 142.5 kB / 422.2 MB, free: 1.559 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001645/0.395, allocations: 467.3 kB / 422.7 MB, free: 1.102 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00253/0.3975, allocations: 3.075 MB / 425.8 MB, free: 13.76 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001656/0.3992, allocations: 115.8 kB / 425.9 MB, free: 13.65 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001728/0.3994, allocations: 87.98 kB / 426 MB, free: 13.56 MB / 366.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 93 * 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 (227): * Single equations (assignments): 224 * 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 {(1,100.0%) 5,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.002316/0.4017, allocations: 1.048 MB / 427 MB, free: 12.5 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006533/0.4023, allocations: 213.3 kB / 427.2 MB, free: 12.29 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004173/0.4065, allocations: 2.173 MB / 429.4 MB, free: 10.06 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.672e-05/0.4066, allocations: 19.95 kB / 429.4 MB, free: 10.04 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.317e-05/0.4066, allocations: 4 kB / 429.4 MB, free: 10.04 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.474e-05/0.4066, allocations: 7.969 kB / 429.4 MB, free: 10.03 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009716/0.4163, allocations: 5.157 MB / 434.6 MB, free: 4.723 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.016e-05/0.4164, allocations: 11.94 kB / 434.6 MB, free: 4.711 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009828/0.4174, allocations: 231.9 kB / 434.8 MB, free: 4.484 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007318/0.4181, allocations: 267.1 kB / 435.1 MB, free: 4.211 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001042/0.4182, allocations: 39.98 kB / 435.1 MB, free: 4.172 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006658/0.4249, allocations: 7.112 MB / 442.2 MB, free: 12.52 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.835e-06/0.4249, allocations: 384 / 442.2 MB, free: 12.52 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005207/0.4302, allocations: 3.167 MB / 445.4 MB, free: 9.258 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001159/0.4313, allocations: 466.3 kB / 445.9 MB, free: 8.781 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005151/0.4319, allocations: 32.25 kB / 445.9 MB, free: 8.75 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001176/0.433, allocations: 79.86 kB / 446 MB, free: 8.672 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002089/0.4333, allocations: 88.81 kB / 446.1 MB, free: 8.586 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.494e-05/0.4334, allocations: 39.98 kB / 446.1 MB, free: 8.547 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.002881/0.4363, allocations: 1.419 MB / 447.5 MB, free: 7.109 MB / 382.1 MB Notification: Performance of sort global known variables: time 2.6e-07/0.4363, allocations: 0 / 447.5 MB, free: 7.109 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.002382/0.4387, allocations: 0.5547 MB / 448.1 MB, free: 6.555 MB / 382.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 10 * Number of states: 6 (smpm.inertiaRotor.w,smpm.stator.core.Phi.re,smpm.stator.core.Phi.im,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 (112): * Single equations (assignments): 108 * 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: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 4 {(1,100.0%) 5,(1,100.0%) 1,(1,100.0%) 8,(2,100.0%) 8} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0003432/0.439, allocations: 167 kB / 448.2 MB, free: 6.383 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.003323/0.4423, allocations: 2.089 MB / 450.3 MB, free: 4.246 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 4.328e-06/0.4424, allocations: 0 / 450.3 MB, free: 4.246 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002035/0.4444, allocations: 1.369 MB / 451.7 MB, free: 2.824 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002889/0.4473, allocations: 0.5262 MB / 452.2 MB, free: 2.293 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2897/0.737, allocations: 7.339 MB / 459.6 MB, free: 107.8 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003744/0.7408, allocations: 2.411 MB / 462 MB, free: 107 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.003566/0.7445, allocations: 0.493 MB / 462.5 MB, free: 107 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007067/0.7452, allocations: 159.6 kB / 462.6 MB, free: 107 MB / 382.1 MB Notification: Performance of SimCode: time 1.443e-06/0.7452, allocations: 0 / 462.6 MB, free: 107 MB / 382.1 MB Notification: Performance of Templates: time 0.07537/0.8206, allocations: 26.4 MB / 489 MB, free: 85.7 MB / 382.1 MB make -j1 -f Modelica_3.2.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_VoltageSource.makefile (rm -f Modelica_3.2.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_VoltageSource.pipe ; mkfifo Modelica_3.2.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_VoltageSource.pipe ; head -c 1048576 < Modelica_3.2.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_VoltageSource.pipe >> ../files/Modelica_3.2.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_VoltageSource.sim & ./Modelica_3.2.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_VoltageSource -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_VoltageSource.pipe 2>&1)