Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_CurrentSource.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_CurrentSource,tolerance=1e-06,outputFormat="empty",numberOfIntervals=40000,variableFilter="",fileNamePrefix="Modelica_3.2.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_CurrentSource") translateModel(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_CurrentSource,tolerance=1e-06,outputFormat="empty",numberOfIntervals=40000,variableFilter="",fileNamePrefix="Modelica_3.2.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_CurrentSource") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0007911/0.0007909, allocations: 97.88 kB / 15.36 MB, free: 0.7344 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.00554/0.00554, allocations: 171.8 kB / 16.27 MB, free: 6.324 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.453/1.453, allocations: 205.4 MB / 222.4 MB, free: 5.512 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.000458/0.000458, allocations: 16 kB / 279.5 MB, free: 12.5 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.298/0.2985, allocations: 47.58 MB / 327 MB, free: 1.398 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_CurrentSource): time 0.0163/0.3148, allocations: 14.23 MB / 341.3 MB, free: 5.098 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.01281/0.3277, allocations: 4.99 MB / 346.3 MB, free: 96 kB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004499/0.3322, allocations: 83.62 kB / 346.3 MB, free: 12 kB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004738/0.337, allocations: 0.9171 MB / 347.3 MB, free: 15.09 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.007949/0.345, allocations: 1.131 MB / 348.4 MB, free: 13.95 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003566/0.3486, allocations: 0.807 MB / 349.2 MB, free: 13.14 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.00747/0.3561, allocations: 3.752 MB / 352.9 MB, free: 9.371 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.005458/0.3616, allocations: 2.7 MB / 355.6 MB, free: 6.605 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00286/0.3644, allocations: 1.221 MB / 356.9 MB, free: 5.379 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00306/0.3675, allocations: 1.649 MB / 358.5 MB, free: 3.723 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0005348/0.3681, allocations: 192 kB / 358.7 MB, free: 3.535 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001422/0.3695, allocations: 419.7 kB / 359.1 MB, free: 3.125 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0008044/0.3703, allocations: 0.8055 MB / 359.9 MB, free: 2.316 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002105/0.3724, allocations: 1.688 MB / 361.6 MB, free: 0.6133 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.006434/0.3789, allocations: 5.839 MB / 367.4 MB, free: 10.75 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.687e-06/0.3789, allocations: 7.938 kB / 367.5 MB, free: 10.75 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.593e-06/0.3789, allocations: 0 / 367.5 MB, free: 10.75 MB / 302.1 MB Notification: Performance of Transformations before backend: time 0.0001479/0.3791, allocations: 4 kB / 367.5 MB, free: 10.74 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: 826 * Number of variables: 826 Notification: Performance of Generate backend data structure: time 0.009669/0.3888, allocations: 3.572 MB / 371 MB, free: 7.098 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.644e-05/0.3888, allocations: 8.031 kB / 371 MB, free: 7.09 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003346/0.3922, allocations: 0.6251 MB / 371.7 MB, free: 6.461 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004062/0.3963, allocations: 2.086 MB / 373.7 MB, free: 4.32 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002125/0.3965, allocations: 246.8 kB / 374 MB, free: 4.078 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005078/0.397, allocations: 315.8 kB / 374.3 MB, free: 3.77 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.007608/0.4046, allocations: 4.043 MB / 378.3 MB, free: 15.66 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.514e-05/0.4048, allocations: 3.906 kB / 378.3 MB, free: 15.66 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002964/0.4051, allocations: 139.9 kB / 378.5 MB, free: 15.52 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001616/0.4052, allocations: 150.2 kB / 378.6 MB, free: 15.37 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.006209/0.4114, allocations: 3.382 MB / 382 MB, free: 11.98 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02179/0.4333, allocations: 13.39 MB / 395.4 MB, free: 14.14 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004221/0.4375, allocations: 3.962 MB / 399.4 MB, free: 9.668 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001668/0.4392, allocations: 1.007 MB / 400.4 MB, free: 8.664 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.004739/0.444, allocations: 2.665 MB / 403 MB, free: 5.914 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.032e-05/0.444, allocations: 43.56 kB / 403.1 MB, free: 5.863 MB / 334.1 MB Notification: Performance of pre-optimization done (n=108): time 3.788e-06/0.444, allocations: 3.938 kB / 403.1 MB, free: 5.859 MB / 334.1 MB Notification: Performance of matching and sorting (n=142): time 0.01149/0.4555, allocations: 5.995 MB / 409.1 MB, free: 15.77 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.048e-05/0.4556, allocations: 68.72 kB / 409.1 MB, free: 15.69 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002892/0.4585, allocations: 1.889 MB / 411 MB, free: 13.75 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001021/0.4587, allocations: 45.7 kB / 411.1 MB, free: 13.7 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001269/0.4599, allocations: 1.508 MB / 412.6 MB, free: 12.18 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004264/0.4604, allocations: 492.9 kB / 413.1 MB, free: 11.69 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002043/0.4606, allocations: 149.6 kB / 413.2 MB, free: 11.54 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001119/0.4607, allocations: 305.1 kB / 413.5 MB, free: 11.23 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001281/0.462, allocations: 0.7691 MB / 414.3 MB, free: 10.46 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001729/0.4637, allocations: 1.383 MB / 415.7 MB, free: 8.812 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003241/0.467, allocations: 2.316 MB / 418 MB, free: 6.227 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.458e-06/0.467, allocations: 4 kB / 418 MB, free: 6.223 MB / 350.1 MB Notification: Performance of matching and sorting (n=235) (initialization): time 0.004381/0.4714, allocations: 2.474 MB / 420.4 MB, free: 3.73 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.585e-05/0.4714, allocations: 16 kB / 420.5 MB, free: 3.715 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.066e-05/0.4715, allocations: 23.94 kB / 420.5 MB, free: 3.691 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000384/0.4719, allocations: 122.5 kB / 420.6 MB, free: 3.562 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001759/0.4736, allocations: 495.5 kB / 421.1 MB, free: 3.078 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001344/0.475, allocations: 1.311 MB / 422.4 MB, free: 1.633 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001721/0.4767, allocations: 115.7 kB / 422.5 MB, free: 1.52 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001324/0.4769, allocations: 87.98 kB / 422.6 MB, free: 1.434 MB / 350.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 87 * 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 (232): * Single equations (assignments): 229 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 2 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 2 systems {(2,100.0%), (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): 1 system {(1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.00218/0.4791, allocations: 0.9812 MB / 423.6 MB, free: 452 kB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004747/0.4795, allocations: 197.6 kB / 423.8 MB, free: 252 kB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003467/0.483, allocations: 1.969 MB / 425.7 MB, free: 14.26 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.703e-05/0.4831, allocations: 23.88 kB / 425.8 MB, free: 14.23 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.661e-06/0.4831, allocations: 0 / 425.8 MB, free: 14.23 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.504e-05/0.4831, allocations: 7.969 kB / 425.8 MB, free: 14.23 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008702/0.4918, allocations: 4.989 MB / 430.8 MB, free: 9.133 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.109e-05/0.4919, allocations: 7.938 kB / 430.8 MB, free: 9.125 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001413/0.4933, allocations: 323.8 kB / 431.1 MB, free: 8.809 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003471/0.4936, allocations: 94.53 kB / 431.2 MB, free: 8.707 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.96e-05/0.4937, allocations: 27.98 kB / 431.2 MB, free: 8.68 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009325/0.4947, allocations: 1.28 MB / 432.5 MB, free: 7.266 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.893e-06/0.4947, allocations: 0 / 432.5 MB, free: 7.266 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004834/0.4995, allocations: 3.093 MB / 435.6 MB, free: 4.117 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001135/0.5007, allocations: 466.4 kB / 436 MB, free: 3.641 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002544/0.5009, allocations: 27.92 kB / 436.1 MB, free: 3.613 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009831/0.5019, allocations: 91.97 kB / 436.2 MB, free: 3.523 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001684/0.5021, allocations: 81.19 kB / 436.2 MB, free: 3.445 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.738e-05/0.5022, allocations: 40 kB / 436.3 MB, free: 3.406 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.001951/0.5042, allocations: 1.285 MB / 437.6 MB, free: 2.098 MB / 366.1 MB Notification: Performance of sort global known variables: time 4e-07/0.5042, allocations: 3.938 kB / 437.6 MB, free: 2.094 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.001754/0.5059, allocations: 0.5312 MB / 438.1 MB, free: 1.562 MB / 366.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 9 * Number of states: 2 (smpm.inertiaRotor.w,quadraticSpeedDependentTorque.phi) * 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 (141): * Single equations (assignments): 138 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 2 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 2 systems {(2,100.0%), (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): 1 system {(1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0003276/0.5063, allocations: 166.9 kB / 438.3 MB, free: 1.387 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.00353/0.5098, allocations: 2.212 MB / 440.5 MB, free: 15.12 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 5.871e-06/0.5098, allocations: 4 kB / 440.5 MB, free: 15.11 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001592/0.5114, allocations: 1.174 MB / 441.6 MB, free: 13.89 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003089/0.5145, allocations: 0.4948 MB / 442.1 MB, free: 13.39 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01304/0.5276, allocations: 7.074 MB / 449.2 MB, free: 6.258 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002371/0.53, allocations: 2.267 MB / 451.5 MB, free: 3.957 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.002087/0.5321, allocations: 0.5053 MB / 452 MB, free: 3.449 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000453/0.5326, allocations: 155.4 kB / 452.1 MB, free: 3.297 MB / 382.1 MB Notification: Performance of SimCode: time 1.062e-06/0.5326, allocations: 0 / 452.1 MB, free: 3.297 MB / 382.1 MB Notification: Performance of Templates: time 0.2374/0.77, allocations: 24.81 MB / 476.9 MB, free: 97.9 MB / 382.1 MB make -j1 -f Modelica_3.2.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_CurrentSource.makefile (rm -f Modelica_3.2.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_CurrentSource.pipe ; mkfifo Modelica_3.2.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_CurrentSource.pipe ; head -c 1048576 < Modelica_3.2.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_CurrentSource.pipe >> ../files/Modelica_3.2.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_CurrentSource.sim & ./Modelica_3.2.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_CurrentSource -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_CurrentSource.pipe 2>&1)