Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.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 4.0.0+maint.om/package.mo", uses=false) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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.SynchronousMachines.SMPM_VoltageSource,tolerance=1e-06,outputFormat="mat",numberOfIntervals=40000,variableFilter="time|inertiaLoad.phi|inertiaLoad.w|smpm.is.1.|smpm.is.2.|smpm.stator.electroMagneticConverter.singlePhaseElectroMagneticConverter.1..Phi.re|smpm.stator.electroMagneticConverter.singlePhaseElectroMagneticConverter.2..Phi.im|currentController.PI_d.x|currentController.PI_q.x",fileNamePrefix="Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_VoltageSource") translateModel(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_VoltageSource,tolerance=1e-06,outputFormat="mat",numberOfIntervals=40000,variableFilter="time|inertiaLoad.phi|inertiaLoad.w|smpm.is.1.|smpm.is.2.|smpm.stator.electroMagneticConverter.singlePhaseElectroMagneticConverter.1..Phi.re|smpm.stator.electroMagneticConverter.singlePhaseElectroMagneticConverter.2..Phi.im|currentController.PI_d.x|currentController.PI_q.x",fileNamePrefix="Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_VoltageSource") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001234/0.001234, allocations: 109.3 kB / 17.74 MB, free: 5.348 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.001016/0.001016, allocations: 184.2 kB / 18.68 MB, free: 4.426 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.272/1.272, allocations: 222.9 MB / 242.4 MB, free: 15.11 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0009842/0.0009842, allocations: 51.92 kB / 352 MB, free: 3.219 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2077/0.2087, allocations: 49.42 MB / 401.4 MB, free: 8.73 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_VoltageSource): time 0.01636/0.2251, allocations: 15.9 MB / 417.3 MB, free: 8.898 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.008646/0.2338, allocations: 5.368 MB / 422.7 MB, free: 3.512 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001525/0.2353, allocations: 107.6 kB / 422.8 MB, free: 3.406 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002367/0.2377, allocations: 1.176 MB / 424 MB, free: 2.227 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002712/0.2404, allocations: 1.402 MB / 425.4 MB, free: 0.8164 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001697/0.2421, allocations: 0.9578 MB / 426.3 MB, free: 15.86 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.003326/0.2455, allocations: 3.963 MB / 430.3 MB, free: 11.88 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003603/0.2491, allocations: 3.611 MB / 433.9 MB, free: 8.191 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001772/0.2509, allocations: 1.892 MB / 435.8 MB, free: 6.293 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002395/0.2533, allocations: 2.273 MB / 438.1 MB, free: 4.012 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0006012/0.2539, allocations: 0.5156 MB / 438.6 MB, free: 3.496 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00114/0.255, allocations: 0.738 MB / 439.3 MB, free: 2.758 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001071/0.2561, allocations: 1.301 MB / 440.6 MB, free: 1.453 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001864/0.258, allocations: 2.256 MB / 442.9 MB, free: 15.19 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00546/0.2635, allocations: 6.897 MB / 449.8 MB, free: 8.27 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.881e-06/0.2635, allocations: 4 kB / 449.8 MB, free: 8.266 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.223e-06/0.2635, allocations: 0 / 449.8 MB, free: 8.266 MB / 366.1 MB Notification: Performance of Transformations before backend: time 4.538e-05/0.2635, allocations: 0 / 449.8 MB, free: 8.266 MB / 366.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.0091/0.2727, allocations: 4.665 MB / 454.5 MB, free: 3.527 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.285e-05/0.2727, allocations: 8.031 kB / 454.5 MB, free: 3.52 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002892/0.2756, allocations: 0.6675 MB / 455.1 MB, free: 2.848 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004161/0.2798, allocations: 2.533 MB / 457.7 MB, free: 268 kB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001745/0.28, allocations: 263.3 kB / 457.9 MB, free: 4 kB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004807/0.2805, allocations: 348.1 kB / 458.3 MB, free: 15.66 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006834/0.2873, allocations: 4.472 MB / 462.7 MB, free: 11.14 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.56e-05/0.2874, allocations: 4 kB / 462.7 MB, free: 11.13 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003219/0.2877, allocations: 144 kB / 462.9 MB, free: 10.99 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001465/0.2879, allocations: 162.8 kB / 463 MB, free: 10.83 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005912/0.2938, allocations: 3.747 MB / 466.8 MB, free: 7.078 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01933/0.3131, allocations: 14.31 MB / 481.1 MB, free: 8.348 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005208/0.3183, allocations: 5.373 MB / 486.5 MB, free: 2.273 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001881/0.3202, allocations: 1.251 MB / 487.7 MB, free: 1.027 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.006092/0.3263, allocations: 3.807 MB / 491.5 MB, free: 13.12 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.186e-05/0.3264, allocations: 51.81 kB / 491.6 MB, free: 13.07 MB / 414.1 MB Notification: Performance of pre-optimization done (n=128): time 2.625e-06/0.3264, allocations: 0 / 491.6 MB, free: 13.07 MB / 414.1 MB Notification: Performance of matching and sorting (n=132): time 0.008804/0.3352, allocations: 5.498 MB / 497.1 MB, free: 7.395 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.056e-05/0.3353, allocations: 68.7 kB / 497.1 MB, free: 7.316 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002632/0.3379, allocations: 2.102 MB / 499.2 MB, free: 5.18 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 8.67e-05/0.338, allocations: 45.7 kB / 499.3 MB, free: 5.129 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001055/0.339, allocations: 1.657 MB / 0.4892 GB, free: 3.453 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.00033/0.3394, allocations: 461.4 kB / 0.4896 GB, free: 2.996 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004803/0.3399, allocations: 343.1 kB / 0.49 GB, free: 2.652 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 9.424e-05/0.34, allocations: 301.1 kB / 0.4903 GB, free: 2.355 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001117/0.3411, allocations: 0.7223 MB / 0.491 GB, free: 1.633 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001518/0.3426, allocations: 1.348 MB / 0.4923 GB, free: 15.99 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002786/0.3454, allocations: 2.23 MB / 0.4945 GB, free: 13.48 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.486e-06/0.3454, allocations: 4 kB / 0.4945 GB, free: 13.48 MB / 430.1 MB Notification: Performance of matching and sorting (n=234) (initialization): time 0.003697/0.3491, allocations: 2.521 MB / 0.4969 GB, free: 10.92 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.325e-05/0.3492, allocations: 16.06 kB / 0.4969 GB, free: 10.91 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.139e-05/0.3492, allocations: 23.98 kB / 0.497 GB, free: 10.88 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003548/0.3496, allocations: 134.5 kB / 0.4971 GB, free: 10.74 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001653/0.3512, allocations: 463.2 kB / 0.4975 GB, free: 10.29 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002537/0.3538, allocations: 3.364 MB / 0.5008 GB, free: 6.641 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001205/0.355, allocations: 111.8 kB / 0.5009 GB, free: 6.531 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001281/0.3551, allocations: 80 kB / 0.501 GB, free: 6.453 MB / 430.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 92 * 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.001381/0.3565, allocations: 1.052 MB / 0.502 GB, free: 5.391 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003068/0.3568, allocations: 213.3 kB / 0.5022 GB, free: 5.18 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003508/0.3604, allocations: 2.192 MB / 0.5044 GB, free: 2.926 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.886e-05/0.3604, allocations: 7.969 kB / 0.5044 GB, free: 2.918 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.186e-06/0.3604, allocations: 3.938 kB / 0.5044 GB, free: 2.914 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007829/0.3612, allocations: 462.2 kB / 0.5048 GB, free: 2.441 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002743/0.3615, allocations: 24 kB / 0.5048 GB, free: 2.418 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009499/0.3624, allocations: 75.91 kB / 0.5049 GB, free: 2.344 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001638/0.3626, allocations: 97.16 kB / 0.505 GB, free: 2.25 MB / 430.1 MB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.00386/0.3665, allocations: 1.972 MB / 0.5069 GB, free: 268 kB / 430.1 MB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.003649/0.3701, allocations: 2.691 MB / 0.5096 GB, free: 13.54 MB / 446.1 MB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.0009801/0.3711, allocations: 0.7247 MB / 0.5103 GB, free: 12.82 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.001886/0.373, allocations: 1.435 MB / 0.5117 GB, free: 11.36 MB / 446.1 MB Notification: Performance of Backend: time 5.61e-07/0.373, allocations: 0 / 0.5117 GB, free: 11.36 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.002902/0.3759, allocations: 1.704 MB / 0.5133 GB, free: 9.613 MB / 446.1 MB Notification: Performance of SimCode: time 0.00906/0.385, allocations: 6.448 MB / 0.5196 GB, free: 3.117 MB / 446.1 MB Notification: Performance of Templates: time 0.2025/0.5876, allocations: 33.52 MB / 0.5524 GB, free: 125.1 MB / 462.1 MB make -j1 -f Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_VoltageSource.makefile (rm -f Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_VoltageSource.pipe ; mkfifo Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_VoltageSource.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_VoltageSource.pipe >> ../files/Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_VoltageSource.sim & ./Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_VoltageSource -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_VoltageSource.pipe 2>&1)