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.001307/0.001308, allocations: 111.3 kB / 15.23 MB, free: 0.6602 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.001248/0.001248, allocations: 194.4 kB / 16.14 MB, free: 6.66 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.401/1.401, allocations: 205.1 MB / 222 MB, free: 4.75 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.001409/0.001409, allocations: 59.91 kB / 278.1 MB, free: 12.75 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2491/0.2505, allocations: 46.63 MB / 324.7 MB, free: 2.16 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_VoltageSource): time 0.0176/0.2682, allocations: 15.63 MB / 340.3 MB, free: 4.633 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.01172/0.2799, allocations: 5.34 MB / 345.6 MB, free: 15.28 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003215/0.2832, allocations: 87.62 kB / 345.7 MB, free: 15.19 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003762/0.287, allocations: 0.9597 MB / 346.7 MB, free: 14.23 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004896/0.292, allocations: 1.213 MB / 347.9 MB, free: 13.01 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002812/0.2948, allocations: 0.8817 MB / 348.8 MB, free: 12.12 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.006284/0.3011, allocations: 4.08 MB / 352.9 MB, free: 8.023 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.005359/0.3065, allocations: 3.001 MB / 355.9 MB, free: 4.961 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002714/0.3092, allocations: 1.568 MB / 357.4 MB, free: 3.387 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003467/0.3127, allocations: 2.121 MB / 359.6 MB, free: 1.258 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001324/0.314, allocations: 316 kB / 359.9 MB, free: 0.9492 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002199/0.3163, allocations: 0.5388 MB / 360.4 MB, free: 420 kB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001578/0.3179, allocations: 1.067 MB / 361.5 MB, free: 15.34 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003095/0.321, allocations: 2.025 MB / 363.5 MB, free: 13.3 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.006894/0.3279, allocations: 6.648 MB / 370.1 MB, free: 6.637 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.673e-06/0.3279, allocations: 0 / 370.1 MB, free: 6.637 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.263e-06/0.3279, allocations: 0 / 370.1 MB, free: 6.637 MB / 302.1 MB Notification: Performance of Transformations before backend: time 0.000199/0.3281, allocations: 4 kB / 370.1 MB, free: 6.633 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.01296/0.3411, allocations: 4.657 MB / 374.8 MB, free: 1.902 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.884e-05/0.3411, allocations: 8.031 kB / 374.8 MB, free: 1.895 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003146/0.3443, allocations: 0.6753 MB / 375.5 MB, free: 1.215 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004143/0.3485, allocations: 2.338 MB / 377.8 MB, free: 14.82 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002279/0.3487, allocations: 267.5 kB / 378.1 MB, free: 14.56 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005405/0.3493, allocations: 347.8 kB / 378.4 MB, free: 14.22 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.008057/0.3573, allocations: 4.456 MB / 382.9 MB, free: 9.707 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.337e-05/0.3574, allocations: 7.938 kB / 382.9 MB, free: 9.699 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003009/0.3577, allocations: 144 kB / 383 MB, free: 9.559 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001497/0.3579, allocations: 162.8 kB / 383.2 MB, free: 9.398 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.006605/0.3645, allocations: 3.735 MB / 386.9 MB, free: 5.656 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02412/0.3886, allocations: 14.5 MB / 401.4 MB, free: 6.727 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00522/0.3939, allocations: 5.36 MB / 406.8 MB, free: 0.6523 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001975/0.3959, allocations: 1.268 MB / 408.1 MB, free: 15.39 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.006712/0.4027, allocations: 3.819 MB / 411.9 MB, free: 11.48 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.844e-05/0.4027, allocations: 47.88 kB / 411.9 MB, free: 11.42 MB / 350.1 MB Notification: Performance of pre-optimization done (n=127): time 3.607e-06/0.4027, allocations: 3.938 kB / 411.9 MB, free: 11.42 MB / 350.1 MB Notification: Performance of matching and sorting (n=131): time 0.01023/0.413, allocations: 5.467 MB / 417.4 MB, free: 5.777 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.046e-05/0.4131, allocations: 64.72 kB / 417.5 MB, free: 5.699 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004357/0.4174, allocations: 2.098 MB / 419.6 MB, free: 3.566 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 0.000133/0.4176, allocations: 49.7 kB / 419.6 MB, free: 3.512 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001335/0.4189, allocations: 1.657 MB / 421.3 MB, free: 1.836 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004944/0.4194, allocations: 465.4 kB / 421.7 MB, free: 1.375 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006561/0.4201, allocations: 339.1 kB / 422 MB, free: 1.039 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001178/0.4202, allocations: 301.1 kB / 422.3 MB, free: 0.7422 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001249/0.4215, allocations: 0.7183 MB / 423.1 MB, free: 24 kB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001743/0.4233, allocations: 1.365 MB / 424.4 MB, free: 14.37 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00317/0.4264, allocations: 2.215 MB / 426.6 MB, free: 11.87 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.956e-05/0.4265, allocations: 7.938 kB / 426.6 MB, free: 11.86 MB / 366.1 MB Notification: Performance of matching and sorting (n=234) (initialization): time 0.004467/0.431, allocations: 2.517 MB / 429.2 MB, free: 9.309 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.177e-05/0.431, allocations: 16 kB / 429.2 MB, free: 9.293 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.682e-05/0.4311, allocations: 20 kB / 429.2 MB, free: 9.273 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004244/0.4315, allocations: 143 kB / 429.3 MB, free: 9.125 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001671/0.4332, allocations: 463.2 kB / 429.8 MB, free: 8.672 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002718/0.4359, allocations: 3.086 MB / 432.9 MB, free: 5.312 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00162/0.4375, allocations: 111.8 kB / 433 MB, free: 5.203 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001567/0.4377, allocations: 83.98 kB / 433.1 MB, free: 5.121 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 (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.002069/0.4398, allocations: 1.051 MB / 434.1 MB, free: 4.059 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000646/0.4404, allocations: 217.3 kB / 434.3 MB, free: 3.844 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003889/0.4443, allocations: 2.173 MB / 436.5 MB, free: 1.617 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.19e-05/0.4444, allocations: 16 kB / 436.5 MB, free: 1.602 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.292e-05/0.4444, allocations: 4 kB / 436.5 MB, free: 1.598 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.179e-05/0.4444, allocations: 3.984 kB / 436.5 MB, free: 1.594 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009488/0.4539, allocations: 5.169 MB / 441.7 MB, free: 12.28 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.196e-05/0.4539, allocations: 4 kB / 441.7 MB, free: 12.28 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001011/0.455, allocations: 227.6 kB / 441.9 MB, free: 12.05 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007771/0.4558, allocations: 279.2 kB / 442.2 MB, free: 11.77 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001217/0.4559, allocations: 40.11 kB / 442.2 MB, free: 11.73 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007009/0.4629, allocations: 7.1 MB / 449.3 MB, free: 4.094 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.973e-06/0.463, allocations: 7.938 kB / 449.3 MB, free: 4.086 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005617/0.4686, allocations: 3.171 MB / 452.5 MB, free: 0.8203 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001413/0.47, allocations: 454.3 kB / 453 MB, free: 364 kB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.00066/0.4707, allocations: 32 kB / 453 MB, free: 332 kB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001543/0.4723, allocations: 71.92 kB / 453.1 MB, free: 260 kB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.00025/0.4725, allocations: 92.8 kB / 453.1 MB, free: 168 kB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.538e-05/0.4726, allocations: 36 kB / 453.2 MB, free: 132 kB / 382.1 MB Notification: Performance of sorting global known variables: time 0.1811/0.6538, allocations: 1.428 MB / 454.6 MB, free: 110.2 MB / 382.1 MB Notification: Performance of sort global known variables: time 9.82e-07/0.6538, allocations: 3.594 kB / 454.6 MB, free: 110.2 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.002868/0.6567, allocations: 0.5616 MB / 455.2 MB, free: 110.2 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.000315/0.657, allocations: 153.8 kB / 455.3 MB, free: 110.1 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.002984/0.66, allocations: 2.089 MB / 457.4 MB, free: 109.5 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 4.799e-06/0.66, allocations: 3.812 kB / 457.4 MB, free: 109.5 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001748/0.6618, allocations: 1.379 MB / 458.8 MB, free: 108.7 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002463/0.6643, allocations: 0.5261 MB / 459.3 MB, free: 108.6 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009659/0.6739, allocations: 7.607 MB / 466.9 MB, free: 104.2 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00157/0.6756, allocations: 2.407 MB / 469.3 MB, free: 103.1 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.001619/0.6772, allocations: 0.4911 MB / 469.8 MB, free: 103.1 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000404/0.6776, allocations: 159.9 kB / 470 MB, free: 103 MB / 382.1 MB Notification: Performance of SimCode: time 7.81e-07/0.6776, allocations: 0 / 470 MB, free: 103 MB / 382.1 MB Notification: Performance of Templates: time 0.04073/0.7183, allocations: 27.39 MB / 497.4 MB, free: 77.39 MB / 382.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)