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.0009245/0.0009245, allocations: 99.62 kB / 15.05 MB, free: 1.105 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.0009945/0.0009946, allocations: 177.3 kB / 15.95 MB, free: 216 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.608/1.608, allocations: 205.4 MB / 222.1 MB, free: 5.66 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.000765/0.0007648, allocations: 16 kB / 278.9 MB, free: 12.82 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3078/0.3086, allocations: 47.57 MB / 326.5 MB, free: 1.422 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_CurrentSource): time 0.01464/0.3233, allocations: 12.2 MB / 338.7 MB, free: 7.297 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.01133/0.3347, allocations: 4.873 MB / 343.5 MB, free: 2.414 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003948/0.3387, allocations: 83.62 kB / 343.6 MB, free: 2.332 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004459/0.3432, allocations: 0.9055 MB / 344.5 MB, free: 1.422 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00692/0.3502, allocations: 1.308 MB / 345.8 MB, free: 112 kB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003093/0.3533, allocations: 0.6977 MB / 346.5 MB, free: 15.41 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.00702/0.3603, allocations: 2.497 MB / 349 MB, free: 12.9 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003574/0.3639, allocations: 2.268 MB / 351.3 MB, free: 10.59 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002607/0.3666, allocations: 1.16 MB / 352.4 MB, free: 9.426 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003106/0.3697, allocations: 1.451 MB / 353.9 MB, free: 7.969 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0005096/0.3702, allocations: 192 kB / 354.1 MB, free: 7.781 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001541/0.3718, allocations: 371.7 kB / 354.4 MB, free: 7.418 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0008416/0.3726, allocations: 0.7554 MB / 355.2 MB, free: 6.66 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001056/0.3737, allocations: 0.703 MB / 355.9 MB, free: 5.949 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005721/0.3794, allocations: 5.014 MB / 360.9 MB, free: 0.9219 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.176e-06/0.3795, allocations: 0 / 360.9 MB, free: 0.9219 MB / 286.1 MB Notification: Performance of FrontEnd: time 4.779e-06/0.3795, allocations: 0 / 360.9 MB, free: 0.9219 MB / 286.1 MB Notification: Performance of Transformations before backend: time 0.0002491/0.3797, allocations: 0 / 360.9 MB, free: 0.9219 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.01009/0.3898, allocations: 3.587 MB / 364.5 MB, free: 13.26 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.621e-05/0.3899, allocations: 15.97 kB / 364.5 MB, free: 13.25 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003254/0.3932, allocations: 0.6241 MB / 365.1 MB, free: 12.62 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00523/0.3984, allocations: 2.05 MB / 367.2 MB, free: 10.51 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003303/0.3988, allocations: 246.3 kB / 367.4 MB, free: 10.27 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001222/0.4, allocations: 315.9 kB / 367.7 MB, free: 9.961 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0122/0.4122, allocations: 3.988 MB / 371.7 MB, free: 5.91 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001217/0.4124, allocations: 11.89 kB / 371.7 MB, free: 5.898 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0006127/0.413, allocations: 128 kB / 371.9 MB, free: 5.773 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001873/0.4132, allocations: 150.2 kB / 372 MB, free: 5.625 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.007961/0.4212, allocations: 3.347 MB / 375.4 MB, free: 2.27 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02844/0.4497, allocations: 13.3 MB / 388.7 MB, free: 4.512 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004992/0.4547, allocations: 3.959 MB / 392.6 MB, free: 52 kB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.006113/0.4608, allocations: 2.65 MB / 395.3 MB, free: 13.32 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.369e-05/0.4609, allocations: 43.56 kB / 395.3 MB, free: 13.27 MB / 334.1 MB Notification: Performance of pre-optimization done (n=113): time 3.236e-06/0.4609, allocations: 0 / 395.3 MB, free: 13.27 MB / 334.1 MB Notification: Performance of matching and sorting (n=147): time 0.01399/0.4749, allocations: 6.071 MB / 401.4 MB, free: 7.105 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.478e-05/0.475, allocations: 68.72 kB / 401.5 MB, free: 7.027 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003548/0.4786, allocations: 1.798 MB / 403.3 MB, free: 5.184 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001266/0.4787, allocations: 49.7 kB / 403.3 MB, free: 5.129 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001241/0.48, allocations: 1.512 MB / 404.8 MB, free: 3.598 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005012/0.4805, allocations: 0.4968 MB / 405.3 MB, free: 3.094 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001035/0.4806, allocations: 36 kB / 405.3 MB, free: 3.059 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0002042/0.4808, allocations: 381.9 kB / 405.7 MB, free: 2.68 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001311/0.4822, allocations: 0.7769 MB / 406.5 MB, free: 1.902 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001751/0.4839, allocations: 1.374 MB / 407.9 MB, free: 264 kB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001707/0.4856, allocations: 1.021 MB / 408.9 MB, free: 15.23 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.844e-05/0.4857, allocations: 7.953 kB / 408.9 MB, free: 15.23 MB / 350.1 MB Notification: Performance of matching and sorting (n=239) (initialization): time 0.004815/0.4905, allocations: 2.489 MB / 411.4 MB, free: 12.72 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.223e-05/0.4905, allocations: 19.94 kB / 411.4 MB, free: 12.7 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.802e-05/0.4906, allocations: 16 kB / 411.4 MB, free: 12.68 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000381/0.491, allocations: 118.5 kB / 411.5 MB, free: 12.56 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001884/0.4929, allocations: 0.4956 MB / 412 MB, free: 12.06 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001539/0.4944, allocations: 1.311 MB / 413.3 MB, free: 10.61 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001766/0.4962, allocations: 111.8 kB / 413.5 MB, free: 10.5 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002421/0.4965, allocations: 83.98 kB / 413.5 MB, free: 10.42 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.002255/0.4987, allocations: 0.9892 MB / 414.5 MB, free: 9.422 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005925/0.4993, allocations: 201.5 kB / 414.7 MB, free: 9.223 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003865/0.5032, allocations: 2.004 MB / 416.7 MB, free: 7.195 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.452e-05/0.5032, allocations: 12 kB / 416.7 MB, free: 7.184 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.496e-06/0.5033, allocations: 0 / 416.7 MB, free: 7.184 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.583e-05/0.5033, allocations: 11.97 kB / 416.7 MB, free: 7.172 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009628/0.5129, allocations: 5.035 MB / 421.8 MB, free: 2.035 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.205e-06/0.5129, allocations: 0 / 421.8 MB, free: 2.035 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001437/0.5144, allocations: 331.8 kB / 422.1 MB, free: 1.711 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003234/0.5147, allocations: 94.53 kB / 422.2 MB, free: 1.609 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000116/0.5149, allocations: 31.98 kB / 422.2 MB, free: 1.578 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001004/0.5159, allocations: 1.284 MB / 423.5 MB, free: 168 kB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.344e-06/0.5159, allocations: 0 / 423.5 MB, free: 168 kB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005237/0.5212, allocations: 3.281 MB / 426.8 MB, free: 12.75 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001386/0.5226, allocations: 454.5 kB / 427.2 MB, free: 12.29 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000504/0.5231, allocations: 28 kB / 427.3 MB, free: 12.26 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001304/0.5244, allocations: 79.91 kB / 427.3 MB, free: 12.18 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001903/0.5246, allocations: 97.2 kB / 427.4 MB, free: 12.09 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.345e-05/0.5247, allocations: 36 kB / 427.5 MB, free: 12.05 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.002872/0.5276, allocations: 1.214 MB / 428.7 MB, free: 10.82 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.21e-07/0.5276, allocations: 0 / 428.7 MB, free: 10.82 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.002559/0.5302, allocations: 0.5312 MB / 429.2 MB, free: 10.29 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.000399/0.5306, allocations: 166.9 kB / 429.4 MB, free: 10.11 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.003853/0.5344, allocations: 2.24 MB / 431.6 MB, free: 7.82 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 5.51e-06/0.5344, allocations: 0 / 431.6 MB, free: 7.82 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001763/0.5362, allocations: 1.201 MB / 432.8 MB, free: 6.566 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002529/0.5388, allocations: 486 kB / 433.3 MB, free: 6.086 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01231/0.5511, allocations: 6.75 MB / 440.1 MB, free: 15.28 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002777/0.5539, allocations: 2.322 MB / 442.4 MB, free: 12.92 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.002175/0.5561, allocations: 0.5052 MB / 442.9 MB, free: 12.41 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005727/0.5567, allocations: 155.4 kB / 443 MB, free: 12.26 MB / 382.1 MB Notification: Performance of SimCode: time 1.172e-06/0.5567, allocations: 0 / 443 MB, free: 12.26 MB / 382.1 MB Notification: Performance of Templates: time 0.2332/0.7899, allocations: 23.51 MB / 466.5 MB, free: 105.5 MB / 382.1 MB make -j1 -f Modelica_3.2.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_CurrentSource.makefile Environment - environmentSimulation: (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) Environment - environmentSimulation: