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.001486/0.001486, allocations: 97.42 kB / 16.62 MB, free: 6.812 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.001669/0.001669, allocations: 189.8 kB / 17.55 MB, free: 5.953 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.352/1.352, allocations: 205.1 MB / 223.4 MB, free: 12.44 MB / 190.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.00118/0.00118, allocations: 47.92 kB / 279.5 MB, free: 3.48 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1004/0.1016, allocations: 46.63 MB / 326.1 MB, free: 4.789 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_CurrentSource): time 0.01608/0.1177, allocations: 14.94 MB / 341.1 MB, free: 5.773 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.01108/0.1288, allocations: 5.012 MB / 346.1 MB, free: 0.7461 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003271/0.1321, allocations: 83.62 kB / 346.2 MB, free: 0.6641 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003667/0.1359, allocations: 0.9406 MB / 347.1 MB, free: 15.71 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004274/0.1401, allocations: 1.127 MB / 348.2 MB, free: 14.59 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00223/0.1424, allocations: 0.8225 MB / 349.1 MB, free: 13.76 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.00508/0.1475, allocations: 3.686 MB / 352.8 MB, free: 10.06 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003933/0.1514, allocations: 3.246 MB / 356 MB, free: 6.746 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002695/0.1542, allocations: 1.662 MB / 357.7 MB, free: 5.078 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003084/0.1573, allocations: 2.051 MB / 359.7 MB, free: 3.02 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000834/0.1581, allocations: 476 kB / 360.2 MB, free: 2.555 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001734/0.1598, allocations: 0.6872 MB / 360.9 MB, free: 1.867 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0009971/0.1609, allocations: 1.138 MB / 362 MB, free: 0.7266 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002222/0.1631, allocations: 2.038 MB / 364 MB, free: 14.68 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.006549/0.1696, allocations: 6.173 MB / 370.2 MB, free: 8.488 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.494e-06/0.1697, allocations: 8 kB / 370.2 MB, free: 8.48 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.695e-06/0.1697, allocations: 0 / 370.2 MB, free: 8.48 MB / 318.1 MB Notification: Performance of Transformations before backend: time 0.0001323/0.1698, allocations: 0 / 370.2 MB, free: 8.48 MB / 318.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.009583/0.1794, allocations: 4.226 MB / 374.4 MB, free: 4.18 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.032e-05/0.1795, allocations: 19.83 kB / 374.5 MB, free: 4.16 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002608/0.1821, allocations: 0.625 MB / 375.1 MB, free: 3.531 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003285/0.1854, allocations: 2.086 MB / 377.2 MB, free: 1.391 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001937/0.1856, allocations: 242.8 kB / 377.4 MB, free: 1.152 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004326/0.186, allocations: 315.8 kB / 377.7 MB, free: 0.8438 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.1557/0.3418, allocations: 4.039 MB / 381.8 MB, free: 48.73 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.119e-05/0.3419, allocations: 2.656 kB / 381.8 MB, free: 48.73 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002625/0.3422, allocations: 131.8 kB / 381.9 MB, free: 48.63 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001362/0.3423, allocations: 149.5 kB / 382 MB, free: 48.62 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005567/0.3479, allocations: 3.37 MB / 385.4 MB, free: 47.35 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01697/0.3649, allocations: 13.34 MB / 398.7 MB, free: 38.7 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00304/0.368, allocations: 3.973 MB / 402.7 MB, free: 35.04 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00126/0.3692, allocations: 0.9966 MB / 403.7 MB, free: 34.57 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.003628/0.3729, allocations: 2.66 MB / 406.4 MB, free: 32.57 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.573e-05/0.3729, allocations: 53.61 kB / 406.4 MB, free: 32.52 MB / 318.1 MB Notification: Performance of pre-optimization done (n=108): time 3.888e-06/0.3729, allocations: 0 / 406.4 MB, free: 32.52 MB / 318.1 MB Notification: Performance of matching and sorting (n=142): time 0.009824/0.3828, allocations: 5.991 MB / 412.4 MB, free: 27.46 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.19e-05/0.3828, allocations: 64.72 kB / 412.5 MB, free: 27.39 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002148/0.385, allocations: 1.889 MB / 414.4 MB, free: 25.46 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 7.983e-05/0.3851, allocations: 53.7 kB / 414.4 MB, free: 25.4 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000682/0.3858, allocations: 1.5 MB / 415.9 MB, free: 23.89 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002998/0.3861, allocations: 495.9 kB / 416.4 MB, free: 23.41 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004283/0.3865, allocations: 331.2 kB / 416.7 MB, free: 23.08 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 5.148e-05/0.3866, allocations: 309.1 kB / 417 MB, free: 22.77 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009429/0.3875, allocations: 0.7691 MB / 417.8 MB, free: 22 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001139/0.3887, allocations: 1.371 MB / 419.2 MB, free: 20.36 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002216/0.3909, allocations: 2.314 MB / 421.5 MB, free: 17.78 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.037e-05/0.3909, allocations: 8 kB / 421.5 MB, free: 17.77 MB / 318.1 MB Notification: Performance of matching and sorting (n=235) (initialization): time 0.003083/0.394, allocations: 2.475 MB / 424 MB, free: 15.28 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.983e-05/0.3941, allocations: 15.94 kB / 424 MB, free: 15.27 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.137e-05/0.3941, allocations: 20.59 kB / 424 MB, free: 15.25 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003302/0.3944, allocations: 118.5 kB / 424.1 MB, free: 15.12 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001625/0.3961, allocations: 495.2 kB / 424.6 MB, free: 14.64 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0007797/0.3968, allocations: 1.41 MB / 426 MB, free: 13.09 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00142/0.3983, allocations: 107.8 kB / 426.1 MB, free: 12.98 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001075/0.3984, allocations: 83.98 kB / 426.2 MB, free: 12.9 MB / 318.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.001445/0.3999, allocations: 0.9852 MB / 427.2 MB, free: 11.91 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002864/0.4001, allocations: 201.5 kB / 427.4 MB, free: 11.71 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002674/0.4028, allocations: 1.965 MB / 429.4 MB, free: 9.723 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.151e-05/0.4028, allocations: 16 kB / 429.4 MB, free: 9.707 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.005e-06/0.4029, allocations: 3.938 kB / 429.4 MB, free: 9.703 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.24e-05/0.4029, allocations: 10.59 kB / 429.4 MB, free: 9.695 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006147/0.409, allocations: 4.987 MB / 434.4 MB, free: 4.637 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.075e-06/0.4091, allocations: 7.938 kB / 434.4 MB, free: 4.629 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001275/0.4104, allocations: 311.8 kB / 434.7 MB, free: 4.324 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002637/0.4106, allocations: 102.5 kB / 434.8 MB, free: 4.215 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.807e-05/0.4107, allocations: 24 kB / 434.8 MB, free: 4.191 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0006478/0.4114, allocations: 1.378 MB / 436.2 MB, free: 2.668 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.715e-06/0.4114, allocations: 4.094 kB / 436.2 MB, free: 2.664 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003774/0.4152, allocations: 3.081 MB / 439.3 MB, free: 15.53 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000899/0.4161, allocations: 458.4 kB / 439.7 MB, free: 15.06 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002355/0.4163, allocations: 28 kB / 439.7 MB, free: 15.03 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009131/0.4172, allocations: 79.91 kB / 439.8 MB, free: 14.95 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001752/0.4174, allocations: 104.6 kB / 439.9 MB, free: 14.85 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.379e-05/0.4175, allocations: 39.98 kB / 440 MB, free: 14.81 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.001809/0.4193, allocations: 1.277 MB / 441.2 MB, free: 13.51 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.8e-07/0.4193, allocations: 0 / 441.2 MB, free: 13.51 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.001699/0.4211, allocations: 0.5337 MB / 441.8 MB, free: 12.98 MB / 334.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.0003296/0.4214, allocations: 161 kB / 441.9 MB, free: 12.82 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.005323/0.4267, allocations: 2.831 MB / 444.8 MB, free: 9.953 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 3.877e-06/0.4267, allocations: 1.875 kB / 444.8 MB, free: 9.953 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001449/0.4282, allocations: 1.178 MB / 445.9 MB, free: 8.723 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002264/0.4305, allocations: 0.5112 MB / 446.5 MB, free: 8.211 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009839/0.4403, allocations: 7.02 MB / 453.5 MB, free: 1.148 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001873/0.4422, allocations: 2.255 MB / 455.7 MB, free: 14.86 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.001762/0.444, allocations: 0.5054 MB / 456.2 MB, free: 14.36 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004175/0.4444, allocations: 155.4 kB / 456.4 MB, free: 14.2 MB / 350.1 MB Notification: Performance of SimCode: time 8.91e-07/0.4444, allocations: 0 / 456.4 MB, free: 14.2 MB / 350.1 MB Notification: Performance of Templates: time 0.05224/0.4967, allocations: 26.03 MB / 482.4 MB, free: 4.164 MB / 366.1 MB make -j1 -f Modelica_3.2.2_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_CurrentSource.makefile (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)