Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.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.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.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.007175/0.007175, allocations: 100.9 kB / 15.73 MB, free: 6.055 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.001321/0.001322, allocations: 197.3 kB / 16.68 MB, free: 5.969 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.385/1.385, allocations: 205.1 MB / 222.5 MB, free: 4.52 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.001154/0.001154, allocations: 53.89 kB / 326.6 MB, free: 14.54 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1009/0.1021, allocations: 46.63 MB / 373.2 MB, free: 1.402 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_VoltageSource): time 0.01838/0.1205, allocations: 15.82 MB / 389 MB, free: 1.508 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.01321/0.1338, allocations: 5.404 MB / 394.4 MB, free: 12.09 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004529/0.1384, allocations: 91.62 kB / 394.5 MB, free: 12 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004239/0.1427, allocations: 1.169 MB / 395.7 MB, free: 10.82 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.006025/0.1488, allocations: 1.39 MB / 397.1 MB, free: 9.422 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003226/0.152, allocations: 0.9664 MB / 398 MB, free: 8.453 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.006549/0.1586, allocations: 3.979 MB / 402 MB, free: 4.461 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00575/0.1644, allocations: 3.544 MB / 405.6 MB, free: 0.8477 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003542/0.1679, allocations: 1.896 MB / 407.5 MB, free: 14.95 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004638/0.1726, allocations: 2.265 MB / 409.7 MB, free: 12.67 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001701/0.1743, allocations: 0.5156 MB / 410.2 MB, free: 12.16 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002593/0.1769, allocations: 0.738 MB / 411 MB, free: 11.42 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002101/0.179, allocations: 1.289 MB / 412.3 MB, free: 10.12 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.005354/0.1844, allocations: 2.244 MB / 414.5 MB, free: 7.871 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01219/0.1966, allocations: 6.893 MB / 421.4 MB, free: 0.957 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.496e-06/0.1967, allocations: 4 kB / 421.4 MB, free: 0.9531 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.994e-06/0.1967, allocations: 0 / 421.4 MB, free: 0.9531 MB / 350.1 MB Notification: Performance of Transformations before backend: time 0.000351/0.1971, allocations: 3.938 kB / 421.4 MB, free: 0.9492 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.01855/0.2156, allocations: 4.665 MB / 426.1 MB, free: 12.21 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.154e-05/0.2157, allocations: 15.89 kB / 426.1 MB, free: 12.2 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004081/0.2198, allocations: 0.6636 MB / 426.7 MB, free: 11.53 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006128/0.226, allocations: 2.377 MB / 429.1 MB, free: 9.098 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002746/0.2263, allocations: 263.3 kB / 429.4 MB, free: 8.84 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001262/0.2275, allocations: 344 kB / 429.7 MB, free: 8.504 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01206/0.2396, allocations: 4.46 MB / 434.2 MB, free: 3.988 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001519/0.2398, allocations: 3.938 kB / 434.2 MB, free: 3.984 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001047/0.2409, allocations: 152 kB / 434.3 MB, free: 3.836 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002054/0.2411, allocations: 162.8 kB / 434.5 MB, free: 3.676 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.008906/0.25, allocations: 3.735 MB / 438.2 MB, free: 15.93 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03004/0.2801, allocations: 14.31 MB / 452.5 MB, free: 1.195 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.3046/0.5848, allocations: 5.358 MB / 457.9 MB, free: 63.11 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003789/0.5886, allocations: 1.263 MB / 459.2 MB, free: 63.09 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.008666/0.5973, allocations: 3.783 MB / 462.9 MB, free: 61.3 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.667e-05/0.5974, allocations: 46.52 kB / 463 MB, free: 61.25 MB / 382.1 MB Notification: Performance of pre-optimization done (n=127): time 4.258e-06/0.5974, allocations: 0 / 463 MB, free: 61.25 MB / 382.1 MB Notification: Performance of matching and sorting (n=131): time 0.0108/0.6082, allocations: 5.466 MB / 468.5 MB, free: 58.52 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.955e-05/0.6083, allocations: 68.91 kB / 468.5 MB, free: 58.45 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003686/0.612, allocations: 2.103 MB / 470.6 MB, free: 57.63 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001566/0.6122, allocations: 53.14 kB / 470.7 MB, free: 57.58 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001359/0.6136, allocations: 1.649 MB / 472.3 MB, free: 56.32 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005156/0.6141, allocations: 466.2 kB / 472.8 MB, free: 55.97 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006289/0.6147, allocations: 335.5 kB / 473.1 MB, free: 55.8 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 8.288e-05/0.6148, allocations: 306.8 kB / 473.4 MB, free: 55.5 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001316/0.6161, allocations: 0.7152 MB / 474.1 MB, free: 55.24 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001666/0.6178, allocations: 1.352 MB / 475.5 MB, free: 54.17 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002452/0.6203, allocations: 2.227 MB / 477.7 MB, free: 52.65 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.428e-05/0.6203, allocations: 3.938 kB / 477.7 MB, free: 52.65 MB / 382.1 MB Notification: Performance of matching and sorting (n=234) (initialization): time 0.003838/0.6242, allocations: 2.521 MB / 480.2 MB, free: 51.53 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.558e-05/0.6242, allocations: 19.91 kB / 480.2 MB, free: 51.52 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.698e-05/0.6243, allocations: 19.72 kB / 480.3 MB, free: 51.52 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003911/0.6247, allocations: 135.8 kB / 480.4 MB, free: 51.47 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001509/0.6262, allocations: 466.3 kB / 480.9 MB, free: 51.43 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002152/0.6284, allocations: 3.358 MB / 484.2 MB, free: 48.24 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001921/0.6303, allocations: 105 kB / 484.3 MB, free: 48.21 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001738/0.6305, allocations: 91.58 kB / 484.4 MB, free: 48.19 MB / 382.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.002079/0.6326, allocations: 1.058 MB / 485.5 MB, free: 47.61 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006179/0.6332, allocations: 210.9 kB / 485.7 MB, free: 47.5 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003634/0.6368, allocations: 2.175 MB / 487.8 MB, free: 46.17 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.766e-05/0.6369, allocations: 15.72 kB / 487.9 MB, free: 46.17 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.582e-05/0.6369, allocations: 3.906 kB / 487.9 MB, free: 46.17 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.577e-05/0.6369, allocations: 6.422 kB / 487.9 MB, free: 46.16 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009502/0.6464, allocations: 5.156 MB / 493 MB, free: 41.98 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.818e-06/0.6465, allocations: 4 kB / 493 MB, free: 41.97 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000919/0.6474, allocations: 227.7 kB / 493.3 MB, free: 41.75 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006335/0.6481, allocations: 275.5 kB / 493.5 MB, free: 41.47 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.836e-05/0.6482, allocations: 36.8 kB / 493.6 MB, free: 41.43 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005126/0.6533, allocations: 7.795 MB / 0.4896 GB, free: 33.1 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.566e-06/0.6533, allocations: 4.578 kB / 0.4896 GB, free: 33.1 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004673/0.658, allocations: 3.173 MB / 0.4927 GB, free: 29.83 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00153/0.6596, allocations: 454.3 kB / 0.4931 GB, free: 29.37 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008678/0.6605, allocations: 39.92 kB / 0.4932 GB, free: 29.33 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001501/0.662, allocations: 67.92 kB / 0.4932 GB, free: 29.26 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002511/0.6623, allocations: 91.11 kB / 0.4933 GB, free: 29.18 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.341e-05/0.6624, allocations: 43.98 kB / 0.4934 GB, free: 29.13 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.00285/0.6652, allocations: 1.427 MB / 0.4948 GB, free: 27.69 MB / 382.1 MB Notification: Performance of sort global known variables: time 2.2e-07/0.6652, allocations: 0 / 0.4948 GB, free: 27.69 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.002886/0.6681, allocations: 0.5547 MB / 0.4953 GB, free: 27.13 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 (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.0004087/0.6686, allocations: 166 kB / 0.4955 GB, free: 26.97 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.003119/0.6717, allocations: 2.112 MB / 0.4975 GB, free: 24.81 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 6.493e-06/0.6717, allocations: 0 / 0.4975 GB, free: 24.81 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001747/0.6735, allocations: 1.378 MB / 0.4989 GB, free: 23.39 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003031/0.6765, allocations: 0.5538 MB / 0.4994 GB, free: 22.85 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0111/0.6876, allocations: 6.052 MB / 0.5053 GB, free: 16.75 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002511/0.6902, allocations: 2.413 MB / 0.5077 GB, free: 14.31 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.001553/0.6918, allocations: 498.5 kB / 0.5082 GB, free: 13.82 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005635/0.6923, allocations: 157.1 kB / 0.5083 GB, free: 13.67 MB / 382.1 MB Notification: Performance of SimCode: time 1.082e-06/0.6923, allocations: 0 / 0.5083 GB, free: 13.67 MB / 382.1 MB Notification: Performance of Templates: time 0.04916/0.7415, allocations: 27.14 MB / 0.5348 GB, free: 2.539 MB / 398.1 MB make -j1 -f Modelica_3.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_VoltageSource.makefile (rm -f Modelica_3.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_VoltageSource.pipe ; mkfifo Modelica_3.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_VoltageSource.pipe ; head -c 1048576 < Modelica_3.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_VoltageSource.pipe >> ../files/Modelica_3.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_VoltageSource.sim & ./Modelica_3.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_VoltageSource -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_VoltageSource.pipe 2>&1)