Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.2_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.2_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.2_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.001096/0.001097, allocations: 112 kB / 17.06 MB, free: 6 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.0009667/0.0009667, allocations: 192 kB / 18 MB, free: 5.082 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.345/1.345, allocations: 205.1 MB / 223.9 MB, free: 12.11 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.00118/0.00118, allocations: 55.92 kB / 327.9 MB, free: 3.258 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1038/0.105, allocations: 46.61 MB / 374.5 MB, free: 4.535 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_VoltageSource): time 0.2375/0.3425, allocations: 15.83 MB / 390.3 MB, free: 4.039 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.01368/0.3563, allocations: 5.396 MB / 395.7 MB, free: 208 kB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00494/0.3613, allocations: 91.53 kB / 395.8 MB, free: 184 kB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003926/0.3653, allocations: 1.117 MB / 396.9 MB, free: 15.57 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.006005/0.3713, allocations: 1.342 MB / 398.3 MB, free: 14.69 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003431/0.3747, allocations: 0.9751 MB / 399.3 MB, free: 14.07 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.006479/0.3812, allocations: 3.971 MB / 403.2 MB, free: 12.03 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004602/0.3859, allocations: 3.552 MB / 406.8 MB, free: 10.49 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003696/0.3896, allocations: 1.883 MB / 408.7 MB, free: 9.547 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004268/0.3939, allocations: 2.27 MB / 410.9 MB, free: 8.234 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001013/0.3949, allocations: 0.517 MB / 411.5 MB, free: 8.234 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00211/0.397, allocations: 0.7388 MB / 412.2 MB, free: 8.121 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.00122/0.3982, allocations: 1.281 MB / 413.5 MB, free: 7.121 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002778/0.401, allocations: 2.244 MB / 415.7 MB, free: 5.461 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.007461/0.4085, allocations: 6.893 MB / 422.6 MB, free: 15.46 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.745e-06/0.4086, allocations: 0 / 422.6 MB, free: 15.46 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.553e-06/0.4086, allocations: 0 / 422.6 MB, free: 15.46 MB / 350.1 MB Notification: Performance of Transformations before backend: time 0.0001762/0.4088, allocations: 3.938 kB / 422.6 MB, free: 15.46 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: 911 * Number of variables: 911 Notification: Performance of Generate backend data structure: time 0.01303/0.4218, allocations: 4.658 MB / 427.3 MB, free: 10.73 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.649e-05/0.4219, allocations: 19.89 kB / 427.3 MB, free: 10.71 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003325/0.4252, allocations: 0.6714 MB / 428 MB, free: 10.04 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005141/0.4304, allocations: 2.377 MB / 430.3 MB, free: 7.605 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002166/0.4306, allocations: 255.3 kB / 430.6 MB, free: 7.355 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005796/0.4312, allocations: 348.3 kB / 430.9 MB, free: 7.016 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.007948/0.4392, allocations: 4.46 MB / 435.4 MB, free: 2.5 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.612e-05/0.4393, allocations: 7.938 kB / 435.4 MB, free: 2.492 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003168/0.4396, allocations: 136 kB / 435.5 MB, free: 2.359 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001645/0.4398, allocations: 166.8 kB / 435.7 MB, free: 2.195 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.006202/0.446, allocations: 3.743 MB / 439.4 MB, free: 14.44 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02328/0.4693, allocations: 14.31 MB / 453.7 MB, free: 15.71 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00532/0.4746, allocations: 5.364 MB / 459.1 MB, free: 9.637 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001992/0.4766, allocations: 1.263 MB / 460.4 MB, free: 8.379 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.007086/0.4837, allocations: 3.781 MB / 464.2 MB, free: 4.504 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.741e-05/0.4838, allocations: 51.81 kB / 464.2 MB, free: 4.445 MB / 382.1 MB Notification: Performance of pre-optimization done (n=127): time 2.554e-06/0.4838, allocations: 0 / 464.2 MB, free: 4.445 MB / 382.1 MB Notification: Performance of matching and sorting (n=131): time 0.01031/0.4941, allocations: 5.467 MB / 469.7 MB, free: 14.8 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.915e-05/0.4942, allocations: 64.72 kB / 469.7 MB, free: 14.73 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003371/0.4976, allocations: 2.102 MB / 471.8 MB, free: 12.59 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001117/0.4977, allocations: 45.7 kB / 471.9 MB, free: 12.54 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001351/0.4991, allocations: 1.657 MB / 473.5 MB, free: 10.86 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004357/0.4995, allocations: 469.4 kB / 474 MB, free: 10.4 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000499/0.5, allocations: 331.2 kB / 474.3 MB, free: 10.07 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.000123/0.5002, allocations: 305.1 kB / 474.6 MB, free: 9.766 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001174/0.5014, allocations: 0.7222 MB / 475.3 MB, free: 9.043 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001736/0.5031, allocations: 1.357 MB / 476.7 MB, free: 7.391 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003003/0.5061, allocations: 2.223 MB / 478.9 MB, free: 4.883 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.134e-05/0.5061, allocations: 8 kB / 478.9 MB, free: 4.875 MB / 398.1 MB Notification: Performance of matching and sorting (n=234) (initialization): time 0.004181/0.5103, allocations: 2.509 MB / 481.4 MB, free: 2.328 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.192e-05/0.5104, allocations: 16 kB / 481.4 MB, free: 2.312 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.682e-05/0.5104, allocations: 20 kB / 481.5 MB, free: 2.293 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003828/0.5108, allocations: 150.9 kB / 481.6 MB, free: 2.137 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001569/0.5124, allocations: 459.3 kB / 482.1 MB, free: 1.688 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002726/0.5151, allocations: 3.356 MB / 485.4 MB, free: 14.05 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001759/0.5169, allocations: 111.8 kB / 485.5 MB, free: 13.95 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001262/0.517, allocations: 80 kB / 485.6 MB, free: 13.87 MB / 414.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 (not torn): 1 * 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): 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): 2 systems {(1,5,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.001969/0.519, allocations: 1.052 MB / 486.7 MB, free: 12.8 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004267/0.5194, allocations: 217.3 kB / 486.9 MB, free: 12.59 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003429/0.5229, allocations: 2.173 MB / 489 MB, free: 10.36 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.294e-05/0.5229, allocations: 16 kB / 489.1 MB, free: 10.34 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.225e-06/0.5229, allocations: 4 kB / 489.1 MB, free: 10.34 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.593e-05/0.523, allocations: 11.91 kB / 489.1 MB, free: 10.33 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008104/0.5311, allocations: 5.16 MB / 494.2 MB, free: 5.027 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.65e-06/0.5311, allocations: 0 / 494.2 MB, free: 5.027 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009869/0.5321, allocations: 223.7 kB / 494.5 MB, free: 4.809 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006807/0.5328, allocations: 279.5 kB / 494.7 MB, free: 4.523 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.043e-05/0.5329, allocations: 28 kB / 494.8 MB, free: 4.496 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006711/0.5396, allocations: 7.806 MB / 0.4908 GB, free: 12.13 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.99e-06/0.5396, allocations: 4 kB / 0.4908 GB, free: 12.13 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004869/0.5445, allocations: 3.181 MB / 0.4939 GB, free: 8.855 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001254/0.5458, allocations: 450.4 kB / 0.4943 GB, free: 8.395 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002819/0.5461, allocations: 28 kB / 0.4943 GB, free: 8.367 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001041/0.5471, allocations: 76.16 kB / 0.4944 GB, free: 8.293 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002324/0.5474, allocations: 96.75 kB / 0.4945 GB, free: 8.195 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.147e-05/0.5474, allocations: 40 kB / 0.4946 GB, free: 8.156 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.00224/0.5497, allocations: 1.431 MB / 0.4959 GB, free: 6.707 MB / 430.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.5497, allocations: 0 / 0.4959 GB, free: 6.707 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.002175/0.5519, allocations: 0.5626 MB / 0.4965 GB, free: 6.145 MB / 430.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 (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 {(1,5,100.0%), (1,1,100.0%), (1,8,100.0%), (2,8,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0003631/0.5523, allocations: 166.9 kB / 0.4967 GB, free: 5.973 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.003162/0.5554, allocations: 2.098 MB / 0.4987 GB, free: 3.828 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 6.041e-06/0.5555, allocations: 8.344 kB / 0.4987 GB, free: 3.82 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001902/0.5574, allocations: 1.375 MB / 0.5001 GB, free: 2.395 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002599/0.56, allocations: 0.5504 MB / 0.5006 GB, free: 1.844 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01104/0.571, allocations: 6.049 MB / 0.5065 GB, free: 11.74 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002077/0.5731, allocations: 2.417 MB / 0.5089 GB, free: 9.285 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.001681/0.5748, allocations: 498.5 kB / 0.5093 GB, free: 8.797 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004348/0.5753, allocations: 151.4 kB / 0.5095 GB, free: 8.648 MB / 446.1 MB Notification: Performance of SimCode: time 5.91e-07/0.5753, allocations: 0 / 0.5095 GB, free: 8.648 MB / 446.1 MB Notification: Performance of Templates: time 0.05003/0.6253, allocations: 27.12 MB / 0.536 GB, free: 13.48 MB / 478.1 MB make -j1 -f Modelica_3.2.2_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_VoltageSource.makefile (rm -f Modelica_3.2.2_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_VoltageSource.pipe ; mkfifo Modelica_3.2.2_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_VoltageSource.pipe ; head -c 1048576 < Modelica_3.2.2_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_VoltageSource.pipe >> ../files/Modelica_3.2.2_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_VoltageSource.sim & ./Modelica_3.2.2_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_VoltageSource -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.2_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_VoltageSource.pipe 2>&1)