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.001108/0.001108, allocations: 108 kB / 15.6 MB, free: 132 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.00112/0.00112, allocations: 198.6 kB / 16.53 MB, free: 6.391 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.377/1.377, allocations: 205.1 MB / 222.4 MB, free: 4.387 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.001345/0.001345, allocations: 55.92 kB / 278.7 MB, free: 12.21 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2382/0.2395, allocations: 46.64 MB / 325.3 MB, free: 2.031 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_CurrentSource): time 0.01627/0.2558, allocations: 15.11 MB / 340.4 MB, free: 4.73 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.01055/0.2664, allocations: 5.11 MB / 345.5 MB, free: 15.61 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003122/0.2696, allocations: 87.62 kB / 345.6 MB, free: 15.52 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003976/0.2736, allocations: 1.056 MB / 346.7 MB, free: 14.46 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005126/0.2788, allocations: 1.258 MB / 347.9 MB, free: 13.19 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002578/0.2814, allocations: 0.8924 MB / 348.8 MB, free: 12.3 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.004763/0.2861, allocations: 3.608 MB / 352.4 MB, free: 8.668 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004904/0.2911, allocations: 3.262 MB / 355.7 MB, free: 5.34 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002832/0.2939, allocations: 1.702 MB / 357.4 MB, free: 3.633 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004527/0.2984, allocations: 2.051 MB / 359.5 MB, free: 1.574 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001788/0.3003, allocations: 480 kB / 359.9 MB, free: 1.105 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002467/0.3027, allocations: 0.695 MB / 360.6 MB, free: 420 kB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001655/0.3044, allocations: 1.13 MB / 361.8 MB, free: 15.28 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002785/0.3072, allocations: 2.05 MB / 363.8 MB, free: 13.22 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005968/0.3132, allocations: 6.185 MB / 370 MB, free: 7.016 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.603e-06/0.3132, allocations: 4 kB / 370 MB, free: 7.012 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.773e-06/0.3132, allocations: 0 / 370 MB, free: 7.012 MB / 302.1 MB Notification: Performance of Transformations before backend: time 0.0001073/0.3133, allocations: 0 / 370 MB, free: 7.012 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.009774/0.3231, allocations: 4.238 MB / 374.2 MB, free: 2.699 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.44e-05/0.3232, allocations: 19.88 kB / 374.3 MB, free: 2.68 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002597/0.3258, allocations: 0.625 MB / 374.9 MB, free: 2.051 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003417/0.3292, allocations: 2.113 MB / 377 MB, free: 15.88 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001962/0.3294, allocations: 238.9 kB / 377.2 MB, free: 15.64 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004087/0.3298, allocations: 315.8 kB / 377.5 MB, free: 15.34 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006092/0.3359, allocations: 4.043 MB / 381.6 MB, free: 11.23 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.741e-05/0.336, allocations: 11.84 kB / 381.6 MB, free: 11.22 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002655/0.3363, allocations: 136 kB / 381.7 MB, free: 11.09 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001376/0.3364, allocations: 138.2 kB / 381.9 MB, free: 10.95 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005205/0.3417, allocations: 3.378 MB / 385.2 MB, free: 7.562 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0185/0.3602, allocations: 13.34 MB / 398.6 MB, free: 9.773 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004105/0.3643, allocations: 3.958 MB / 402.5 MB, free: 5.309 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00151/0.3659, allocations: 1.011 MB / 403.5 MB, free: 4.301 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.004353/0.3702, allocations: 2.653 MB / 406.2 MB, free: 1.562 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.336e-05/0.3703, allocations: 47.55 kB / 406.2 MB, free: 1.508 MB / 334.1 MB Notification: Performance of pre-optimization done (n=108): time 2.735e-06/0.3703, allocations: 0 / 406.2 MB, free: 1.508 MB / 334.1 MB Notification: Performance of matching and sorting (n=142): time 0.01185/0.3822, allocations: 5.987 MB / 412.2 MB, free: 11.42 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.143e-05/0.3822, allocations: 68.66 kB / 412.3 MB, free: 11.34 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00316/0.3854, allocations: 1.889 MB / 414.2 MB, free: 9.41 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 9.051e-05/0.3855, allocations: 49.7 kB / 414.2 MB, free: 9.355 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.00104/0.3865, allocations: 1.508 MB / 415.7 MB, free: 7.828 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003712/0.3869, allocations: 492.9 kB / 416.2 MB, free: 7.34 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005087/0.3874, allocations: 331.2 kB / 416.5 MB, free: 7.012 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 9.168e-05/0.3875, allocations: 305.1 kB / 416.8 MB, free: 6.711 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001205/0.3888, allocations: 0.773 MB / 417.6 MB, free: 5.938 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001576/0.3903, allocations: 1.375 MB / 419 MB, free: 4.293 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002989/0.3934, allocations: 2.308 MB / 421.3 MB, free: 1.715 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.635e-05/0.3934, allocations: 12 kB / 421.3 MB, free: 1.703 MB / 350.1 MB Notification: Performance of matching and sorting (n=235) (initialization): time 0.003976/0.3974, allocations: 2.469 MB / 423.8 MB, free: 15.21 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.971e-05/0.3974, allocations: 12.69 kB / 423.8 MB, free: 15.2 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.318e-05/0.3974, allocations: 31.75 kB / 423.8 MB, free: 15.18 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003755/0.3978, allocations: 114.5 kB / 423.9 MB, free: 15.05 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001767/0.3996, allocations: 499.2 kB / 424.4 MB, free: 14.57 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001101/0.4007, allocations: 1.406 MB / 425.8 MB, free: 13.02 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001535/0.4023, allocations: 119.7 kB / 425.9 MB, free: 12.9 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001541/0.4024, allocations: 80 kB / 426 MB, free: 12.82 MB / 366.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.001762/0.4042, allocations: 0.9852 MB / 427 MB, free: 11.83 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004385/0.4047, allocations: 197.6 kB / 427.2 MB, free: 11.63 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003265/0.4079, allocations: 1.965 MB / 429.2 MB, free: 9.645 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.273e-05/0.408, allocations: 12 kB / 429.2 MB, free: 9.633 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.464e-06/0.408, allocations: 4 kB / 429.2 MB, free: 9.629 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.467e-05/0.408, allocations: 7.969 kB / 429.2 MB, free: 9.621 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008625/0.4166, allocations: 4.989 MB / 434.2 MB, free: 4.527 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.017e-05/0.4167, allocations: 8 kB / 434.2 MB, free: 4.52 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00137/0.418, allocations: 323.8 kB / 434.5 MB, free: 4.203 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002969/0.4183, allocations: 90.53 kB / 434.6 MB, free: 4.105 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001023/0.4185, allocations: 31.98 kB / 434.6 MB, free: 4.074 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009191/0.4194, allocations: 1.375 MB / 436 MB, free: 2.559 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.917e-06/0.4194, allocations: 8 kB / 436 MB, free: 2.551 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004368/0.4238, allocations: 3.081 MB / 439.1 MB, free: 15.41 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009909/0.4248, allocations: 450.5 kB / 439.5 MB, free: 14.95 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004902/0.4253, allocations: 28 kB / 439.5 MB, free: 14.93 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001319/0.4266, allocations: 79.97 kB / 439.6 MB, free: 14.85 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001904/0.4268, allocations: 97 kB / 439.7 MB, free: 14.75 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.127e-05/0.4269, allocations: 39.98 kB / 439.8 MB, free: 14.71 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.002592/0.4295, allocations: 1.285 MB / 441 MB, free: 13.41 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.6e-07/0.4295, allocations: 0 / 441 MB, free: 13.41 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.002238/0.4318, allocations: 0.5351 MB / 441.6 MB, free: 12.87 MB / 382.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.0004173/0.4322, allocations: 163 kB / 441.7 MB, free: 12.7 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.006045/0.4383, allocations: 2.833 MB / 444.6 MB, free: 9.812 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 6.863e-06/0.4383, allocations: 0 / 444.6 MB, free: 9.812 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001713/0.44, allocations: 1.178 MB / 445.8 MB, free: 8.582 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003082/0.4431, allocations: 0.5099 MB / 446.3 MB, free: 8.066 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01216/0.4553, allocations: 5.644 MB / 451.9 MB, free: 2.367 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003358/0.4587, allocations: 2.259 MB / 454.2 MB, free: 80 kB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.183/0.6417, allocations: 0.5103 MB / 454.7 MB, free: 110.2 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001097/0.6428, allocations: 149.5 kB / 454.8 MB, free: 110.2 MB / 382.1 MB Notification: Performance of SimCode: time 1.332e-06/0.6429, allocations: 0 / 454.8 MB, free: 110.2 MB / 382.1 MB Notification: Performance of Templates: time 0.05378/0.6967, allocations: 26.03 MB / 480.9 MB, free: 93.3 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)