Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.2_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.2_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.2_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.0009044/0.0009043, allocations: 94.86 kB / 16.3 MB, free: 5.992 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.0009148/0.0009148, allocations: 181.4 kB / 17.2 MB, free: 5.906 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.552/1.552, allocations: 205.4 MB / 223.4 MB, free: 5.777 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.0005007/0.0005008, allocations: 8 kB / 280.1 MB, free: 13.09 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2849/0.2854, allocations: 47.59 MB / 327.7 MB, free: 1.641 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_CurrentSource): time 0.01541/0.3008, allocations: 12.2 MB / 339.9 MB, free: 7.477 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.01282/0.3137, allocations: 4.873 MB / 344.8 MB, free: 2.598 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.005185/0.319, allocations: 79.62 kB / 344.9 MB, free: 2.52 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004378/0.3234, allocations: 0.9133 MB / 345.8 MB, free: 1.602 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.007901/0.3313, allocations: 1.305 MB / 347.1 MB, free: 300 kB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003555/0.3349, allocations: 0.6938 MB / 347.8 MB, free: 15.6 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.007017/0.3419, allocations: 2.497 MB / 350.3 MB, free: 13.09 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004955/0.3469, allocations: 2.264 MB / 352.5 MB, free: 10.78 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003025/0.35, allocations: 1.16 MB / 353.7 MB, free: 9.617 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003893/0.3539, allocations: 1.459 MB / 355.1 MB, free: 8.152 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001453/0.3554, allocations: 188 kB / 355.3 MB, free: 7.969 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002283/0.3577, allocations: 367.7 kB / 355.7 MB, free: 7.609 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001484/0.3592, allocations: 0.7593 MB / 356.4 MB, free: 6.848 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001691/0.3609, allocations: 0.6991 MB / 357.1 MB, free: 6.141 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.006542/0.3675, allocations: 5.01 MB / 362.2 MB, free: 1.117 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.087e-06/0.3675, allocations: 0 / 362.2 MB, free: 1.117 MB / 286.1 MB Notification: Performance of FrontEnd: time 2.094e-06/0.3675, allocations: 0 / 362.2 MB, free: 1.117 MB / 286.1 MB Notification: Performance of Transformations before backend: time 0.0002405/0.3678, allocations: 4 kB / 362.2 MB, free: 1.113 MB / 286.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.01069/0.3785, allocations: 3.591 MB / 365.8 MB, free: 13.45 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.323e-05/0.3785, allocations: 8.031 kB / 365.8 MB, free: 13.44 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003825/0.3824, allocations: 0.6201 MB / 366.4 MB, free: 12.82 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005898/0.3883, allocations: 2.058 MB / 368.4 MB, free: 10.7 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000331/0.3887, allocations: 242.3 kB / 368.7 MB, free: 10.46 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001303/0.39, allocations: 319.9 kB / 369 MB, free: 10.15 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01024/0.4002, allocations: 3.992 MB / 373 MB, free: 6.098 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.64e-05/0.4004, allocations: 7.844 kB / 373 MB, free: 6.09 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002905/0.4007, allocations: 135.9 kB / 373.1 MB, free: 5.957 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001554/0.4008, allocations: 142.2 kB / 373.3 MB, free: 5.816 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.006304/0.4071, allocations: 3.354 MB / 376.6 MB, free: 2.453 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02159/0.4287, allocations: 13.3 MB / 389.9 MB, free: 4.695 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00476/0.4336, allocations: 3.951 MB / 393.9 MB, free: 248 kB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.005815/0.4394, allocations: 2.654 MB / 396.5 MB, free: 13.51 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.946e-05/0.4395, allocations: 55.56 kB / 396.6 MB, free: 13.45 MB / 334.1 MB Notification: Performance of pre-optimization done (n=113): time 5.34e-06/0.4395, allocations: 0 / 396.6 MB, free: 13.45 MB / 334.1 MB Notification: Performance of matching and sorting (n=147): time 0.0131/0.4526, allocations: 6.071 MB / 402.6 MB, free: 7.281 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.52e-05/0.4527, allocations: 68.66 kB / 402.7 MB, free: 7.203 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003617/0.4564, allocations: 1.79 MB / 404.5 MB, free: 5.367 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001565/0.4566, allocations: 53.7 kB / 404.6 MB, free: 5.309 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001232/0.4578, allocations: 1.512 MB / 406.1 MB, free: 3.777 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005019/0.4583, allocations: 0.4967 MB / 406.6 MB, free: 3.273 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001138/0.4584, allocations: 40 kB / 406.6 MB, free: 3.234 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001885/0.4586, allocations: 377.9 kB / 407 MB, free: 2.859 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001351/0.46, allocations: 0.7769 MB / 407.8 MB, free: 2.082 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001761/0.4618, allocations: 1.378 MB / 409.1 MB, free: 444 kB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001735/0.4635, allocations: 1.014 MB / 410.1 MB, free: 15.42 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.864e-05/0.4636, allocations: 8 kB / 410.2 MB, free: 15.41 MB / 350.1 MB Notification: Performance of matching and sorting (n=239) (initialization): time 0.004602/0.4682, allocations: 2.489 MB / 412.6 MB, free: 12.91 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.118e-05/0.4682, allocations: 12.69 kB / 412.7 MB, free: 12.89 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.082e-05/0.4683, allocations: 27.98 kB / 412.7 MB, free: 12.87 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003989/0.4687, allocations: 118.5 kB / 412.8 MB, free: 12.74 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001891/0.4706, allocations: 0.4913 MB / 413.3 MB, free: 12.25 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001461/0.4721, allocations: 1.311 MB / 414.6 MB, free: 10.8 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001752/0.4739, allocations: 116 kB / 414.7 MB, free: 10.69 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002045/0.4741, allocations: 84 kB / 414.8 MB, free: 10.61 MB / 350.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 86 * 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 (236): * Single equations (assignments): 233 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 2 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 2 {(2,100.0%),(2,100.0%)} * Non-linear Jacobian: 0 * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.002919/0.477, allocations: 0.9851 MB / 415.8 MB, free: 9.609 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0009201/0.4779, allocations: 201.5 kB / 416 MB, free: 9.41 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004246/0.4822, allocations: 2.001 MB / 418 MB, free: 7.387 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.59e-05/0.4822, allocations: 16 kB / 418 MB, free: 7.371 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.558e-06/0.4823, allocations: 0 / 418 MB, free: 7.371 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.372e-05/0.4823, allocations: 7.969 kB / 418 MB, free: 7.363 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01028/0.4926, allocations: 5.035 MB / 423 MB, free: 2.223 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.528e-05/0.4926, allocations: 4 kB / 423 MB, free: 2.219 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001476/0.4941, allocations: 327.8 kB / 423.4 MB, free: 1.898 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003285/0.4945, allocations: 98.53 kB / 423.5 MB, free: 1.793 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001298/0.4946, allocations: 27.98 kB / 423.5 MB, free: 1.766 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001041/0.4957, allocations: 1.288 MB / 424.8 MB, free: 356 kB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.915e-06/0.4957, allocations: 7.953 kB / 424.8 MB, free: 348 kB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005238/0.501, allocations: 3.269 MB / 428 MB, free: 12.94 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001571/0.5026, allocations: 462.6 kB / 428.5 MB, free: 12.47 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006381/0.5032, allocations: 28 kB / 428.5 MB, free: 12.44 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001411/0.5046, allocations: 79.91 kB / 428.6 MB, free: 12.36 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001868/0.5049, allocations: 89.14 kB / 428.7 MB, free: 12.28 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.677e-05/0.505, allocations: 40 kB / 428.7 MB, free: 12.24 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.002626/0.5076, allocations: 1.218 MB / 429.9 MB, free: 11 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.7e-07/0.5076, allocations: 0 / 429.9 MB, free: 11 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.002645/0.5103, allocations: 0.5273 MB / 430.5 MB, free: 10.47 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 (146): * Single equations (assignments): 143 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 2 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 2 {(2,100.0%),(2,100.0%)} * Non-linear Jacobian: 0 * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.000495/0.5108, allocations: 174.9 kB / 430.6 MB, free: 10.29 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.003986/0.5148, allocations: 2.243 MB / 432.9 MB, free: 7.992 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 6.813e-06/0.5148, allocations: 0 / 432.9 MB, free: 7.992 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001838/0.5167, allocations: 1.19 MB / 434.1 MB, free: 6.75 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002849/0.5195, allocations: 478.1 kB / 434.5 MB, free: 6.277 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01419/0.5338, allocations: 6.746 MB / 441.3 MB, free: 15.47 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003452/0.5373, allocations: 2.322 MB / 443.6 MB, free: 13.12 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.002466/0.5398, allocations: 0.5131 MB / 444.1 MB, free: 12.6 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007534/0.5405, allocations: 147.4 kB / 444.3 MB, free: 12.46 MB / 382.1 MB Notification: Performance of SimCode: time 2.134e-06/0.5406, allocations: 0 / 444.3 MB, free: 12.46 MB / 382.1 MB Notification: Performance of Templates: time 0.2421/0.7827, allocations: 23.52 MB / 467.8 MB, free: 107 MB / 382.1 MB make -j1 -f Modelica_3.2.2_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_CurrentSource.makefile Environment - environmentSimulation: (rm -f Modelica_3.2.2_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_CurrentSource.pipe ; mkfifo Modelica_3.2.2_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_CurrentSource.pipe ; head -c 1048576 < Modelica_3.2.2_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_CurrentSource.pipe >> ../files/Modelica_3.2.2_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_CurrentSource.sim & ./Modelica_3.2.2_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_CurrentSource -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.2_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_CurrentSource.pipe 2>&1) Environment - environmentSimulation: